summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-4.html
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-07-10 18:56:16 +0900
committerMichele Calgaro <[email protected]>2024-07-10 18:56:16 +0900
commit252a2ec8b0f0f9cf20c947737087b24a8185b588 (patch)
treeb48be8863db3bc1c223ac270a258b5c1124cb0e3 /doc/html/designer-manual-4.html
parent87d29563e3ccdeb7fea0197e262e667ef323ff9c (diff)
downloadtqt3-252a2ec8b0f0f9cf20c947737087b24a8185b588.tar.gz
tqt3-252a2ec8b0f0f9cf20c947737087b24a8185b588.zip
Rename IO and network class nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'doc/html/designer-manual-4.html')
-rw-r--r--doc/html/designer-manual-4.html48
1 files changed, 24 insertions, 24 deletions
diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html
index 1722b5331..e7871d8d7 100644
--- a/doc/html/designer-manual-4.html
+++ b/doc/html/designer-manual-4.html
@@ -405,21 +405,21 @@ body { background: #ffffff; color: black; }
</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="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>TQt 3.0 introduced a new class <a href="tqsettings.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 "tqsettings.h" header to the includes in implementation. (Click Object Explorer's Members tab, right click "Includes (in Implementation)", click <b>New</b>, enter "tqsettings.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>"ntqsettings.h"</p>
+<ul><li><p>"tqsettings.h"</p>
</ul><h4><a name="4-1"></a>saveSettings()</h4>
<pre> void MainForm::saveSettings()
{
- <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",
+ <a href="tqsettings.html">TQSettings</a> settings;
+ settings.<a href="tqsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowWidth", width() );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowHeight", height() );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowX", x() );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "WindowY", y() );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ClipAs", m_clip_as );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "ShowWeb", m_show_web );
+ settings.<a href="tqsettings.html#writeEntry">writeEntry</a>( APP_KEY + "View",
colorWidgetStack-&gt;visibleWidget() == tablePage );
}
</pre>
@@ -437,15 +437,15 @@ body { background: #ffffff; color: black; }
<h4><a name="4-2"></a>loadSettings()</h4>
<pre> void MainForm::loadSettings()
{
- <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 ) ) {
+ <a href="tqsettings.html">TQSettings</a> settings;
+ settings.<a href="tqsettings.html#insertSearchPath">insertSearchPath</a>( TQSettings::Windows, WINDOWS_REGISTRY );
+ int windowWidth = settings.<a href="tqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowWidth", 550 );
+ int windowHeight = settings.<a href="tqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowHeight", 500 );
+ int windowX = settings.<a href="tqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowX", 0 );
+ int windowY = settings.<a href="tqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "WindowY", 0 );
+ m_clip_as = settings.<a href="tqsettings.html#readNumEntry">readNumEntry</a>( APP_KEY + "ClipAs", CLIP_AS_HEX );
+ m_show_web = settings.<a href="tqsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "ShowWeb", TRUE );
+ if ( ! settings.<a href="tqsettings.html#readBoolEntry">readBoolEntry</a>( APP_KEY + "View", TRUE ) ) {
colorWidgetStack-&gt;raiseWidget( iconsPage );
viewIconsAction-&gt;setOn( TRUE );
}
@@ -484,21 +484,21 @@ body { background: #ffffff; color: black; }
<ul><li><p>"optionsform.h"</p>
<li><p>"ntqlineedit.h"</p>
<li><p>"ntqlabel.h"</p>
-<li><p>"ntqclipboard.h"</p>
+<li><p>"tqclipboard.h"</p>
<li><p>"ntqmessagebox.h"</p>
<li><p>"tqstatusbar.h"</p>
<li><p>"ntqpainter.h"</p>
<li><p>"tqstring.h"</p>
<li><p>"ntqcolor.h"</p>
<li><p>"ntqapplication.h"</p>
-<li><p>"ntqfiledialog.h"</p>
-<li><p>"ntqfile.h"</p>
+<li><p>"tqfiledialog.h"</p>
+<li><p>"tqfile.h"</p>
<li><p>"tqregexp.h"</p>
<li><p>"ntqcolordialog.h"</p>
<li><p>"colornameform.h"</p>
<li><p>"ntqcheckbox.h"</p>
<li><p>"ntqradiobutton.h"</p>
-<li><p>"ntqsettings.h"</p>
+<li><p>"tqsettings.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 &lt;<a href="qcolor-h.html">ntqcolor.h</a>&gt;