20 #ifndef DROPTIONVIEW_H
21 #define DROPTIONVIEW_H
24 #include <tqgroupbox.h>
25 #include <tqstringlist.h>
38 class OptionBaseView :
public TQWidget
42 OptionBaseView(TQWidget *parent = 0,
const char *name = 0);
43 virtual void setOption(DrBase*);
44 virtual void setValue(
const TQString&);
47 void valueChanged(
const TQString&);
53 class OptionNumericView :
public OptionBaseView
57 OptionNumericView(TQWidget *parent = 0,
const char *name = 0);
58 void setOption(DrBase *opt);
59 void setValue(
const TQString& val);
62 void slotSliderChanged(
int);
63 void slotEditChanged(
const TQString&);
68 TQLabel *m_minval, *m_maxval;
72 class OptionStringView :
public OptionBaseView
75 OptionStringView(TQWidget *parent = 0,
const char *name = 0);
76 void setOption(DrBase *opt);
77 void setValue(
const TQString& val);
83 class OptionListView :
public OptionBaseView
87 OptionListView(TQWidget *parent = 0,
const char *name = 0);
88 void setOption(DrBase *opt);
89 void setValue(
const TQString& val);
92 void slotSelectionChanged();
96 TQStringList m_choices;
99 class OptionBooleanView :
public OptionBaseView
103 OptionBooleanView(TQWidget *parent = 0,
const char *name = 0);
104 void setOption(DrBase *opt);
105 void setValue(
const TQString& val);
108 void slotSelected(
int);
111 TQVButtonGroup *m_group;
112 TQStringList m_choices;
115 class DrOptionView :
public TQGroupBox
119 DrOptionView(TQWidget *parent = 0,
const char *name = 0);
120 void setAllowFixed(
bool on) { m_allowfixed = on; }
126 void slotValueChanged(
const TQString&);
127 void slotItemSelected(TQListViewItem*);
130 TQWidgetStack *m_stack;