summaryrefslogtreecommitdiffstats
path: root/doc/html/designer-manual-3.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/designer-manual-3.html')
-rw-r--r--doc/html/designer-manual-3.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html
index b21cc226..a4da7992 100644
--- a/doc/html/designer-manual-3.html
+++ b/doc/html/designer-manual-3.html
@@ -205,7 +205,7 @@ body { background: #ffffff; color: black; }
<p>Click the viewActionGroup action group in the Action Editor, and drag it to the View menu; drop it on this menu (when the horizontal red line appears beneath the View menu). Because we dragged the action group, <em>all</em> its actions (in our case the viewTableAction and viewIconsAction) are added to the relevant menu. We'll also make the view actions available on the toolbar. Click the viewActionGroup once again, and drag it to the toolbar; drop it the right of the separator at the far right of the toolbar, and drop it on the toolbar's edge. (Again, a vertical red line will indicate the position.)</p>
<p>Don't forget that you can preview to see things in action with <b>Ctrl+T</b>, and to click <b>File|Save</b> (or press <b>Ctrl+S</b>) regularly! If you preview now you will find that if you click the view toolbar buttons and menu options that both the toolbar buttons and the menu items automatically stay in sync.</p>
<h3><a name="5"></a>Creating the Main Widget</h3>
-<p>Most main-window style applications consist of a menu bar, a toolbar, a status bar and a central widget. We've already created a menu bar and toolbar, and since we've created a <a href="ntqmainwindow.html">TQMainWindow</a> (via the main window wizard), we also have a status bar. Widgets commonly used as an application's main widget are <a href="ntqlistview.html">TQListView</a> (which provides a tree view), <a href="ntqtable.html">TQTable</a> and <a href="ntqtextedit.html">TQTextEdit</a>. Since we want to provide our users with two different views of the same data, we'll use a <a href="tqwidgetstack.html">TQWidgetStack</a> as our main widget. The <a href="tqwidgetstack.html">TQWidgetStack</a> has no visual representation of its own; you place one or more widgets on each <a href="tqwidgetstack.html">TQWidgetStack</a> "page", as if each page was a form in its own right, and then provide the user with some mechanism for switching between pages. (This is similar in principle to using a <a href="ntqtabwidget.html">TQTabWidget</a>.) We want to provide our users with two views: a tabular view that lists colors and their names, and an icon-based view that shows color swatches. In our example we only place a single widget on each <a href="tqwidgetstack.html">TQWidgetStack</a> page; but this merely reflects the application's design -- we could have placed any number of widgets on each page.</p>
+<p>Most main-window style applications consist of a menu bar, a toolbar, a status bar and a central widget. We've already created a menu bar and toolbar, and since we've created a <a href="ntqmainwindow.html">TQMainWindow</a> (via the main window wizard), we also have a status bar. Widgets commonly used as an application's main widget are <a href="ntqlistview.html">TQListView</a> (which provides a tree view), <a href="ntqtable.html">TQTable</a> and <a href="tqtextedit.html">TQTextEdit</a>. Since we want to provide our users with two different views of the same data, we'll use a <a href="tqwidgetstack.html">TQWidgetStack</a> as our main widget. The <a href="tqwidgetstack.html">TQWidgetStack</a> has no visual representation of its own; you place one or more widgets on each <a href="tqwidgetstack.html">TQWidgetStack</a> "page", as if each page was a form in its own right, and then provide the user with some mechanism for switching between pages. (This is similar in principle to using a <a href="ntqtabwidget.html">TQTabWidget</a>.) We want to provide our users with two views: a tabular view that lists colors and their names, and an icon-based view that shows color swatches. In our example we only place a single widget on each <a href="tqwidgetstack.html">TQWidgetStack</a> page; but this merely reflects the application's design -- we could have placed any number of widgets on each page.</p>
<p>Click the Toolbox's Containers button, then click WidgetStack. Click approximately in the middle of the form to place the widget stack. Change the widget stack's <em>name</em> property to "colorWidgetStack".</p>
<p align="center"><img align="middle" src="mw-addmainwidg.png" width="641" height="394">
</p>
@@ -632,10 +632,10 @@ body { background: #ffffff; color: black; }
if ( file.<a href="ntqfile.html#open">open</a>( IO_ReadOnly ) ) {
statusBar()-&gt;message( TQString( "Loading '%1'..." ).
arg( filename ) );
- <a href="ntqtextstream.html">TQTextStream</a> stream( &amp;file );
+ <a href="tqtextstream.html">TQTextStream</a> stream( &amp;file );
<a href="tqstring.html">TQString</a> line;
- while ( ! stream.<a href="ntqtextstream.html#eof">eof</a>() ) {
- line = stream.<a href="ntqtextstream.html#readLine">readLine</a>();
+ while ( ! stream.<a href="tqtextstream.html#eof">eof</a>() ) {
+ line = stream.<a href="tqtextstream.html#readLine">readLine</a>();
if ( regex.<a href="ntqregexp.html#search">search</a>( line ) == -1 )
m_comments += line;
else
@@ -724,7 +724,7 @@ Captures: cap(1) cap(2) cap(3) cap(4)
<a href="ntqfile.html">TQFile</a> file( m_filename );
if ( file.<a href="ntqfile.html#open">open</a>( IO_WriteOnly ) ) {
- <a href="ntqtextstream.html">TQTextStream</a> stream( &amp;file );
+ <a href="tqtextstream.html">TQTextStream</a> stream( &amp;file );
if ( ! m_comments.isEmpty() )
stream &lt;&lt; m_comments.join( "\n" ) &lt;&lt; "\n";
TQMap&lt;TQString,TQColor&gt;::ConstIterator it;