From 7552c6d73043b1040139033f6864db48ae5446cf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 2 Jul 2024 21:37:22 +0900 Subject: Rename main window nt* related files to equivalent tq*. The file "ntqsession.h" was totally unnecessary and has been removed. Signed-off-by: Michele Calgaro --- doc/html/ntqaccel.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/ntqaccel.html') diff --git a/doc/html/ntqaccel.html b/doc/html/ntqaccel.html index f2e8183cf..6da44b2f7 100644 --- a/doc/html/ntqaccel.html +++ b/doc/html/ntqaccel.html @@ -82,17 +82,17 @@ combination is pressed. The accelerator handles all keyboard activity for all the children of one top-level widget, so it is not affected by the keyboard focus.

In most cases, you will not need to use this class directly. Use -the TQAction class to create actions with accelerators that can be +the TQAction class to create actions with accelerators that can be used in both menus and toolbars. If you're only interested in -menus use TQMenuData::insertItem() or TQMenuData::setAccel() to make +menus use TQMenuData::insertItem() or TQMenuData::setAccel() to make accelerators for operations that are also available on menus. Many widgets automatically generate accelerators, such as TQButton, -TQGroupBox, TQLabel (with TQLabel::setBuddy()), TQMenuBar and TQTabBar. +TQGroupBox, TQLabel (with TQLabel::setBuddy()), TQMenuBar and TQTabBar. Example:

         TQPushButton p( "&Exit", parent ); // automatic shortcut ALT+Key_E
-        TQPopupMenu *fileMenu = new fileMenu( parent );
-        fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z );
+        TQPopupMenu *fileMenu = new fileMenu( parent );
+        fileMenu->insertItem( "Undo", parent, TQ_SLOT(undo()), CTRL+Key_Z );
     

A TQAccel contains a list of accelerator items that can be @@ -141,7 +141,7 @@ combination. TQ_SLOT(printDoc()) ); // printDoc() slot -

See also TQKeyEvent, TQWidget::keyPressEvent(), TQMenuData::setAccel(), TQButton::accel, TQLabel::setBuddy(), TQKeySequence, 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.


Member Function Documentation

TQAccel::TQAccel ( TQWidget * parent, const char * name = 0 ) @@ -281,8 +281,8 @@ Sets a What's This help text for the accelerator item id to text The text will be shown when the application is in What's This mode and the user hits the accelerator key.

To set What's This help on a menu item (with or without an -accelerator key), use TQMenuData::setWhatsThis(). -

See also whatsThis(), TQWhatsThis::inWhatsThisMode(), TQMenuData::setWhatsThis(), and TQAction::whatsThis. +accelerator key), use TQMenuData::setWhatsThis(). +

See also whatsThis(), TQWhatsThis::inWhatsThisMode(), TQMenuData::setWhatsThis(), and TQAction::whatsThis.

TQKeySequence TQAccel::shortcutKey ( const TQString & str ) [static]

@@ -306,8 +306,8 @@ if s is not recognized.

This function is typically used with tr(), so that accelerator keys can be replaced in translations:

-    TQPopupMenu *file = new TQPopupMenu( this );
-    file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()),
+    TQPopupMenu *file = new TQPopupMenu( this );
+    file->insertItem( p1, tr("&Open..."), this, TQ_SLOT(open()),
                       TQAccel::stringToKey(tr("Ctrl+O", "File|Open")) );
   
-- cgit v1.2.1