diff options
Diffstat (limited to 'doc/man/man3/tqmenudata.3qt')
-rw-r--r-- | doc/man/man3/tqmenudata.3qt | 182 |
1 files changed, 91 insertions, 91 deletions
diff --git a/doc/man/man3/tqmenudata.3qt b/doc/man/man3/tqmenudata.3qt index 6c71fdf0b..ba5de1daa 100644 --- a/doc/man/man3/tqmenudata.3qt +++ b/doc/man/man3/tqmenudata.3qt @@ -1,5 +1,5 @@ '\" t -.TH QMenuData 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- +.TH TQMenuData 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,19 +7,19 @@ .ad l .nh .SH NAME -QMenuData \- Base class for QMenuBar and QPopupMenu +TQMenuData \- Base class for TQMenuBar and TQPopupMenu .SH SYNOPSIS -\fC#include <ntqmenudata.h>\fR +\fC#include <tqmenudata.h>\fR .PP -Inherited by QMenuBar and QPopupMenu. +Inherited by TQMenuBar and TQPopupMenu. .PP .SS "Public Members" .in +1c .ti -1c -.BI "\fBQMenuData\fR ()" +.BI "\fBTQMenuData\fR ()" .br .ti -1c -.BI "virtual \fB~QMenuData\fR ()" +.BI "virtual \fB~TQMenuData\fR ()" .br .ti -1c .BI "uint \fBcount\fR () const" @@ -43,10 +43,10 @@ Inherited by QMenuBar and QPopupMenu. .BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQString & text, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQString & text, QPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQString & text, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQString & text, QPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const TQString & text, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c .BI "int \fBinsertItem\fR ( const QPixmap & pixmap, int id = -1, int index = -1 )" @@ -55,10 +55,10 @@ Inherited by QMenuBar and QPopupMenu. .BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c -.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )" +.BI "int \fBinsertItem\fR ( const TQIconSet & icon, const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" .br .ti -1c .BI "int \fBinsertItem\fR ( TQWidget * widget, int id = -1, int index = -1 )" @@ -169,10 +169,10 @@ Inherited by QMenuBar and QPopupMenu. .BI "int \fBitemParameter\fR ( int id ) const" .br .ti -1c -.BI "QMenuItem * \fBfindItem\fR ( int id ) const" +.BI "TQMenuItem * \fBfindItem\fR ( int id ) const" .br .ti -1c -.BI "QMenuItem * \fBfindItem\fR ( int id, QMenuData ** parent ) const" +.BI "TQMenuItem * \fBfindItem\fR ( int id, TQMenuData ** parent ) const" .br .ti -1c .BI "virtual void \fBactivateItemAt\fR ( int index )" @@ -187,16 +187,16 @@ Inherited by QMenuBar and QPopupMenu. .BI "virtual void \fBmenuStateChanged\fR ()" .br .ti -1c -.BI "virtual void \fBmenuInsPopup\fR ( QPopupMenu * )" +.BI "virtual void \fBmenuInsPopup\fR ( TQPopupMenu * )" .br .ti -1c -.BI "virtual void \fBmenuDelPopup\fR ( QPopupMenu * )" +.BI "virtual void \fBmenuDelPopup\fR ( TQPopupMenu * )" .br .in -1c .SH DESCRIPTION -The QMenuData class is a base class for QMenuBar and QPopupMenu. +The TQMenuData class is a base class for TQMenuBar and TQPopupMenu. .PP -QMenuData has an internal list of menu items. A menu item can have a text(), an accelerator, a pixmap(), an iconSet(), a whatsThis() text and a popup menu (unless it is a separator). Menu items may optionally be checked (except for separators). +TQMenuData has an internal list of menu items. A menu item can have a text(), an accelerator, a pixmap(), an iconSet(), a whatsThis() text and a popup menu (unless it is a separator). Menu items may optionally be checked (except for separators). .PP The menu item sends out an activated() signal when it is chosen and a highlighted() signal when it receives the user input focus. .PP @@ -208,68 +208,68 @@ Menu items can be removed with removeItem() and removeItemAt(), or changed with .PP Menu items are stored in a list. Use findItem() to find an item by its list position or by its menu identifier. (See also indexOf() and idAt().) .PP -See also QAccel, QPopupMenu, QAction, and Miscellaneous Classes. +See also QAccel, TQPopupMenu, TQAction, and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION -.SH "QMenuData::QMenuData ()" +.SH "TQMenuData::TQMenuData ()" Constructs an empty menu data list. -.SH "QMenuData::~QMenuData ()\fC [virtual]\fR" +.SH "TQMenuData::~TQMenuData ()\fC [virtual]\fR" Removes all menu items and disconnects any signals that have been connected. -.SH "QKeySequence QMenuData::accel ( int id ) const" +.SH "QKeySequence TQMenuData::accel ( int id ) const" Returns the accelerator key that has been defined for the menu item \fIid\fR, or 0 if it has no accelerator key or if there is no such menu item. .PP See also setAccel(), QAccel, and ntqnamespace.h. -.SH "void QMenuData::activateItemAt ( int index )\fC [virtual]\fR" +.SH "void TQMenuData::activateItemAt ( int index )\fC [virtual]\fR" Activates the menu item at position \fIindex\fR. .PP If the index is invalid (for example, -1), the object itself is deactivated. -.SH "void QMenuData::changeItem ( int id, const TQString & text )" +.SH "void TQMenuData::changeItem ( int id, const TQString & text )" Changes the text of the menu item \fIid\fR to \fItext\fR. If the item has an icon, the icon remains unchanged. .PP See also text(). -.SH "void QMenuData::changeItem ( int id, const QPixmap & pixmap )" +.SH "void TQMenuData::changeItem ( int id, const QPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the pixmap of the menu item \fIid\fR to the pixmap \fIpixmap\fR. If the item has an icon, the icon is unchanged. .PP See also pixmap(). -.SH "void QMenuData::changeItem ( int id, const TQIconSet & icon, const TQString & text )" +.SH "void TQMenuData::changeItem ( int id, const TQIconSet & icon, const TQString & text )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the iconset and text of the menu item \fIid\fR to the \fIicon\fR and \fItext\fR respectively. .PP See also pixmap(). -.SH "void QMenuData::changeItem ( int id, const TQIconSet & icon, const QPixmap & pixmap )" +.SH "void TQMenuData::changeItem ( int id, const TQIconSet & icon, const QPixmap & pixmap )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Changes the iconset and pixmap of the menu item \fIid\fR to \fIicon\fR and \fIpixmap\fR respectively. .PP See also pixmap(). -.SH "void QMenuData::changeItem ( const TQString & text, int id )" +.SH "void TQMenuData::changeItem ( const TQString & text, int id )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Changes the text of the menu item \fIid\fR. If the item has an icon, the icon remains unchanged. .PP See also text(). -.SH "void QMenuData::changeItem ( const QPixmap & pixmap, int id )" +.SH "void TQMenuData::changeItem ( const QPixmap & pixmap, int id )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Changes the pixmap of the menu item \fIid\fR. If the item has an icon, the icon remains unchanged. .PP See also pixmap(). -.SH "void QMenuData::changeItem ( const TQIconSet & icon, const TQString & text, int id )" +.SH "void TQMenuData::changeItem ( const TQIconSet & icon, const TQString & text, int id )" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Changes the icon and text of the menu item \fIid\fR. .PP See also pixmap(). -.SH "void QMenuData::clear ()" +.SH "void TQMenuData::clear ()" Removes all menu items. .PP See also removeItem() and removeItemAt(). .PP Examples: .)l mdi/application.cpp and qwerty/qwerty.cpp. -.SH "bool QMenuData::connectItem ( int id, const TQObject * receiver, const char * member )" +.SH "bool TQMenuData::connectItem ( int id, const TQObject * receiver, const char * member )" Connects the menu item with identifier \fIid\fR to \fIreceiver\fR's \fImember\fR slot or signal. .PP The receiver's slot (or signal) is activated when the menu item is activated. @@ -277,45 +277,45 @@ The receiver's slot (or signal) is activated when the menu item is activated. See also disconnectItem() and setItemParameter(). .PP Example: menu/menu.cpp. -.SH "uint QMenuData::count () const" +.SH "uint TQMenuData::count () const" Returns the number of items in the menu. -.SH "bool QMenuData::disconnectItem ( int id, const TQObject * receiver, const char * member )" +.SH "bool TQMenuData::disconnectItem ( int id, const TQObject * receiver, const char * member )" Disconnects the \fIreceiver\fR's \fImember\fR from the menu item with identifier \fIid\fR. .PP All connections are removed when the menu data object is destroyed. .PP See also connectItem() and setItemParameter(). -.SH "QMenuItem * QMenuData::findItem ( int id ) const" +.SH "TQMenuItem * TQMenuData::findItem ( int id ) const" Returns the menu item with identifier \fIid\fR, or 0 if there is no item with this identifier. .PP -Note that QMenuItem is an internal class, and that you should not need to call this function. Use the higher level functions like text(), pixmap() and changeItem() to get and modify menu item attributes instead. +Note that TQMenuItem is an internal class, and that you should not need to call this function. Use the higher level functions like text(), pixmap() and changeItem() to get and modify menu item attributes instead. .PP See also indexOf(). .PP Example: chart/chartform.cpp. -.SH "QMenuItem * QMenuData::findItem ( int id, QMenuData ** parent ) const" +.SH "TQMenuItem * TQMenuData::findItem ( int id, TQMenuData ** parent ) const" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns the menu item with identifier \fIid\fR, or 0 if there is no item with this identifier. Changes \fI*parent\fR to point to the parent of the return value. .PP -Note that QMenuItem is an internal class, and that you should not need to call this function. Use the higher level functions like text(), pixmap() and changeItem() to get and modify menu item attributes instead. +Note that TQMenuItem is an internal class, and that you should not need to call this function. Use the higher level functions like text(), pixmap() and changeItem() to get and modify menu item attributes instead. .PP See also indexOf(). -.SH "TQIconSet * QMenuData::iconSet ( int id ) const" +.SH "TQIconSet * TQMenuData::iconSet ( int id ) const" Returns the icon set that has been set for menu item \fIid\fR, or 0 if no icon set has been set. .PP See also changeItem(), text(), and pixmap(). -.SH "int QMenuData::idAt ( int index ) const" +.SH "int TQMenuData::idAt ( int index ) const" Returns the identifier of the menu item at position \fIindex\fR in the internal list, or -1 if \fIindex\fR is out of range. .PP See also setId() and indexOf(). -.SH "int QMenuData::indexOf ( int id ) const" +.SH "int TQMenuData::indexOf ( int id ) const" Returns the index of the menu item with identifier \fIid\fR, or -1 if there is no item with this identifier. .PP See also idAt() and findItem(). .PP Example: scrollview/scrollview.cpp. -.SH "int QMenuData::insertItem ( const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" The family of insertItem() functions inserts menu items into a popup menu or a menu bar. .PP A menu item is usually either a text string or a pixmap, both with an optional icon or keyboard accelerator. For special cases it is also possible to insert custom items (see QCustomMenuItem) or even widgets into popup menus. @@ -330,9 +330,9 @@ Example: .PP .nf .br - QMenuBar *mainMenu = new QMenuBar; + TQMenuBar *mainMenu = new TQMenuBar; .br - QPopupMenu *fileMenu = new QPopupMenu; + TQPopupMenu *fileMenu = new TQPopupMenu; .br fileMenu->insertItem( "New", myView, TQ_SLOT(newFile()), CTRL+Key_N ); .br @@ -362,7 +362,7 @@ The \fIid\fR specifies the identification number associated with the menu item. .PP The \fIindex\fR specifies the position in the menu. The menu item is appended at the end of the list if \fIindex\fR is negative. .PP -Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in QPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object. +Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object. .PP \fBWarning:\fR Be careful when passing a literal 0 to insertItem() because some C++ compilers choose the wrong overloaded function. Cast the 0 to what you mean, e.g. \fC(TQObject*)0\fR. .PP @@ -374,7 +374,7 @@ See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqn .PP Examples: .)l addressbook/mainwindow.cpp, canvas/canvas.cpp, menu/menu.cpp, qwerty/qwerty.cpp, scrollview/scrollview.cpp, showimg/showimg.cpp, and sound/sound.cpp. -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQString & text, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, text \fItext\fR, accelerator \fIaccel\fR, optional id \fIid\fR, and optional \fIindex\fR position. The menu item is connected it to the \fIreceiver\fR's \fImember\fR slot. The icon will be displayed to the left of the text in the item. @@ -382,7 +382,7 @@ Inserts a menu item with icon \fIicon\fR, text \fItext\fR, accelerator \fIaccel\ Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h. -.SH "int QMenuData::insertItem ( const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, accelerator \fIaccel\fR, optional id \fIid\fR, and optional \fIindex\fR position. The menu item is connected it to the \fIreceiver\fR's \fImember\fR slot. The icon will be displayed to the left of the text in the item. @@ -392,7 +392,7 @@ To look best when being highlighted as a menu item, the pixmap should provide a Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, const TQObject * receiver, const char * member, const QKeySequence & accel = 0, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, accelerator \fIaccel\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. The item is connected to the \fImember\fR slot in the \fIreceiver\fR object. @@ -402,7 +402,7 @@ To look best when being highlighted as a menu item, the pixmap should provide a Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), connectItem(), QAccel, and ntqnamespace.h. -.SH "int QMenuData::insertItem ( const TQString & text, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQString & text, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with text \fItext\fR, optional id \fIid\fR, and optional \fIindex\fR position. @@ -410,7 +410,7 @@ Inserts a menu item with text \fItext\fR, optional id \fIid\fR, and optional \fI Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const TQString & text, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQString & text, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, text \fItext\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the text in the item. @@ -418,7 +418,7 @@ Inserts a menu item with icon \fIicon\fR, text \fItext\fR, optional id \fIid\fR, Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQString & text, QPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQString & text, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with text \fItext\fR, submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. @@ -428,7 +428,7 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const TQString & text, QPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const TQString & text, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, text \fItext\fR, submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the text in the item. @@ -438,7 +438,7 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, optional id \fIid\fR, and optional \fIindex\fR position. @@ -448,7 +448,7 @@ To look best when being highlighted as a menu item, the pixmap should provide a Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. @@ -456,7 +456,7 @@ Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR, optional id \fIid Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with pixmap \fIpixmap\fR, submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. @@ -466,7 +466,7 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, QPopupMenu * popup, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, const QPixmap & pixmap, TQPopupMenu * popup, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item with icon \fIicon\fR, pixmap \fIpixmap\fR submenu \fIpopup\fR, optional id \fIid\fR, and optional \fIindex\fR position. The icon will be displayed to the left of the pixmap in the item. @@ -476,7 +476,7 @@ The \fIpopup\fR must be deleted by the programmer or by its parent widget. It is Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(), changeItem(), setAccel(), and connectItem(). -.SH "int QMenuData::insertItem ( TQWidget * widget, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( TQWidget * widget, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a menu item that consists of the widget \fIwidget\fR with optional id \fIid\fR, and optional \fIindex\fR position. @@ -495,7 +495,7 @@ If the widget is focus-enabled it will get focus when the user traverses the pop .br parentWidget() && .br - parentWidget()->inherits("QPopupMenu") ) + parentWidget()->inherits("TQPopupMenu") ) .br parentWidget()->close(); .br @@ -504,7 +504,7 @@ If the widget is focus-enabled it will get focus when the user traverses the pop Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also removeItem(). -.SH "int QMenuData::insertItem ( const TQIconSet & icon, QCustomMenuItem * custom, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( const TQIconSet & icon, QCustomMenuItem * custom, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a custom menu item \fIcustom\fR with an \fIicon\fR and with optional id \fIid\fR, and optional \fIindex\fR position. @@ -516,7 +516,7 @@ If you want to connect a custom item to a slot, use connectItem(). Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also connectItem(), removeItem(), and QCustomMenuItem. -.SH "int QMenuData::insertItem ( QCustomMenuItem * custom, int id = -1, int index = -1 )" +.SH "int TQMenuData::insertItem ( QCustomMenuItem * custom, int id = -1, int index = -1 )" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Inserts a custom menu item \fIcustom\fR with optional id \fIid\fR, and optional \fIindex\fR position. @@ -528,78 +528,78 @@ If you want to connect a custom item to a slot, use connectItem(). Returns the allocated menu identifier number (\fIid\fR if \fIid\fR >= 0). .PP See also connectItem(), removeItem(), and QCustomMenuItem. -.SH "int QMenuData::insertSeparator ( int index = -1 )" +.SH "int TQMenuData::insertSeparator ( int index = -1 )" Inserts a separator at position \fIindex\fR, and returns the menu identifier number allocated to it. The separator becomes the last menu item if \fIindex\fR is negative. .PP In a popup menu a separator is rendered as a horizontal line. In a Motif menu bar a separator is spacing, so the rest of the items (normally just "Help") are drawn right-justified. In a Windows menu bar separators are ignored (to comply with the Windows style guidelines). .PP Examples: .)l addressbook/mainwindow.cpp, menu/menu.cpp, progress/progress.cpp, qwerty/qwerty.cpp, scrollview/scrollview.cpp, showimg/showimg.cpp, and sound/sound.cpp. -.SH "bool QMenuData::isItemActive ( int id ) const" +.SH "bool TQMenuData::isItemActive ( int id ) const" Returns TRUE if the menu item with the id \fIid\fR is currently active; otherwise returns FALSE. -.SH "bool QMenuData::isItemChecked ( int id ) const" +.SH "bool TQMenuData::isItemChecked ( int id ) const" Returns TRUE if the menu item with the id \fIid\fR has been checked; otherwise returns FALSE. .PP See also setItemChecked(). .PP Examples: .)l canvas/canvas.cpp, progress/progress.cpp, and showimg/showimg.cpp. -.SH "bool QMenuData::isItemEnabled ( int id ) const" +.SH "bool TQMenuData::isItemEnabled ( int id ) const" Returns TRUE if the item with identifier \fIid\fR is enabled; otherwise returns FALSE .PP See also setItemEnabled() and isItemVisible(). -.SH "bool QMenuData::isItemVisible ( int id ) const" +.SH "bool TQMenuData::isItemVisible ( int id ) const" Returns TRUE if the menu item with the id \fIid\fR is visible; otherwise returns FALSE. .PP See also setItemVisible(). -.SH "int QMenuData::itemParameter ( int id ) const" +.SH "int TQMenuData::itemParameter ( int id ) const" Returns the parameter of the activation signal of item \fIid\fR. .PP If no parameter has been specified for this item with setItemParameter(), the value defaults to \fIid\fR. .PP See also connectItem(), disconnectItem(), and setItemParameter(). -.SH "void QMenuData::menuContentsChanged ()\fC [virtual protected]\fR" +.SH "void TQMenuData::menuContentsChanged ()\fC [virtual protected]\fR" Virtual function; notifies subclasses that one or more items have been inserted or removed. .PP -Reimplemented in QMenuBar. -.SH "void QMenuData::menuDelPopup ( QPopupMenu * )\fC [virtual protected]\fR" +Reimplemented in TQMenuBar. +.SH "void TQMenuData::menuDelPopup ( TQPopupMenu * )\fC [virtual protected]\fR" Virtual function; notifies subclasses that a popup menu item has been removed. -.SH "void QMenuData::menuInsPopup ( QPopupMenu * )\fC [virtual protected]\fR" +.SH "void TQMenuData::menuInsPopup ( TQPopupMenu * )\fC [virtual protected]\fR" Virtual function; notifies subclasses that a popup menu item has been inserted. -.SH "void QMenuData::menuStateChanged ()\fC [virtual protected]\fR" +.SH "void TQMenuData::menuStateChanged ()\fC [virtual protected]\fR" Virtual function; notifies subclasses that one or more items have changed state (enabled/disabled or checked/unchecked). .PP -Reimplemented in QMenuBar. -.SH "QPixmap * QMenuData::pixmap ( int id ) const" +Reimplemented in TQMenuBar. +.SH "QPixmap * TQMenuData::pixmap ( int id ) const" Returns the pixmap that has been set for menu item \fIid\fR, or 0 if no pixmap has been set. .PP See also changeItem(), text(), and iconSet(). -.SH "void QMenuData::removeItem ( int id )" +.SH "void TQMenuData::removeItem ( int id )" Removes the menu item that has the identifier \fIid\fR. .PP See also removeItemAt() and clear(). .PP Example: chart/chartform.cpp. -.SH "void QMenuData::removeItemAt ( int index )" +.SH "void TQMenuData::removeItemAt ( int index )" Removes the menu item at position \fIindex\fR. .PP See also removeItem() and clear(). -.SH "void QMenuData::setAccel ( const QKeySequence & key, int id )" +.SH "void TQMenuData::setAccel ( const QKeySequence & key, int id )" Sets the accelerator key for the menu item \fIid\fR to \fIkey\fR. .PP An accelerator key consists of a key code and a combination of the modifiers \fCSHIFT\fR, \fCCTRL\fR, \fCALT\fR or \fCUNICODE_ACCEL\fR (OR'ed or added). The header file ntqnamespace.h contains a list of key codes. .PP Defining an accelerator key produces a text that is added to the menu item; for instance, \fCCTRL\fR + \fCKey_O\fR produces "Ctrl+O". The text is formatted differently for different platforms. .PP -Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in QPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object. +Note that keyboard accelerators in TQt are not application-global, instead they are bound to a certain top-level window. For example, accelerators in TQPopupMenu items only work for menus that are associated with a certain window. This is true for popup menus that live in a menu bar since their accelerators will then be installed in the menu bar itself. This also applies to stand-alone popup menus that have a top-level widget in their parentWidget() chain. The menu will then install its accelerator object on that top-level widget. For all other cases use an independent QAccel object. .PP Example: .PP .nf .br - QMenuBar *mainMenu = new QMenuBar; + TQMenuBar *mainMenu = new TQMenuBar; .br - QPopupMenu *fileMenu = new QPopupMenu; // file sub menu + TQPopupMenu *fileMenu = new TQPopupMenu; // file sub menu .br fileMenu->insertItem( "Open Document", 67 ); // add "Open" item .br @@ -621,32 +621,32 @@ If you need to translate accelerators, use tr() with a string: .br .fi .PP -You can also specify the accelerator in the insertItem() function. You may prefer to use QAction to associate accelerators with menu items. +You can also specify the accelerator in the insertItem() function. You may prefer to use TQAction to associate accelerators with menu items. .PP -See also accel(), insertItem(), QAccel, and QAction. +See also accel(), insertItem(), QAccel, and TQAction. .PP Example: menu/menu.cpp. -.SH "void QMenuData::setId ( int index, int id )\fC [virtual]\fR" +.SH "void TQMenuData::setId ( int index, int id )\fC [virtual]\fR" Sets the menu identifier of the item at \fIindex\fR to \fIid\fR. .PP If \fIindex\fR is out of range, the operation is ignored. .PP See also idAt(). -.SH "void QMenuData::setItemChecked ( int id, bool check )" -If \fIcheck\fR is TRUE, checks the menu item with id \fIid\fR; otherwise unchecks the menu item with id \fIid\fR. Calls QPopupMenu::setCheckable( TRUE ) if necessary. +.SH "void TQMenuData::setItemChecked ( int id, bool check )" +If \fIcheck\fR is TRUE, checks the menu item with id \fIid\fR; otherwise unchecks the menu item with id \fIid\fR. Calls TQPopupMenu::setCheckable( TRUE ) if necessary. .PP See also isItemChecked(). .PP Examples: .)l canvas/canvas.cpp, grapher/grapher.cpp, mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, scrollview/scrollview.cpp, and showimg/showimg.cpp. -.SH "void QMenuData::setItemEnabled ( int id, bool enable )" +.SH "void TQMenuData::setItemEnabled ( int id, bool enable )" If \fIenable\fR is TRUE, enables the menu item with identifier \fIid\fR; otherwise disables the menu item with identifier \fIid\fR. .PP See also isItemEnabled(). .PP Examples: .)l mdi/application.cpp, menu/menu.cpp, progress/progress.cpp, and showimg/showimg.cpp. -.SH "bool QMenuData::setItemParameter ( int id, int param )" +.SH "bool TQMenuData::setItemParameter ( int id, int param )" Sets the parameter of the activation signal of item \fIid\fR to \fIparam\fR. .PP If any receiver takes an integer parameter, this value is passed. @@ -654,35 +654,35 @@ If any receiver takes an integer parameter, this value is passed. See also connectItem(), disconnectItem(), and itemParameter(). .PP Example: mdi/application.cpp. -.SH "void QMenuData::setItemVisible ( int id, bool visible )" +.SH "void TQMenuData::setItemVisible ( int id, bool visible )" If \fIvisible\fR is TRUE, shows the menu item with id \fIid\fR; otherwise hides the menu item with id \fIid\fR. .PP See also isItemVisible() and isItemEnabled(). -.SH "void QMenuData::setWhatsThis ( int id, const TQString & text )" +.SH "void TQMenuData::setWhatsThis ( int id, const TQString & text )" Sets \fItext\fR as What's This help for the menu item with identifier \fIid\fR. .PP See also whatsThis(). .PP Examples: .)l application/application.cpp, helpsystem/mainwindow.cpp, and mdi/application.cpp. -.SH "TQString QMenuData::text ( int id ) const" +.SH "TQString TQMenuData::text ( int id ) const" Returns the text that has been set for menu item \fIid\fR, or TQString::null if no text has been set. .PP See also changeItem(), pixmap(), and iconSet(). .PP Examples: .)l qdir/qdir.cpp and showimg/showimg.cpp. -.SH "void QMenuData::updateItem ( int id )\fC [virtual]\fR" +.SH "void TQMenuData::updateItem ( int id )\fC [virtual]\fR" Virtual function; notifies subclasses about an item with \fIid\fR that has been changed. .PP -Reimplemented in QPopupMenu. -.SH "TQString QMenuData::whatsThis ( int id ) const" +Reimplemented in TQPopupMenu. +.SH "TQString TQMenuData::whatsThis ( int id ) const" Returns the What's This help text for the item with identifier \fIid\fR or TQString::null if no text has yet been defined. .PP See also setWhatsThis(). .SH "SEE ALSO" -.BR http://doc.trolltech.com/ntqmenudata.html +.BR http://doc.trolltech.com/tqmenudata.html .BR http://www.trolltech.com/faq/tech.html .SH COPYRIGHT Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the |