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.
18 #include <QRadioButton>
20 #include <KUrlRequester>
21 #include <KColorButton>
22 #include <KFontRequester>
26 class OptCheckBox
: public QCheckBox
{
28 OptionWidget
*m_owner
;
32 OptCheckBox(BoolOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
38 class OptRadioButton
: public QRadioButton
{
40 OptionWidget
*m_owner
;
45 OptRadioButton(SelectOptPtr opt
, int i
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
51 class OptSpinBox
: public QSpinBox
{
53 OptionWidget
*m_owner
;
57 OptSpinBox(IntOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
63 class OptSlider
: public QSlider
{
65 OptionWidget
*m_owner
;
69 OptSlider(IntOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
75 class OptLineEdit
: public QLineEdit
{
77 OptionWidget
*m_owner
;
81 OptLineEdit(StringOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
84 void setOpt(const QString
&);
87 class OptUrlRequester
: public KUrlRequester
{
89 OptionWidget
*m_owner
;
93 OptUrlRequester(UrlOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
96 void setOpt(const QString
&);
99 class OptComboBox
: public QComboBox
{
101 OptionWidget
*m_owner
;
105 OptComboBox(ComboOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
111 class OptColorButton
: public KColorButton
{
113 OptionWidget
*m_owner
;
117 OptColorButton(ColorOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
120 void setOpt(const QColor
&);
123 class OptFontRequester
: public KFontRequester
{
125 OptionWidget
*m_owner
;
129 OptFontRequester(FontOptPtr opt
, OptionWidget
*owner
, QWidget
*parent
= NULL
);
132 void setOpt(const QFont
&);