summaryrefslogtreecommitdiffstats
path: root/doc/html/helpviewer-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r--doc/html/helpviewer-example.html114
1 files changed, 57 insertions, 57 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html
index 4992d3dd0..78fa6cf84 100644
--- a/doc/html/helpviewer-example.html
+++ b/doc/html/helpviewer-example.html
@@ -50,7 +50,7 @@ TQt's richtext capabilities.
#ifndef HELPWINDOW_H
#define HELPWINDOW_H
-#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
+#include &lt;<a href="tqmainwindow-h.html">tqmainwindow.h</a>&gt;
#include &lt;<a href="tqtextbrowser-h.html">tqtextbrowser.h</a>&gt;
#include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="tqmap-h.html">tqmap.h</a>&gt;
@@ -59,7 +59,7 @@ TQt's richtext capabilities.
class TQComboBox;
class TQPopupMenu;
-class HelpWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
+class HelpWindow : public <a href="tqmainwindow.html">TQMainWindow</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
@@ -91,7 +91,7 @@ private:
int backwardId, forwardId;
<a href="tqstringlist.html">TQStringList</a> history, bookmarks;
<a href="tqmap.html">TQMap</a>&lt;int, TQString&gt; mHistory, mBookmarks;
- <a href="ntqpopupmenu.html">TQPopupMenu</a> *hist, *bookm;
+ <a href="tqpopupmenu.html">TQPopupMenu</a> *hist, *bookm;
};
@@ -116,12 +116,12 @@ private:
*****************************************************************************/
#include "helpwindow.h"
-#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
-#include &lt;<a href="qtoolbar-h.html">ntqtoolbar.h</a>&gt;
-#include &lt;<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
+#include &lt;<a href="tqtoolbar-h.html">tqtoolbar.h</a>&gt;
+#include &lt;<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>&gt;
#include &lt;<a href="tqiconset-h.html">tqiconset.h</a>&gt;
#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
#include &lt;<a href="tqtextstream-h.html">tqtextstream.h</a>&gt;
@@ -145,7 +145,7 @@ private:
<a name="f350"></a>HelpWindow::HelpWindow( const <a href="tqstring.html">TQString</a>&amp; home_, const <a href="tqstring.html">TQString</a>&amp; _path,
<a href="tqwidget.html">TQWidget</a>* parent, const char *name )
- : <a href="ntqmainwindow.html">TQMainWindow</a>( parent, name, WDestructiveClose ),
+ : <a href="tqmainwindow.html">TQMainWindow</a>( parent, name, WDestructiveClose ),
pathCombo( 0 )
{
readHistory();
@@ -158,95 +158,95 @@ private:
<a name="x1027"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="tqstring.html">TQString</a>&amp; ) ),
this, TQ_SLOT( sourceChanged( const <a href="tqstring.html">TQString</a>&amp;) ) );
- <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( browser );
+ <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( browser );
if ( !home_.<a href="tqstring.html#isEmpty">isEmpty</a>() )
<a name="x1025"></a> browser-&gt;<a href="tqtextbrowser.html#setSource">setSource</a>( home_ );
<a name="x1023"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#highlighted">highlighted</a>( const <a href="tqstring.html">TQString</a>&amp;) ),
- <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&amp;)) );
+ <a href="tqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&amp;)) );
<a href="tqwidget.html#resize">resize</a>( 640,700 );
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;New Window"), this, TQ_SLOT( newWindow() ), CTRL+Key_N );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Open File"), this, TQ_SLOT( openFile() ), CTRL+Key_O );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Print"), this, TQ_SLOT( print() ), CTRL+Key_P );
- file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Close"), this, TQ_SLOT( <a href="tqwidget.html#close">close</a>() ), CTRL+Key_Q );
-<a name="x980"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&amp;xit"), tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;New Window"), this, TQ_SLOT( newWindow() ), CTRL+Key_N );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Open File"), this, TQ_SLOT( openFile() ), CTRL+Key_O );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Print"), this, TQ_SLOT( print() ), CTRL+Key_P );
+ file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;Close"), this, TQ_SLOT( <a href="tqwidget.html#close">close</a>() ), CTRL+Key_Q );
+<a name="x980"></a> file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&amp;xit"), tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
// The same three icons are used twice each.
<a href="tqiconset.html">TQIconSet</a> icon_back( TQPixmap("back.xpm") );
<a href="tqiconset.html">TQIconSet</a> icon_forward( TQPixmap("forward.xpm") );
<a href="tqiconset.html">TQIconSet</a> icon_home( TQPixmap("home.xpm") );
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* go = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- backwardId = go-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_back,
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* go = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ backwardId = go-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( icon_back,
<a name="x1019"></a> <a href="tqobject.html#tr">tr</a>("&amp;Backward"), browser, TQ_SLOT( <a href="tqtextbrowser.html#backward">backward</a>() ),
CTRL+Key_Left );
- forwardId = go-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_forward,
+ forwardId = go-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( icon_forward,
<a name="x1021"></a> <a href="tqobject.html#tr">tr</a>("&amp;Forward"), browser, TQ_SLOT( <a href="tqtextbrowser.html#forward">forward</a>() ),
CTRL+Key_Right );
-<a name="x1024"></a> go-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_home, tr("&amp;Home"), browser, TQ_SLOT( <a href="tqtextbrowser.html#home">home</a>() ) );
+<a name="x1024"></a> go-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( icon_home, tr("&amp;Home"), browser, TQ_SLOT( <a href="tqtextbrowser.html#home">home</a>() ) );
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;About"), this, TQ_SLOT( about() ) );
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("About &amp;TQt"), this, TQ_SLOT( aboutTQt() ) );
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&amp;About"), this, TQ_SLOT( about() ) );
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("About &amp;TQt"), this, TQ_SLOT( aboutTQt() ) );
- hist = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
+ hist = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
TQStringList::Iterator it = history.begin();
for ( ; it != history.end(); ++it )
- mHistory[ hist-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( *it ) ] = *it;
-<a name="x1004"></a> <a href="tqobject.html#connect">connect</a>( hist, TQ_SIGNAL( <a href="ntqpopupmenu.html#activated">activated</a>( int ) ),
+ mHistory[ hist-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( *it ) ] = *it;
+<a name="x1004"></a> <a href="tqobject.html#connect">connect</a>( hist, TQ_SIGNAL( <a href="tqpopupmenu.html#activated">activated</a>( int ) ),
this, TQ_SLOT( histChosen( int ) ) );
- bookm = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) );
- bookm-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
+ bookm = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ bookm-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) );
+ bookm-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
TQStringList::Iterator it2 = bookmarks.begin();
for ( ; it2 != bookmarks.end(); ++it2 )
- mBookmarks[ bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( *it2 ) ] = *it2;
- <a href="tqobject.html#connect">connect</a>( bookm, TQ_SIGNAL( <a href="ntqpopupmenu.html#activated">activated</a>( int ) ),
+ mBookmarks[ bookm-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( *it2 ) ] = *it2;
+ <a href="tqobject.html#connect">connect</a>( bookm, TQ_SIGNAL( <a href="tqpopupmenu.html#activated">activated</a>( int ) ),
this, TQ_SLOT( bookmChosen( int ) ) );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;File"), file );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;Go"), go );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>( "History" ), hist );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>( "Bookmarks" ), bookm );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;Help"), help );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;File"), file );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;Go"), go );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>( "History" ), hist );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>( "Bookmarks" ), bookm );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="tqobject.html#tr">tr</a>("&amp;Help"), help );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, FALSE);
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, FALSE);
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, FALSE);
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, FALSE);
<a name="x1020"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#backwardAvailable">backwardAvailable</a>( bool ) ),
this, TQ_SLOT( setBackwardAvailable( bool ) ) );
<a name="x1022"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#forwardAvailable">forwardAvailable</a>( bool ) ),
this, TQ_SLOT( setForwardAvailable( bool ) ) );
- <a href="ntqtoolbar.html">TQToolBar</a>* toolbar = new <a href="ntqtoolbar.html">TQToolBar</a>( this );
- <a href="ntqmainwindow.html#addToolBar">addToolBar</a>( toolbar, "Toolbar");
- <a href="ntqtoolbutton.html">TQToolButton</a>* button;
+ <a href="tqtoolbar.html">TQToolBar</a>* toolbar = new <a href="tqtoolbar.html">TQToolBar</a>( this );
+ <a href="tqmainwindow.html#addToolBar">addToolBar</a>( toolbar, "Toolbar");
+ <a href="tqtoolbutton.html">TQToolButton</a>* button;
- button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_back, tr("Backward"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#backward">backward</a>()), toolbar );
+ button = new <a href="tqtoolbutton.html">TQToolButton</a>( icon_back, tr("Backward"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#backward">backward</a>()), toolbar );
<a name="x1035"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#backwardAvailable">backwardAvailable</a>(bool) ), button, TQ_SLOT( <a href="tqwidget.html#setEnabled">setEnabled</a>(bool) ) );
button-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
- button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_forward, tr("Forward"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#forward">forward</a>()), toolbar );
+ button = new <a href="tqtoolbutton.html">TQToolButton</a>( icon_forward, tr("Forward"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#forward">forward</a>()), toolbar );
<a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="tqtextbrowser.html#forwardAvailable">forwardAvailable</a>(bool) ), button, TQ_SLOT( <a href="tqwidget.html#setEnabled">setEnabled</a>(bool) ) );
button-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
- button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_home, tr("Home"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#home">home</a>()), toolbar );
+ button = new <a href="tqtoolbutton.html">TQToolButton</a>( icon_home, tr("Home"), "", browser, TQ_SLOT(<a href="tqtextbrowser.html#home">home</a>()), toolbar );
-<a name="x1033"></a> toolbar-&gt;<a href="ntqtoolbar.html#addSeparator">addSeparator</a>();
+<a name="x1033"></a> toolbar-&gt;<a href="tqtoolbar.html#addSeparator">addSeparator</a>();
pathCombo = new <a href="ntqcombobox.html">TQComboBox</a>( TRUE, toolbar );
<a name="x981"></a> <a href="tqobject.html#connect">connect</a>( pathCombo, TQ_SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="tqstring.html">TQString</a> &amp; ) ),
this, TQ_SLOT( pathSelected( const <a href="tqstring.html">TQString</a> &amp; ) ) );
-<a name="x1034"></a> toolbar-&gt;<a href="ntqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo );
- <a href="ntqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE );
- <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE );
- <a href="ntqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE );
+<a name="x1034"></a> toolbar-&gt;<a href="tqtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo );
+ <a href="tqmainwindow.html#setRightJustification">setRightJustification</a>( TRUE );
+ <a href="tqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE );
+ <a href="tqmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE );
<a name="x983"></a> pathCombo-&gt;<a href="ntqcombobox.html#insertItem">insertItem</a>( home_ );
browser-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
@@ -256,12 +256,12 @@ private:
void <a name="f351"></a>HelpWindow::setBackwardAvailable( bool b)
{
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, b);
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, b);
}
void <a name="f352"></a>HelpWindow::setForwardAvailable( bool b)
{
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, b);
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, b);
}
@@ -284,7 +284,7 @@ void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="tqstring.html"
if ( !exists ) {
pathCombo-&gt;<a href="ntqcombobox.html#insertItem">insertItem</a>( url, 0 );
<a name="x984"></a> pathCombo-&gt;<a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( 0 );
- mHistory[ hist-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( url ) ] = url;
+ mHistory[ hist-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( url ) ] = url;
} else
pathCombo-&gt;<a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( i );
}
@@ -378,7 +378,7 @@ void <a name="f359"></a>HelpWindow::pathSelected( const <a href="tqstring.html">
{
browser-&gt;<a href="tqtextbrowser.html#setSource">setSource</a>( _path );
if ( mHistory.values().contains(_path) )
- mHistory[ hist-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( _path ) ] = _path;
+ mHistory[ hist-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( _path ) ] = _path;
}
void <a name="f360"></a>HelpWindow::readHistory()
@@ -419,7 +419,7 @@ void <a name="f363"></a>HelpWindow::bookmChosen( int i )
void <a name="f364"></a>HelpWindow::addBookmark()
{
- mBookmarks[ bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqwidget.html#caption">caption</a>() ) ] = browser-&gt;<a href="tqtextedit.html#context">context</a>();
+ mBookmarks[ bookm-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqwidget.html#caption">caption</a>() ) ] = browser-&gt;<a href="tqtextedit.html#context">context</a>();
}
</pre>