~ubuntu-branches/ubuntu/jaunty/psi/jaunty

« back to all changes in this revision

Viewing changes to src/options/opt_appearance.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_APPEARANCE_H
 
2
#define OPT_APPEARANCE_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 OptionsTab
 
30
{
 
31
        Q_OBJECT
 
32
public:
 
33
        OptionsTabAppearance(QObject *parent);
 
34
        ~OptionsTabAppearance();
 
35
 
 
36
        QWidget *widget();
 
37
        void applyOptions(Options *opt);
 
38
        void restoreOptions(const Options *opt);
 
39
 
 
40
private slots:
 
41
        void setData(PsiCon *, QWidget *);
 
42
        void chooseColor(int);
 
43
        void chooseFont(int);
 
44
 
 
45
private:
 
46
        QWidget *w, *parentWidget;
 
47
        QButtonGroup *bg_color;
 
48
        FontLabel *le_font[4];
 
49
        QButtonGroup *bg_font;
 
50
        Options *o;
 
51
};
 
52
 
 
53
#endif