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.html372
1 files changed, 186 insertions, 186 deletions
diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html
index 005739c72..08bb94c00 100644
--- a/doc/html/helpviewer-example.html
+++ b/doc/html/helpviewer-example.html
@@ -50,34 +50,34 @@ TQt's richtext capabilities.
#ifndef HELPWINDOW_H
#define HELPWINDOW_H
-#include &lt;<a href="qmainwindow-h.html">qmainwindow.h</a>&gt;
-#include &lt;<a href="qtextbrowser-h.html">qtextbrowser.h</a>&gt;
-#include &lt;<a href="qstringlist-h.html">qstringlist.h</a>&gt;
-#include &lt;<a href="qmap-h.html">qmap.h</a>&gt;
-#include &lt;<a href="qdir-h.html">qdir.h</a>&gt;
+#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
+#include &lt;<a href="qtextbrowser-h.html">ntqtextbrowser.h</a>&gt;
+#include &lt;<a href="qstringlist-h.html">ntqstringlist.h</a>&gt;
+#include &lt;<a href="qmap-h.html">ntqmap.h</a>&gt;
+#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
class TQComboBox;
class TQPopupMenu;
-class HelpWindow : public <a href="qmainwindow.html">TQMainWindow</a>
+class HelpWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- HelpWindow( const <a href="qstring.html">TQString</a>&amp; home_, const <a href="qstring.html">TQString</a>&amp; path, TQWidget* parent = 0, const char *name=0 );
+ HelpWindow( const <a href="ntqstring.html">TQString</a>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; path, TQWidget* parent = 0, const char *name=0 );
~HelpWindow();
private slots:
void setBackwardAvailable( bool );
void setForwardAvailable( bool );
- void sourceChanged( const <a href="qstring.html">TQString</a>&amp; );
+ void sourceChanged( const <a href="ntqstring.html">TQString</a>&amp; );
void about();
void aboutTQt();
void openFile();
void newWindow();
void print();
- void pathSelected( const <a href="qstring.html">TQString</a> &amp; );
+ void pathSelected( const <a href="ntqstring.html">TQString</a> &amp; );
void histChosen( int );
void bookmChosen( int );
void addBookmark();
@@ -86,12 +86,12 @@ private:
void readHistory();
void readBookmarks();
- <a href="qtextbrowser.html">TQTextBrowser</a>* browser;
- <a href="qcombobox.html">TQComboBox</a> *pathCombo;
+ <a href="ntqtextbrowser.html">TQTextBrowser</a>* browser;
+ <a href="ntqcombobox.html">TQComboBox</a> *pathCombo;
int backwardId, forwardId;
- <a href="qstringlist.html">TQStringList</a> history, bookmarks;
- <a href="qmap.html">TQMap</a>&lt;int, TQString&gt; mHistory, mBookmarks;
- <a href="qpopupmenu.html">TQPopupMenu</a> *hist, *bookm;
+ <a href="ntqstringlist.html">TQStringList</a> history, bookmarks;
+ <a href="ntqmap.html">TQMap</a>&lt;int, TQString&gt; mHistory, mBookmarks;
+ <a href="ntqpopupmenu.html">TQPopupMenu</a> *hist, *bookm;
};
@@ -116,177 +116,177 @@ private:
*****************************************************************************/
#include "helpwindow.h"
-#include &lt;<a href="qstatusbar-h.html">qstatusbar.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">qpopupmenu.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">qmenubar.h</a>&gt;
-#include &lt;<a href="qtoolbar-h.html">qtoolbar.h</a>&gt;
-#include &lt;<a href="qtoolbutton-h.html">qtoolbutton.h</a>&gt;
-#include &lt;<a href="qiconset-h.html">qiconset.h</a>&gt;
-#include &lt;<a href="qfile-h.html">qfile.h</a>&gt;
-#include &lt;<a href="qtextstream-h.html">qtextstream.h</a>&gt;
-#include &lt;<a href="qstylesheet-h.html">qstylesheet.h</a>&gt;
-#include &lt;<a href="qmessagebox-h.html">qmessagebox.h</a>&gt;
-#include &lt;<a href="qfiledialog-h.html">qfiledialog.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qcombobox-h.html">qcombobox.h</a>&gt;
-#include &lt;<a href="qevent-h.html">qevent.h</a>&gt;
-#include &lt;<a href="qlineedit-h.html">qlineedit.h</a>&gt;
-#include &lt;<a href="qobjectlist-h.html">qobjectlist.h</a>&gt;
-#include &lt;<a href="qfileinfo-h.html">qfileinfo.h</a>&gt;
-#include &lt;<a href="qfile-h.html">qfile.h</a>&gt;
-#include &lt;<a href="qdatastream-h.html">qdatastream.h</a>&gt;
-#include &lt;<a href="qprinter-h.html">qprinter.h</a>&gt;
-#include &lt;<a href="qsimplerichtext-h.html">qsimplerichtext.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
-#include &lt;<a href="qpaintdevicemetrics-h.html">qpaintdevicemetrics.h</a>&gt;
+#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.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="qiconset-h.html">ntqiconset.h</a>&gt;
+#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
+#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
+#include &lt;<a href="qstylesheet-h.html">ntqstylesheet.h</a>&gt;
+#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
+#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qcombobox-h.html">ntqcombobox.h</a>&gt;
+#include &lt;<a href="qevent-h.html">ntqevent.h</a>&gt;
+#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
+#include &lt;<a href="qobjectlist-h.html">ntqobjectlist.h</a>&gt;
+#include &lt;<a href="qfileinfo-h.html">ntqfileinfo.h</a>&gt;
+#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
+#include &lt;<a href="qdatastream-h.html">ntqdatastream.h</a>&gt;
+#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
+#include &lt;<a href="qsimplerichtext-h.html">ntqsimplerichtext.h</a>&gt;
+#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
+#include &lt;<a href="qpaintdevicemetrics-h.html">ntqpaintdevicemetrics.h</a>&gt;
#include &lt;ctype.h&gt;
-<a name="f350"></a>HelpWindow::HelpWindow( const <a href="qstring.html">TQString</a>&amp; home_, const <a href="qstring.html">TQString</a>&amp; _path,
- <a href="qwidget.html">TQWidget</a>* parent, const char *name )
- : <a href="qmainwindow.html">TQMainWindow</a>( parent, name, WDestructiveClose ),
+<a name="f350"></a>HelpWindow::HelpWindow( const <a href="ntqstring.html">TQString</a>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; _path,
+ <a href="ntqwidget.html">TQWidget</a>* parent, const char *name )
+ : <a href="ntqmainwindow.html">TQMainWindow</a>( parent, name, WDestructiveClose ),
pathCombo( 0 )
{
readHistory();
readBookmarks();
- browser = new <a href="qtextbrowser.html">TQTextBrowser</a>( this );
+ browser = new <a href="ntqtextbrowser.html">TQTextBrowser</a>( this );
-<a name="x1030"></a> browser-&gt;<a href="qtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;setFilePath( _path );
- browser-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
-<a name="x1027"></a> <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="qstring.html">TQString</a>&amp; ) ),
- this, SLOT( sourceChanged( const <a href="qstring.html">TQString</a>&amp;) ) );
+<a name="x1030"></a> browser-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;setFilePath( _path );
+ browser-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+<a name="x1027"></a> <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="ntqstring.html">TQString</a>&amp; ) ),
+ this, SLOT( sourceChanged( const <a href="ntqstring.html">TQString</a>&amp;) ) );
- <a href="qmainwindow.html#setCentralWidget">setCentralWidget</a>( browser );
+ <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( browser );
- if ( !home_.<a href="qstring.html#isEmpty">isEmpty</a>() )
-<a name="x1025"></a> browser-&gt;<a href="qtextbrowser.html#setSource">setSource</a>( home_ );
+ if ( !home_.<a href="ntqstring.html#isEmpty">isEmpty</a>() )
+<a name="x1025"></a> browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( home_ );
-<a name="x1023"></a> <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#highlighted">highlighted</a>( const <a href="qstring.html">TQString</a>&amp;) ),
- <a href="qmainwindow.html#statusBar">statusBar</a>(), SLOT( message( const <a href="qstring.html">TQString</a>&amp;)) );
+<a name="x1023"></a> <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#highlighted">highlighted</a>( const <a href="ntqstring.html">TQString</a>&amp;) ),
+ <a href="ntqmainwindow.html#statusBar">statusBar</a>(), SLOT( message( const <a href="ntqstring.html">TQString</a>&amp;)) );
- <a href="qwidget.html#resize">resize</a>( 640,700 );
+ <a href="ntqwidget.html#resize">resize</a>( 640,700 );
- <a href="qpopupmenu.html">TQPopupMenu</a>* file = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;New Window"), this, SLOT( newWindow() ), CTRL+Key_N );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;Open File"), this, SLOT( openFile() ), CTRL+Key_O );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;Print"), this, SLOT( print() ), CTRL+Key_P );
- file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;Close"), this, SLOT( <a href="qwidget.html#close">close</a>() ), CTRL+Key_Q );
-<a name="x980"></a> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT( <a href="qapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
+ <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="ntqobject.html#tr">tr</a>("&amp;New Window"), this, SLOT( newWindow() ), CTRL+Key_N );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Open File"), this, SLOT( openFile() ), CTRL+Key_O );
+ file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("&amp;Print"), this, 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="ntqobject.html#tr">tr</a>("&amp;Close"), this, SLOT( <a href="ntqwidget.html#close">close</a>() ), CTRL+Key_Q );
+<a name="x980"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_X );
// The same three icons are used twice each.
- <a href="qiconset.html">TQIconSet</a> icon_back( TQPixmap("back.xpm") );
- <a href="qiconset.html">TQIconSet</a> icon_forward( TQPixmap("forward.xpm") );
- <a href="qiconset.html">TQIconSet</a> icon_home( TQPixmap("home.xpm") );
+ <a href="ntqiconset.html">TQIconSet</a> icon_back( TQPixmap("back.xpm") );
+ <a href="ntqiconset.html">TQIconSet</a> icon_forward( TQPixmap("forward.xpm") );
+ <a href="ntqiconset.html">TQIconSet</a> icon_home( TQPixmap("home.xpm") );
- <a href="qpopupmenu.html">TQPopupMenu</a>* go = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
- backwardId = go-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( icon_back,
-<a name="x1019"></a> <a href="qobject.html#tr">tr</a>("&amp;Backward"), browser, SLOT( <a href="qtextbrowser.html#backward">backward</a>() ),
+ <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 name="x1019"></a> <a href="ntqobject.html#tr">tr</a>("&amp;Backward"), browser, SLOT( <a href="ntqtextbrowser.html#backward">backward</a>() ),
CTRL+Key_Left );
- forwardId = go-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( icon_forward,
-<a name="x1021"></a> <a href="qobject.html#tr">tr</a>("&amp;Forward"), browser, SLOT( <a href="qtextbrowser.html#forward">forward</a>() ),
+ forwardId = go-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_forward,
+<a name="x1021"></a> <a href="ntqobject.html#tr">tr</a>("&amp;Forward"), browser, SLOT( <a href="ntqtextbrowser.html#forward">forward</a>() ),
CTRL+Key_Right );
-<a name="x1024"></a> go-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( icon_home, tr("&amp;Home"), browser, SLOT( <a href="qtextbrowser.html#home">home</a>() ) );
+<a name="x1024"></a> go-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_home, tr("&amp;Home"), browser, SLOT( <a href="ntqtextbrowser.html#home">home</a>() ) );
- <a href="qpopupmenu.html">TQPopupMenu</a>* help = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
- help-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;About"), this, SLOT( about() ) );
- help-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("About &amp;TQt"), this, SLOT( aboutTQt() ) );
+ <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="ntqobject.html#tr">tr</a>("&amp;About"), this, SLOT( about() ) );
+ help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>("About &amp;TQt"), this, SLOT( aboutTQt() ) );
- hist = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
+ hist = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
TQStringList::Iterator it = history.begin();
for ( ; it != history.end(); ++it )
- mHistory[ hist-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( *it ) ] = *it;
-<a name="x1004"></a> <a href="qobject.html#connect">connect</a>( hist, SIGNAL( <a href="qpopupmenu.html#activated">activated</a>( int ) ),
+ mHistory[ hist-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( *it ) ] = *it;
+<a name="x1004"></a> <a href="ntqobject.html#connect">connect</a>( hist, SIGNAL( <a href="ntqpopupmenu.html#activated">activated</a>( int ) ),
this, SLOT( histChosen( int ) ) );
- bookm = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
- bookm-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>( "Add Bookmark" ), this, SLOT( addBookmark() ) );
- bookm-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
+ bookm = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
+ bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqobject.html#tr">tr</a>( "Add Bookmark" ), this, SLOT( addBookmark() ) );
+ bookm-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
TQStringList::Iterator it2 = bookmarks.begin();
for ( ; it2 != bookmarks.end(); ++it2 )
- mBookmarks[ bookm-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( *it2 ) ] = *it2;
- <a href="qobject.html#connect">connect</a>( bookm, SIGNAL( <a href="qpopupmenu.html#activated">activated</a>( int ) ),
+ mBookmarks[ bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( *it2 ) ] = *it2;
+ <a href="ntqobject.html#connect">connect</a>( bookm, SIGNAL( <a href="ntqpopupmenu.html#activated">activated</a>( int ) ),
this, SLOT( bookmChosen( int ) ) );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>("&amp;File"), file );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>("&amp;Go"), go );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>( "History" ), hist );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>( "Bookmarks" ), bookm );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>("&amp;Help"), help );
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.html#tr">tr</a>("&amp;File"), file );
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.html#tr">tr</a>("&amp;Go"), go );
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.html#tr">tr</a>( "History" ), hist );
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="ntqobject.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="ntqobject.html#tr">tr</a>("&amp;Help"), help );
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, FALSE);
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, FALSE);
-<a name="x1020"></a> <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#backwardAvailable">backwardAvailable</a>( bool ) ),
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, FALSE);
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, FALSE);
+<a name="x1020"></a> <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#backwardAvailable">backwardAvailable</a>( bool ) ),
this, SLOT( setBackwardAvailable( bool ) ) );
-<a name="x1022"></a> <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#forwardAvailable">forwardAvailable</a>( bool ) ),
+<a name="x1022"></a> <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#forwardAvailable">forwardAvailable</a>( bool ) ),
this, SLOT( setForwardAvailable( bool ) ) );
- <a href="qtoolbar.html">TQToolBar</a>* toolbar = new <a href="qtoolbar.html">TQToolBar</a>( this );
- <a href="qmainwindow.html#addToolBar">addToolBar</a>( toolbar, "Toolbar");
- <a href="qtoolbutton.html">TQToolButton</a>* button;
+ <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;
- button = new <a href="qtoolbutton.html">TQToolButton</a>( icon_back, tr("Backward"), "", browser, SLOT(<a href="qtextbrowser.html#backward">backward</a>()), toolbar );
-<a name="x1035"></a> <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#backwardAvailable">backwardAvailable</a>(bool) ), button, SLOT( <a href="qwidget.html#setEnabled">setEnabled</a>(bool) ) );
- button-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
- button = new <a href="qtoolbutton.html">TQToolButton</a>( icon_forward, tr("Forward"), "", browser, SLOT(<a href="qtextbrowser.html#forward">forward</a>()), toolbar );
- <a href="qobject.html#connect">connect</a>( browser, SIGNAL( <a href="qtextbrowser.html#forwardAvailable">forwardAvailable</a>(bool) ), button, SLOT( <a href="qwidget.html#setEnabled">setEnabled</a>(bool) ) );
- button-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
- button = new <a href="qtoolbutton.html">TQToolButton</a>( icon_home, tr("Home"), "", browser, SLOT(<a href="qtextbrowser.html#home">home</a>()), toolbar );
+ button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_back, tr("Backward"), "", browser, SLOT(<a href="ntqtextbrowser.html#backward">backward</a>()), toolbar );
+<a name="x1035"></a> <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#backwardAvailable">backwardAvailable</a>(bool) ), button, SLOT( <a href="ntqwidget.html#setEnabled">setEnabled</a>(bool) ) );
+ button-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
+ button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_forward, tr("Forward"), "", browser, SLOT(<a href="ntqtextbrowser.html#forward">forward</a>()), toolbar );
+ <a href="ntqobject.html#connect">connect</a>( browser, SIGNAL( <a href="ntqtextbrowser.html#forwardAvailable">forwardAvailable</a>(bool) ), button, SLOT( <a href="ntqwidget.html#setEnabled">setEnabled</a>(bool) ) );
+ button-&gt;<a href="ntqwidget.html#setEnabled">setEnabled</a>( FALSE );
+ button = new <a href="ntqtoolbutton.html">TQToolButton</a>( icon_home, tr("Home"), "", browser, SLOT(<a href="ntqtextbrowser.html#home">home</a>()), toolbar );
-<a name="x1033"></a> toolbar-&gt;<a href="qtoolbar.html#addSeparator">addSeparator</a>();
+<a name="x1033"></a> toolbar-&gt;<a href="ntqtoolbar.html#addSeparator">addSeparator</a>();
- pathCombo = new <a href="qcombobox.html">TQComboBox</a>( TRUE, toolbar );
-<a name="x981"></a> <a href="qobject.html#connect">connect</a>( pathCombo, SIGNAL( <a href="qcombobox.html#activated">activated</a>( const <a href="qstring.html">TQString</a> &amp; ) ),
- this, SLOT( pathSelected( const <a href="qstring.html">TQString</a> &amp; ) ) );
-<a name="x1034"></a> toolbar-&gt;<a href="qtoolbar.html#setStretchableWidget">setStretchableWidget</a>( pathCombo );
- <a href="qmainwindow.html#setRightJustification">setRightJustification</a>( TRUE );
- <a href="qmainwindow.html#setDockEnabled">setDockEnabled</a>( DockLeft, FALSE );
- <a href="qmainwindow.html#setDockEnabled">setDockEnabled</a>( DockRight, FALSE );
+ pathCombo = new <a href="ntqcombobox.html">TQComboBox</a>( TRUE, toolbar );
+<a name="x981"></a> <a href="ntqobject.html#connect">connect</a>( pathCombo, SIGNAL( <a href="ntqcombobox.html#activated">activated</a>( const <a href="ntqstring.html">TQString</a> &amp; ) ),
+ this, SLOT( pathSelected( const <a href="ntqstring.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="x983"></a> pathCombo-&gt;<a href="qcombobox.html#insertItem">insertItem</a>( home_ );
- browser-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+<a name="x983"></a> pathCombo-&gt;<a href="ntqcombobox.html#insertItem">insertItem</a>( home_ );
+ browser-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
}
void <a name="f351"></a>HelpWindow::setBackwardAvailable( bool b)
{
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, b);
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( backwardId, b);
}
void <a name="f352"></a>HelpWindow::setForwardAvailable( bool b)
{
- <a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, b);
+ <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;setItemEnabled( forwardId, b);
}
-void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="qstring.html">TQString</a>&amp; url )
+void <a name="f353"></a>HelpWindow::sourceChanged( const <a href="ntqstring.html">TQString</a>&amp; url )
{
-<a name="x1029"></a> if ( browser-&gt;<a href="qtextedit.html#documentTitle">documentTitle</a>().isNull() )
- <a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + url );
+<a name="x1029"></a> if ( browser-&gt;<a href="ntqtextedit.html#documentTitle">documentTitle</a>().isNull() )
+ <a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + url );
else
- <a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-&gt;<a href="qtextedit.html#documentTitle">documentTitle</a>() ) ;
+ <a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-&gt;<a href="ntqtextedit.html#documentTitle">documentTitle</a>() ) ;
- if ( !url.<a href="qstring.html#isEmpty">isEmpty</a>() &amp;&amp; pathCombo ) {
+ if ( !url.<a href="ntqstring.html#isEmpty">isEmpty</a>() &amp;&amp; pathCombo ) {
bool exists = FALSE;
int i;
-<a name="x982"></a> for ( i = 0; i &lt; pathCombo-&gt;<a href="qcombobox.html#count">count</a>(); ++i ) {
-<a name="x985"></a> if ( pathCombo-&gt;<a href="qcombobox.html#text">text</a>( i ) == url ) {
+<a name="x982"></a> for ( i = 0; i &lt; pathCombo-&gt;<a href="ntqcombobox.html#count">count</a>(); ++i ) {
+<a name="x985"></a> if ( pathCombo-&gt;<a href="ntqcombobox.html#text">text</a>( i ) == url ) {
exists = TRUE;
break;
}
}
if ( !exists ) {
- pathCombo-&gt;<a href="qcombobox.html#insertItem">insertItem</a>( url, 0 );
-<a name="x984"></a> pathCombo-&gt;<a href="qcombobox.html#setCurrentItem">setCurrentItem</a>( 0 );
- mHistory[ hist-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( url ) ] = url;
+ 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;
} else
- pathCombo-&gt;<a href="qcombobox.html#setCurrentItem">setCurrentItem</a>( i );
+ pathCombo-&gt;<a href="ntqcombobox.html#setCurrentItem">setCurrentItem</a>( i );
}
}
@@ -294,24 +294,24 @@ HelpWindow::~HelpWindow()
{
history = mHistory.values();
-<a name="x986"></a> <a href="qfile.html">TQFile</a> f( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.history" );
-<a name="x989"></a> f.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_WriteOnly</a> );
- <a href="qdatastream.html">TQDataStream</a> s( &amp;f );
+<a name="x986"></a> <a href="ntqfile.html">TQFile</a> f( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.history" );
+<a name="x989"></a> f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a> );
+ <a href="ntqdatastream.html">TQDataStream</a> s( &amp;f );
s &lt;&lt; history;
-<a name="x987"></a> f.<a href="qfile.html#close">close</a>();
+<a name="x987"></a> f.<a href="ntqfile.html#close">close</a>();
bookmarks = mBookmarks.values();
- <a href="qfile.html">TQFile</a> f2( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" );
- f2.<a href="qfile.html#open">open</a>( IO_WriteOnly );
- <a href="qdatastream.html">TQDataStream</a> s2( &amp;f2 );
+ <a href="ntqfile.html">TQFile</a> f2( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" );
+ f2.<a href="ntqfile.html#open">open</a>( IO_WriteOnly );
+ <a href="ntqdatastream.html">TQDataStream</a> s2( &amp;f2 );
s2 &lt;&lt; bookmarks;
- f2.<a href="qfile.html#close">close</a>();
+ f2.<a href="ntqfile.html#close">close</a>();
}
void <a name="f354"></a>HelpWindow::about()
{
-<a name="x994"></a> TQMessageBox::<a href="qmessagebox.html#about">about</a>( this, "HelpViewer Example",
+<a name="x994"></a> TQMessageBox::<a href="ntqmessagebox.html#about">about</a>( this, "HelpViewer Example",
"&lt;p&gt;This example implements a simple HTML help viewer "
"using TQt's rich text capabilities&lt;/p&gt;"
"&lt;p&gt;It's just about 400 lines of C++ code, so don't expect too much :-)&lt;/p&gt;"
@@ -321,74 +321,74 @@ void <a name="f354"></a>HelpWindow::about()
void <a name="f355"></a>HelpWindow::aboutTQt()
{
-<a name="x995"></a> TQMessageBox::<a href="qmessagebox.html#aboutTQt">aboutTQt</a>( this, "TQBrowser" );
+<a name="x995"></a> TQMessageBox::<a href="ntqmessagebox.html#aboutTQt">aboutTQt</a>( this, "TQBrowser" );
}
void <a name="f356"></a>HelpWindow::openFile()
{
#ifndef QT_NO_FILEDIALOG
- <a href="qstring.html">TQString</a> fn = TQFileDialog::<a href="qfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="qstring.html#TQString-null">TQString::null</a>, TQString::null, this );
- if ( !fn.<a href="qstring.html#isEmpty">isEmpty</a>() )
- browser-&gt;<a href="qtextbrowser.html#setSource">setSource</a>( fn );
+ <a href="ntqstring.html">TQString</a> fn = TQFileDialog::<a href="ntqfiledialog.html#getOpenFileName">getOpenFileName</a>( <a href="ntqstring.html#TQString-null">TQString::null</a>, TQString::null, this );
+ if ( !fn.<a href="ntqstring.html#isEmpty">isEmpty</a>() )
+ browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( fn );
#endif
}
void <a name="f357"></a>HelpWindow::newWindow()
{
-<a name="x1026"></a> ( new HelpWindow(browser-&gt;<a href="qtextbrowser.html#source">source</a>(), "qbrowser") )-&gt;show();
+<a name="x1026"></a> ( new HelpWindow(browser-&gt;<a href="ntqtextbrowser.html#source">source</a>(), "qbrowser") )-&gt;show();
}
void <a name="f358"></a>HelpWindow::print()
{
#ifndef QT_NO_PRINTER
- <a href="qprinter.html">TQPrinter</a> printer( TQPrinter::HighResolution );
-<a name="x1006"></a> printer.<a href="qprinter.html#setFullPage">setFullPage</a>(TRUE);
-<a name="x1007"></a> if ( printer.<a href="qprinter.html#setup">setup</a>( this ) ) {
- <a href="qpainter.html">TQPainter</a> p( &amp;printer );
-<a name="x1002"></a> if( !p.<a href="qpainter.html#isActive">isActive</a>() ) // starting printing failed
+ <a href="ntqprinter.html">TQPrinter</a> printer( TQPrinter::HighResolution );
+<a name="x1006"></a> printer.<a href="ntqprinter.html#setFullPage">setFullPage</a>(TRUE);
+<a name="x1007"></a> if ( printer.<a href="ntqprinter.html#setup">setup</a>( this ) ) {
+ <a href="ntqpainter.html">TQPainter</a> p( &amp;printer );
+<a name="x1002"></a> if( !p.<a href="ntqpainter.html#isActive">isActive</a>() ) // starting printing failed
return;
-<a name="x999"></a> <a href="qpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics(p.<a href="qpainter.html#device">device</a>());
-<a name="x997"></a> int dpiy = metrics.<a href="qpaintdevicemetrics.html#logicalDpiY">logicalDpiY</a>();
+<a name="x999"></a> <a href="ntqpaintdevicemetrics.html">TQPaintDeviceMetrics</a> metrics(p.<a href="ntqpainter.html#device">device</a>());
+<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="qrect.html">TQRect</a> view( margin, margin, metrics.<a href="qpaintdevicemetrics.html#width">width</a>() - 2*margin, metrics.<a href="qpaintdevicemetrics.html#height">height</a>() - 2*margin );
-<a name="x1032"></a> <a href="qsimplerichtext.html">TQSimpleRichText</a> richText( browser-&gt;<a href="qtextedit.html#text">text</a>(),
+<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-&gt;<a href="ntqtextedit.html#text">text</a>(),
TQFont(),
-<a name="x1028"></a> browser-&gt;<a href="qtextedit.html#context">context</a>(),
-<a name="x1031"></a> browser-&gt;<a href="qtextedit.html#styleSheet">styleSheet</a>(),
- browser-&gt;<a href="qtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
- view.<a href="qrect.html#height">height</a>() );
-<a name="x1016"></a> richText.<a href="qsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="qrect.html#width">width</a>() );
+<a name="x1028"></a> browser-&gt;<a href="ntqtextedit.html#context">context</a>(),
+<a name="x1031"></a> browser-&gt;<a href="ntqtextedit.html#styleSheet">styleSheet</a>(),
+ browser-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>(),
+ view.<a href="ntqrect.html#height">height</a>() );
+<a name="x1016"></a> richText.<a href="ntqsimplerichtext.html#setWidth">setWidth</a>( &amp;p, view.<a href="ntqrect.html#width">width</a>() );
int page = 1;
do {
-<a name="x1014"></a> richText.<a href="qsimplerichtext.html#draw">draw</a>( &amp;p, margin, margin, view, colorGroup() );
-<a name="x1010"></a> view.<a href="qrect.html#moveBy">moveBy</a>( 0, view.<a href="qrect.html#height">height</a>() );
- p.<a href="qpainter.html#translate">translate</a>( 0 , -view.<a href="qrect.html#height">height</a>() );
-<a name="x1018"></a><a name="x1001"></a> p.<a href="qpainter.html#drawText">drawText</a>( view.<a href="qrect.html#right">right</a>() - p.<a href="qpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="qstring.html#number">number</a>(page) ),
-<a name="x1008"></a> view.<a href="qrect.html#bottom">bottom</a>() + p.<a href="qpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) );
-<a name="x1015"></a> if ( view.<a href="qrect.html#top">top</a>() - margin &gt;= richText.<a href="qsimplerichtext.html#height">height</a>() )
+<a name="x1014"></a> richText.<a href="ntqsimplerichtext.html#draw">draw</a>( &amp;p, margin, margin, view, colorGroup() );
+<a name="x1010"></a> view.<a href="ntqrect.html#moveBy">moveBy</a>( 0, view.<a href="ntqrect.html#height">height</a>() );
+ p.<a href="ntqpainter.html#translate">translate</a>( 0 , -view.<a href="ntqrect.html#height">height</a>() );
+<a name="x1018"></a><a name="x1001"></a> p.<a href="ntqpainter.html#drawText">drawText</a>( view.<a href="ntqrect.html#right">right</a>() - p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().width( TQString::<a href="ntqstring.html#number">number</a>(page) ),
+<a name="x1008"></a> view.<a href="ntqrect.html#bottom">bottom</a>() + p.<a href="ntqpainter.html#fontMetrics">fontMetrics</a>().ascent() + 5, TQString::number(page) );
+<a name="x1015"></a> if ( view.<a href="ntqrect.html#top">top</a>() - margin &gt;= richText.<a href="ntqsimplerichtext.html#height">height</a>() )
break;
-<a name="x1005"></a> printer.<a href="qprinter.html#newPage">newPage</a>();
+<a name="x1005"></a> printer.<a href="ntqprinter.html#newPage">newPage</a>();
page++;
} while (TRUE);
}
#endif
}
-void <a name="f359"></a>HelpWindow::pathSelected( const <a href="qstring.html">TQString</a> &amp;_path )
+void <a name="f359"></a>HelpWindow::pathSelected( const <a href="ntqstring.html">TQString</a> &amp;_path )
{
- browser-&gt;<a href="qtextbrowser.html#setSource">setSource</a>( _path );
+ browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( _path );
if ( mHistory.values().contains(_path) )
- mHistory[ hist-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( _path ) ] = _path;
+ mHistory[ hist-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( _path ) ] = _path;
}
void <a name="f360"></a>HelpWindow::readHistory()
{
-<a name="x988"></a> if ( TQFile::<a href="qfile.html#exists">exists</a>( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.history" ) ) {
- <a href="qfile.html">TQFile</a> f( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.history" );
- f.<a href="qfile.html#open">open</a>( <a href="qfile.html#open">IO_ReadOnly</a> );
- <a href="qdatastream.html">TQDataStream</a> s( &amp;f );
+<a name="x988"></a> if ( TQFile::<a href="ntqfile.html#exists">exists</a>( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.history" ) ) {
+ <a href="ntqfile.html">TQFile</a> f( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.history" );
+ f.<a href="ntqfile.html#open">open</a>( <a href="ntqfile.html#open">IO_ReadOnly</a> );
+ <a href="ntqdatastream.html">TQDataStream</a> s( &amp;f );
s &gt;&gt; history;
- f.<a href="qfile.html#close">close</a>();
+ f.<a href="ntqfile.html#close">close</a>();
while ( history.count() &gt; 20 )
history.remove( history.begin() );
}
@@ -396,30 +396,30 @@ void <a name="f360"></a>HelpWindow::readHistory()
void <a name="f361"></a>HelpWindow::readBookmarks()
{
- if ( TQFile::<a href="qfile.html#exists">exists</a>( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" ) ) {
- <a href="qfile.html">TQFile</a> f( TQDir::<a href="qdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" );
- f.<a href="qfile.html#open">open</a>( IO_ReadOnly );
- <a href="qdatastream.html">TQDataStream</a> s( &amp;f );
+ if ( TQFile::<a href="ntqfile.html#exists">exists</a>( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" ) ) {
+ <a href="ntqfile.html">TQFile</a> f( TQDir::<a href="ntqdir.html#currentDirPath">currentDirPath</a>() + "/.bookmarks" );
+ f.<a href="ntqfile.html#open">open</a>( IO_ReadOnly );
+ <a href="ntqdatastream.html">TQDataStream</a> s( &amp;f );
s &gt;&gt; bookmarks;
- f.<a href="qfile.html#close">close</a>();
+ f.<a href="ntqfile.html#close">close</a>();
}
}
void <a name="f362"></a>HelpWindow::histChosen( int i )
{
if ( mHistory.contains( i ) )
- browser-&gt;<a href="qtextbrowser.html#setSource">setSource</a>( mHistory[ i ] );
+ browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( mHistory[ i ] );
}
void <a name="f363"></a>HelpWindow::bookmChosen( int i )
{
if ( mBookmarks.contains( i ) )
- browser-&gt;<a href="qtextbrowser.html#setSource">setSource</a>( mBookmarks[ i ] );
+ browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( mBookmarks[ i ] );
}
void <a name="f364"></a>HelpWindow::addBookmark()
{
- mBookmarks[ bookm-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qwidget.html#caption">caption</a>() ) ] = browser-&gt;<a href="qtextedit.html#context">context</a>();
+ mBookmarks[ bookm-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( <a href="ntqwidget.html#caption">caption</a>() ) ] = browser-&gt;<a href="ntqtextedit.html#context">context</a>();
}
</pre>
@@ -436,17 +436,17 @@ void <a name="f364"></a>HelpWindow::addBookmark()
*****************************************************************************/
#include "helpwindow.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qdir-h.html">qdir.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
#include &lt;stdlib.h&gt;
int main( int argc, char ** argv )
{
-<a name="x1041"></a> TQApplication::<a href="qapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor );
- <a href="qapplication.html">TQApplication</a> a(argc, argv);
+<a name="x1041"></a> TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor );
+ <a href="ntqapplication.html">TQApplication</a> a(argc, argv);
- <a href="qstring.html">TQString</a> home;
+ <a href="ntqstring.html">TQString</a> home;
if (argc &gt; 1) {
home = argv[1];
} else {
@@ -455,17 +455,17 @@ int main( int argc, char ** argv )
}
HelpWindow *help = new HelpWindow(home, ".", 0, "help viewer");
- help-&gt;<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Helpviewer");
-<a name="x1037"></a> if ( TQApplication::<a href="qapplication.html#desktop">desktop</a>()-&gt;width() &gt; 400
- &amp;&amp; TQApplication::<a href="qapplication.html#desktop">desktop</a>()-&gt;height() &gt; 500 )
- help-&gt;<a href="qwidget.html#show">show</a>();
+ help-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Helpviewer");
+<a name="x1037"></a> if ( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width() &gt; 400
+ &amp;&amp; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height() &gt; 500 )
+ help-&gt;<a href="ntqwidget.html#show">show</a>();
else
-<a name="x1045"></a> help-&gt;<a href="qwidget.html#showMaximized">showMaximized</a>();
+<a name="x1045"></a> help-&gt;<a href="ntqwidget.html#showMaximized">showMaximized</a>();
-<a name="x1039"></a> TQObject::<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()),
- &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
+<a name="x1039"></a> TQObject::<a href="ntqobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()),
+ &amp;a, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>