diff options
Diffstat (limited to 'doc/html/progress-example.html')
-rw-r--r-- | doc/html/progress-example.html | 68 |
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 <<a href="qprogressdialog-h.html">ntqprogressdialog.h</a>> #include <<a href="qapplication-h.html">ntqapplication.h</a>> -#include <<a href="qmenubar-h.html">ntqmenubar.h</a>> -#include <<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>> +#include <<a href="tqmenubar-h.html">tqmenubar.h</a>> +#include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qpainter-h.html">ntqpainter.h</a>> #include <stdlib.h> @@ -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-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&File", file ); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", file ); for (int i=first_draw_item; i<=last_draw_item; i++) - file-><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-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); + file-><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-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + file-><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-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Options", options ); - td_id = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, TQ_SLOT(timerDriven()) ); - ld_id = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, TQ_SLOT(loopDriven()) ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - dl_id = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Default label", this, TQ_SLOT(defaultLabel()) ); - cl_id = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) ); - options-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - md_id = options-><a href="ntqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) ); -<a name="x81"></a> options-><a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); + menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&Options", options ); + td_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, TQ_SLOT(timerDriven()) ); + ld_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, TQ_SLOT(loopDriven()) ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + dl_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Default label", this, TQ_SLOT(defaultLabel()) ); + cl_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "Custom label", this, TQ_SLOT(customLabel()) ); + options-><a href="tqmenudata.html#insertSeparator">insertSeparator</a>(); + md_id = options-><a href="tqmenudata.html#insertItem">insertItem</a>( "No minimum duration", this, TQ_SLOT(toggleMinimumDuration()) ); +<a name="x81"></a> options-><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-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE ); +<a name="x71"></a> options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, TRUE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, FALSE ); } void loopDriven() { timer_driven = FALSE; - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( ld_id, TRUE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( td_id, FALSE ); } void defaultLabel() { default_label = TRUE; - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, TRUE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, FALSE ); } void customLabel() { default_label = FALSE; - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE ); - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( dl_id, FALSE ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( cl_id, TRUE ); } void toggleMinimumDuration() { - options-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( md_id, -<a name="x70"></a> !options-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) ); + options-><a href="tqmenudata.html#setItemChecked">setItemChecked</a>( md_id, +<a name="x70"></a> !options-><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-><a href="ntqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) ) + if ( options-><a href="tqmenudata.html#isItemChecked">isItemChecked</a>( md_id ) ) <a name="x84"></a> d-><a href="ntqprogressdialog.html#setMinimumDuration">setMinimumDuration</a>(0); if ( !default_label ) <a name="x83"></a> d-><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<=last_draw_item; i++) { -<a name="x72"></a> menubar-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>(i, yes); +<a name="x72"></a> menubar-><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; |