diff options
Diffstat (limited to 'doc/html/buttongroups-example.html')
-rw-r--r-- | doc/html/buttongroups-example.html | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index c9b50d912..5f9937544 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -63,8 +63,8 @@ public: ButtonsGroups( <a href="tqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); protected: - <a href="ntqcheckbox.html">TQCheckBox</a> *state; - <a href="ntqradiobutton.html">TQRadioButton</a> *rb21, *rb22, *rb23; + <a href="tqcheckbox.html">TQCheckBox</a> *state; + <a href="tqradiobutton.html">TQRadioButton</a> *rb21, *rb22, *rb23; protected slots: void slotChangeGrp3State(); @@ -91,10 +91,10 @@ protected slots: #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> #include <<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>> #include <<a href="qlayout-h.html">ntqlayout.h</a>> -#include <<a href="qradiobutton-h.html">ntqradiobutton.h</a>> -#include <<a href="qcheckbox-h.html">ntqcheckbox.h</a>> +#include <<a href="tqradiobutton-h.html">tqradiobutton.h</a>> +#include <<a href="tqcheckbox-h.html">tqcheckbox.h</a>> #include <<a href="qgroupbox-h.html">ntqgroupbox.h</a>> -#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> /* * Constructor @@ -118,10 +118,10 @@ protected slots: <a name="x549"></a> bgrp1-><a href="ntqbuttongroup.html#setExclusive">setExclusive</a>( TRUE ); // insert 3 radiobuttons - <a href="ntqradiobutton.html">TQRadioButton</a> *rb11 = new <a href="ntqradiobutton.html">TQRadioButton</a>( "&Radiobutton 1", bgrp1 ); -<a name="x559"></a> rb11-><a href="ntqradiobutton.html#setChecked">setChecked</a>( TRUE ); - (void)new <a href="ntqradiobutton.html">TQRadioButton</a>( "R&adiobutton 2", bgrp1 ); - (void)new <a href="ntqradiobutton.html">TQRadioButton</a>( "Ra&diobutton 3", bgrp1 ); + <a href="tqradiobutton.html">TQRadioButton</a> *rb11 = new <a href="tqradiobutton.html">TQRadioButton</a>( "&Radiobutton 1", bgrp1 ); +<a name="x559"></a> rb11-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); + (void)new <a href="tqradiobutton.html">TQRadioButton</a>( "R&adiobutton 2", bgrp1 ); + (void)new <a href="tqradiobutton.html">TQRadioButton</a>( "Ra&diobutton 3", bgrp1 ); // ------- second group @@ -131,12 +131,12 @@ protected slots: bgrp2-><a href="ntqbuttongroup.html#setExclusive">setExclusive</a>( FALSE ); // insert 3 checkboxes - (void)new <a href="ntqcheckbox.html">TQCheckBox</a>( "&Checkbox 1", bgrp2 ); - <a href="ntqcheckbox.html">TQCheckBox</a> *cb12 = new <a href="ntqcheckbox.html">TQCheckBox</a>( "C&heckbox 2", bgrp2 ); -<a name="x552"></a> cb12-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); - <a href="ntqcheckbox.html">TQCheckBox</a> *cb13 = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Triple &State Button", bgrp2 ); -<a name="x553"></a> cb13-><a href="ntqcheckbox.html#setTristate">setTristate</a>( TRUE ); - cb13-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); + (void)new <a href="tqcheckbox.html">TQCheckBox</a>( "&Checkbox 1", bgrp2 ); + <a href="tqcheckbox.html">TQCheckBox</a> *cb12 = new <a href="tqcheckbox.html">TQCheckBox</a>( "C&heckbox 2", bgrp2 ); +<a name="x552"></a> cb12-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); + <a href="tqcheckbox.html">TQCheckBox</a> *cb13 = new <a href="tqcheckbox.html">TQCheckBox</a>( "Triple &State Button", bgrp2 ); +<a name="x553"></a> cb13-><a href="tqcheckbox.html#setTristate">setTristate</a>( TRUE ); + cb13-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); // ------------ third group @@ -146,14 +146,14 @@ protected slots: <a name="x550"></a> bgrp3-><a href="ntqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE ); // insert three radiobuttons - rb21 = new <a href="ntqradiobutton.html">TQRadioButton</a>( "Rad&iobutton 1", bgrp3 ); - rb22 = new <a href="ntqradiobutton.html">TQRadioButton</a>( "Radi&obutton 2", bgrp3 ); - rb23 = new <a href="ntqradiobutton.html">TQRadioButton</a>( "Radio&button 3", bgrp3 ); - rb23-><a href="ntqradiobutton.html#setChecked">setChecked</a>( TRUE ); + rb21 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Rad&iobutton 1", bgrp3 ); + rb22 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Radi&obutton 2", bgrp3 ); + rb23 = new <a href="tqradiobutton.html">TQRadioButton</a>( "Radio&button 3", bgrp3 ); + rb23-><a href="tqradiobutton.html#setChecked">setChecked</a>( TRUE ); // insert a checkbox... - state = new <a href="ntqcheckbox.html">TQCheckBox</a>( "E&nable Radiobuttons", bgrp3 ); - state-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); + state = new <a href="tqcheckbox.html">TQCheckBox</a>( "E&nable Radiobuttons", bgrp3 ); + state-><a href="tqcheckbox.html#setChecked">setChecked</a>( TRUE ); // ...and connect its TQ_SIGNAL clicked() with the TQ_SLOT slotChangeGrp3State() <a href="tqobject.html#connect">connect</a>( state, TQ_SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, TQ_SLOT( slotChangeGrp3State() ) ); @@ -164,25 +164,25 @@ protected slots: box2-><a href="qboxlayout.html#addWidget">addWidget</a>( bgrp4 ); // insert four pushbuttons... - (void)new <a href="ntqpushbutton.html">TQPushButton</a>( "&Push Button", bgrp4, "push" ); + (void)new <a href="tqpushbutton.html">TQPushButton</a>( "&Push Button", bgrp4, "push" ); // now make the second one a toggle button - <a href="ntqpushbutton.html">TQPushButton</a> *tb2 = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Toggle Button", bgrp4, "toggle" ); -<a name="x558"></a> tb2-><a href="ntqpushbutton.html#setToggleButton">setToggleButton</a>( TRUE ); -<a name="x556"></a> tb2-><a href="ntqpushbutton.html#setOn">setOn</a>( TRUE ); + <a href="tqpushbutton.html">TQPushButton</a> *tb2 = new <a href="tqpushbutton.html">TQPushButton</a>( "&Toggle Button", bgrp4, "toggle" ); +<a name="x558"></a> tb2-><a href="tqpushbutton.html#setToggleButton">setToggleButton</a>( TRUE ); +<a name="x556"></a> tb2-><a href="tqpushbutton.html#setOn">setOn</a>( TRUE ); // ... and make the third one a flat button - <a href="ntqpushbutton.html">TQPushButton</a> *tb3 = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Flat Button", bgrp4, "flat" ); -<a name="x555"></a> tb3-><a href="ntqpushbutton.html#setFlat">setFlat</a>(TRUE); + <a href="tqpushbutton.html">TQPushButton</a> *tb3 = new <a href="tqpushbutton.html">TQPushButton</a>( "&Flat Button", bgrp4, "flat" ); +<a name="x555"></a> tb3-><a href="tqpushbutton.html#setFlat">setFlat</a>(TRUE); // .. and the fourth a button with a menu - <a href="ntqpushbutton.html">TQPushButton</a> *tb4 = new <a href="ntqpushbutton.html">TQPushButton</a>( "Popup Button", bgrp4, "popup" ); + <a href="tqpushbutton.html">TQPushButton</a> *tb4 = new <a href="tqpushbutton.html">TQPushButton</a>( "Popup Button", bgrp4, "popup" ); <a href="tqpopupmenu.html">TQPopupMenu</a> *menu = new <a href="tqpopupmenu.html">TQPopupMenu</a>(tb4); menu-><a href="tqmenudata.html#insertItem">insertItem</a>("Item1", 0); menu-><a href="tqmenudata.html#insertItem">insertItem</a>("Item2", 1); menu-><a href="tqmenudata.html#insertItem">insertItem</a>("Item3", 2); menu-><a href="tqmenudata.html#insertItem">insertItem</a>("Item4", 3); -<a name="x557"></a> tb4-><a href="ntqpushbutton.html#setPopup">setPopup</a>(menu); +<a name="x557"></a> tb4-><a href="tqpushbutton.html#setPopup">setPopup</a>(menu); } /* @@ -193,9 +193,9 @@ protected slots: void <a name="f262"></a>ButtonsGroups::slotChangeGrp3State() { -<a name="x560"></a><a name="x551"></a> rb21-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); - rb22-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); - rb23-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); +<a name="x560"></a><a name="x551"></a> rb21-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="tqcheckbox.html#isChecked">isChecked</a>() ); + rb22-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="tqcheckbox.html#isChecked">isChecked</a>() ); + rb23-><a href="tqwidget.html#setEnabled">setEnabled</a>( state-><a href="tqcheckbox.html#isChecked">isChecked</a>() ); } </pre> |