diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/wizard-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/wizard-example.html')
-rw-r--r-- | doc/html/wizard-example.html | 328 |
1 files changed, 164 insertions, 164 deletions
diff --git a/doc/html/wizard-example.html b/doc/html/wizard-example.html index 43f4853df..9882fb9c6 100644 --- a/doc/html/wizard-example.html +++ b/doc/html/wizard-example.html @@ -50,19 +50,19 @@ should be used to help a user with complicated actions. #ifndef WIZARD_H #define WIZARD_H -#include <<a href="qwizard-h.html">qwizard.h</a>> +#include <<a href="qwizard-h.html">ntqwizard.h</a>> class TQWidget; class TQHBox; class TQLineEdit; class TQLabel; -class Wizard : public <a href="qwizard.html">TQWizard</a> +class Wizard : public <a href="ntqwizard.html">TQWizard</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - Wizard( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); + Wizard( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); void showPage(TQWidget* page); @@ -71,13 +71,13 @@ protected: void setupPage2(); void setupPage3(); - <a href="qhbox.html">TQHBox</a> *page1, *page2, *page3; - <a href="qlineedit.html">TQLineEdit</a> *key, *firstName, *lastName, *address, *phone, *email; - <a href="qlabel.html">TQLabel</a> *lKey, *lFirstName, *lLastName, *lAddress, *lPhone, *lEmail; + <a href="ntqhbox.html">TQHBox</a> *page1, *page2, *page3; + <a href="ntqlineedit.html">TQLineEdit</a> *key, *firstName, *lastName, *address, *phone, *email; + <a href="ntqlabel.html">TQLabel</a> *lKey, *lFirstName, *lLastName, *lAddress, *lPhone, *lEmail; protected slots: - void keyChanged( const <a href="qstring.html">TQString</a> & ); - void dataChanged( const <a href="qstring.html">TQString</a> & ); + void keyChanged( const <a href="ntqstring.html">TQString</a> & ); + void dataChanged( const <a href="ntqstring.html">TQString</a> & ); }; @@ -98,220 +98,220 @@ protected slots: #include "wizard.h" -#include <<a href="qwidget-h.html">qwidget.h</a>> -#include <<a href="qhbox-h.html">qhbox.h</a>> -#include <<a href="qvbox-h.html">qvbox.h</a>> -#include <<a href="qlabel-h.html">qlabel.h</a>> -#include <<a href="qlineedit-h.html">qlineedit.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qvalidator-h.html">qvalidator.h</a>> -#include <<a href="qapplication-h.html">qapplication.h</a>> - -<a name="f182"></a>Wizard::Wizard( <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qwizard.html">TQWizard</a>( parent, name, TRUE ) +#include <<a href="qwidget-h.html">ntqwidget.h</a>> +#include <<a href="qhbox-h.html">ntqhbox.h</a>> +#include <<a href="qvbox-h.html">ntqvbox.h</a>> +#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="qlineedit-h.html">ntqlineedit.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qvalidator-h.html">ntqvalidator.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> + +<a name="f182"></a>Wizard::Wizard( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqwizard.html">TQWizard</a>( parent, name, TRUE ) { setupPage1(); setupPage2(); setupPage3(); -<a name="x11"></a> key-><a href="qwidget.html#setFocus">setFocus</a>(); +<a name="x11"></a> key-><a href="ntqwidget.html#setFocus">setFocus</a>(); } void <a name="f183"></a>Wizard::setupPage1() { - page1 = new <a href="qhbox.html">TQHBox</a>( this ); -<a name="x2"></a> page1-><a href="qhbox.html#setSpacing">setSpacing</a>(8); + page1 = new <a href="ntqhbox.html">TQHBox</a>( this ); +<a name="x2"></a> page1-><a href="ntqhbox.html#setSpacing">setSpacing</a>(8); - <a href="qlabel.html">TQLabel</a> *info = new <a href="qlabel.html">TQLabel</a>( page1 ); -<a name="x1"></a> info-><a href="qframe.html#setMargin">setMargin</a>( 11 ); -<a name="x14"></a> info-><a href="qwidget.html#setPalette">setPalette</a>( yellow ); -<a name="x4"></a> info-><a href="qlabel.html#setText">setText</a>( "Enter your personal\n" + <a href="ntqlabel.html">TQLabel</a> *info = new <a href="ntqlabel.html">TQLabel</a>( page1 ); +<a name="x1"></a> info-><a href="ntqframe.html#setMargin">setMargin</a>( 11 ); +<a name="x14"></a> info-><a href="ntqwidget.html#setPalette">setPalette</a>( yellow ); +<a name="x4"></a> info-><a href="ntqlabel.html#setText">setText</a>( "Enter your personal\n" "key here.\n\n" "Your personal key\n" "consists of 4 digits" ); -<a name="x5"></a><a name="x12"></a> info-><a href="qwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); +<a name="x5"></a><a name="x12"></a> info-><a href="ntqwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); - <a href="qvbox.html">TQVBox</a> *page = new <a href="qvbox.html">TQVBox</a>( page1 ); + <a href="ntqvbox.html">TQVBox</a> *page = new <a href="ntqvbox.html">TQVBox</a>( page1 ); - <a href="qhbox.html">TQHBox</a> *row1 = new <a href="qhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row1 = new <a href="ntqhbox.html">TQHBox</a>( page ); - (void)new <a href="qlabel.html">TQLabel</a>( "Key:", row1 ); + (void)new <a href="ntqlabel.html">TQLabel</a>( "Key:", row1 ); - key = new <a href="qlineedit.html">TQLineEdit</a>( row1 ); -<a name="x6"></a> key-><a href="qlineedit.html#setMaxLength">setMaxLength</a>( 4 ); -<a name="x7"></a> key-><a href="qlineedit.html#setValidator">setValidator</a>( new <a href="qintvalidator.html">TQIntValidator</a>( 1000, 9999, key ) ); + key = new <a href="ntqlineedit.html">TQLineEdit</a>( row1 ); +<a name="x6"></a> key-><a href="ntqlineedit.html#setMaxLength">setMaxLength</a>( 4 ); +<a name="x7"></a> key-><a href="ntqlineedit.html#setValidator">setValidator</a>( new <a href="qintvalidator.html">TQIntValidator</a>( 1000, 9999, key ) ); -<a name="x9"></a> <a href="qobject.html#connect">connect</a>( key, SIGNAL( <a href="qlineedit.html#textChanged">textChanged</a>( const <a href="qstring.html">TQString</a> & ) ), - this, SLOT( keyChanged( const <a href="qstring.html">TQString</a> & ) ) ); +<a name="x9"></a> <a href="ntqobject.html#connect">connect</a>( key, SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), + this, SLOT( keyChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); - <a href="qwizard.html#addPage">addPage</a>( page1, "Personal Key" ); + <a href="ntqwizard.html#addPage">addPage</a>( page1, "Personal Key" ); - <a href="qwizard.html#setNextEnabled">setNextEnabled</a>( page1, FALSE ); - <a href="qwizard.html#setHelpEnabled">setHelpEnabled</a>( page1, FALSE ); + <a href="ntqwizard.html#setNextEnabled">setNextEnabled</a>( page1, FALSE ); + <a href="ntqwizard.html#setHelpEnabled">setHelpEnabled</a>( page1, FALSE ); } void <a name="f184"></a>Wizard::setupPage2() { - page2 = new <a href="qhbox.html">TQHBox</a>( this ); - page2-><a href="qhbox.html#setSpacing">setSpacing</a>(8); + page2 = new <a href="ntqhbox.html">TQHBox</a>( this ); + page2-><a href="ntqhbox.html#setSpacing">setSpacing</a>(8); - <a href="qlabel.html">TQLabel</a> *info = new <a href="qlabel.html">TQLabel</a>( page2 ); - info-><a href="qframe.html#setMargin">setMargin</a>( 11 ); - info-><a href="qwidget.html#setPalette">setPalette</a>( yellow ); - info-><a href="qlabel.html#setText">setText</a>( "\n" + <a href="ntqlabel.html">TQLabel</a> *info = new <a href="ntqlabel.html">TQLabel</a>( page2 ); + info-><a href="ntqframe.html#setMargin">setMargin</a>( 11 ); + info-><a href="ntqwidget.html#setPalette">setPalette</a>( yellow ); + info-><a href="ntqlabel.html#setText">setText</a>( "\n" "Enter your personal\n" "data here.\n\n" "The required fields are\n" "First Name, Last Name \n" "and E-Mail.\n" ); - info-><a href="qwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - - <a href="qvbox.html">TQVBox</a> *page = new <a href="qvbox.html">TQVBox</a>( page2 ); - - <a href="qhbox.html">TQHBox</a> *row1 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row2 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row3 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row4 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row5 = new <a href="qhbox.html">TQHBox</a>( page ); - - <a href="qlabel.html">TQLabel</a> *label1 = new <a href="qlabel.html">TQLabel</a>( " First Name: ", row1 ); -<a name="x3"></a> label1-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label2 = new <a href="qlabel.html">TQLabel</a>( " Last Name: ", row2 ); - label2-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label3 = new <a href="qlabel.html">TQLabel</a>( " Address: ", row3 ); - label3-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label4 = new <a href="qlabel.html">TQLabel</a>( " Phone Number: ", row4 ); - label4-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label5 = new <a href="qlabel.html">TQLabel</a>( " E-Mail: ", row5 ); - label5-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - -<a name="x13"></a> label1-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label2-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label3-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label4-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label5-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - - firstName = new <a href="qlineedit.html">TQLineEdit</a>( row1 ); - lastName = new <a href="qlineedit.html">TQLineEdit</a>( row2 ); - address = new <a href="qlineedit.html">TQLineEdit</a>( row3 ); - phone = new <a href="qlineedit.html">TQLineEdit</a>( row4 ); - email = new <a href="qlineedit.html">TQLineEdit</a>( row5 ); - - <a href="qobject.html#connect">connect</a>( firstName, SIGNAL( <a href="qlineedit.html#textChanged">textChanged</a>( const <a href="qstring.html">TQString</a> & ) ), - this, SLOT( dataChanged( const <a href="qstring.html">TQString</a> & ) ) ); - <a href="qobject.html#connect">connect</a>( lastName, SIGNAL( <a href="qlineedit.html#textChanged">textChanged</a>( const <a href="qstring.html">TQString</a> & ) ), - this, SLOT( dataChanged( const <a href="qstring.html">TQString</a> & ) ) ); - <a href="qobject.html#connect">connect</a>( email, SIGNAL( <a href="qlineedit.html#textChanged">textChanged</a>( const <a href="qstring.html">TQString</a> & ) ), - this, SLOT( dataChanged( const <a href="qstring.html">TQString</a> & ) ) ); - - <a href="qwizard.html#addPage">addPage</a>( page2, "Personal Data" ); - - <a href="qwizard.html#setHelpEnabled">setHelpEnabled</a>( page2, FALSE ); + info-><a href="ntqwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + + <a href="ntqvbox.html">TQVBox</a> *page = new <a href="ntqvbox.html">TQVBox</a>( page2 ); + + <a href="ntqhbox.html">TQHBox</a> *row1 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row2 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row3 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row4 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row5 = new <a href="ntqhbox.html">TQHBox</a>( page ); + + <a href="ntqlabel.html">TQLabel</a> *label1 = new <a href="ntqlabel.html">TQLabel</a>( " First Name: ", row1 ); +<a name="x3"></a> label1-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label2 = new <a href="ntqlabel.html">TQLabel</a>( " Last Name: ", row2 ); + label2-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label3 = new <a href="ntqlabel.html">TQLabel</a>( " Address: ", row3 ); + label3-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label4 = new <a href="ntqlabel.html">TQLabel</a>( " Phone Number: ", row4 ); + label4-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label5 = new <a href="ntqlabel.html">TQLabel</a>( " E-Mail: ", row5 ); + label5-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + +<a name="x13"></a> label1-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label2-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label3-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label4-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label5-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label4-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + + firstName = new <a href="ntqlineedit.html">TQLineEdit</a>( row1 ); + lastName = new <a href="ntqlineedit.html">TQLineEdit</a>( row2 ); + address = new <a href="ntqlineedit.html">TQLineEdit</a>( row3 ); + phone = new <a href="ntqlineedit.html">TQLineEdit</a>( row4 ); + email = new <a href="ntqlineedit.html">TQLineEdit</a>( row5 ); + + <a href="ntqobject.html#connect">connect</a>( firstName, SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), + this, SLOT( dataChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); + <a href="ntqobject.html#connect">connect</a>( lastName, SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), + this, SLOT( dataChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); + <a href="ntqobject.html#connect">connect</a>( email, SIGNAL( <a href="ntqlineedit.html#textChanged">textChanged</a>( const <a href="ntqstring.html">TQString</a> & ) ), + this, SLOT( dataChanged( const <a href="ntqstring.html">TQString</a> & ) ) ); + + <a href="ntqwizard.html#addPage">addPage</a>( page2, "Personal Data" ); + + <a href="ntqwizard.html#setHelpEnabled">setHelpEnabled</a>( page2, FALSE ); } void <a name="f185"></a>Wizard::setupPage3() { - page3 = new <a href="qhbox.html">TQHBox</a>( this ); - page3-><a href="qhbox.html#setSpacing">setSpacing</a>(8); + page3 = new <a href="ntqhbox.html">TQHBox</a>( this ); + page3-><a href="ntqhbox.html#setSpacing">setSpacing</a>(8); - <a href="qlabel.html">TQLabel</a> *info = new <a href="qlabel.html">TQLabel</a>( page3 ); - info-><a href="qwidget.html#setPalette">setPalette</a>( yellow ); - info-><a href="qlabel.html#setText">setText</a>( "\n" + <a href="ntqlabel.html">TQLabel</a> *info = new <a href="ntqlabel.html">TQLabel</a>( page3 ); + info-><a href="ntqwidget.html#setPalette">setPalette</a>( yellow ); + info-><a href="ntqlabel.html#setText">setText</a>( "\n" "Look here to see of\n" "the data you entered\n" "is correct. To confirm,\n" "press the [Finish] button\n" "else go back to correct\n" "mistakes." ); - info-><a href="qframe.html#setMargin">setMargin</a>( 11 ); - info-><a href="qlabel.html#setAlignment">setAlignment</a>( AlignTop|AlignLeft ); - info-><a href="qwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - - <a href="qvbox.html">TQVBox</a> *page = new <a href="qvbox.html">TQVBox</a>( page3 ); - - <a href="qhbox.html">TQHBox</a> *row1 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row2 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row3 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row4 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row5 = new <a href="qhbox.html">TQHBox</a>( page ); - <a href="qhbox.html">TQHBox</a> *row6 = new <a href="qhbox.html">TQHBox</a>( page ); - - <a href="qlabel.html">TQLabel</a> *label1 = new <a href="qlabel.html">TQLabel</a>( " Personal Key: ", row1 ); - label1-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label2 = new <a href="qlabel.html">TQLabel</a>( " First Name: ", row2 ); - label2-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label3 = new <a href="qlabel.html">TQLabel</a>( " Last Name: ", row3 ); - label3-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label4 = new <a href="qlabel.html">TQLabel</a>( " Address: ", row4 ); - label4-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label5 = new <a href="qlabel.html">TQLabel</a>( " Phone Number: ", row5 ); - label5-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - <a href="qlabel.html">TQLabel</a> *label6 = new <a href="qlabel.html">TQLabel</a>( " E-Mail: ", row6 ); - label6-><a href="qlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); - - label1-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label2-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label3-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label4-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label5-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - label6-><a href="qwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="qwidget.html#sizeHint">sizeHint</a>().width() ); - - lKey = new <a href="qlabel.html">TQLabel</a>( row1 ); - lFirstName = new <a href="qlabel.html">TQLabel</a>( row2 ); - lLastName = new <a href="qlabel.html">TQLabel</a>( row3 ); - lAddress = new <a href="qlabel.html">TQLabel</a>( row4 ); - lPhone = new <a href="qlabel.html">TQLabel</a>( row5 ); - lEmail = new <a href="qlabel.html">TQLabel</a>( row6 ); - - <a href="qwizard.html#addPage">addPage</a>( page3, "Finish" ); - - <a href="qwizard.html#setFinishEnabled">setFinishEnabled</a>( page3, TRUE ); - <a href="qwizard.html#setHelpEnabled">setHelpEnabled</a>( page3, FALSE ); + info-><a href="ntqframe.html#setMargin">setMargin</a>( 11 ); + info-><a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignTop|AlignLeft ); + info-><a href="ntqwidget.html#setMaximumWidth">setMaximumWidth</a>( info-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + + <a href="ntqvbox.html">TQVBox</a> *page = new <a href="ntqvbox.html">TQVBox</a>( page3 ); + + <a href="ntqhbox.html">TQHBox</a> *row1 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row2 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row3 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row4 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row5 = new <a href="ntqhbox.html">TQHBox</a>( page ); + <a href="ntqhbox.html">TQHBox</a> *row6 = new <a href="ntqhbox.html">TQHBox</a>( page ); + + <a href="ntqlabel.html">TQLabel</a> *label1 = new <a href="ntqlabel.html">TQLabel</a>( " Personal Key: ", row1 ); + label1-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label2 = new <a href="ntqlabel.html">TQLabel</a>( " First Name: ", row2 ); + label2-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label3 = new <a href="ntqlabel.html">TQLabel</a>( " Last Name: ", row3 ); + label3-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label4 = new <a href="ntqlabel.html">TQLabel</a>( " Address: ", row4 ); + label4-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label5 = new <a href="ntqlabel.html">TQLabel</a>( " Phone Number: ", row5 ); + label5-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + <a href="ntqlabel.html">TQLabel</a> *label6 = new <a href="ntqlabel.html">TQLabel</a>( " E-Mail: ", row6 ); + label6-><a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignVCenter ); + + label1-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label2-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label3-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label4-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label5-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + label6-><a href="ntqwidget.html#setMinimumWidth">setMinimumWidth</a>( label1-><a href="ntqwidget.html#sizeHint">sizeHint</a>().width() ); + + lKey = new <a href="ntqlabel.html">TQLabel</a>( row1 ); + lFirstName = new <a href="ntqlabel.html">TQLabel</a>( row2 ); + lLastName = new <a href="ntqlabel.html">TQLabel</a>( row3 ); + lAddress = new <a href="ntqlabel.html">TQLabel</a>( row4 ); + lPhone = new <a href="ntqlabel.html">TQLabel</a>( row5 ); + lEmail = new <a href="ntqlabel.html">TQLabel</a>( row6 ); + + <a href="ntqwizard.html#addPage">addPage</a>( page3, "Finish" ); + + <a href="ntqwizard.html#setFinishEnabled">setFinishEnabled</a>( page3, TRUE ); + <a href="ntqwizard.html#setHelpEnabled">setHelpEnabled</a>( page3, FALSE ); } -<a name="x15"></a>void Wizard::<a href="qwizard.html#showPage">showPage</a>( <a href="qwidget.html">TQWidget</a>* page ) +<a name="x15"></a>void Wizard::<a href="ntqwizard.html#showPage">showPage</a>( <a href="ntqwidget.html">TQWidget</a>* page ) { if ( page == page1 ) { } else if ( page == page2 ) { } else if ( page == page3 ) { -<a name="x8"></a> lKey-><a href="qlabel.html#setText">setText</a>( key-><a href="qlineedit.html#text">text</a>() ); - lFirstName-><a href="qlabel.html#setText">setText</a>( firstName-><a href="qlineedit.html#text">text</a>() ); - lLastName-><a href="qlabel.html#setText">setText</a>( lastName-><a href="qlineedit.html#text">text</a>() ); - lAddress-><a href="qlabel.html#setText">setText</a>( address-><a href="qlineedit.html#text">text</a>() ); - lPhone-><a href="qlabel.html#setText">setText</a>( phone-><a href="qlineedit.html#text">text</a>() ); - lEmail-><a href="qlabel.html#setText">setText</a>( email-><a href="qlineedit.html#text">text</a>() ); +<a name="x8"></a> lKey-><a href="ntqlabel.html#setText">setText</a>( key-><a href="ntqlineedit.html#text">text</a>() ); + lFirstName-><a href="ntqlabel.html#setText">setText</a>( firstName-><a href="ntqlineedit.html#text">text</a>() ); + lLastName-><a href="ntqlabel.html#setText">setText</a>( lastName-><a href="ntqlineedit.html#text">text</a>() ); + lAddress-><a href="ntqlabel.html#setText">setText</a>( address-><a href="ntqlineedit.html#text">text</a>() ); + lPhone-><a href="ntqlabel.html#setText">setText</a>( phone-><a href="ntqlineedit.html#text">text</a>() ); + lEmail-><a href="ntqlabel.html#setText">setText</a>( email-><a href="ntqlineedit.html#text">text</a>() ); } - TQWizard::<a href="qwizard.html#showPage">showPage</a>(page); + TQWizard::<a href="ntqwizard.html#showPage">showPage</a>(page); if ( page == page1 ) { - keyChanged( key-><a href="qlineedit.html#text">text</a>() ); - key-><a href="qwidget.html#setFocus">setFocus</a>(); + keyChanged( key-><a href="ntqlineedit.html#text">text</a>() ); + key-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else if ( page == page2 ) { - dataChanged( firstName-><a href="qlineedit.html#text">text</a>() ); - firstName-><a href="qwidget.html#setFocus">setFocus</a>(); + dataChanged( firstName-><a href="ntqlineedit.html#text">text</a>() ); + firstName-><a href="ntqwidget.html#setFocus">setFocus</a>(); } else if ( page == page3 ) { - <a href="qwizard.html#finishButton">finishButton</a>()->setEnabled( TRUE ); - <a href="qwizard.html#finishButton">finishButton</a>()->setFocus(); + <a href="ntqwizard.html#finishButton">finishButton</a>()->setEnabled( TRUE ); + <a href="ntqwizard.html#finishButton">finishButton</a>()->setFocus(); } } -void <a name="f186"></a>Wizard::keyChanged( const <a href="qstring.html">TQString</a> &text ) +void <a name="f186"></a>Wizard::keyChanged( const <a href="ntqstring.html">TQString</a> &text ) { - <a href="qstring.html">TQString</a> t = text; + <a href="ntqstring.html">TQString</a> t = text; int p = 0; -<a name="x10"></a> bool on = ( key-><a href="qlineedit.html#validator">validator</a>()->validate(t, p) == TQValidator::Acceptable ); - <a href="qwizard.html#nextButton">nextButton</a>()->setEnabled( on ); +<a name="x10"></a> bool on = ( key-><a href="ntqlineedit.html#validator">validator</a>()->validate(t, p) == TQValidator::Acceptable ); + <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( on ); } -void <a name="f187"></a>Wizard::dataChanged( const <a href="qstring.html">TQString</a> & ) +void <a name="f187"></a>Wizard::dataChanged( const <a href="ntqstring.html">TQString</a> & ) { - if ( !firstName-><a href="qlineedit.html#text">text</a>().isEmpty() && - !lastName-><a href="qlineedit.html#text">text</a>().isEmpty() && - !email-><a href="qlineedit.html#text">text</a>().isEmpty() ) - <a href="qwizard.html#nextButton">nextButton</a>()->setEnabled( TRUE ); + if ( !firstName-><a href="ntqlineedit.html#text">text</a>().isEmpty() && + !lastName-><a href="ntqlineedit.html#text">text</a>().isEmpty() && + !email-><a href="ntqlineedit.html#text">text</a>().isEmpty() ) + <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( TRUE ); else - <a href="qwizard.html#nextButton">nextButton</a>()->setEnabled( FALSE ); + <a href="ntqwizard.html#nextButton">nextButton</a>()->setEnabled( FALSE ); } </pre> @@ -328,15 +328,15 @@ void <a name="f187"></a>Wizard::dataChanged( const <a href="qstring.html">TQStri *****************************************************************************/ #include "wizard.h" -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> int main(int argc,char **argv) { - <a href="qapplication.html">TQApplication</a> a(argc,argv); + <a href="ntqapplication.html">TQApplication</a> a(argc,argv); Wizard wizard; - wizard.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Wizard"); -<a name="x16"></a> return wizard.<a href="qdialog.html#exec">exec</a>(); + wizard.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Wizard"); +<a name="x16"></a> return wizard.<a href="ntqdialog.html#exec">exec</a>(); } </pre> |