diff options
Diffstat (limited to 'doc/man/man3/tqaccel.3qt')
-rw-r--r-- | doc/man/man3/tqaccel.3qt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/man/man3/tqaccel.3qt b/doc/man/man3/tqaccel.3qt index 070707889..c97eec8df 100644 --- a/doc/man/man3/tqaccel.3qt +++ b/doc/man/man3/tqaccel.3qt @@ -34,7 +34,7 @@ Inherits TQObject. .BI "uint \fBcount\fR () const" .br .ti -1c -.BI "int \fBinsertItem\fR ( const QKeySequence & key, int id = -1 )" +.BI "int \fBinsertItem\fR ( const TQKeySequence & key, int id = -1 )" .br .ti -1c .BI "void \fBremoveItem\fR ( int id )" @@ -43,10 +43,10 @@ Inherits TQObject. .BI "void \fBclear\fR ()" .br .ti -1c -.BI "QKeySequence \fBkey\fR ( int id )" +.BI "TQKeySequence \fBkey\fR ( int id )" .br .ti -1c -.BI "int \fBfindKey\fR ( const QKeySequence & key ) const" +.BI "int \fBfindKey\fR ( const TQKeySequence & key ) const" .br .ti -1c .BI "bool \fBisItemEnabled\fR ( int id ) const" @@ -82,13 +82,13 @@ Inherits TQObject. .SS "Static Public Members" .in +1c .ti -1c -.BI "QKeySequence \fBshortcutKey\fR ( const TQString & str )" +.BI "TQKeySequence \fBshortcutKey\fR ( const TQString & str )" .br .ti -1c -.BI "TQString keyToString ( QKeySequence k ) \fI(obsolete)\fR" +.BI "TQString keyToString ( TQKeySequence k ) \fI(obsolete)\fR" .br .ti -1c -.BI "QKeySequence stringToKey ( const TQString & s ) \fI(obsolete)\fR" +.BI "TQKeySequence stringToKey ( const TQString & s ) \fI(obsolete)\fR" .br .in -1c .SS "Protected Members" @@ -116,7 +116,7 @@ In most cases, you will not need to use this class directly. Use the TQAction cl .PP A TQAccel contains a list of accelerator items that can be manipulated using insertItem(), removeItem(), clear(), key() and findKey(). .PP -Each accelerator item consists of an identifier and a QKeySequence. A single key sequence consists of a keyboard code combined with modifiers (SHIFT, CTRL, ALT or UNICODE_ACCEL). For example, \fCCTRL + Key_P\fR could be a shortcut for printing a document. The key codes are listed in ntqnamespace.h. As an alternative, use UNICODE_ACCEL with the unicode code point of the character. For example, \fCUNICODE_ACCEL + 'A'\fR gives the same accelerator as Key_A. +Each accelerator item consists of an identifier and a TQKeySequence. A single key sequence consists of a keyboard code combined with modifiers (SHIFT, CTRL, ALT or UNICODE_ACCEL). For example, \fCCTRL + Key_P\fR could be a shortcut for printing a document. The key codes are listed in ntqnamespace.h. As an alternative, use UNICODE_ACCEL with the unicode code point of the character. For example, \fCUNICODE_ACCEL + 'A'\fR gives the same accelerator as Key_A. .PP When an accelerator key is pressed, the accelerator sends out the signal activated() with a number that identifies this particular accelerator item. Accelerator items can also be individually connected, so that two different keys will activate two different slots (see connectItem() and disconnectItem()). .PP @@ -132,7 +132,7 @@ Please note that the accelerator .PP .nf .br - accelerator->insertItem( QKeySequence("M") ); + accelerator->insertItem( TQKeySequence("M") ); .br .fi can be triggered with both the 'M' key, and with Shift+M, unless a second accelerator is defined for the Shift+M combination. @@ -151,7 +151,7 @@ Example: .br .fi .PP -See also QKeyEvent, TQWidget::keyPressEvent(), TQMenuData::setAccel(), TQButton::accel, TQLabel::setBuddy(), QKeySequence, GUI Design Handbook: Keyboard Shortcuts, and Miscellaneous Classes. +See also TQKeyEvent, TQWidget::keyPressEvent(), TQMenuData::setAccel(), TQButton::accel, TQLabel::setBuddy(), TQKeySequence, GUI Design Handbook: Keyboard Shortcuts, and Miscellaneous Classes. .SH MEMBER FUNCTION DOCUMENTATION .SH "TQAccel::TQAccel ( TQWidget * parent, const char * name = 0 )" Constructs a TQAccel object called \fIname\fR, with parent \fIparent\fR. The accelerator operates on \fIparent\fR. @@ -197,9 +197,9 @@ See also connectItem(). \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. serves no purpose anymore .PP Reimplemented from TQObject. -.SH "int TQAccel::findKey ( const QKeySequence & key ) const" +.SH "int TQAccel::findKey ( const TQKeySequence & key ) const" Returns the identifier of the accelerator item with the key code \fIkey\fR, or -1 if the item cannot be found. -.SH "int TQAccel::insertItem ( const QKeySequence & key, int id = -1 )" +.SH "int TQAccel::insertItem ( const TQKeySequence & key, int id = -1 )" Inserts an accelerator item and returns the item's identifier. .PP \fIkey\fR is a key code and an optional combination of SHIFT, CTRL and ALT. \fIid\fR is the accelerator item id. @@ -231,14 +231,14 @@ See also setEnabled() and isItemEnabled(). Returns TRUE if the accelerator item with the identifier \fIid\fR is enabled. Returns FALSE if the item is disabled or cannot be found. .PP See also setItemEnabled() and isEnabled(). -.SH "QKeySequence TQAccel::key ( int id )" +.SH "TQKeySequence TQAccel::key ( int id )" Returns the key sequence of the accelerator item with identifier \fIid\fR, or an invalid key sequence (0) if the id cannot be found. -.SH "TQString TQAccel::keyToString ( QKeySequence k )\fC [static]\fR" +.SH "TQString TQAccel::keyToString ( TQKeySequence k )\fC [static]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Creates an accelerator string for the key \fIk\fR. For instance CTRL+Key_O gives "Ctrl+O". The "Ctrl" etc. are translated (using TQObject::tr()) in the "TQAccel" context. .PP -The function is superfluous. Cast the QKeySequence \fIk\fR to a TQString for the same effect. +The function is superfluous. Cast the TQKeySequence \fIk\fR to a TQString for the same effect. .SH "void TQAccel::removeItem ( int id )" Removes the accelerator item with the identifier \fIid\fR. .SH "void TQAccel::repairEventFilter ()" @@ -263,13 +263,13 @@ The text will be shown when the application is in What's This mode and the user To set What's This help on a menu item (with or without an accelerator key), use TQMenuData::setWhatsThis(). .PP See also whatsThis(), TQWhatsThis::inWhatsThisMode(), TQMenuData::setWhatsThis(), and TQAction::whatsThis. -.SH "QKeySequence TQAccel::shortcutKey ( const TQString & str )\fC [static]\fR" +.SH "TQKeySequence TQAccel::shortcutKey ( const TQString & str )\fC [static]\fR" Returns the shortcut key sequence for \fIstr\fR, or an invalid key sequence (0) if \fIstr\fR has no shortcut sequence. .PP For example, shortcutKey("E&xit") returns ALT+Key_X, shortcutKey("&Quit") returns ALT+Key_Q and shortcutKey("Quit") returns 0. (In code that does not inherit the TQt namespace class, you must write e.g. TQt::ALT+TQt::Key_Q.) .PP We provide a list of common accelerators in English. At the time of writing, Microsoft and Open Group do not appear to have issued equivalent recommendations for other languages. -.SH "QKeySequence TQAccel::stringToKey ( const TQString & s )\fC [static]\fR" +.SH "TQKeySequence TQAccel::stringToKey ( const TQString & s )\fC [static]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Returns an accelerator code for the string \fIs\fR. For example" Ctrl+O" gives CTRL+UNICODE_ACCEL+'O'. The strings "Ctrl"," Shift", "Alt" are recognized, as well as their translated equivalents in the "TQAccel" context (using TQObject::tr()). Returns 0 if \fIs\fR is not recognized. @@ -288,7 +288,7 @@ This function is typically used with tr(), so that accelerator keys can be repla .PP Notice the \fC"File|Open"\fR translator comment. It is by no means necessary, but it provides some context for the human translator. .PP -The function is superfluous. Construct a QKeySequence from the string \fIs\fR for the same effect. +The function is superfluous. Construct a TQKeySequence from the string \fIs\fR for the same effect. .PP See also TQObject::tr() and Internationalization with Qt. .PP |