diff options
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r-- | doc/html/helpviewer-example.html | 114 |
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 <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> +#include <<a href="tqmainwindow-h.html">tqmainwindow.h</a>> #include <<a href="tqtextbrowser-h.html">tqtextbrowser.h</a>> #include <<a href="tqstringlist-h.html">tqstringlist.h</a>> #include <<a href="tqmap-h.html">tqmap.h</a>> @@ -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><int, TQString> 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 <<a href="qstatusbar-h.html">ntqstatusbar.h</a>> +#include <<a href="tqstatusbar-h.html">tqstatusbar.h</a>> #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> -#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> -#include <<a href="qtoolbar-h.html">ntqtoolbar.h</a>> -#include <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> +#include <<a href="tqtoolbar-h.html">tqtoolbar.h</a>> +#include <<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>> #include <<a href="tqiconset-h.html">tqiconset.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> @@ -145,7 +145,7 @@ private: <a name="f350"></a>HelpWindow::HelpWindow( const <a href="tqstring.html">TQString</a>& home_, const <a href="tqstring.html">TQString</a>& _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>& ) ), this, TQ_SLOT( sourceChanged( const <a href="tqstring.html">TQString</a>&) ) ); - <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-><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>&) ), - <a href="ntqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&)) ); + <a href="tqmainwindow.html#statusBar">statusBar</a>(), TQ_SLOT( message( const <a href="tqstring.html">TQString</a>&)) ); <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-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&New Window"), this, TQ_SLOT( newWindow() ), CTRL+Key_N ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Open File"), this, TQ_SLOT( openFile() ), CTRL+Key_O ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Print"), this, TQ_SLOT( print() ), CTRL+Key_P ); - file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Close"), this, TQ_SLOT( <a href="tqwidget.html#close">close</a>() ), CTRL+Key_Q ); -<a name="x980"></a> file-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&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-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&New Window"), this, TQ_SLOT( newWindow() ), CTRL+Key_N ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Open File"), this, TQ_SLOT( openFile() ), CTRL+Key_O ); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Print"), this, TQ_SLOT( print() ), CTRL+Key_P ); + file-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&Close"), this, TQ_SLOT( <a href="tqwidget.html#close">close</a>() ), CTRL+Key_Q ); +<a name="x980"></a> file-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("E&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-><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-><a href="tqmenudata.html#insertItem">insertItem</a>( icon_back, <a name="x1019"></a> <a href="tqobject.html#tr">tr</a>("&Backward"), browser, TQ_SLOT( <a href="tqtextbrowser.html#backward">backward</a>() ), CTRL+Key_Left ); - forwardId = go-><a href="ntqmenudata.html#insertItem">insertItem</a>( icon_forward, + forwardId = go-><a href="tqmenudata.html#insertItem">insertItem</a>( icon_forward, <a name="x1021"></a> <a href="tqobject.html#tr">tr</a>("&Forward"), browser, TQ_SLOT( <a href="tqtextbrowser.html#forward">forward</a>() ), CTRL+Key_Right ); -<a name="x1024"></a> go-><a href="ntqmenudata.html#insertItem">insertItem</a>( icon_home, tr("&Home"), browser, TQ_SLOT( <a href="tqtextbrowser.html#home">home</a>() ) ); +<a name="x1024"></a> go-><a href="tqmenudata.html#insertItem">insertItem</a>( icon_home, tr("&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-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&About"), this, TQ_SLOT( about() ) ); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("About &TQt"), this, TQ_SLOT( aboutTQt() ) ); + <a href="tqpopupmenu.html">TQPopupMenu</a>* help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + help-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("&About"), this, TQ_SLOT( about() ) ); + help-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>("About &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-><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-><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-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) ); - bookm-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); + bookm = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this ); + bookm-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqobject.html#tr">tr</a>( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) ); + bookm-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); TQStringList::Iterator it2 = bookmarks.begin(); for ( ; it2 != bookmarks.end(); ++it2 ) - mBookmarks[ bookm-><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-><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>()->insertItem( <a href="tqobject.html#tr">tr</a>("&File"), file ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&Go"), go ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>( "History" ), hist ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>( "Bookmarks" ), bookm ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertSeparator(); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&Help"), help ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&File"), file ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&Go"), go ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>( "History" ), hist ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>( "Bookmarks" ), bookm ); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertSeparator(); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->insertItem( <a href="tqobject.html#tr">tr</a>("&Help"), help ); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( forwardId, FALSE); - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( backwardId, FALSE); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( forwardId, FALSE); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->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-><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-><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-><a href="ntqtoolbar.html#addSeparator">addSeparator</a>(); +<a name="x1033"></a> toolbar-><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> & ) ), this, TQ_SLOT( pathSelected( const <a href="tqstring.html">TQString</a> & ) ) ); -<a name="x1034"></a> toolbar-><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-><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-><a href="ntqcombobox.html#insertItem">insertItem</a>( home_ ); browser-><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>()->setItemEnabled( backwardId, b); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( backwardId, b); } void <a name="f352"></a>HelpWindow::setForwardAvailable( bool b) { - <a href="ntqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( forwardId, b); + <a href="tqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( forwardId, b); } @@ -284,7 +284,7 @@ void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="tqstring.html" if ( !exists ) { pathCombo-><a href="ntqcombobox.html#insertItem">insertItem</a>( url, 0 ); <a name="x984"></a> pathCombo-><a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( 0 ); - mHistory[ hist-><a href="ntqmenudata.html#insertItem">insertItem</a>( url ) ] = url; + mHistory[ hist-><a href="tqmenudata.html#insertItem">insertItem</a>( url ) ] = url; } else pathCombo-><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-><a href="tqtextbrowser.html#setSource">setSource</a>( _path ); if ( mHistory.values().contains(_path) ) - mHistory[ hist-><a href="ntqmenudata.html#insertItem">insertItem</a>( _path ) ] = _path; + mHistory[ hist-><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-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqwidget.html#caption">caption</a>() ) ] = browser-><a href="tqtextedit.html#context">context</a>(); + mBookmarks[ bookm-><a href="tqmenudata.html#insertItem">insertItem</a>( <a href="tqwidget.html#caption">caption</a>() ) ] = browser-><a href="tqtextedit.html#context">context</a>(); } </pre> |