summaryrefslogtreecommitdiffstats
path: root/doc/html/helpsystem-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/helpsystem-example.html')
-rw-r--r--doc/html/helpsystem-example.html108
1 files changed, 54 insertions, 54 deletions
diff --git a/doc/html/helpsystem-example.html b/doc/html/helpsystem-example.html
index 33a55197d..386b1cdbc 100644
--- a/doc/html/helpsystem-example.html
+++ b/doc/html/helpsystem-example.html
@@ -44,20 +44,20 @@ in the statusbar. <a href="ntqassistantclient.html">TQAssistantClient</a> is use
pages using TQt Assistant.
<p> The application has a user interface based on a
<a href="tqmainwindow.html">TQMainWindow</a> with a menubar, statusbar and a toolbar, and uses
-a <a href="ntqtable.html">TQTable</a> as the central widget.
+a <a href="tqtable.html">TQTable</a> as the central widget.
<pre> class HeaderToolTip : public <a href="tqtooltip.html">TQToolTip</a>
{
public:
- HeaderToolTip( <a href="ntqheader.html">TQHeader</a> *header, TQToolTipGroup *group = 0 );
+ HeaderToolTip( <a href="tqheader.html">TQHeader</a> *header, TQToolTipGroup *group = 0 );
protected:
void maybeTip ( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
</pre>
<p> Two TQToolTip subclasses implement dynamic tooltips for
-<a href="ntqheader.html">TQHeader</a> and TQTable by reimplementing maybeTip(). The
+<a href="tqheader.html">TQHeader</a> and TQTable by reimplementing maybeTip(). The
constructors differ from the <a href="tqtooltip.html">TQToolTip</a> constructor in having a
TQHeader and a TQTable respectively as the first parameter for
the constructor instead of a <a href="tqwidget.html">TQWidget</a>. This is because
@@ -67,20 +67,20 @@ second argument to show tooltips in, for example a statusbar.
<p> <pre> class TableToolTip : public <a href="tqtooltip.html">TQToolTip</a>
{
public:
- TableToolTip( <a href="ntqtable.html">TQTable</a>* table, TQToolTipGroup *group = 0 );
+ TableToolTip( <a href="tqtable.html">TQTable</a>* table, TQToolTipGroup *group = 0 );
protected:
void maybeTip( const <a href="tqpoint.html">TQPoint</a> &amp;p );
private:
- <a href="ntqtable.html">TQTable</a> *table;
+ <a href="tqtable.html">TQTable</a> *table;
};
</pre>
-<p> The TableToolTip class keeps a reference to the <a href="ntqtable.html">TQTable</a>
+<p> The TableToolTip class keeps a reference to the <a href="tqtable.html">TQTable</a>
as a member for easier access of the TQTable object later on.
<p>
-<pre> HeaderToolTip::HeaderToolTip( <a href="ntqheader.html">TQHeader</a> *header, TQToolTipGroup *group )
+<pre> HeaderToolTip::HeaderToolTip( <a href="tqheader.html">TQHeader</a> *header, TQToolTipGroup *group )
: <a href="tqtooltip.html">TQToolTip</a>( header, group )
{
}
@@ -89,30 +89,30 @@ as a member for easier access of the TQTable object later on.
to the <a href="tqtooltip.html">TQToolTip</a> constructor.
<pre> void HeaderToolTip::<a href="tqtooltip.html#maybeTip">maybeTip</a> ( const <a href="tqpoint.html">TQPoint</a>&amp; p )
{
- <a href="ntqheader.html">TQHeader</a> *header = (TQHeader*)<a href="tqtooltip.html#parentWidget">parentWidget</a>();
+ <a href="tqheader.html">TQHeader</a> *header = (TQHeader*)<a href="tqtooltip.html#parentWidget">parentWidget</a>();
int section = 0;
- <a name="x2676"></a> if ( header-&gt;<a href="ntqheader.html#orientation">orientation</a>() == Horizontal )
- <a name="x2677"></a><a name="x2675"></a> section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#x">x</a>() );
+ <a name="x2676"></a> if ( header-&gt;<a href="tqheader.html#orientation">orientation</a>() == Horizontal )
+ <a name="x2677"></a><a name="x2675"></a> section = header-&gt;<a href="tqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="tqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#x">x</a>() );
else
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="ntqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#y">y</a>() );
+ section = header-&gt;<a href="tqheader.html#sectionAt">sectionAt</a>( header-&gt;<a href="tqheader.html#offset">offset</a>() + p.<a href="tqpoint.html#y">y</a>() );
- <a name="x2674"></a> <a href="tqstring.html">TQString</a> tipString = header-&gt;<a href="ntqheader.html#label">label</a>( section );
- <a name="x2678"></a> <a href="tqtooltip.html#tip">tip</a>( header-&gt;<a href="ntqheader.html#sectionRect">sectionRect</a>( section ), tipString, "This is a section in a header" );
+ <a name="x2674"></a> <a href="tqstring.html">TQString</a> tipString = header-&gt;<a href="tqheader.html#label">label</a>( section );
+ <a name="x2678"></a> <a href="tqtooltip.html#tip">tip</a>( header-&gt;<a href="tqheader.html#sectionRect">sectionRect</a>( section ), tipString, "This is a section in a header" );
}
</pre>
-<p> The implementation of maybeTip() uses the <a href="ntqheader.html">TQHeader</a> API
+<p> The implementation of maybeTip() uses the <a href="tqheader.html">TQHeader</a> API
to get the section at the requested position and uses
<a href="tqtooltip.html#tip">TQToolTip::tip</a>() to display the section's label in a
tooltip. The second string is used by <a href="tqtooltipgroup.html">TQToolTipGroup</a> and will
show up in the statusbar.
-<p> <pre> TableToolTip::TableToolTip( <a href="ntqtable.html">TQTable</a> *tipTable, TQToolTipGroup *group )
+<p> <pre> TableToolTip::TableToolTip( <a href="tqtable.html">TQTable</a> *tipTable, TQToolTipGroup *group )
<a name="x2683"></a>: <a href="tqtooltip.html">TQToolTip</a>( tipTable-&gt;<a href="tqscrollview.html#viewport">viewport</a>(), group ), table( tipTable )
{
}
</pre>
-<p> Since <a href="ntqtable.html">TQTable</a> is a <a href="tqscrollview.html">TQScrollView</a> all user interaction
+<p> Since <a href="tqtable.html">TQTable</a> is a <a href="tqscrollview.html">TQScrollView</a> all user interaction
happens on TQTable's viewport() . The TableToolTip
constructor passes the viewport() and the tooltip
group to the <a href="tqtooltip.html">TQToolTip</a> constructor, and initializes the table
@@ -129,7 +129,7 @@ member with the TQTable pointer itself.
</pre>
<p> The implementation of maybeTip() uses the TQTable API
to get information about the cell at the requested position.
-The <a href="ntqtable.html">TQTable</a> API expects contents coordinates, and since the
+The <a href="tqtable.html">TQTable</a> API expects contents coordinates, and since the
requested point is relative to the viewport we need to translate
the coordinates before we can use TQTable's functions.
<pre> <a name="x2682"></a><a name="x2681"></a> cr.<a href="tqrect.html#moveTopLeft">moveTopLeft</a>( table-&gt;contentsToViewport( cr.<a href="tqrect.html#topLeft">topLeft</a>() ) );
@@ -176,7 +176,7 @@ linkClicked() which will be emitted when a hyperlink is clicked.
<p> The WhatsThis constructor takes two parameters, the first is the
widget we want to provide WhatsThis for, and the second is the
one which receives the events. Normally this is the same widget,
-but some widgets, like <a href="ntqtable.html">TQTable</a>, are more complex and have a
+but some widgets, like <a href="tqtable.html">TQTable</a>, are more complex and have a
viewport() widget which receives the events. If such a widget
is passed to the constructor it will propagate the parameter to
the TQWhatsThis constructor and store the <a href="tqwidget.html">TQWidget</a> pointer itself
@@ -198,7 +198,7 @@ if a hyperlink has been clicked.
<pre> class HeaderWhatsThis : public WhatsThis
{
public:
- HeaderWhatsThis( <a href="ntqheader.html">TQHeader</a> *h );
+ HeaderWhatsThis( <a href="tqheader.html">TQHeader</a> *h );
<a href="tqstring.html">TQString</a> text( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
@@ -206,7 +206,7 @@ if a hyperlink has been clicked.
<p> <pre> class TableWhatsThis : public WhatsThis
{
public:
- TableWhatsThis( <a href="ntqtable.html">TQTable</a> *t );
+ TableWhatsThis( <a href="tqtable.html">TQTable</a> *t );
<a href="tqstring.html">TQString</a> text( const <a href="tqpoint.html">TQPoint</a> &amp;p );
};
@@ -220,7 +220,7 @@ text() to make it possible to return texts depending on the
mouse click's position. All the other functionality is
already provided by the generic WhatsThis base class. We ensure
type safety here in the same manner as in the tooltip classes.
-<pre> HeaderWhatsThis::HeaderWhatsThis( <a href="ntqheader.html">TQHeader</a> *h )
+<pre> HeaderWhatsThis::HeaderWhatsThis( <a href="tqheader.html">TQHeader</a> *h )
: WhatsThis( h )
{
}
@@ -229,63 +229,63 @@ type safety here in the same manner as in the tooltip classes.
WhatsThis constructor.
<pre> TQString HeaderWhatsThis::text( const <a href="tqpoint.html">TQPoint</a> &amp;p )
{
- <a href="ntqheader.html">TQHeader</a> *header = (TQHeader*)parentWidget();
+ <a href="tqheader.html">TQHeader</a> *header = (TQHeader*)parentWidget();
<a href="tqstring.html">TQString</a> orient;
int section;
- if ( header-&gt;<a href="ntqheader.html#orientation">orientation</a>() == TQObject::Horizontal ) {
+ if ( header-&gt;<a href="tqheader.html#orientation">orientation</a>() == TQObject::Horizontal ) {
orient = "horizontal";
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#x">x</a>() );
+ section = header-&gt;<a href="tqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#x">x</a>() );
} else {
orient = "vertical";
- section = header-&gt;<a href="ntqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#y">y</a>() );
+ section = header-&gt;<a href="tqheader.html#sectionAt">sectionAt</a>( p.<a href="tqpoint.html#y">y</a>() );
}
if( section == -1 )
return "This is empty space.";
<a href="tqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath();
- return TQString("This is section number %1 in the %2 &lt;a href=%2/html/ntqheader.html&gt;header&lt;/a&gt;.").
+ return TQString("This is section number %1 in the %2 &lt;a href=%2/html/tqheader.html&gt;header&lt;/a&gt;.").
arg(section + 1).
arg(orient).
arg(docsPath);
}
</pre>
-<p> The implementation of text() uses the <a href="ntqheader.html">TQHeader</a> API to determine
+<p> The implementation of text() uses the <a href="tqheader.html">TQHeader</a> API to determine
whether we have a horizontal or a vertical header and returns
a string which states the header's orientation and section.
<a href="#footnote2"><sup>(2)</sup></a><a name="footnote-call2"></a>
-<pre> TableWhatsThis::TableWhatsThis( <a href="ntqtable.html">TQTable</a> *t )
+<pre> TableWhatsThis::TableWhatsThis( <a href="tqtable.html">TQTable</a> *t )
: WhatsThis( t, t-&gt;<a href="tqscrollview.html#viewport">viewport</a>() )
{
}
</pre>
-<p> Since <a href="ntqtable.html">TQTable</a> is a scrollview and has a viewport() which receives
+<p> Since <a href="tqtable.html">TQTable</a> is a scrollview and has a viewport() which receives
the events, we propagate the table itself and the table's
viewport() to the WhatsThis constructor.
<pre> TQString TableWhatsThis::text( const <a href="tqpoint.html">TQPoint</a> &amp;p )
{
- <a href="ntqtable.html">TQTable</a> *table = (TQTable*)parentWidget();
+ <a href="tqtable.html">TQTable</a> *table = (TQTable*)parentWidget();
<a href="tqpoint.html">TQPoint</a> cp = table-&gt;<a href="tqscrollview.html#viewportToContents">viewportToContents</a>( p );
- int row = table-&gt;<a href="ntqtable.html#rowAt">rowAt</a>( cp.<a href="tqpoint.html#y">y</a>() );
- int col = table-&gt;<a href="ntqtable.html#columnAt">columnAt</a>( cp.<a href="tqpoint.html#x">x</a>() );
+ int row = table-&gt;<a href="tqtable.html#rowAt">rowAt</a>( cp.<a href="tqpoint.html#y">y</a>() );
+ int col = table-&gt;<a href="tqtable.html#columnAt">columnAt</a>( cp.<a href="tqpoint.html#x">x</a>() );
if ( row == -1 || col == -1 )
return "This is empty space.";
- <a href="qtableitem.html">TQTableItem</a>* i = table-&gt;<a href="ntqtable.html#item">item</a>( row,col );
+ <a href="tqtableitem.html">TQTableItem</a>* i = table-&gt;<a href="tqtable.html#item">item</a>( row,col );
if ( !i )
return "This is an empty cell.";
<a href="tqstring.html">TQString</a> docsPath = TQDir("../../doc").absPath();
- if ( TQTableItem::RTTI == i-&gt;<a href="qtableitem.html#rtti">rtti</a>() ) {
- return TQString("This is a &lt;a href=%1/html/qtableitem.html&gt;TQTableItem&lt;/a&gt;.").
+ if ( TQTableItem::RTTI == i-&gt;<a href="tqtableitem.html#rtti">rtti</a>() ) {
+ return TQString("This is a &lt;a href=%1/html/tqtableitem.html&gt;TQTableItem&lt;/a&gt;.").
arg(docsPath);
- } else if ( TQComboTableItem::RTTI == i-&gt;<a href="qtableitem.html#rtti">rtti</a>() ) {
+ } else if ( TQComboTableItem::RTTI == i-&gt;<a href="tqtableitem.html#rtti">rtti</a>() ) {
return TQString("This is a &lt;a href=%1/html/tqcombotableitem.html&gt;TQComboTableItem&lt;/a&gt;."
"&lt;br&gt;It can be used to provide multiple-choice items in a table.").
arg(docsPath);
- } else if ( TQCheckTableItem::RTTI == i-&gt;<a href="qtableitem.html#rtti">rtti</a>() ) {
+ } else if ( TQCheckTableItem::RTTI == i-&gt;<a href="tqtableitem.html#rtti">rtti</a>() ) {
return TQString("This is a &lt;a href=%1/html/tqchecktableitem.html&gt;TQCheckTableItem&lt;/a&gt;."
"&lt;br&gt;It provide &lt;a href=%1/html/tqcheckbox.html&gt;checkboxes&lt;/a&gt; in tables.").
arg(docsPath).arg(docsPath);
@@ -293,7 +293,7 @@ viewport() to the WhatsThis constructor.
return "This is a user defined table item.";
}
</pre>
-<p> The implementation of text() uses the <a href="ntqtable.html">TQTable</a> API to get
+<p> The implementation of text() uses the <a href="tqtable.html">TQTable</a> API to get
information about the cell at the requested position.
The TQTable API expects contents coordinates, so we need to
translate the point as shown earlier for the tooltip classes.
@@ -337,7 +337,7 @@ member as well, to allow easier access to TQt Assistant later on.
<p> The MainWindow constructor creates an instance of
TQAssistantClient using <a href="tqstring.html#TQString-null">TQString::null</a> as the first argument
so that the system path is used.
-<pre> <a href="ntqtable.html">TQTable</a>* table = new <a href="ntqtable.html">TQTable</a>( 2, 3, this );
+<pre> <a href="tqtable.html">TQTable</a>* table = new <a href="tqtable.html">TQTable</a>( 2, 3, this );
<a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( table );
// populate table
@@ -348,18 +348,18 @@ so that the system path is used.
<a href="tqchecktableitem.html">TQCheckTableItem</a>* checkItem1 = new <a href="tqchecktableitem.html">TQCheckTableItem</a>( table, "Check me" );
<a href="tqchecktableitem.html">TQCheckTableItem</a>* checkItem2 = new <a href="tqchecktableitem.html">TQCheckTableItem</a>( table, "Check me" );
- <a name="x2691"></a> table-&gt;<a href="ntqtable.html#setItem">setItem</a>( 0, 0, comboItem1 );
- table-&gt;<a href="ntqtable.html#setItem">setItem</a>( 1, 0, comboItem2 );
+ <a name="x2691"></a> table-&gt;<a href="tqtable.html#setItem">setItem</a>( 0, 0, comboItem1 );
+ table-&gt;<a href="tqtable.html#setItem">setItem</a>( 1, 0, comboItem2 );
- table-&gt;<a href="ntqtable.html#setItem">setItem</a>( 1, 1, checkItem1 );
- table-&gt;<a href="ntqtable.html#setItem">setItem</a>( 0, 1, checkItem2 );
+ table-&gt;<a href="tqtable.html#setItem">setItem</a>( 1, 1, checkItem1 );
+ table-&gt;<a href="tqtable.html#setItem">setItem</a>( 0, 1, checkItem2 );
- <a name="x2692"></a> table-&gt;<a href="ntqtable.html#setText">setText</a>( 1, 2, "Text" );
+ <a name="x2692"></a> table-&gt;<a href="tqtable.html#setText">setText</a>( 1, 2, "Text" );
- table-&gt;<a href="ntqtable.html#horizontalHeader">horizontalHeader</a>()-&gt;setLabel( 0, " Combos" );
- table-&gt;<a href="ntqtable.html#horizontalHeader">horizontalHeader</a>()-&gt;setLabel( 1, "Checkboxes" );
- table-&gt;<a href="ntqtable.html#verticalHeader">verticalHeader</a>()-&gt;setLabel( 0, "1" );
- table-&gt;<a href="ntqtable.html#verticalHeader">verticalHeader</a>()-&gt;setLabel( 1, "2" );
+ table-&gt;<a href="tqtable.html#horizontalHeader">horizontalHeader</a>()-&gt;setLabel( 0, " Combos" );
+ table-&gt;<a href="tqtable.html#horizontalHeader">horizontalHeader</a>()-&gt;setLabel( 1, "Checkboxes" );
+ table-&gt;<a href="tqtable.html#verticalHeader">verticalHeader</a>()-&gt;setLabel( 0, "1" );
+ table-&gt;<a href="tqtable.html#verticalHeader">verticalHeader</a>()-&gt;setLabel( 1, "2" );
// populate menubar
<a href="tqpopupmenu.html">TQPopupMenu</a>* fileMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
@@ -377,7 +377,7 @@ so that the system path is used.
<a href="tqtoolbutton.html">TQToolButton</a>* assistantButton = new <a href="tqtoolbutton.html">TQToolButton</a>( toolbar );
<a name="x2694"></a> assistantButton-&gt;<a href="tqtoolbutton.html#setIconSet">setIconSet</a>( TQPixmap("appicon.png") );
</pre>
-<p> A <a href="ntqtable.html">TQTable</a> is used as the central widget and the table, the menus
+<p> A <a href="tqtable.html">TQTable</a> is used as the central widget and the table, the menus
and the toolbar are populated.
<pre> <a name="x2699"></a> TQWhatsThis::<a href="tqwhatsthis.html#whatsThisButton">whatsThisButton</a>( toolbar );
</pre>
@@ -394,8 +394,8 @@ in the statusbar as the tooltips are displayed on the widgets.
<pre> // set up tooltips
<a name="x2695"></a> TQToolTip::<a href="tqtooltip.html#add">add</a>( assistantButton, tr ("Open Assistant"), tipGroup, "Opens TQt Assistant" );
- <a name="x2690"></a> horizontalTip = new HeaderToolTip( table-&gt;<a href="ntqtable.html#horizontalHeader">horizontalHeader</a>(), tipGroup );
- <a name="x2693"></a> verticalTip = new HeaderToolTip( table-&gt;<a href="ntqtable.html#verticalHeader">verticalHeader</a>(), tipGroup );
+ <a name="x2690"></a> horizontalTip = new HeaderToolTip( table-&gt;<a href="tqtable.html#horizontalHeader">horizontalHeader</a>(), tipGroup );
+ <a name="x2693"></a> verticalTip = new HeaderToolTip( table-&gt;<a href="tqtable.html#verticalHeader">verticalHeader</a>(), tipGroup );
cellTip = new TableToolTip( table, tipGroup );
</pre>
@@ -408,8 +408,8 @@ to.
<pre> // set up whats this
<a name="x2698"></a> TQWhatsThis::<a href="tqwhatsthis.html#add">add</a> ( assistantButton, "This is a toolbutton which opens Assistant" );
- HeaderWhatsThis *horizontalWhatsThis = new HeaderWhatsThis( table-&gt;<a href="ntqtable.html#horizontalHeader">horizontalHeader</a>() );
- HeaderWhatsThis *verticalWhatsThis = new HeaderWhatsThis( table-&gt;<a href="ntqtable.html#verticalHeader">verticalHeader</a>() );
+ HeaderWhatsThis *horizontalWhatsThis = new HeaderWhatsThis( table-&gt;<a href="tqtable.html#horizontalHeader">horizontalHeader</a>() );
+ HeaderWhatsThis *verticalWhatsThis = new HeaderWhatsThis( table-&gt;<a href="tqtable.html#verticalHeader">verticalHeader</a>() );
TableWhatsThis *cellWhatsThis = new TableWhatsThis( table );
@@ -422,7 +422,7 @@ Instances of the two WhatsThis subclasses are created for the
headers and the table. What's This? help is also added for the
menu items.
<pre> // connections
- <a href="tqobject.html#connect">connect</a>( assistantButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(assistantSlot()) );
+ <a href="tqobject.html#connect">connect</a>( assistantButton, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(assistantSlot()) );
<a href="tqobject.html#connect">connect</a>( horizontalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="tqstring.html">TQString</a>&amp;)), assistant,
TQ_SLOT(<a href="ntqassistantclient.html#showPage">showPage</a>(const <a href="tqstring.html">TQString</a>&amp;)) );
<a href="tqobject.html#connect">connect</a>( verticalWhatsThis, TQ_SIGNAL(linkClicked(const <a href="tqstring.html">TQString</a>&amp;)), assistant,