diff options
author | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/buttongroups-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/buttongroups-example.html')
-rw-r--r-- | doc/html/buttongroups-example.html | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/doc/html/buttongroups-example.html b/doc/html/buttongroups-example.html index 71fc0fee9..a6937c542 100644 --- a/doc/html/buttongroups-example.html +++ b/doc/html/buttongroups-example.html @@ -50,21 +50,21 @@ different kinds of buttons (checkboxes, radiobuttons, pushbuttons, etc.). #ifndef BUTTONS_GROUPS_H #define BUTTONS_GROUPS_H -#include <<a href="qwidget-h.html">qwidget.h</a>> +#include <<a href="qwidget-h.html">ntqwidget.h</a>> class TQCheckBox; class TQRadioButton; -class ButtonsGroups : public <a href="qwidget.html">TQWidget</a> +class ButtonsGroups : public <a href="ntqwidget.html">TQWidget</a> { <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> public: - ButtonsGroups( <a href="qwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); + ButtonsGroups( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); protected: - <a href="qcheckbox.html">TQCheckBox</a> *state; - <a href="qradiobutton.html">TQRadioButton</a> *rb21, *rb22, *rb23; + <a href="ntqcheckbox.html">TQCheckBox</a> *state; + <a href="ntqradiobutton.html">TQRadioButton</a> *rb21, *rb22, *rb23; protected slots: void slotChangeGrp3State(); @@ -88,13 +88,13 @@ protected slots: #include "buttongroups.h" -#include <<a href="qpopupmenu-h.html">qpopupmenu.h</a>> -#include <<a href="qbuttongroup-h.html">qbuttongroup.h</a>> -#include <<a href="qlayout-h.html">qlayout.h</a>> -#include <<a href="qradiobutton-h.html">qradiobutton.h</a>> -#include <<a href="qcheckbox-h.html">qcheckbox.h</a>> -#include <<a href="qgroupbox-h.html">qgroupbox.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> +#include <<a href="qpopupmenu-h.html">ntqpopupmenu.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="qgroupbox-h.html">ntqgroupbox.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> /* * Constructor @@ -102,8 +102,8 @@ protected slots: * Creates all child widgets of the ButtonGroups window */ -<a name="f261"></a>ButtonsGroups::ButtonsGroups( <a href="qwidget.html">TQWidget</a> *parent, const char *name ) - : <a href="qwidget.html">TQWidget</a>( parent, name ) +<a name="f261"></a>ButtonsGroups::ButtonsGroups( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) + : <a href="ntqwidget.html">TQWidget</a>( parent, name ) { // Create Widgets which allow easy layouting <a href="qvboxlayout.html">TQVBoxLayout</a> *vbox = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 11, 6 ); @@ -113,76 +113,76 @@ protected slots: // ------- first group // Create an exclusive button group - <a href="qbuttongroup.html">TQButtonGroup</a> *bgrp1 = new <a href="qbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 1 (exclusive)", this); + <a href="ntqbuttongroup.html">TQButtonGroup</a> *bgrp1 = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 1 (exclusive)", this); box1-><a href="qboxlayout.html#addWidget">addWidget</a>( bgrp1 ); -<a name="x549"></a> bgrp1-><a href="qbuttongroup.html#setExclusive">setExclusive</a>( TRUE ); +<a name="x549"></a> bgrp1-><a href="ntqbuttongroup.html#setExclusive">setExclusive</a>( TRUE ); // insert 3 radiobuttons - <a href="qradiobutton.html">TQRadioButton</a> *rb11 = new <a href="qradiobutton.html">TQRadioButton</a>( "&Radiobutton 1", bgrp1 ); -<a name="x559"></a> rb11-><a href="qradiobutton.html#setChecked">setChecked</a>( TRUE ); - (void)new <a href="qradiobutton.html">TQRadioButton</a>( "R&adiobutton 2", bgrp1 ); - (void)new <a href="qradiobutton.html">TQRadioButton</a>( "Ra&diobutton 3", bgrp1 ); + <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 ); // ------- second group // Create a non-exclusive buttongroup - <a href="qbuttongroup.html">TQButtonGroup</a> *bgrp2 = new <a href="qbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 2 (non-exclusive)", this ); + <a href="ntqbuttongroup.html">TQButtonGroup</a> *bgrp2 = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 2 (non-exclusive)", this ); box1-><a href="qboxlayout.html#addWidget">addWidget</a>( bgrp2 ); - bgrp2-><a href="qbuttongroup.html#setExclusive">setExclusive</a>( FALSE ); + bgrp2-><a href="ntqbuttongroup.html#setExclusive">setExclusive</a>( FALSE ); // insert 3 checkboxes - (void)new <a href="qcheckbox.html">TQCheckBox</a>( "&Checkbox 1", bgrp2 ); - <a href="qcheckbox.html">TQCheckBox</a> *cb12 = new <a href="qcheckbox.html">TQCheckBox</a>( "C&heckbox 2", bgrp2 ); -<a name="x552"></a> cb12-><a href="qcheckbox.html#setChecked">setChecked</a>( TRUE ); - <a href="qcheckbox.html">TQCheckBox</a> *cb13 = new <a href="qcheckbox.html">TQCheckBox</a>( "Triple &State Button", bgrp2 ); -<a name="x553"></a> cb13-><a href="qcheckbox.html#setTristate">setTristate</a>( TRUE ); - cb13-><a href="qcheckbox.html#setChecked">setChecked</a>( TRUE ); + (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 ); // ------------ third group // create a buttongroup which is exclusive for radiobuttons and non-exclusive for all other buttons - <a href="qbuttongroup.html">TQButtonGroup</a> *bgrp3 = new <a href="qbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 3 (Radiobutton-exclusive)", this ); + <a href="ntqbuttongroup.html">TQButtonGroup</a> *bgrp3 = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Button Group 3 (Radiobutton-exclusive)", this ); box2-><a href="qboxlayout.html#addWidget">addWidget</a>( bgrp3 ); -<a name="x550"></a> bgrp3-><a href="qbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE ); +<a name="x550"></a> bgrp3-><a href="ntqbuttongroup.html#setRadioButtonExclusive">setRadioButtonExclusive</a>( TRUE ); // insert three radiobuttons - rb21 = new <a href="qradiobutton.html">TQRadioButton</a>( "Rad&iobutton 1", bgrp3 ); - rb22 = new <a href="qradiobutton.html">TQRadioButton</a>( "Radi&obutton 2", bgrp3 ); - rb23 = new <a href="qradiobutton.html">TQRadioButton</a>( "Radio&button 3", bgrp3 ); - rb23-><a href="qradiobutton.html#setChecked">setChecked</a>( TRUE ); + 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 ); // insert a checkbox... - state = new <a href="qcheckbox.html">TQCheckBox</a>( "E&nable Radiobuttons", bgrp3 ); - state-><a href="qcheckbox.html#setChecked">setChecked</a>( TRUE ); + state = new <a href="ntqcheckbox.html">TQCheckBox</a>( "E&nable Radiobuttons", bgrp3 ); + state-><a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE ); // ...and connect its SIGNAL clicked() with the SLOT slotChangeGrp3State() - <a href="qobject.html#connect">connect</a>( state, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( slotChangeGrp3State() ) ); + <a href="ntqobject.html#connect">connect</a>( state, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( slotChangeGrp3State() ) ); // ------------ fourth group // create a groupbox which layouts its childs in a columns - <a href="qgroupbox.html">TQGroupBox</a> *bgrp4 = new <a href="qbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Groupbox with normal buttons", this ); + <a href="ntqgroupbox.html">TQGroupBox</a> *bgrp4 = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Groupbox with normal buttons", this ); box2-><a href="qboxlayout.html#addWidget">addWidget</a>( bgrp4 ); // insert four pushbuttons... - (void)new <a href="qpushbutton.html">TQPushButton</a>( "&Push Button", bgrp4, "push" ); + (void)new <a href="ntqpushbutton.html">TQPushButton</a>( "&Push Button", bgrp4, "push" ); // now make the second one a toggle button - <a href="qpushbutton.html">TQPushButton</a> *tb2 = new <a href="qpushbutton.html">TQPushButton</a>( "&Toggle Button", bgrp4, "toggle" ); -<a name="x558"></a> tb2-><a href="qpushbutton.html#setToggleButton">setToggleButton</a>( TRUE ); -<a name="x556"></a> tb2-><a href="qpushbutton.html#setOn">setOn</a>( TRUE ); + <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 ); // ... and make the third one a flat button - <a href="qpushbutton.html">TQPushButton</a> *tb3 = new <a href="qpushbutton.html">TQPushButton</a>( "&Flat Button", bgrp4, "flat" ); -<a name="x555"></a> tb3-><a href="qpushbutton.html#setFlat">setFlat</a>(TRUE); + <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); // .. and the fourth a button with a menu - <a href="qpushbutton.html">TQPushButton</a> *tb4 = new <a href="qpushbutton.html">TQPushButton</a>( "Popup Button", bgrp4, "popup" ); - <a href="qpopupmenu.html">TQPopupMenu</a> *menu = new <a href="qpopupmenu.html">TQPopupMenu</a>(tb4); - menu-><a href="qmenudata.html#insertItem">insertItem</a>("Item1", 0); - menu-><a href="qmenudata.html#insertItem">insertItem</a>("Item2", 1); - menu-><a href="qmenudata.html#insertItem">insertItem</a>("Item3", 2); - menu-><a href="qmenudata.html#insertItem">insertItem</a>("Item4", 3); -<a name="x557"></a> tb4-><a href="qpushbutton.html#setPopup">setPopup</a>(menu); + <a href="ntqpushbutton.html">TQPushButton</a> *tb4 = new <a href="ntqpushbutton.html">TQPushButton</a>( "Popup Button", bgrp4, "popup" ); + <a href="ntqpopupmenu.html">TQPopupMenu</a> *menu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(tb4); + menu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Item1", 0); + menu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Item2", 1); + menu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Item3", 2); + menu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Item4", 3); +<a name="x557"></a> tb4-><a href="ntqpushbutton.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="qwidget.html#setEnabled">setEnabled</a>( state-><a href="qcheckbox.html#isChecked">isChecked</a>() ); - rb22-><a href="qwidget.html#setEnabled">setEnabled</a>( state-><a href="qcheckbox.html#isChecked">isChecked</a>() ); - rb23-><a href="qwidget.html#setEnabled">setEnabled</a>( state-><a href="qcheckbox.html#isChecked">isChecked</a>() ); +<a name="x560"></a><a name="x551"></a> rb21-><a href="ntqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); + rb22-><a href="ntqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); + rb23-><a href="ntqwidget.html#setEnabled">setEnabled</a>( state-><a href="ntqcheckbox.html#isChecked">isChecked</a>() ); } </pre> @@ -212,19 +212,19 @@ void <a name="f262"></a>ButtonsGroups::slotChangeGrp3State() *****************************************************************************/ #include "buttongroups.h" -#include <<a href="qapplication-h.html">qapplication.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> a( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> a( argc, argv ); ButtonsGroups buttonsgroups; - buttonsgroups.<a href="qwidget.html#resize">resize</a>( 500, 250 ); - buttonsgroups.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Buttongroups" ); - a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &buttonsgroups ); - buttonsgroups.<a href="qwidget.html#show">show</a>(); + buttonsgroups.<a href="ntqwidget.html#resize">resize</a>( 500, 250 ); + buttonsgroups.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Buttongroups" ); + a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &buttonsgroups ); + buttonsgroups.<a href="ntqwidget.html#show">show</a>(); - return a.<a href="qapplication.html#exec">exec</a>(); + return a.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |