~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/options/opt_general.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef OPT_GENERAL_H
 
2
#define OPT_GENERAL_H
 
3
 
 
4
#include "optionstab.h"
 
5
 
 
6
class QWidget;
 
7
struct Options;
 
8
class QButtonGroup;
 
9
 
 
10
class OptionsTabGeneral : public MetaOptionsTab
 
11
{
 
12
        Q_OBJECT
 
13
public:
 
14
        OptionsTabGeneral(QObject *parent);
 
15
};
 
16
 
 
17
class OptionsTabGeneralRoster : public OptionsTab
 
18
{
 
19
        Q_OBJECT
 
20
public:
 
21
        OptionsTabGeneralRoster(QObject *parent);
 
22
        ~OptionsTabGeneralRoster();
 
23
 
 
24
        QWidget *widget();
 
25
        void applyOptions(Options *opt);
 
26
        void restoreOptions(const Options *opt);
 
27
 
 
28
private:
 
29
        QWidget *w;
 
30
        QButtonGroup *bg_defAct;
 
31
};
 
32
 
 
33
class OptionsTabGeneralDocking : public OptionsTab
 
34
{
 
35
        Q_OBJECT
 
36
public:
 
37
        OptionsTabGeneralDocking(QObject *parent);
 
38
 
 
39
        QWidget *widget();
 
40
        void applyOptions(Options *opt);
 
41
        void restoreOptions(const Options *opt);
 
42
 
 
43
private:
 
44
        QWidget *w;
 
45
};
 
46
 
 
47
class OptionsTabGeneralMisc : public OptionsTab
 
48
{
 
49
        Q_OBJECT
 
50
public:
 
51
        OptionsTabGeneralMisc(QObject *parent);
 
52
        ~OptionsTabGeneralMisc();
 
53
 
 
54
        QWidget *widget();
 
55
        void applyOptions(Options *opt);
 
56
        void restoreOptions(const Options *opt);
 
57
 
 
58
private slots:
 
59
        void selectBrowser(int);
 
60
 
 
61
private:
 
62
        QWidget *w;
 
63
        QButtonGroup *bg_delChats;
 
64
};
 
65
 
 
66
class OptionsTabGeneralNotifications : public OptionsTab
 
67
{
 
68
        Q_OBJECT
 
69
public:
 
70
        OptionsTabGeneralNotifications(QObject *parent);
 
71
 
 
72
        QWidget *widget();
 
73
        void applyOptions(Options *opt);
 
74
        void restoreOptions(const Options *opt);
 
75
 
 
76
private:
 
77
        QWidget *w;
 
78
};
 
79
 
 
80
class OptionsTabGeneralGroupchat : public OptionsTab
 
81
{
 
82
        Q_OBJECT
 
83
public:
 
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
 
 
93
private 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
 
 
103
private:
 
104
        QWidget *w, *dlg;
 
105
};
 
106
 
 
107
#endif