summaryrefslogtreecommitdiffstats
path: root/doc/html/progressbar-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/progressbar-example.html')
-rw-r--r--doc/html/progressbar-example.html52
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/progressbar-example.html b/doc/html/progressbar-example.html
index ade0aaa17..54a1e21ff 100644
--- a/doc/html/progressbar-example.html
+++ b/doc/html/progressbar-example.html
@@ -49,14 +49,14 @@ This example shows how to use a progress bar.
#ifndef PROGRESSBAR_H
#define PROGRESSBAR_H
-#include &lt;<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>&gt;
+#include &lt;<a href="tqbuttongroup-h.html">tqbuttongroup.h</a>&gt;
#include &lt;<a href="tqtimer-h.html">tqtimer.h</a>&gt;
class TQRadioButton;
class TQPushButton;
class TQProgressBar;
-class ProgressBar : public <a href="ntqbuttongroup.html">TQButtonGroup</a>
+class ProgressBar : public <a href="tqbuttongroup.html">TQButtonGroup</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
@@ -66,7 +66,7 @@ public:
protected:
<a href="tqradiobutton.html">TQRadioButton</a> *slow, *normal, *fast;
<a href="tqpushbutton.html">TQPushButton</a> *start, *pause, *reset;
- <a href="ntqprogressbar.html">TQProgressBar</a> *progress;
+ <a href="tqprogressbar.html">TQProgressBar</a> *progress;
<a href="tqtimer.html">TQTimer</a> timer;
protected slots:
@@ -95,7 +95,7 @@ protected slots:
#include &lt;<a href="tqradiobutton-h.html">tqradiobutton.h</a>&gt;
#include &lt;<a href="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
-#include &lt;<a href="qprogressbar-h.html">ntqprogressbar.h</a>&gt;
+#include &lt;<a href="tqprogressbar-h.html">tqprogressbar.h</a>&gt;
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="qmotifstyle-h.html">ntqmotifstyle.h</a>&gt;
@@ -107,13 +107,13 @@ protected slots:
*/
<a name="f346"></a>ProgressBar::ProgressBar( <a href="tqwidget.html">TQWidget</a> *parent, const char *name )
- : <a href="ntqbuttongroup.html">TQButtonGroup</a>( 0, Horizontal, "Progress Bar", parent, name ), timer()
+ : <a href="tqbuttongroup.html">TQButtonGroup</a>( 0, Horizontal, "Progress Bar", parent, name ), timer()
{
- <a href="ntqframe.html#setMargin">setMargin</a>( 10 );
+ <a href="tqframe.html#setMargin">setMargin</a>( 10 );
- <a href="qgridlayout.html">TQGridLayout</a>* toplayout = new <a href="qgridlayout.html">TQGridLayout</a>( <a href="tqwidget.html#layout">layout</a>(), 2, 2, 5);
+ <a href="tqgridlayout.html">TQGridLayout</a>* toplayout = new <a href="tqgridlayout.html">TQGridLayout</a>( <a href="tqwidget.html#layout">layout</a>(), 2, 2, 5);
- <a href="ntqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE );
+ <a href="tqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE );
// insert three radiobuttons which the user can use
// to set the speed of the progress and two pushbuttons
@@ -122,7 +122,7 @@ protected slots:
normal = new <a href="tqradiobutton.html">TQRadioButton</a>( "&amp;Normal", this );
fast = new <a href="tqradiobutton.html">TQRadioButton</a>( "&amp;Fast", this );
<a href="qvboxlayout.html">TQVBoxLayout</a>* vb1 = new <a href="qvboxlayout.html">TQVBoxLayout</a>;
-<a name="x964"></a> toplayout-&gt;<a href="qgridlayout.html#addLayout">addLayout</a>( vb1, 0, 0 );
+<a name="x964"></a> toplayout-&gt;<a href="tqgridlayout.html#addLayout">addLayout</a>( vb1, 0, 0 );
vb1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( slow );
vb1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( normal );
vb1-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( fast );
@@ -131,18 +131,18 @@ protected slots:
start = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Start", this );
reset = new <a href="tqpushbutton.html">TQPushButton</a>( "&amp;Reset", this );
<a href="qvboxlayout.html">TQVBoxLayout</a>* vb2 = new <a href="qvboxlayout.html">TQVBoxLayout</a>;
- toplayout-&gt;<a href="qgridlayout.html#addLayout">addLayout</a>( vb2, 0, 1 );
+ toplayout-&gt;<a href="tqgridlayout.html#addLayout">addLayout</a>( vb2, 0, 1 );
vb2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( start );
vb2-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( reset );
// Create the progressbar
- progress = new <a href="ntqprogressbar.html">TQProgressBar</a>( 100, this );
+ progress = new <a href="tqprogressbar.html">TQProgressBar</a>( 100, this );
<a name="x975"></a> // progress-&gt;<a href="tqwidget.html#setStyle">setStyle</a>( new <a href="ntqmotifstyle.html">TQMotifStyle</a>() );
-<a name="x965"></a> toplayout-&gt;<a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( progress, 1, 1, 0, 1 );
+<a name="x965"></a> toplayout-&gt;<a href="tqgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( progress, 1, 1, 0, 1 );
// connect the clicked() SIGNALs of the pushbuttons to SLOTs
-<a name="x962"></a> <a href="tqobject.html#connect">connect</a>( start, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotStart() ) );
- <a href="tqobject.html#connect">connect</a>( reset, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotReset() ) );
+<a name="x962"></a> <a href="tqobject.html#connect">connect</a>( start, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotStart() ) );
+ <a href="tqobject.html#connect">connect</a>( reset, TQ_SIGNAL( <a href="tqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotReset() ) );
// connect the timeout() TQ_SIGNAL of the progress-timer to a TQ_SLOT
<a href="tqobject.html#connect">connect</a>( &amp;timer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotTimeout() ) );
@@ -166,15 +166,15 @@ protected slots:
void <a name="f347"></a>ProgressBar::slotStart()
{
// If the progress bar is at the beginning...
-<a name="x966"></a> if ( progress-&gt;<a href="ntqprogressbar.html#progress">progress</a>() == -1 ) {
+<a name="x966"></a> if ( progress-&gt;<a href="tqprogressbar.html#progress">progress</a>() == -1 ) {
// ...set according to the checked speed-radiobutton
// the number of steps which are needed to complete the process
<a name="x971"></a> if ( slow-&gt;<a href="tqradiobutton.html#isChecked">isChecked</a>() )
-<a name="x969"></a> progress-&gt;<a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 10000 );
+<a name="x969"></a> progress-&gt;<a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 10000 );
else if ( normal-&gt;<a href="tqradiobutton.html#isChecked">isChecked</a>() )
- progress-&gt;<a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 1000 );
+ progress-&gt;<a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 1000 );
else
- progress-&gt;<a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 50 );
+ progress-&gt;<a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 50 );
// disable the speed-radiobuttons
<a name="x973"></a> slow-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
@@ -187,12 +187,12 @@ void <a name="f347"></a>ProgressBar::slotStart()
// ...start the timer (and so the progress) with a interval of 1 ms...
timer.start( 1 );
// ...and rename the start/pause/continue button to Pause
-<a name="x963"></a> start-&gt;<a href="ntqbutton.html#setText">setText</a>( "&amp;Pause" );
+<a name="x963"></a> start-&gt;<a href="tqbutton.html#setText">setText</a>( "&amp;Pause" );
} else { // if the prgress is running...
// ...stop the timer (and so the prgress)...
timer.stop();
// ...and rename the start/pause/continue button to Continue
- start-&gt;<a href="ntqbutton.html#setText">setText</a>( "&amp;Continue" );
+ start-&gt;<a href="tqbutton.html#setText">setText</a>( "&amp;Continue" );
}
}
@@ -208,7 +208,7 @@ void <a name="f348"></a>ProgressBar::slotReset()
timer.stop();
// rename the start/pause/continue button to Start...
- start-&gt;<a href="ntqbutton.html#setText">setText</a>( "&amp;Start" );
+ start-&gt;<a href="tqbutton.html#setText">setText</a>( "&amp;Start" );
// ...and enable this button
start-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE );
@@ -218,7 +218,7 @@ void <a name="f348"></a>ProgressBar::slotReset()
fast-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE );
// reset the progressbar
-<a name="x967"></a> progress-&gt;<a href="ntqprogressbar.html#reset">reset</a>();
+<a name="x967"></a> progress-&gt;<a href="tqprogressbar.html#reset">reset</a>();
}
/*
@@ -230,13 +230,13 @@ void <a name="f348"></a>ProgressBar::slotReset()
void <a name="f349"></a>ProgressBar::slotTimeout()
{
- int p = progress-&gt;<a href="ntqprogressbar.html#progress">progress</a>();
+ int p = progress-&gt;<a href="tqprogressbar.html#progress">progress</a>();
#if 1
// If the progress is complete...
-<a name="x970"></a> if ( p == progress-&gt;<a href="ntqprogressbar.html#totalSteps">totalSteps</a>() ) {
+<a name="x970"></a> if ( p == progress-&gt;<a href="tqprogressbar.html#totalSteps">totalSteps</a>() ) {
// ...rename the start/pause/continue button to Start...
- start-&gt;<a href="ntqbutton.html#setText">setText</a>( "&amp;Start" );
+ start-&gt;<a href="tqbutton.html#setText">setText</a>( "&amp;Start" );
// ...and disable it...
start-&gt;<a href="tqwidget.html#setEnabled">setEnabled</a>( FALSE );
// ...and return
@@ -245,7 +245,7 @@ void <a name="f349"></a>ProgressBar::slotTimeout()
#endif
// If the process is not complete increase it
-<a name="x968"></a> progress-&gt;<a href="ntqprogressbar.html#setProgress">setProgress</a>( ++p );
+<a name="x968"></a> progress-&gt;<a href="tqprogressbar.html#setProgress">setProgress</a>( ++p );
}
</pre>