Last change
on this file was 2, checked in by dmik, 19 years ago |
Imported original Psi 0.10 sources from Affinix
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifndef OPT_APPEARANCEGENERAL_H
|
---|
2 | #define OPT_APPEARANCEGENERAL_H
|
---|
3 |
|
---|
4 | #include "optionstab.h"
|
---|
5 |
|
---|
6 | #include <qlineedit.h>
|
---|
7 |
|
---|
8 | class FontLabel : public QLineEdit
|
---|
9 | {
|
---|
10 | Q_OBJECT
|
---|
11 | public:
|
---|
12 | FontLabel(QWidget *parent = 0, const char *name = 0);
|
---|
13 |
|
---|
14 | void setFont(QString);
|
---|
15 | QString fontName() const;
|
---|
16 |
|
---|
17 | QSize sizeHint() const;
|
---|
18 |
|
---|
19 | private:
|
---|
20 | QString m_font;
|
---|
21 | int m_defaultHeight;
|
---|
22 | };
|
---|
23 |
|
---|
24 | class QWidget;
|
---|
25 | struct Options;
|
---|
26 | class QButtonGroup;
|
---|
27 | class QLineEdit;
|
---|
28 |
|
---|
29 | class OptionsTabAppearance : public MetaOptionsTab
|
---|
30 | {
|
---|
31 | Q_OBJECT
|
---|
32 | public:
|
---|
33 | OptionsTabAppearance(QObject *parent);
|
---|
34 | };
|
---|
35 |
|
---|
36 | class OptionsTabAppearanceMisc : public OptionsTab
|
---|
37 | {
|
---|
38 | Q_OBJECT
|
---|
39 | public:
|
---|
40 | OptionsTabAppearanceMisc(QObject *parent);
|
---|
41 | ~OptionsTabAppearanceMisc();
|
---|
42 |
|
---|
43 | QWidget *widget();
|
---|
44 | void applyOptions(Options *opt);
|
---|
45 | void restoreOptions(const Options *opt);
|
---|
46 |
|
---|
47 | private slots:
|
---|
48 | void setData(PsiCon *, QWidget *);
|
---|
49 |
|
---|
50 | private:
|
---|
51 | QWidget *w, *parentWidget;
|
---|
52 | Options *o;
|
---|
53 | };
|
---|
54 |
|
---|
55 | class OptionsTabAppearanceGeneral : public OptionsTab
|
---|
56 | {
|
---|
57 | Q_OBJECT
|
---|
58 | public:
|
---|
59 | OptionsTabAppearanceGeneral(QObject *parent);
|
---|
60 | ~OptionsTabAppearanceGeneral();
|
---|
61 |
|
---|
62 | QWidget *widget();
|
---|
63 | void applyOptions(Options *opt);
|
---|
64 | void restoreOptions(const Options *opt);
|
---|
65 |
|
---|
66 | private slots:
|
---|
67 | void setData(PsiCon *, QWidget *);
|
---|
68 | void chooseColor(int);
|
---|
69 | void chooseFont(int);
|
---|
70 |
|
---|
71 | private:
|
---|
72 | QWidget *w, *parentWidget;
|
---|
73 | QButtonGroup *bg_color;
|
---|
74 | FontLabel *le_font[4];
|
---|
75 | QButtonGroup *bg_font;
|
---|
76 | Options *o;
|
---|
77 | };
|
---|
78 |
|
---|
79 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.