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.html60
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 &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="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;
#include &lt;<a href="qdir-h.html">ntqdir.h</a>&gt;
@@ -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 &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="tqtextstream-h.html">tqtextstream.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;
@@ -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-&gt;<a href="ntqtextedit.html#mimeSourceFactory">mimeSourceFactory</a>()-&gt;setFilePath( _path );
+<a name="x1030"></a> browser-&gt;<a href="tqtextedit.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="tqobject.html#connect">connect</a>( browser, TQ_SIGNAL( <a href="ntqtextbrowser.html#sourceChanged">sourceChanged</a>(const <a href="tqstring.html">TQString</a>&amp; ) ),
+<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 );
if ( !home_.<a href="tqstring.html#isEmpty">isEmpty</a>() )
-<a name="x1025"></a> browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( home_ );
+<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="ntqtextbrowser.html#highlighted">highlighted</a>( const <a href="tqstring.html">TQString</a>&amp;) ),
+<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="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-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( icon_back,
-<a name="x1019"></a> <a href="tqobject.html#tr">tr</a>("&amp;Backward"), browser, TQ_SLOT( <a href="ntqtextbrowser.html#backward">backward</a>() ),
+<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,
-<a name="x1021"></a> <a href="tqobject.html#tr">tr</a>("&amp;Forward"), browser, TQ_SLOT( <a href="ntqtextbrowser.html#forward">forward</a>() ),
+<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="ntqtextbrowser.html#home">home</a>() ) );
+<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 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() ) );
@@ -220,9 +220,9 @@ private:
<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="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-&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="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-&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="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-&gt;<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>&amp; url )
{
-<a name="x1029"></a> if ( browser-&gt;<a href="ntqtextedit.html#documentTitle">documentTitle</a>().isNull() )
+<a name="x1029"></a> if ( browser-&gt;<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-&gt;<a href="ntqtextedit.html#documentTitle">documentTitle</a>() ) ;
+ <a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Helpviewer - " + browser-&gt;<a href="tqtextedit.html#documentTitle">documentTitle</a>() ) ;
if ( !url.<a href="tqstring.html#isEmpty">isEmpty</a>() &amp;&amp; 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-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( fn );
+ browser-&gt;<a href="tqtextbrowser.html#setSource">setSource</a>( fn );
#endif
}
void <a name="f357"></a>HelpWindow::newWindow()
{
-<a name="x1026"></a> ( new HelpWindow(browser-&gt;<a href="ntqtextbrowser.html#source">source</a>(), "qbrowser") )-&gt;show();
+<a name="x1026"></a> ( new HelpWindow(browser-&gt;<a href="tqtextbrowser.html#source">source</a>(), "qbrowser") )-&gt;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-&gt;<a href="ntqtextedit.html#text">text</a>(),
+<a name="x1032"></a> <a href="ntqsimplerichtext.html">TQSimpleRichText</a> richText( browser-&gt;<a href="tqtextedit.html#text">text</a>(),
TQFont(),
-<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>(),
+<a name="x1028"></a> browser-&gt;<a href="tqtextedit.html#context">context</a>(),
+<a name="x1031"></a> browser-&gt;<a href="tqtextedit.html#styleSheet">styleSheet</a>(),
+ browser-&gt;<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>( &amp;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> &amp;_path )
{
- browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( _path );
+ 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;
}
@@ -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-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( mHistory[ i ] );
+ browser-&gt;<a href="tqtextbrowser.html#setSource">setSource</a>( mHistory[ i ] );
}
void <a name="f363"></a>HelpWindow::bookmChosen( int i )
{
if ( mBookmarks.contains( i ) )
- browser-&gt;<a href="ntqtextbrowser.html#setSource">setSource</a>( mBookmarks[ i ] );
+ browser-&gt;<a href="tqtextbrowser.html#setSource">setSource</a>( mBookmarks[ 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="ntqtextedit.html#context">context</a>();
+ 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>();
}
</pre>