source: trunk/examples/chart/optionsform.h@ 165

Last change on this file since 165 was 160, checked in by dmik, 19 years ago

Imported table and iconview modules and a bunch of dependent examples from the official release 3.3.1 from Trolltech.

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1#ifndef OPTIONSFORM_H
2#define OPTIONSFORM_H
3
4#include <qdialog.h>
5
6class QButtonGroup;
7class QComboBox;
8class QFrame;
9class QGridLayout;
10class QHBoxLayout;
11class QLabel;
12class QPushButton;
13class QRadioButton;
14class QSpinBox;
15class QVBoxLayout;
16
17
18class OptionsForm : public QDialog
19{
20 Q_OBJECT
21public:
22 OptionsForm( QWidget* parent = 0, const char* name = "options form",
23 bool modal = FALSE, WFlags f = 0 );
24 ~OptionsForm() {}
25
26 QFont font() const { return m_font; }
27 void setFont( QFont font );
28
29 QLabel *chartTypeTextLabel;
30 QComboBox *chartTypeComboBox;
31 QPushButton *fontPushButton;
32 QLabel *fontTextLabel;
33 QFrame *addValuesFrame;
34 QButtonGroup *addValuesButtonGroup;
35 QRadioButton *noRadioButton;
36 QRadioButton *yesRadioButton;
37 QRadioButton *asPercentageRadioButton;
38 QLabel *decimalPlacesTextLabel;
39 QSpinBox *decimalPlacesSpinBox;
40 QPushButton *okPushButton;
41 QPushButton *cancelPushButton;
42
43protected slots:
44 void chooseFont();
45
46protected:
47 QVBoxLayout *optionsFormLayout;
48 QHBoxLayout *chartTypeLayout;
49 QHBoxLayout *fontLayout;
50 QVBoxLayout *addValuesFrameLayout;
51 QVBoxLayout *addValuesButtonGroupLayout;
52 QHBoxLayout *decimalPlacesLayout;
53 QHBoxLayout *buttonsLayout;
54
55private:
56 QFont m_font;
57};
58
59#endif
60
Note: See TracBrowser for help on using the repository browser.