source: psi/trunk/src/options/opt_general.h

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.9 KB
Line 
1#ifndef OPT_GENERAL_H
2#define OPT_GENERAL_H
3
4#include "optionstab.h"
5
6class QWidget;
7struct Options;
8class QButtonGroup;
9
10class OptionsTabGeneral : public MetaOptionsTab
11{
12 Q_OBJECT
13public:
14 OptionsTabGeneral(QObject *parent);
15};
16
17class OptionsTabGeneralRoster : public OptionsTab
18{
19 Q_OBJECT
20public:
21 OptionsTabGeneralRoster(QObject *parent);
22 ~OptionsTabGeneralRoster();
23
24 QWidget *widget();
25 void applyOptions(Options *opt);
26 void restoreOptions(const Options *opt);
27
28private:
29 QWidget *w;
30 QButtonGroup *bg_defAct;
31};
32
33class OptionsTabGeneralDocking : public OptionsTab
34{
35 Q_OBJECT
36public:
37 OptionsTabGeneralDocking(QObject *parent);
38
39 QWidget *widget();
40 void applyOptions(Options *opt);
41 void restoreOptions(const Options *opt);
42
43private:
44 QWidget *w;
45};
46
47class OptionsTabGeneralMisc : public OptionsTab
48{
49 Q_OBJECT
50public:
51 OptionsTabGeneralMisc(QObject *parent);
52 ~OptionsTabGeneralMisc();
53
54 QWidget *widget();
55 void applyOptions(Options *opt);
56 void restoreOptions(const Options *opt);
57
58private slots:
59 void selectBrowser(int);
60
61private:
62 QWidget *w;
63 QButtonGroup *bg_delChats;
64};
65
66class OptionsTabGeneralNotifications : public OptionsTab
67{
68 Q_OBJECT
69public:
70 OptionsTabGeneralNotifications(QObject *parent);
71
72 QWidget *widget();
73 void applyOptions(Options *opt);
74 void restoreOptions(const Options *opt);
75
76private:
77 QWidget *w;
78};
79
80class OptionsTabGeneralGroupchat : public OptionsTab
81{
82 Q_OBJECT
83public:
84 OptionsTabGeneralGroupchat(QObject *parent);
85
86 QWidget *widget();
87 void applyOptions(Options *opt);
88 void restoreOptions(const Options *opt);
89
90 void setData(PsiCon *, QWidget *);
91 bool stretchable() const { return true; }
92
93private slots:
94 void addNickColor(QString);
95 void addGCHighlight();
96 void removeGCHighlight();
97 void addGCNickColor();
98 void removeGCNickColor();
99 void chooseGCNickColor();
100 void displayGCNickColor();
101 void selectedGCNickColor();
102
103private:
104 QWidget *w, *dlg;
105};
106
107#endif
Note: See TracBrowser for help on using the repository browser.