]> Shamusworld >> Repos - architektonas/blob - src/forms/dlgtext.h
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / dlgtext.h
1 #ifndef __DLGTEXT_H__
2 #define __DLGTEXT_H__
3
4 #include "ui_dlgtext.h"
5
6 class Text;
7 class Font;
8
9 class DlgText: public QDialog
10 {
11         Q_OBJECT
12
13         public:
14                 DlgText(QWidget * parent = 0, Qt::WindowFlags flags = 0);
15                 ~DlgText();
16
17                 int getAlignment();
18
19         public slots:
20                 void updateUniCharComboBox(int);
21                 void setText(Text & t, bool isNew);
22                 void updateText();
23                 void setAlignmentTL();
24                 void setAlignmentTC();
25                 void setAlignmentTR();
26                 void setAlignmentML();
27                 void setAlignmentMC();
28                 void setAlignmentMR();
29                 void setAlignmentBL();
30                 void setAlignmentBC();
31                 void setAlignmentBR();
32                 void setAlignment(int a);
33                 void setFont(const QString & f);
34                 void defaultChanged(bool);
35                 void loadText();
36                 void load(const QString & fn);
37                 void saveText();
38                 void save(const QString & fn);
39                 void insertSymbol(int);
40                 void updateUniCharButton(int);
41                 void insertChar();
42
43         private:
44                 bool isNew;
45                 Text * text;
46                 Font * font;
47
48         private:
49                 Ui::DlgText ui;
50 };
51
52 #endif // __DLGTEXT_H__