summaryrefslogtreecommitdiffstats
path: root/doc/html/progress-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/progress-example.html')
-rw-r--r--doc/html/progress-example.html68
1 files changed, 34 insertions, 34 deletions
diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html
index 63e026ee7..a2e8ee3b5 100644
--- a/doc/html/progress-example.html
+++ b/doc/html/progress-example.html
@@ -50,8 +50,8 @@ demonstrates simple use of menus.
#include &lt;<a href="qprogressdialog-h.html">ntqprogressdialog.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -86,7 +86,7 @@ public:
killTimers();
}
- <a href="ntqsize.html">TQSize</a> sizeHint() const
+ <a href="tqsize.html">TQSize</a> sizeHint() const
{
return TQSize(120,100);
}
@@ -182,29 +182,29 @@ public:
CPUWaster() :
pb(0)
{
- menubar = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" );
+ menubar = new <a href="tqmenubar.html">TQMenuBar</a>( this, "menu" );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menubar );
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* file = new <a href="tqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
for (int i=first_draw_item; i&lt;=last_draw_item; i++)
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( drawItemText(i), i );
-<a name="x67"></a> connect( menubar, TQ_SIGNAL(<a href="ntqmenubar.html#activated">activated</a>(int)), this, TQ_SLOT(doMenuItem(int)) );
-<a name="x69"></a> file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( drawItemText(i), i );
+<a name="x67"></a> connect( menubar, TQ_SIGNAL(<a href="tqmenubar.html#activated">activated</a>(int)), this, TQ_SLOT(doMenuItem(int)) );
+<a name="x69"></a> file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
- options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
+ options = new <a href="tqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
- td_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, TQ_SLOT(timerDriven()) );
- ld_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, TQ_SLOT(loopDriven()) );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- dl_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Default label", this, TQ_SLOT(defaultLabel()) );
- cl_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) );
- options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- md_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) );
-<a name="x81"></a> options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
+ td_id = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, TQ_SLOT(timerDriven()) );
+ ld_id = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, TQ_SLOT(loopDriven()) );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ dl_id = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Default label", this, TQ_SLOT(defaultLabel()) );
+ cl_id = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) );
+ options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ md_id = options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) );
+<a name="x81"></a> options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
loopDriven();
defaultLabel();
@@ -225,35 +225,35 @@ public slots:
void timerDriven()
{
timer_driven = TRUE;
-<a name="x71"></a> options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE );
+<a name="x71"></a> options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE );
}
void loopDriven()
{
timer_driven = FALSE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE );
}
void defaultLabel()
{
default_label = TRUE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE );
}
void customLabel()
{
default_label = FALSE;
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE );
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE );
}
void toggleMinimumDuration()
{
- options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( md_id,
-<a name="x70"></a> !options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) );
+ options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( md_id,
+<a name="x70"></a> !options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) );
}
private:
@@ -295,7 +295,7 @@ private:
{
<a href="ntqprogressdialog.html">TQProgressDialog</a> *d = new <a href="ntqprogressdialog.html">TQProgressDialog</a>(label, "Cancel", steps, this,
"progress", modal);
- if ( options-&gt;<a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) )
+ if ( options-&gt;<a href="tqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) )
<a name="x84"></a> d-&gt;<a href="ntqprogressdialog.html#setMinimumDuration">setMinimumDuration</a>(0);
if ( !default_label )
<a name="x83"></a> d-&gt;<a href="ntqprogressdialog.html#setLabel">setLabel</a>( new AnimatedThingy(d,label) );
@@ -305,7 +305,7 @@ private:
void enableDrawingItems(bool yes)
{
for (int i=first_draw_item; i&lt;=last_draw_item; i++) {
-<a name="x72"></a> menubar-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>(i, yes);
+<a name="x72"></a> menubar-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>(i, yes);
}
}
@@ -349,9 +349,9 @@ private:
}
}
- <a href="ntqmenubar.html">TQMenuBar</a>* menubar;
+ <a href="tqmenubar.html">TQMenuBar</a>* menubar;
<a href="ntqprogressdialog.html">TQProgressDialog</a>* pb;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* options;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* options;
int td_id, ld_id;
int dl_id, cl_id;
int md_id;