diff options
Diffstat (limited to 'doc/man/man3/tqactiongroup.3qt')
-rw-r--r-- | doc/man/man3/tqactiongroup.3qt | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/man/man3/tqactiongroup.3qt b/doc/man/man3/tqactiongroup.3qt index 7ef50bdc9..51e564a14 100644 --- a/doc/man/man3/tqactiongroup.3qt +++ b/doc/man/man3/tqactiongroup.3qt @@ -1,5 +1,5 @@ '\" t -.TH QActionGroup 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQActionGroup 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- .\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the .\" license file included in the distribution for a complete license .\" statement. @@ -7,22 +7,22 @@ .ad l .nh .SH NAME -QActionGroup \- Groups actions together +TQActionGroup \- Groups actions together .SH SYNOPSIS -\fC#include <ntqaction.h>\fR +\fC#include <tqaction.h>\fR .PP -Inherits QAction. +Inherits TQAction. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQActionGroup\fR ( TQObject * parent, const char * name = 0 )" +.BI "\fBTQActionGroup\fR ( TQObject * parent, const char * name = 0 )" .br .ti -1c -.BI "\fBQActionGroup\fR ( TQObject * parent, const char * name, bool exclusive )" +.BI "\fBTQActionGroup\fR ( TQObject * parent, const char * name, bool exclusive )" .br .ti -1c -.BI "\fB~QActionGroup\fR ()" +.BI "\fB~TQActionGroup\fR ()" .br .ti -1c .BI "void \fBsetExclusive\fR ( bool )" @@ -31,7 +31,7 @@ Inherits QAction. .BI "bool \fBisExclusive\fR () const" .br .ti -1c -.BI "void \fBadd\fR ( QAction * action )" +.BI "void \fBadd\fR ( TQAction * action )" .br .ti -1c .BI "void \fBaddSeparator\fR ()" @@ -46,13 +46,13 @@ Inherits QAction. .BI "bool \fBusesDropDown\fR () const" .br .ti -1c -.BI "void insert ( QAction * a ) \fI(obsolete)\fR" +.BI "void insert ( TQAction * a ) \fI(obsolete)\fR" .br .in -1c .SS "Signals" .in +1c .ti -1c -.BI "void \fBselected\fR ( QAction * )" +.BI "void \fBselected\fR ( TQAction * )" .br .in -1c .SS "Properties" @@ -65,7 +65,7 @@ Inherits QAction. .br .in -1c .SH DESCRIPTION -The QActionGroup class groups actions together. +The TQActionGroup class groups actions together. .PP In some situations it is useful to group actions together. For example, if you have a left justify action, a right justify action and a center action, only one of these actions should be active at any one time, and one simple way of achieving this is to group the actions together in an action group. .PP @@ -75,16 +75,16 @@ Here's an example from examples/textedit: .PP .nf .br - QActionGroup *grp = new QActionGroup( this ); + TQActionGroup *grp = new TQActionGroup( this ); .br - connect( grp, TQ_SIGNAL( selected( QAction* ) ), this, TQ_SLOT( textAlign( QAction* ) ) ); + connect( grp, TQ_SIGNAL( selected( TQAction* ) ), this, TQ_SLOT( textAlign( TQAction* ) ) ); .fi .PP Here we create a new action group. Since the action group is exclusive by default, only one of the actions in the group is ever active at any one time. We then connect the group's selected() signal to our textAlign() slot. .PP .nf .br - actionAlignLeft = new QAction( QPixmap::fromMimeSource( "textleft.xpm" ), tr( "&Left" ), CTRL + Key_L, grp, "textLeft" ); + actionAlignLeft = new TQAction( QPixmap::fromMimeSource( "textleft.xpm" ), tr( "&Left" ), CTRL + Key_L, grp, "textLeft" ); .br actionAlignLeft->setToggleAction( TRUE ); .fi @@ -101,27 +101,27 @@ Actions can be added to an action group using add(), but normally they are added .PP See also Main Window and Related Classes and Basic Widgets. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QActionGroup::QActionGroup ( TQObject * parent, const char * name = 0 )" +.SH "TQActionGroup::TQActionGroup ( TQObject * parent, const char * name = 0 )" Constructs an action group called \fIname\fR, with parent \fIparent\fR. .PP The action group is exclusive by default. Call setExclusive(FALSE) to make the action group non-exclusive. -.SH "QActionGroup::QActionGroup ( TQObject * parent, const char * name, bool exclusive )" +.SH "TQActionGroup::TQActionGroup ( TQObject * parent, const char * name, bool exclusive )" Constructs an action group called \fIname\fR, with parent \fIparent\fR. .PP If \fIexclusive\fR is TRUE only one toggle action in the group will ever be active. .PP See also exclusive. -.SH "QActionGroup::~QActionGroup ()" +.SH "TQActionGroup::~TQActionGroup ()" Destroys the object and frees allocated resources. -.SH "void QActionGroup::add ( QAction * action )" +.SH "void TQActionGroup::add ( TQAction * action )" Adds action \fIaction\fR to this group. .PP Normally an action is added to a group by creating it with the group as parent, so this function is not usually used. .PP See also addTo(). -.SH "void QActionGroup::addSeparator ()" +.SH "void TQActionGroup::addSeparator ()" Adds a separator to the group. -.SH "bool QActionGroup::addTo ( TQWidget * w )\fC [virtual]\fR" +.SH "bool TQActionGroup::addTo ( TQWidget * w )\fC [virtual]\fR" Adds this action group to the widget \fIw\fR. .PP If isExclusive() is FALSE or usesDropDown() is FALSE, the actions within the group are added to the widget individually. For example, if the widget is a menu, the actions will appear as individual menu options, and if the widget is a toolbar, the actions will appear as toolbar buttons. @@ -134,27 +134,27 @@ See also exclusive, usesDropDown, and removeFrom(). .PP Example: themes/themes.cpp. .PP -Reimplemented from QAction. -.SH "void QActionGroup::insert ( QAction * a )" +Reimplemented from TQAction. +.SH "void TQActionGroup::insert ( TQAction * a )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Use add() instead, or better still create the action with the action group as its parent. -.SH "bool QActionGroup::isExclusive () const" +.SH "bool TQActionGroup::isExclusive () const" Returns TRUE if the action group does exclusive toggling; otherwise returns FALSE. See the "exclusive" property for details. -.SH "void QActionGroup::selected ( QAction * )\fC [signal]\fR" +.SH "void TQActionGroup::selected ( TQAction * )\fC [signal]\fR" This signal is emitted from exclusive groups when toggle actions change state. .PP The argument is the action whose state changed to "on". .PP -See also exclusive, on, and QAction::toggled(). +See also exclusive, on, and TQAction::toggled(). .PP Examples: .)l chart/chartform.cpp and textedit/textedit.cpp. -.SH "void QActionGroup::setExclusive ( bool )" +.SH "void TQActionGroup::setExclusive ( bool )" Sets whether the action group does exclusive toggling. See the "exclusive" property for details. -.SH "void QActionGroup::setUsesDropDown ( bool enable )" +.SH "void TQActionGroup::setUsesDropDown ( bool enable )" Sets whether the group's actions are displayed in a subwidget of the widgets the action group is added to to \fIenable\fR. See the "usesDropDown" property for details. -.SH "bool QActionGroup::usesDropDown () const" +.SH "bool TQActionGroup::usesDropDown () const" Returns TRUE if the group's actions are displayed in a subwidget of the widgets the action group is added to; otherwise returns FALSE. See the "usesDropDown" property for details. .SS "Property Documentation" .SH "bool exclusive" @@ -162,26 +162,26 @@ This property holds whether the action group does exclusive toggling. .PP If exclusive is TRUE only one toggle action in the action group can ever be active at any one time. If the user chooses another toggle action in the group the one they chose becomes active and the one that was active becomes inactive. .PP -See also QAction::toggleAction. +See also TQAction::toggleAction. .PP Set this property's value with setExclusive() and get this property's value with isExclusive(). .SH "bool usesDropDown" This property holds whether the group's actions are displayed in a subwidget of the widgets the action group is added to. .PP -Exclusive action groups added to a toolbar display their actions in a combobox with the action's QAction::text and QAction::iconSet properties shown. Non-exclusive groups are represented by a tool button showing their QAction::iconSet and -- depending on QMainWindow::usesTextLabel() -- text() property. +Exclusive action groups added to a toolbar display their actions in a combobox with the action's TQAction::text and TQAction::iconSet properties shown. Non-exclusive groups are represented by a tool button showing their TQAction::iconSet and -- depending on TQMainWindow::usesTextLabel() -- text() property. .PP In a popup menu the member actions are displayed in a submenu. .PP Changing usesDropDown only affects \fIsubsequent\fR calls to addTo(). .PP -Note that setting this property for actions in a combobox causes calls to their QAction::setVisible(), QAction::setEnabled(), and QAction::setDisabled() functions to have no effect. +Note that setting this property for actions in a combobox causes calls to their TQAction::setVisible(), TQAction::setEnabled(), and TQAction::setDisabled() functions to have no effect. .PP This property's default is FALSE. .PP Set this property's value with setUsesDropDown() and get this property's value with usesDropDown(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/qactiongroup.html +.BR http://doc.trolltech.com/tqactiongroup.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |