diff options
Diffstat (limited to 'doc/html/helpviewer-example.html')
-rw-r--r-- | doc/html/helpviewer-example.html | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index b4b0068fe..52281f18a 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -51,7 +51,7 @@ TQt's richtext capabilities. #define HELPWINDOW_H #include <<a href="qmainwindow-h.html">ntqmainwindow.h</a>> -#include <<a href="qtextbrowser-h.html">ntqtextbrowser.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>> #include <<a href="qdir-h.html">ntqdir.h</a>> @@ -86,7 +86,7 @@ private: void readHistory(); void readBookmarks(); - <a href="ntqtextbrowser.html">TQTextBrowser</a>* browser; + <a href="tqtextbrowser.html">TQTextBrowser</a>* browser; <a href="ntqcombobox.html">TQComboBox</a> *pathCombo; int backwardId, forwardId; <a href="tqstringlist.html">TQStringList</a> history, bookmarks; @@ -124,7 +124,7 @@ private: #include <<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>> #include <<a href="qiconset-h.html">ntqiconset.h</a>> #include <<a href="qfile-h.html">ntqfile.h</a>> -#include <<a href="qtextstream-h.html">ntqtextstream.h</a>> +#include <<a href="tqtextstream-h.html">tqtextstream.h</a>> #include <<a href="qstylesheet-h.html">ntqstylesheet.h</a>> #include <<a href="qmessagebox-h.html">ntqmessagebox.h</a>> #include <<a href="qfiledialog-h.html">ntqfiledialog.h</a>> @@ -151,19 +151,19 @@ private: readHistory(); readBookmarks(); - browser = new <a href="ntqtextbrowser.html">TQTextBrowser</a>( this ); + browser = new <a href="tqtextbrowser.html">TQTextBrowser</a>( this ); -<a name="x1030"></a> browser-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()->setFilePath( _path ); +<a name="x1030"></a> browser-><a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()->setFilePath( _path ); browser-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken ); -<a name="x1027"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="tqstring.html">TQString</a>& ) ), +<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 ); if ( !home_.<a href="tqstring.html#isEmpty">isEmpty</a>() ) -<a name="x1025"></a> browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( home_ ); +<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="ntqtextbrowser.html#highlighted">highlighted</a>( const <a href="tqstring.html">TQString</a>&) ), +<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="tqwidget.html#resize">resize</a>( 640,700 ); @@ -183,12 +183,12 @@ private: <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 name="x1019"></a> <a href="tqobject.html#tr">tr</a>("&Backward"), browser, TQ_SLOT( <a href="ntqtextbrowser.html#backward">backward</a>() ), +<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, -<a name="x1021"></a> <a href="tqobject.html#tr">tr</a>("&Forward"), browser, TQ_SLOT( <a href="ntqtextbrowser.html#forward">forward</a>() ), +<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="ntqtextbrowser.html#home">home</a>() ) ); +<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 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() ) ); @@ -220,9 +220,9 @@ private: <a href="ntqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( forwardId, FALSE); <a href="ntqmainwindow.html#menuBar">menuBar</a>()->setItemEnabled( backwardId, FALSE); -<a name="x1020"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#backwardAvailable">backwardAvailable</a>( bool ) ), +<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="ntqtextbrowser.html#forwardAvailable">forwardAvailable</a>( 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 ) ) ); @@ -230,13 +230,13 @@ private: <a href="ntqmainwindow.html#addToolBar">addToolBar</a>( toolbar, "Toolbar"); <a href="ntqtoolbutton.html">TQToolButton</a>* button; - button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_back, tr("Backward"), "", browser, TQ_SLOT(<a href="ntqtextbrowser.html#backward">backward</a>()), toolbar ); -<a name="x1035"></a> <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#backwardAvailable">backwardAvailable</a>(bool) ), button, TQ_SLOT( <a href="tqwidget.html#setEnabled">setEnabled</a>(bool) ) ); + button = new <a href="ntqtoolbutton.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="ntqtextbrowser.html#forward">forward</a>()), toolbar ); - <a href="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#forwardAvailable">forwardAvailable</a>(bool) ), button, TQ_SLOT( <a href="tqwidget.html#setEnabled">setEnabled</a>(bool) ) ); + button = new <a href="ntqtoolbutton.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="ntqtextbrowser.html#home">home</a>()), toolbar ); + button = new <a href="ntqtoolbutton.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>(); @@ -267,10 +267,10 @@ void <a name="f352"></a>HelpWindow::setForwardAvailable( bool b) void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="tqstring.html">TQString</a>& url ) { -<a name="x1029"></a> if ( browser-><a href="ntqtextedit.html#documentTitle">documentTitle</a>().isNull() ) +<a name="x1029"></a> if ( browser-><a href="tqtextedit.html#documentTitle">documentTitle</a>().isNull() ) <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + url ); else - <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-><a href="ntqtextedit.html#documentTitle">documentTitle</a>() ) ; + <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-><a href="tqtextedit.html#documentTitle">documentTitle</a>() ) ; if ( !url.<a href="tqstring.html#isEmpty">isEmpty</a>() && pathCombo ) { bool exists = FALSE; @@ -329,13 +329,13 @@ void <a name="f356"></a>HelpWindow::openFile() #ifndef TQT_NO_FILEDIALOG <a href="tqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="tqstring.html#TQString-null">TQString::null</a>, TQString::null, this ); if ( !fn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) - browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( fn ); + browser-><a href="tqtextbrowser.html#setSource">setSource</a>( fn ); #endif } void <a name="f357"></a>HelpWindow::newWindow() { -<a name="x1026"></a> ( new HelpWindow(browser-><a href="ntqtextbrowser.html#source">source</a>(), "qbrowser") )->show(); +<a name="x1026"></a> ( new HelpWindow(browser-><a href="tqtextbrowser.html#source">source</a>(), "qbrowser") )->show(); } void <a name="f358"></a>HelpWindow::print() @@ -351,11 +351,11 @@ void <a name="f358"></a>HelpWindow::print() <a name="x997"></a> int dpiy = metrics.<a href="ntqpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>(); int margin = (int) ( (2/2.54)*dpiy ); // 2 cm margins <a name="x998"></a><a name="x996"></a> <a href="ntqrect.html">TQRect</a> view( margin, margin, metrics.<a href="ntqpaintdevicemetrics.html#width">width</a>() - 2*margin, metrics.<a href="ntqpaintdevicemetrics.html#height">height</a>() - 2*margin ); -<a name="x1032"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( browser-><a href="ntqtextedit.html#text">text</a>(), +<a name="x1032"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( browser-><a href="tqtextedit.html#text">text</a>(), TQFont(), -<a name="x1028"></a> browser-><a href="ntqtextedit.html#context">context</a>(), -<a name="x1031"></a> browser-><a href="ntqtextedit.html#styleSheet">styleSheet</a>(), - browser-><a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), +<a name="x1028"></a> browser-><a href="tqtextedit.html#context">context</a>(), +<a name="x1031"></a> browser-><a href="tqtextedit.html#styleSheet">styleSheet</a>(), + browser-><a href="tqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(), view.<a href="ntqrect.html#height">height</a>() ); <a name="x1016"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &p, view.<a href="ntqrect.html#width">width</a>() ); int page = 1; @@ -376,7 +376,7 @@ void <a name="f358"></a>HelpWindow::print() void <a name="f359"></a>HelpWindow::pathSelected( const <a href="tqstring.html">TQString</a> &_path ) { - browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( _path ); + 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; } @@ -408,18 +408,18 @@ void <a name="f361"></a>HelpWindow::readBookmarks() void <a name="f362"></a>HelpWindow::histChosen( int i ) { if ( mHistory.contains( i ) ) - browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( mHistory[ i ] ); + browser-><a href="tqtextbrowser.html#setSource">setSource</a>( mHistory[ i ] ); } void <a name="f363"></a>HelpWindow::bookmChosen( int i ) { if ( mBookmarks.contains( i ) ) - browser-><a href="ntqtextbrowser.html#setSource">setSource</a>( mBookmarks[ i ] ); + browser-><a href="tqtextbrowser.html#setSource">setSource</a>( mBookmarks[ 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="ntqtextedit.html#context">context</a>(); + mBookmarks[ bookm-><a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="tqwidget.html#caption">caption</a>() ) ] = browser-><a href="tqtextedit.html#context">context</a>(); } </pre> |