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/designer-manual-4.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/designer-manual-4.html')
-rw-r--r-- | doc/html/designer-manual-4.html | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html index 4f1f7102c..d378ec9dd 100644 --- a/doc/html/designer-manual-4.html +++ b/doc/html/designer-manual-4.html @@ -58,8 +58,8 @@ body { background: #ffffff; color: black; } <p>We can use one of TQt's static dialogs to get the user to choose a color, but we need our own dialog to get them to give it a name. We'll create that dialog now.</p> <p>Click <b>File|New</b> to invoke the <em>New File</em> dialog, then click "Dialog", then click <b>OK</b>. Drag a corner of the new form to make it a lot smaller. Change the form's name (in the <a href="designer-manual-3.html#using-the-property-editor-sidebar">Property Editor</a>) to "ColorNameForm", and change its caption to "Color Tool -- Color Name". Click <b>File|Save</b>, then click <b>Save</b> to save it.</p> <p>We'll now add some widgets to the dialog. Don't worry about precise positioning or sizing; we'll get <em>TQt Designer</em> to lay the form out perfectly for us shortly.</p> -<p>We need to create a <a href="qlabel.html">TQLabel</a> that will show the color the user has chosen. Click the TextLabel tool in the Toolbox, then click on the left hand side of the form. Change the label's <em>name</em> property to "colorLabel", and delete the text in the <em>text</em> property. Click the <em>pixmap</em> property's ellipsis button and choose the "editraise.png" image. Change the <em>minimumSize</em> property's <em>width</em> sub-property to 80, and set the <em>scaledContents</em> property to True.</p> -<p>Click the TextLabel tool again, then click to the right of the colorLabel, towards the top of the form. Change the <em>text</em> property to "&Name". Note that the ampersand is displayed; this is because a <a href="qlabel.html">TQLabel</a> cannot accept focus and we haven't specified a focus widget ("buddy") yet.</p> +<p>We need to create a <a href="ntqlabel.html">TQLabel</a> that will show the color the user has chosen. Click the TextLabel tool in the Toolbox, then click on the left hand side of the form. Change the label's <em>name</em> property to "colorLabel", and delete the text in the <em>text</em> property. Click the <em>pixmap</em> property's ellipsis button and choose the "editraise.png" image. Change the <em>minimumSize</em> property's <em>width</em> sub-property to 80, and set the <em>scaledContents</em> property to True.</p> +<p>Click the TextLabel tool again, then click to the right of the colorLabel, towards the top of the form. Change the <em>text</em> property to "&Name". Note that the ampersand is displayed; this is because a <a href="ntqlabel.html">TQLabel</a> cannot accept focus and we haven't specified a focus widget ("buddy") yet.</p> <p>Click the LineEdit tool, then click to the right of the "Name" label, again towards the top of the form. Change the <em>name</em> property to "colorLineEdit".</p> <p>Click on the "Name" label and change its <em>buddy</em> property to "colorLineEdit". The ampersand has now disappeared and <b>Alt+N</b> will set the focus in the colorLineEdit.</p> <p>Click the PushButton tool, then click below the "colorLabel". Change the button's <em>name</em> property to "okPushButton", its <em>text</em> property to "OK", and its <em>default</em> property to True.</p> @@ -120,9 +120,9 @@ body { background: #ffffff; color: black; } <p>The situation is different for variables. If you add these to Members, Class Variables, they will be included as private variables in the class definition. If you type them at the top of the <tt>.ui.h</tt> file they will be form-global variables.</p> </blockquote> <p>We'll start by adding some includes.</p> -<pre> #include <<a href="qcolor-h.html">qcolor.h</a>> - #include <<a href="qmap-h.html">qmap.h</a>> - #include <<a href="qstring-h.html">qstring.h</a>> +<pre> #include <<a href="qcolor-h.html">ntqcolor.h</a>> + #include <<a href="qmap-h.html">ntqmap.h</a>> + #include <<a href="qstring-h.html">ntqstring.h</a>> </pre> <p>Enter these above the <tt>validate()</tt> function.</p> <p>We also need a variable to hold the list of colors.</p> @@ -130,7 +130,7 @@ body { background: #ffffff; color: black; } </pre> <p>Add this line; we'll store the colors in a local <tt>m_colors</tt> map.</p> <p>We also need a function that the caller can call to populate the <tt>m_colors</tt> map with the current colors.</p> -<pre> void ColorNameForm::setColors( const <a href="qmap.html">TQMap</a><TQString,TQColor>& colors ) +<pre> void ColorNameForm::setColors( const <a href="ntqmap.html">TQMap</a><TQString,TQColor>& colors ) { m_colors = colors; } @@ -138,9 +138,9 @@ body { background: #ffffff; color: black; } <p>Now that we've got a means of obtaining the list of color names we are ready to write the <tt>validate()</tt> function.</p> <pre> void ColorNameForm::validate() { - <a href="qstring.html">TQString</a> name = colorLineEdit->text(); - if ( ! name.<a href="qstring.html#isEmpty">isEmpty</a>() && - ( m_colors.isEmpty() || ! m_colors.contains( <a href="qobject.html#name-prop">name</a> ) ) ) + <a href="ntqstring.html">TQString</a> name = colorLineEdit->text(); + if ( ! name.<a href="ntqstring.html#isEmpty">isEmpty</a>() && + ( m_colors.isEmpty() || ! m_colors.contains( <a href="ntqobject.html#name-prop">name</a> ) ) ) accept(); else colorLineEdit->selectAll(); @@ -151,42 +151,42 @@ body { background: #ffffff; color: black; } <h4><a name="1-3"></a>Using the Dialog</h4> <p>The ColorNameForm dialog will be called from the main form. The caller will firstly call one of TQt's static "choose a color" dialogs, and if the user chooses a color, will then invoke our custom dialog. Since we're going to use a "choose a color" dialog we will need the appropriate header file. We'll also be accessing the dialog's colorLabel (to set it to the chosen color), and the dialog's line edit (to retrieve the color name), so we'll need appropriate headers for these too.</p> <p>Click "MainForm" in the Project Overview window so that Object Explorer shows the main form's objects.</p> -<p>Click Object Explorer's Members tab. Right click "Includes (in Implementation)", then click <b>Edit</b> to invoke the <em>Edit Includes (in Implementation)</em> dialog. Click <b>Add</b> then enter "qcolordialog.h". Click <b>Add</b> again, and enter "qlabel.h". Similarly add "qlineedit.h". We also need to include the header for the form we've just created, so add "colornameform.h", and since it is our last entry press <b>Enter</b>, then click <b>Close</b>.</p> +<p>Click Object Explorer's Members tab. Right click "Includes (in Implementation)", then click <b>Edit</b> to invoke the <em>Edit Includes (in Implementation)</em> dialog. Click <b>Add</b> then enter "ntqcolordialog.h". Click <b>Add</b> again, and enter "ntqlabel.h". Similarly add "ntqlineedit.h". We also need to include the header for the form we've just created, so add "colornameform.h", and since it is our last entry press <b>Enter</b>, then click <b>Close</b>.</p> <p>You should now have added the following declarations to your includes (in implementation):</p> -<ul><li><p>"qcolordialog.h"</p> -<li><p>"qlabel.h"</p> -<li><p>"qlineedit.h"</p> +<ul><li><p>"ntqcolordialog.h"</p> +<li><p>"ntqlabel.h"</p> +<li><p>"ntqlineedit.h"</p> <li><p>"colornameform.h"</p> </ul><p>Now we're ready to enter the <tt>editAdd()</tt> slot's code. Click "mainform.ui.h" in the Project Overview to invoke the code editor.</p> <h5><a name="1-3-1"></a>editAdd()</h5> <pre> void MainForm::editAdd() { - <a href="qcolor.html">TQColor</a> color = white; + <a href="ntqcolor.html">TQColor</a> color = white; if ( ! m_colors.isEmpty() ) { - <a href="qwidget.html">TQWidget</a> *visible = colorWidgetStack->visibleWidget(); - if ( <a href="qwidget.html#visible-prop">visible</a> == tablePage ) + <a href="ntqwidget.html">TQWidget</a> *visible = colorWidgetStack->visibleWidget(); + if ( <a href="ntqwidget.html#visible-prop">visible</a> == tablePage ) color = colorTable->text( colorTable->currentRow(), colorTable->currentColumn() ); else color = colorIconView->currentItem()->text(); } - color = TQColorDialog::<a href="qcolordialog.html#getColor">getColor</a>( color, this ); - if ( color.<a href="qcolor.html#isValid">isValid</a>() ) { - <a href="qpixmap.html">TQPixmap</a> pixmap( 80, 10 ); - pixmap.<a href="qpixmap.html#fill">fill</a>( color ); + color = TQColorDialog::<a href="ntqcolordialog.html#getColor">getColor</a>( color, this ); + if ( color.<a href="ntqcolor.html#isValid">isValid</a>() ) { + <a href="ntqpixmap.html">TQPixmap</a> pixmap( 80, 10 ); + pixmap.<a href="ntqpixmap.html#fill">fill</a>( color ); ColorNameForm *colorForm = new ColorNameForm( this, "color", TRUE ); colorForm->setColors( m_colors ); colorForm->colorLabel->setPixmap( pixmap ); if ( colorForm->exec() ) { - <a href="qstring.html">TQString</a> name = colorForm->colorLineEdit->text(); + <a href="ntqstring.html">TQString</a> name = colorForm->colorLineEdit->text(); m_colors[name] = color; - <a href="qpixmap.html">TQPixmap</a> pixmap( 22, 22 ); - pixmap.<a href="qpixmap.html#fill">fill</a>( color ); + <a href="ntqpixmap.html">TQPixmap</a> pixmap( 22, 22 ); + pixmap.<a href="ntqpixmap.html#fill">fill</a>( color ); int row = colorTable->currentRow(); colorTable->insertRows( row, 1 ); colorTable->setText( row, COL_NAME, name ); colorTable->setPixmap( row, COL_NAME, pixmap ); - colorTable->setText( row, COL_HEX, color.<a href="qcolor.html#name">name</a>().upper() ); + colorTable->setText( row, COL_HEX, color.<a href="ntqcolor.html#name">name</a>().upper() ); if ( m_show_web ) { <a href="qchecktableitem.html">TQCheckTableItem</a> *item = new <a href="qchecktableitem.html">TQCheckTableItem</a>( colorTable, "" ); item-><a href="qchecktableitem.html#setChecked">setChecked</a>( isWebColor( color ) ); @@ -201,7 +201,7 @@ body { background: #ffffff; color: black; } } } </pre> - <p>The code for this function is quite long, but it isn't difficult. We start by setting a default color to white. If there are any colors in the <tt>m_colors</tt> map we set the default color to be the current color showing in the current view. We then invoke TQt's static <a href="qcolordialog.html#getColor">getColor()</a> dialog, passing it the default color. (If the user cancels an invalid color is returned.)</p> + <p>The code for this function is quite long, but it isn't difficult. We start by setting a default color to white. If there are any colors in the <tt>m_colors</tt> map we set the default color to be the current color showing in the current view. We then invoke TQt's static <a href="ntqcolordialog.html#getColor">getColor()</a> dialog, passing it the default color. (If the user cancels an invalid color is returned.)</p> <p>If the user chose a color we want to show their chosen color in our custom dialog, so we create a pixmap and fill it with their chosen color. We create an instance of our ColorNameForm as a modal dialog (third argument is TRUE). We then call its <tt>setColors()</tt> function to set the colors in the <tt>m_colors</tt> map (so that the <tt>validate()</tt> function will work correctly). We set its colorLabel's pixmap to the pixmap we've just created, i.e. to a rectangle in the user's chosen color.</p> <p>We execute (<tt>exec()</tt>) the dialog. If the user clicks OK (and the color name they've entered is valid), the call will return a true value. In this case we retrieve the name they've entered from the line edit and create a new entry in the <tt>m_colors</tt> map using the name the user has given and the color they chose.</p> <p>At this point we could simply mark the views "dirty" and call repopulate. Instead we'll add the new color to each view directly and save the overhead of a full update (which might be considerable if we have thousands of colors).</p> @@ -271,23 +271,23 @@ body { background: #ffffff; color: black; } { if ( ! findForm ) { findForm = new FindForm( this ); - <a href="qobject.html#connect">connect</a>( findForm, SIGNAL( lookfor(const <a href="qstring.html">TQString</a>&) ), - this, SLOT( lookfor(const <a href="qstring.html">TQString</a>&) ) ); + <a href="ntqobject.html#connect">connect</a>( findForm, SIGNAL( lookfor(const <a href="ntqstring.html">TQString</a>&) ), + this, SLOT( lookfor(const <a href="ntqstring.html">TQString</a>&) ) ); } findForm->show(); } </pre> <p>If we haven't created the FindForm, we create it and connect its <tt>lookfor()</tt> signal to a corresponding <tt>lookfor()</tt> slot that we'll create in the main form. We then show the FindForm so that the user can enter their search text and click find.</p> <h5><a name="2-2-2"></a>lookfor()</h5> -<pre> void MainForm::lookfor( const <a href="qstring.html">TQString</a>& text ) +<pre> void MainForm::lookfor( const <a href="ntqstring.html">TQString</a>& text ) { - if ( text.<a href="qstring.html#isEmpty">isEmpty</a>() ) + if ( text.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) return; - <a href="qstring.html">TQString</a> ltext = text.<a href="qstring.html#lower">lower</a>(); - <a href="qwidget.html">TQWidget</a> *visible = colorWidgetStack->visibleWidget(); + <a href="ntqstring.html">TQString</a> ltext = text.<a href="ntqstring.html#lower">lower</a>(); + <a href="ntqwidget.html">TQWidget</a> *visible = colorWidgetStack->visibleWidget(); bool found = FALSE; - if ( <a href="qwidget.html#visible-prop">visible</a> == tablePage && colorTable->numRows() ) { + if ( <a href="ntqwidget.html#visible-prop">visible</a> == tablePage && colorTable->numRows() ) { int row = colorTable->currentRow(); for ( int i = row + 1; i < colorTable->numRows(); ++i ) if ( colorTable->text( i, 0 ).lower().contains( ltext ) ) { @@ -301,7 +301,7 @@ body { background: #ffffff; color: black; } colorTable->setCurrentCell( row, 0 ); } - else if ( <a href="qwidget.html#visible-prop">visible</a> == iconsPage ) { + else if ( <a href="ntqwidget.html#visible-prop">visible</a> == iconsPage ) { <a href="qiconviewitem.html">TQIconViewItem</a> *start = colorIconView->currentItem(); for ( <a href="qiconviewitem.html">TQIconViewItem</a> *item = start-><a href="qiconviewitem.html#nextItem">nextItem</a>(); item; item = item-><a href="qiconviewitem.html#nextItem">nextItem</a>() ) if ( item-><a href="qtableitem.html#text">text</a>().lower().contains( ltext ) ) { @@ -397,29 +397,29 @@ body { background: #ffffff; color: black; } } </pre> <p>We create a new options form, passing it TRUE to make it modal. We set the radio buttons depending on the current setting of the <tt>m_clip_as</tt> variable. We set the check box to correspond with the <tt>m_show_web</tt> variable. We execute the form, and if the user clicks <b>OK</b>, we reflect their choices back into the relevant main form variables. If the user changed the <tt>m_show_web</tt> variable (by clicking the webCheckBox), we mark the table as "dirty" since it will need updating. We then call <tt>populate()</tt> which will update the table view if required.</p> -<p>Because we use our OptionsForm and access its radio buttons and checkbox we must add "optionsform.h", "qradiobutton.h" and "qcheckbox.h" to our includes in implementation. (Click Object Explorer's Members tab, right click "Includes (in Implementation)", then click <b>Edit</b>. Click <b>Add</b> and enter "optionsform.h"; click <b>Add</b> again and enter "qradiobutton.h"; click <b>Add</b> again and enter "qcheckbox.h". Press <b>Enter</b>, then click <b>Close</b>.)</p> +<p>Because we use our OptionsForm and access its radio buttons and checkbox we must add "optionsform.h", "ntqradiobutton.h" and "ntqcheckbox.h" to our includes in implementation. (Click Object Explorer's Members tab, right click "Includes (in Implementation)", then click <b>Edit</b>. Click <b>Add</b> and enter "optionsform.h"; click <b>Add</b> again and enter "ntqradiobutton.h"; click <b>Add</b> again and enter "ntqcheckbox.h". Press <b>Enter</b>, then click <b>Close</b>.)</p> <p>You should now have added the following declarations to your includes (in implementation):</p> <ul><li><p>"optionsform.h"</p> -<li><p>"qcheckbox.h"</p> -<li><p>"qradiobutton.h"</p> +<li><p>"ntqcheckbox.h"</p> +<li><p>"ntqradiobutton.h"</p> </ul><p>Now the user can change options to suit their own preferences. But these option settings will be lost when they exit the application. We'll finish off by adding functions to load and save the user's settings.</p> <h3><a name="4"></a>Saving and Loading Settings</h3> <p>Logically we think of loading settings first, e.g. at application start up, and of saving settings last, e.g. at application termination. But we will code saving settings first, since then we'll know what it is that we must load.</p> -<p>TQt 3.0 introduced a new class <a href="qsettings.html">TQSettings</a>, that handles user settings in a platform independent way (e.g. it uses the registry on windows and rc files on Unix). Add the "qsettings.h" header to the includes in implementation. (Click Object Explorer's Members tab, right click "Includes (in Implementation)", click <b>New</b>, enter "qsettings.h", then press <b>Enter</b>.)</p> +<p>TQt 3.0 introduced a new class <a href="ntqsettings.html">TQSettings</a>, that handles user settings in a platform independent way (e.g. it uses the registry on windows and rc files on Unix). Add the "ntqsettings.h" header to the includes in implementation. (Click Object Explorer's Members tab, right click "Includes (in Implementation)", click <b>New</b>, enter "ntqsettings.h", then press <b>Enter</b>.)</p> <p>You should now have added the following declaration to your includes (in implementation):</p> -<ul><li><p>"qsettings.h"</p> +<ul><li><p>"ntqsettings.h"</p> </ul><h4><a name="4-1"></a>saveSettings()</h4> <pre> void MainForm::saveSettings() { - <a href="qsettings.html">TQSettings</a> settings; - settings.<a href="qsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowWidth", width() ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowHeight", height() ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowX", x() ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowY", y() ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ClipAs", m_clip_as ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ShowWeb", m_show_web ); - settings.<a href="qsettings.html#writeEntry">writeEntry</a>( APP_KEY + "View", + <a href="ntqsettings.html">TQSettings</a> settings; + settings.<a href="ntqsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowWidth", width() ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowHeight", height() ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowX", x() ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowY", y() ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ClipAs", m_clip_as ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ShowWeb", m_show_web ); + settings.<a href="ntqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "View", colorWidgetStack->visibleWidget() == tablePage ); } </pre> @@ -429,7 +429,7 @@ body { background: #ffffff; color: black; } { if ( okToClear() ) { saveSettings(); - TQApplication::<a href="qapplication.html#exit">exit</a>( 0 ); + TQApplication::<a href="ntqapplication.html#exit">exit</a>( 0 ); } } </pre> @@ -437,15 +437,15 @@ body { background: #ffffff; color: black; } <h4><a name="4-2"></a>loadSettings()</h4> <pre> void MainForm::loadSettings() { - <a href="qsettings.html">TQSettings</a> settings; - settings.<a href="qsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY ); - int windowWidth = settings.<a href="qsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowWidth", 550 ); - int windowHeight = settings.<a href="qsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowHeight", 500 ); - int windowX = settings.<a href="qsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowX", 0 ); - int windowY = settings.<a href="qsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowY", 0 ); - m_clip_as = settings.<a href="qsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "ClipAs", CLIP_AS_HEX ); - m_show_web = settings.<a href="qsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "ShowWeb", TRUE ); - if ( ! settings.<a href="qsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "View", TRUE ) ) { + <a href="ntqsettings.html">TQSettings</a> settings; + settings.<a href="ntqsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY ); + int windowWidth = settings.<a href="ntqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowWidth", 550 ); + int windowHeight = settings.<a href="ntqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowHeight", 500 ); + int windowX = settings.<a href="ntqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowX", 0 ); + int windowY = settings.<a href="ntqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowY", 0 ); + m_clip_as = settings.<a href="ntqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "ClipAs", CLIP_AS_HEX ); + m_show_web = settings.<a href="ntqsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "ShowWeb", TRUE ); + if ( ! settings.<a href="ntqsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "View", TRUE ) ) { colorWidgetStack->raiseWidget( iconsPage ); viewIconsAction->setOn( TRUE ); } @@ -482,28 +482,28 @@ body { background: #ffffff; color: black; } <ul><li><p>"findform.h"</p> </ul><p>Includes (in Implementation):</p> <ul><li><p>"optionsform.h"</p> -<li><p>"qlineedit.h"</p> -<li><p>"qlabel.h"</p> -<li><p>"qclipboard.h"</p> -<li><p>"qmessagebox.h"</p> -<li><p>"qstatusbar.h"</p> -<li><p>"qpainter.h"</p> -<li><p>"qstring.h"</p> -<li><p>"qcolor.h"</p> -<li><p>"qapplication.h"</p> -<li><p>"qfiledialog.h"</p> -<li><p>"qfile.h"</p> -<li><p>"qregexp.h"</p> -<li><p>"qcolordialog.h"</p> +<li><p>"ntqlineedit.h"</p> +<li><p>"ntqlabel.h"</p> +<li><p>"ntqclipboard.h"</p> +<li><p>"ntqmessagebox.h"</p> +<li><p>"ntqstatusbar.h"</p> +<li><p>"ntqpainter.h"</p> +<li><p>"ntqstring.h"</p> +<li><p>"ntqcolor.h"</p> +<li><p>"ntqapplication.h"</p> +<li><p>"ntqfiledialog.h"</p> +<li><p>"ntqfile.h"</p> +<li><p>"ntqregexp.h"</p> +<li><p>"ntqcolordialog.h"</p> <li><p>"colornameform.h"</p> -<li><p>"qcheckbox.h"</p> -<li><p>"qradiobutton.h"</p> -<li><p>"qsettings.h"</p> +<li><p>"ntqcheckbox.h"</p> +<li><p>"ntqradiobutton.h"</p> +<li><p>"ntqsettings.h"</p> </ul><h4><a name="6-2"></a>ColorNameForm Members</h4> <p>We put all the ColorNameForm declarations in the source code file. The file <tt>colornameform.ui.h</tt> should begin with the following declarations:</p> -<pre> #include <<a href="qcolor-h.html">qcolor.h</a>> - #include <<a href="qmap-h.html">qmap.h</a>> - #include <<a href="qstring-h.html">qstring.h</a>> +<pre> #include <<a href="qcolor-h.html">ntqcolor.h</a>> + #include <<a href="qmap-h.html">ntqmap.h</a>> + #include <<a href="qstring-h.html">ntqstring.h</a>> TQMap<TQString,TQColor> m_colors; </pre> @@ -514,7 +514,7 @@ body { background: #ffffff; color: black; } <p>The OptionsForm has no members.</p> <h4><a name="6-5"></a>main.cpp Members</h4> <p>This file should begin with the following declarations:</p> -<pre> #include <<a href="qapplication-h.html">qapplication.h</a>> +<pre> #include <<a href="qapplication-h.html">ntqapplication.h</a>> #include "mainform.h" </pre> <!-- eof --> |