[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/tutorial2.doc:12 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>chart/optionsform.h Example File</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>chart/optionsform.h Example File</h1>
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 | <pre>#ifndef OPTIONSFORM_H
|
---|
| 36 | #define OPTIONSFORM_H
|
---|
| 37 |
|
---|
| 38 | #include <<a href="qdialog-h.html">qdialog.h</a>>
|
---|
| 39 |
|
---|
| 40 | class QButtonGroup;
|
---|
| 41 | class QComboBox;
|
---|
| 42 | class QFrame;
|
---|
| 43 | class QGridLayout;
|
---|
| 44 | class QHBoxLayout;
|
---|
| 45 | class QLabel;
|
---|
| 46 | class QPushButton;
|
---|
| 47 | class QRadioButton;
|
---|
| 48 | class QSpinBox;
|
---|
| 49 | class QVBoxLayout;
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | class OptionsForm : public <a href="qdialog.html">QDialog</a>
|
---|
| 53 | {
|
---|
| 54 | Q_OBJECT
|
---|
| 55 | public:
|
---|
| 56 | OptionsForm( <a href="qwidget.html">QWidget</a>* parent = 0, const char* name = "options form",
|
---|
| 57 | bool modal = FALSE, WFlags f = 0 );
|
---|
| 58 | ~OptionsForm() {}
|
---|
| 59 |
|
---|
| 60 | <a href="qfont.html">QFont</a> font() const { return m_font; }
|
---|
| 61 | void setFont( <a href="qfont.html">QFont</a> font );
|
---|
| 62 |
|
---|
| 63 | <a href="qlabel.html">QLabel</a> *chartTypeTextLabel;
|
---|
| 64 | <a href="qcombobox.html">QComboBox</a> *chartTypeComboBox;
|
---|
| 65 | <a href="qpushbutton.html">QPushButton</a> *fontPushButton;
|
---|
| 66 | <a href="qlabel.html">QLabel</a> *fontTextLabel;
|
---|
| 67 | <a href="qframe.html">QFrame</a> *addValuesFrame;
|
---|
| 68 | <a href="qbuttongroup.html">QButtonGroup</a> *addValuesButtonGroup;
|
---|
| 69 | <a href="qradiobutton.html">QRadioButton</a> *noRadioButton;
|
---|
| 70 | <a href="qradiobutton.html">QRadioButton</a> *yesRadioButton;
|
---|
| 71 | <a href="qradiobutton.html">QRadioButton</a> *asPercentageRadioButton;
|
---|
| 72 | <a href="qlabel.html">QLabel</a> *decimalPlacesTextLabel;
|
---|
| 73 | <a href="qspinbox.html">QSpinBox</a> *decimalPlacesSpinBox;
|
---|
| 74 | <a href="qpushbutton.html">QPushButton</a> *okPushButton;
|
---|
| 75 | <a href="qpushbutton.html">QPushButton</a> *cancelPushButton;
|
---|
| 76 |
|
---|
| 77 | protected slots:
|
---|
| 78 | void chooseFont();
|
---|
| 79 |
|
---|
| 80 | protected:
|
---|
| 81 | <a href="qvboxlayout.html">QVBoxLayout</a> *optionsFormLayout;
|
---|
| 82 | <a href="qhboxlayout.html">QHBoxLayout</a> *chartTypeLayout;
|
---|
| 83 | <a href="qhboxlayout.html">QHBoxLayout</a> *fontLayout;
|
---|
| 84 | <a href="qvboxlayout.html">QVBoxLayout</a> *addValuesFrameLayout;
|
---|
| 85 | <a href="qvboxlayout.html">QVBoxLayout</a> *addValuesButtonGroupLayout;
|
---|
| 86 | <a href="qhboxlayout.html">QHBoxLayout</a> *decimalPlacesLayout;
|
---|
| 87 | <a href="qhboxlayout.html">QHBoxLayout</a> *buttonsLayout;
|
---|
| 88 |
|
---|
| 89 | private:
|
---|
| 90 | <a href="qfont.html">QFont</a> m_font;
|
---|
| 91 | };
|
---|
| 92 |
|
---|
| 93 | #endif
|
---|
| 94 |
|
---|
| 95 | </pre><!-- eof -->
|
---|
| 96 | <p><address><hr><div align=center>
|
---|
| 97 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 98 | <td>Copyright © 2007
|
---|
| 99 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 100 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 101 | </table></div></address></body>
|
---|
| 102 | </html>
|
---|