removed clock pref widget. clock prefs are definitively part of the lua theme.
[kboard.git] / src / option_p.h
blobe0c9908327828625f93c563734b48d3205c038d7
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef OPTION_P_H
12 #define OPTION_P_H
14 #include <QCheckBox>
15 #include <QComboBox>
16 #include <QSpinBox>
17 #include <QLineEdit>
18 #include <QRadioButton>
19 #include "kurlrequester.h"
20 #include "kcolorbutton.h"
21 #include "kfontrequester.h"
22 #include "option.h"
24 class OptCheckBox : public QCheckBox {
25 Q_OBJECT
26 OptionWidget *m_owner;
27 boost::shared_ptr<BoolOpt> m_opt;
29 public:
30 OptCheckBox(boost::shared_ptr<BoolOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
32 private slots:
33 void setOpt(bool);
36 class OptRadioButton : public QRadioButton {
37 Q_OBJECT
38 OptionWidget *m_owner;
39 boost::shared_ptr<SelectOpt> m_opt;
40 int m_index;
42 public:
43 OptRadioButton(boost::shared_ptr<SelectOpt> opt, int i, OptionWidget *owner, QWidget *parent = NULL);
45 private slots:
46 void setOpt(bool);
49 class OptSpinBox : public QSpinBox {
50 Q_OBJECT
51 OptionWidget *m_owner;
52 boost::shared_ptr<IntOpt> m_opt;
54 public:
55 OptSpinBox(boost::shared_ptr<IntOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
57 private slots:
58 void setOpt(int);
61 class OptLineEdit : public QLineEdit {
62 Q_OBJECT
63 OptionWidget *m_owner;
64 boost::shared_ptr<StringOpt> m_opt;
66 public:
67 OptLineEdit(boost::shared_ptr<StringOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
69 private slots:
70 void setOpt(const QString&);
73 class OptUrlRequester : public KUrlRequester {
74 Q_OBJECT
75 OptionWidget *m_owner;
76 boost::shared_ptr<UrlOpt> m_opt;
78 public:
79 OptUrlRequester(boost::shared_ptr<UrlOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
81 private slots:
82 void setOpt(const QString&);
85 class OptComboBox : public QComboBox {
86 Q_OBJECT
87 OptionWidget *m_owner;
88 boost::shared_ptr<ComboOpt> m_opt;
90 public:
91 OptComboBox(boost::shared_ptr<ComboOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
93 private slots:
94 void setOpt(int);
97 class OptColorButton : public KColorButton {
98 Q_OBJECT
99 OptionWidget *m_owner;
100 boost::shared_ptr<ColorOpt> m_opt;
102 public:
103 OptColorButton(boost::shared_ptr<ColorOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
105 private slots:
106 void setOpt(const QColor&);
109 class OptFontRequester : public KFontRequester {
110 Q_OBJECT
111 OptionWidget *m_owner;
112 boost::shared_ptr<FontOpt> m_opt;
114 public:
115 OptFontRequester(boost::shared_ptr<FontOpt> opt, OptionWidget *owner, QWidget *parent = NULL);
117 private slots:
118 void setOpt(const QFont&);
121 #endif //OPTION_P_H