kivio

kiviotextformatdlg.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Peter Simonsson <psn@linux.se>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KIVIOTEXTFORMATDLG_H
21#define KIVIOTEXTFORMATDLG_H
22
23#include <kdialogbase.h>
24
25class KivioView;
26class TDEFontChooser;
27class KColorButton;
28class TQButtonGroup;
29class TQLabel;
30class TQFont;
31class TQColor;
32
33class KivioTextFormatDlg : public KDialogBase
34{
35 TQ_OBJECT
36
37 public:
38 KivioTextFormatDlg(KivioView* parent, const char* name = 0);
39
40 int valign();
41 int halign();
42 TQFont font();
43 TQColor textColor();
44
45 public slots:
46 void setVAlign(int i);
47 void setHAlign(int i);
48 void setFont(TQFont f);
49 void setTextColor(TQColor c);
50
51 protected:
52 void initFontTab();
53 void initPositionTab();
54
55 protected slots:
56 void updateVAlign(int i);
57 void updateHAlign(int i);
58 void slotDefault();
59
60 protected:
61 TDEFontChooser* m_fontChooser;
62 KColorButton* m_textCBtn;
63 TQButtonGroup* m_halignBGrp;
64 TQButtonGroup* m_valignBGrp;
65 TQLabel* m_preview;
66 int m_valign;
67 int m_halign;
68};
69
70#endif