diff options
Diffstat (limited to 'doc/html/tutorial2-09.html')
-rw-r--r-- | doc/html/tutorial2-09.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html index 174c2d3e1..4f86c92ef 100644 --- a/doc/html/tutorial2-09.html +++ b/doc/html/tutorial2-09.html @@ -39,7 +39,7 @@ apply to all data sets in one place. <p> (Extracts from <tt>optionsform.h</tt>.) <p> -<pre> class OptionsForm : public <a href="ntqdialog.html">TQDialog</a> +<pre> class OptionsForm : public <a href="tqdialog.html">TQDialog</a> { <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> public: @@ -51,18 +51,18 @@ apply to all data sets in one place. void setFont( <a href="tqfont.html">TQFont</a> font ); <a href="tqlabel.html">TQLabel</a> *chartTypeTextLabel; - <a href="ntqcombobox.html">TQComboBox</a> *chartTypeComboBox; - <a href="ntqpushbutton.html">TQPushButton</a> *fontPushButton; + <a href="tqcombobox.html">TQComboBox</a> *chartTypeComboBox; + <a href="tqpushbutton.html">TQPushButton</a> *fontPushButton; <a href="tqlabel.html">TQLabel</a> *fontTextLabel; <a href="ntqframe.html">TQFrame</a> *addValuesFrame; <a href="ntqbuttongroup.html">TQButtonGroup</a> *addValuesButtonGroup; - <a href="ntqradiobutton.html">TQRadioButton</a> *noRadioButton; - <a href="ntqradiobutton.html">TQRadioButton</a> *yesRadioButton; - <a href="ntqradiobutton.html">TQRadioButton</a> *asPercentageRadioButton; + <a href="tqradiobutton.html">TQRadioButton</a> *noRadioButton; + <a href="tqradiobutton.html">TQRadioButton</a> *yesRadioButton; + <a href="tqradiobutton.html">TQRadioButton</a> *asPercentageRadioButton; <a href="tqlabel.html">TQLabel</a> *decimalPlacesTextLabel; - <a href="ntqspinbox.html">TQSpinBox</a> *decimalPlacesSpinBox; - <a href="ntqpushbutton.html">TQPushButton</a> *okPushButton; - <a href="ntqpushbutton.html">TQPushButton</a> *cancelPushButton; + <a href="tqspinbox.html">TQSpinBox</a> *decimalPlacesSpinBox; + <a href="tqpushbutton.html">TQPushButton</a> *okPushButton; + <a href="tqpushbutton.html">TQPushButton</a> *cancelPushButton; protected slots: void chooseFont(); @@ -97,12 +97,12 @@ things based on the changes the user makes. </h2> <a name="1"></a><p> <pre> OptionsForm::OptionsForm( <a href="tqwidget.html">TQWidget</a>* parent, const char* name, bool modal, WFlags f ) - : <a href="ntqdialog.html">TQDialog</a>( parent, name, modal, f ) + : <a href="tqdialog.html">TQDialog</a>( parent, name, modal, f ) { <a href="tqwidget.html#setCaption">setCaption</a>( "Chart -- Options" ); <a href="tqwidget.html#resize">resize</a>( 320, 290 ); </pre> -<p> We pass all the arguments on to the <a href="ntqdialog.html">TQDialog</a> constructor, set a caption +<p> We pass all the arguments on to the <a href="tqdialog.html">TQDialog</a> constructor, set a caption and set an initial size. <p> The layout of the form will be to have the chart type label and combo box in a horizontal box layout, and similarly for the font button and @@ -120,11 +120,11 @@ vertical box layout. <p> <pre> chartTypeTextLabel = new <a href="tqlabel.html">TQLabel</a>( "&Chart Type", this ); <a name="x2631"></a> chartTypeLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( chartTypeTextLabel ); - chartTypeComboBox = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); - <a name="x2633"></a> chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_piechart ), "Pie Chart" ); - chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_verticalbarchart ), + chartTypeComboBox = new <a href="tqcombobox.html">TQComboBox</a>( FALSE, this ); + <a name="x2633"></a> chartTypeComboBox-><a href="tqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_piechart ), "Pie Chart" ); + chartTypeComboBox-><a href="tqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_verticalbarchart ), "Vertical Bar Chart" ); - chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_horizontalbarchart ), + chartTypeComboBox-><a href="tqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_horizontalbarchart ), "Horizontal Bar Chart" ); chartTypeLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( chartTypeComboBox ); <a name="x2630"></a> optionsFormLayout-><a href="qboxlayout.html#addLayout">addLayout</a>( chartTypeLayout ); @@ -136,7 +136,7 @@ to the horizontal layout and add the horizontal layout to the form's vertical layout. <p> <pre> fontLayout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( 0, 0, 6 ); - fontPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Font...", this ); + fontPushButton = new <a href="tqpushbutton.html">TQPushButton</a>( "&Font...", this ); fontLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( fontPushButton ); <a href="qspaceritem.html">TQSpacerItem</a>* spacer = new <a href="qspaceritem.html">TQSpacerItem</a>( 0, 0, TQSizePolicy::Expanding, @@ -164,14 +164,14 @@ know what font the user is using). addValuesButtonGroup-><a href="tqwidget.html#layout">layout</a>() ); <a name="x2644"></a> addValuesButtonGroupLayout-><a href="qlayoutitem.html#setAlignment">setAlignment</a>( TQt::AlignTop ); - noRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "&No", addValuesButtonGroup ); - <a name="x2645"></a> noRadioButton-><a href="ntqradiobutton.html#setChecked">setChecked</a>( TRUE ); + noRadioButton = new <a href="tqradiobutton.html">TQRadioButton</a>( "&No", addValuesButtonGroup ); + <a name="x2645"></a> noRadioButton-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( noRadioButton ); - yesRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "&Yes", addValuesButtonGroup ); + yesRadioButton = new <a href="tqradiobutton.html">TQRadioButton</a>( "&Yes", addValuesButtonGroup ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( yesRadioButton ); - asPercentageRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "As &Percentage", + asPercentageRadioButton = new <a href="tqradiobutton.html">TQRadioButton</a>( "As &Percentage", addValuesButtonGroup ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( asPercentageRadioButton ); addValuesFrameLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( addValuesButtonGroup ); @@ -186,17 +186,17 @@ create the radio buttons, making "No" the default. horizontal layouts, and the buttons are laid out in a very similar way to the buttons in the set data form. <p> <pre> <a href="tqobject.html#connect">connect</a>( fontPushButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( chooseFont() ) ); - <a href="tqobject.html#connect">connect</a>( okPushButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( <a href="ntqdialog.html#accept">accept</a>() ) ); - <a href="tqobject.html#connect">connect</a>( cancelPushButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( <a href="ntqdialog.html#reject">reject</a>() ) ); + <a href="tqobject.html#connect">connect</a>( okPushButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( <a href="tqdialog.html#accept">accept</a>() ) ); + <a href="tqobject.html#connect">connect</a>( cancelPushButton, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( <a href="tqdialog.html#reject">reject</a>() ) ); </pre> <p> We only need three connections: <ol type=1> <li> When the user clicks the font button we execute our own chooseFont() slot. -<li> If the user clicks OK we call <a href="ntqdialog.html#accept">TQDialog::accept</a>(); it is up to the +<li> If the user clicks OK we call <a href="tqdialog.html#accept">TQDialog::accept</a>(); it is up to the caller to read the data from the dialog's widgets and perform any necessary actions. -<li> If the user clicks Cancel we call <a href="ntqdialog.html#reject">TQDialog::reject</a>(). +<li> If the user clicks Cancel we call <a href="tqdialog.html#reject">TQDialog::reject</a>(). </ol> <p> <pre> <a name="x2642"></a> chartTypeTextLabel-><a href="tqlabel.html#setBuddy">setBuddy</a>( chartTypeComboBox ); decimalPlacesTextLabel-><a href="tqlabel.html#setBuddy">setBuddy</a>( decimalPlacesSpinBox ); |