diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 | 
| commit | 42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch) | |
| tree | 0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/html/progressbar-example.html | |
| parent | fef846914f8db6dc117e206ef913d519bf6bb33e (diff) | |
| download | tqt-42957a3f.tar.gz tqt-42957a3f.zip | |
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/progressbar-example.html')
| -rw-r--r-- | doc/html/progressbar-example.html | 52 | 
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 <<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>> +#include <<a href="tqbuttongroup-h.html">tqbuttongroup.h</a>>  #include <<a href="tqtimer-h.html">tqtimer.h</a>>  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 <<a href="tqradiobutton-h.html">tqradiobutton.h</a>>  #include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> -#include <<a href="qprogressbar-h.html">ntqprogressbar.h</a>> +#include <<a href="tqprogressbar-h.html">tqprogressbar.h</a>>  #include <<a href="qlayout-h.html">ntqlayout.h</a>>  #include <<a href="qmotifstyle-h.html">ntqmotifstyle.h</a>> @@ -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>( "&Normal", this );      fast = new <a href="tqradiobutton.html">TQRadioButton</a>( "&Fast", this );      <a href="qvboxlayout.html">TQVBoxLayout</a>* vb1 = new <a href="qvboxlayout.html">TQVBoxLayout</a>; -<a name="x964"></a>    toplayout-><a href="qgridlayout.html#addLayout">addLayout</a>( vb1, 0, 0 ); +<a name="x964"></a>    toplayout-><a href="tqgridlayout.html#addLayout">addLayout</a>( vb1, 0, 0 );      vb1-><a href="qboxlayout.html#addWidget">addWidget</a>( slow );      vb1-><a href="qboxlayout.html#addWidget">addWidget</a>( normal );      vb1-><a href="qboxlayout.html#addWidget">addWidget</a>( fast ); @@ -131,18 +131,18 @@ protected slots:      start = new <a href="tqpushbutton.html">TQPushButton</a>( "&Start", this );      reset = new <a href="tqpushbutton.html">TQPushButton</a>( "&Reset", this );      <a href="qvboxlayout.html">TQVBoxLayout</a>* vb2 = new <a href="qvboxlayout.html">TQVBoxLayout</a>; -    toplayout-><a href="qgridlayout.html#addLayout">addLayout</a>( vb2, 0, 1 ); +    toplayout-><a href="tqgridlayout.html#addLayout">addLayout</a>( vb2, 0, 1 );      vb2-><a href="qboxlayout.html#addWidget">addWidget</a>( start );      vb2-><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-><a href="tqwidget.html#setStyle">setStyle</a>( new <a href="ntqmotifstyle.html">TQMotifStyle</a>() ); -<a name="x965"></a>    toplayout-><a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( progress, 1, 1, 0, 1 ); +<a name="x965"></a>    toplayout-><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>( &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-><a href="ntqprogressbar.html#progress">progress</a>() == -1 ) { +<a name="x966"></a>    if ( progress-><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-><a href="tqradiobutton.html#isChecked">isChecked</a>() ) -<a name="x969"></a>            progress-><a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 10000 ); +<a name="x969"></a>            progress-><a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 10000 );          else if ( normal-><a href="tqradiobutton.html#isChecked">isChecked</a>() ) -            progress-><a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 1000 ); +            progress-><a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 1000 );          else -            progress-><a href="ntqprogressbar.html#setTotalSteps">setTotalSteps</a>( 50 ); +            progress-><a href="tqprogressbar.html#setTotalSteps">setTotalSteps</a>( 50 );          // disable the speed-radiobuttons  <a name="x973"></a>        slow-><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-><a href="ntqbutton.html#setText">setText</a>( "&Pause" ); +<a name="x963"></a>        start-><a href="tqbutton.html#setText">setText</a>( "&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-><a href="ntqbutton.html#setText">setText</a>( "&Continue" ); +        start-><a href="tqbutton.html#setText">setText</a>( "&Continue" );      }  } @@ -208,7 +208,7 @@ void <a name="f348"></a>ProgressBar::slotReset()      timer.stop();      // rename the start/pause/continue button to Start... -    start-><a href="ntqbutton.html#setText">setText</a>( "&Start" ); +    start-><a href="tqbutton.html#setText">setText</a>( "&Start" );      // ...and enable this button      start-><a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE ); @@ -218,7 +218,7 @@ void <a name="f348"></a>ProgressBar::slotReset()      fast-><a href="tqwidget.html#setEnabled">setEnabled</a>( TRUE );      // reset the progressbar -<a name="x967"></a>    progress-><a href="ntqprogressbar.html#reset">reset</a>(); +<a name="x967"></a>    progress-><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-><a href="ntqprogressbar.html#progress">progress</a>(); +    int p = progress-><a href="tqprogressbar.html#progress">progress</a>();  #if 1      // If the progress is complete... -<a name="x970"></a>    if ( p == progress-><a href="ntqprogressbar.html#totalSteps">totalSteps</a>() )  { +<a name="x970"></a>    if ( p == progress-><a href="tqprogressbar.html#totalSteps">totalSteps</a>() )  {          // ...rename the start/pause/continue button to Start... -        start-><a href="ntqbutton.html#setText">setText</a>( "&Start" ); +        start-><a href="tqbutton.html#setText">setText</a>( "&Start" );          // ...and disable it...          start-><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-><a href="ntqprogressbar.html#setProgress">setProgress</a>( ++p ); +<a name="x968"></a>    progress-><a href="tqprogressbar.html#setProgress">setProgress</a>( ++p );  }  </pre> | 
