source: trunk/doc/src/accelerators.qdoc@ 109

Last change on this file since 109 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 5.5 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the documentation of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42/*!
43 \page accelerators.html
44 \title Standard Accelerator Keys
45 \ingroup gui-programming
46
47 Applications invariably need to define accelerator keys for actions.
48 Qt fully supports accelerators, for example with \l Q3Accel::shortcutKey().
49
50 Here are Microsoft's recommendations for accelerator keys, with
51 comments about the Open Group's recommendations where they exist
52 and differ. For most commands, the Open Group either has no advice or
53 agrees with Microsoft.
54
55 The emboldened letter plus Alt is Microsoft's recommended choice, and
56 we recommend supporting it. For an Apply button, for example, we
57 recommend QAbstractButton::setText(\link QWidget::tr() tr \endlink("&Apply"));
58
59 If you have conflicting commands (e.g. About and Apply buttons in the
60 same dialog), you must decide for yourself.
61
62 \list
63 \i \bold{\underline{A}}bout
64 \i Always on \bold{\underline{T}}op
65 \i \bold{\underline{A}}pply
66 \i \bold{\underline{B}}ack
67 \i \bold{\underline{B}}rowse
68 \i \bold{\underline{C}}lose (CDE: Alt+F4; Alt+F4 is "close window" in Windows)
69 \i \bold{\underline{C}}opy (CDE: Ctrl+C, Ctrl+Insert)
70 \i \bold{\underline{C}}opy Here
71 \i Create \bold{\underline{S}}hortcut
72 \i Create \bold{\underline{S}}hortcut Here
73 \i Cu\bold{\underline{t}}
74 \i \bold{\underline{D}}elete
75 \i \bold{\underline{E}}dit
76 \i \bold{\underline{E}}xit (CDE: E\bold{\underline{x}}it)
77 \i \bold{\underline{E}}xplore
78 \i \bold{\underline{F}}ile
79 \i \bold{\underline{F}}ind
80 \i \bold{\underline{H}}elp
81 \i Help \bold{\underline{T}}opics
82 \i \bold{\underline{H}}ide
83 \i \bold{\underline{I}}nsert
84 \i Insert \bold{\underline{O}}bject
85 \i \bold{\underline{L}}ink Here
86 \i Ma\bold{\underline{x}}imize
87 \i Mi\bold{\underline{n}}imize
88 \i \bold{\underline{M}}ove
89 \i \bold{\underline{M}}ove Here
90 \i \bold{\underline{N}}ew
91 \i \bold{\underline{N}}ext
92 \i \bold{\underline{N}}o
93 \i \bold{\underline{O}}pen
94 \i Open \bold{\underline{W}}ith
95 \i Page Set\bold{\underline{u}}p
96 \i \bold{\underline{P}}aste
97 \i Paste \bold{\underline{L}}ink
98 \i Paste \bold{\underline{S}}hortcut
99 \i Paste \bold{\underline{S}}pecial
100 \i \bold{\underline{P}}ause
101 \i \bold{\underline{P}}lay
102 \i \bold{\underline{P}}rint
103 \i \bold{\underline{P}}rint Here
104 \i P\bold{\underline{r}}operties
105 \i \bold{\underline{Q}}uick View
106 \i \bold{\underline{R}}edo (CDE: Ctrl+Y, Shift+Alt+Backspace)
107 \i \bold{\underline{R}}epeat
108 \i \bold{\underline{R}}estore
109 \i \bold{\underline{R}}esume
110 \i \bold{\underline{R}}etry
111 \i \bold{\underline{R}}un
112 \i \bold{\underline{S}}ave
113 \i Save \bold{\underline{A}}s
114 \i Select \bold{\underline{A}}ll
115 \i Se\bold{\underline{n}}d To
116 \i \bold{\underline{S}}how
117 \i \bold{\underline{S}}ize
118 \i S\bold{\underline{p}}lit
119 \i \bold{\underline{S}}top
120 \i \bold{\underline{U}}ndo (CDE: Ctrl+Z or Alt+Backspace)
121 \i \bold{\underline{V}}iew
122 \i \bold{\underline{W}}hat's This?
123 \i \bold{\underline{W}}indow
124 \i \bold{\underline{Y}}es
125 \endlist
126
127 There are also a lot of other keys and actions (that use other
128 modifier keys than Alt). See the Microsoft and The Open Group
129 documentation for details.
130
131 The
132 \l{http://www.amazon.com/exec/obidos/ASIN/0735605661/trolltech/t}{Microsoft book}
133 has ISBN 0735605661. The corresponding Open Group
134 book is very hard to find, rather expensive and we cannot recommend
135 it. However, if you really want it, [email protected] might be able
136 to help. Ask them for ISBN 1859121047.
137*/
Note: See TracBrowser for help on using the repository browser.