Documentation/Source/eric5.Preferences.ShortcutDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Preferences.ShortcutDialog</h1> 23 <h1>eric5.Preferences.ShortcutDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;. 25 Module implementing a dialog for the configuration of a keyboard shortcut.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#ShortcutDialog">ShortcutDialog</a></td> 34 <td><a href="#ShortcutDialog">ShortcutDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;.</td> 35 <td>Class implementing a dialog for the configuration of a keyboard shortcut.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="ShortcutDialog" ID="ShortcutDialog"></a> 43 <a NAME="ShortcutDialog" ID="ShortcutDialog"></a>
44 <h2>ShortcutDialog</h2> 44 <h2>ShortcutDialog</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#102;&#111;&#114; &#116;&#104;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#97; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;. 46 Class implementing a dialog for the configuration of a keyboard shortcut.
47 </p><h4>Signals</h4> 47 </p><h4>Signals</h4>
48 <dl> 48 <dl>
49 <dt>shortcutChanged(QKeySequence, QKeySequence, bool, objectType)</dt> 49 <dt>shortcutChanged(QKeySequence, QKeySequence, bool, objectType)</dt>
50 <dd> 50 <dd>
51 &#101;&#109;&#105;&#116;&#116;&#101;&#100; 51 emitted
52 &#97;&#102;&#116;&#101;&#114; &#116;&#104;&#101; &#79;&#75; &#98;&#117;&#116;&#116;&#111;&#110; w&#97;&#115; &#112;&#114;&#101;&#115;&#115;&#101;&#100; 52 after the OK button was pressed
53 </dd> 53 </dd>
54 </dl> 54 </dl>
55 <h3>Derived from</h3> 55 <h3>Derived from</h3>
56 QDialog, Ui_ShortcutDialog 56 QDialog, Ui_ShortcutDialog
57 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
60 </table> 60 </table>
61 <h3>Methods</h3> 61 <h3>Methods</h3>
62 <table> 62 <table>
63 <tr> 63 <tr>
64 <td><a href="#ShortcutDialog.__init__">ShortcutDialog</a></td> 64 <td><a href="#ShortcutDialog.__init__">ShortcutDialog</a></td>
65 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 65 <td>Constructor</td>
66 </tr><tr> 66 </tr><tr>
67 <td><a href="#ShortcutDialog.__clear">__clear</a></td> 67 <td><a href="#ShortcutDialog.__clear">__clear</a></td>
68 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#67;&#108;&#101;&#97;&#114; &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;.</td> 68 <td>Private slot to handle the Clear button press.</td>
69 </tr><tr> 69 </tr><tr>
70 <td><a href="#ShortcutDialog.__setKeyLabelText">__setKeyLabelText</a></td> 70 <td><a href="#ShortcutDialog.__setKeyLabelText">__setKeyLabelText</a></td>
71 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#116;&#101;x&#116; &#111;&#102; &#97; &#107;&#101;y &#108;&#97;&#98;&#101;&#108;.</td> 71 <td>Private method to set the text of a key label.</td>
72 </tr><tr> 72 </tr><tr>
73 <td><a href="#ShortcutDialog.__typeChanged">__typeChanged</a></td> 73 <td><a href="#ShortcutDialog.__typeChanged">__typeChanged</a></td>
74 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;&#115; &#116;y&#112;&#101;.</td> 74 <td>Private slot to handle the change of the shortcuts type.</td>
75 </tr><tr> 75 </tr><tr>
76 <td><a href="#ShortcutDialog.eventFilter">eventFilter</a></td> 76 <td><a href="#ShortcutDialog.eventFilter">eventFilter</a></td>
77 <td>&#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#113;&#117;&#101;&#117;&#101;.</td> 77 <td>Method called to filter the event queue.</td>
78 </tr><tr> 78 </tr><tr>
79 <td><a href="#ShortcutDialog.keyPressEvent">keyPressEvent</a></td> 79 <td><a href="#ShortcutDialog.keyPressEvent">keyPressEvent</a></td>
80 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#107;&#101;y &#112;&#114;&#101;&#115;&#115; &#101;v&#101;&#110;&#116;.</td> 80 <td>Private method to handle a key press event.</td>
81 </tr><tr> 81 </tr><tr>
82 <td><a href="#ShortcutDialog.on_buttonBox_accepted">on_buttonBox_accepted</a></td> 82 <td><a href="#ShortcutDialog.on_buttonBox_accepted">on_buttonBox_accepted</a></td>
83 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#79;&#75; &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;.</td> 83 <td>Private slot to handle the OK button press.</td>
84 </tr><tr> 84 </tr><tr>
85 <td><a href="#ShortcutDialog.setKeys">setKeys</a></td> 85 <td><a href="#ShortcutDialog.setKeys">setKeys</a></td>
86 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#107;&#101;y &#116;&#111; &#98;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#101;&#100;.</td> 86 <td>Public method to set the key to be configured.</td>
87 </tr> 87 </tr>
88 </table> 88 </table>
89 <a NAME="ShortcutDialog.__init__" ID="ShortcutDialog.__init__"></a> 89 <a NAME="ShortcutDialog.__init__" ID="ShortcutDialog.__init__"></a>
90 <h4>ShortcutDialog (Constructor)</h4> 90 <h4>ShortcutDialog (Constructor)</h4>
91 <b>ShortcutDialog</b>(<i>parent = None, name = None, modal = False</i>) 91 <b>ShortcutDialog</b>(<i>parent = None, name = None, modal = False</i>)
92 <p> 92 <p>
93 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 93 Constructor
94 </p><dl> 94 </p><dl>
95 <dt><i>parent</i></dt> 95 <dt><i>parent</i></dt>
96 <dd> 96 <dd>
97 &#84;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103;. (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 97 The parent widget of this dialog. (QWidget)
98 </dd><dt><i>name</i></dt> 98 </dd><dt><i>name</i></dt>
99 <dd> 99 <dd>
100 &#84;&#104;&#101; &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103;. (&#115;&#116;&#114;&#105;&#110;&#103;) 100 The name of this dialog. (string)
101 </dd><dt><i>modal</i></dt> 101 </dd><dt><i>modal</i></dt>
102 <dd> 102 <dd>
103 &#70;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#109;&#111;&#100;&#97;&#108; &#100;&#105;&#97;&#108;&#111;&#103;. (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 103 Flag indicating a modal dialog. (boolean)
104 </dd> 104 </dd>
105 </dl><a NAME="ShortcutDialog.__clear" ID="ShortcutDialog.__clear"></a> 105 </dl><a NAME="ShortcutDialog.__clear" ID="ShortcutDialog.__clear"></a>
106 <h4>ShortcutDialog.__clear</h4> 106 <h4>ShortcutDialog.__clear</h4>
107 <b>__clear</b>(<i></i>) 107 <b>__clear</b>(<i></i>)
108 <p> 108 <p>
109 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#67;&#108;&#101;&#97;&#114; &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;. 109 Private slot to handle the Clear button press.
110 </p><a NAME="ShortcutDialog.__setKeyLabelText" ID="ShortcutDialog.__setKeyLabelText"></a> 110 </p><a NAME="ShortcutDialog.__setKeyLabelText" ID="ShortcutDialog.__setKeyLabelText"></a>
111 <h4>ShortcutDialog.__setKeyLabelText</h4> 111 <h4>ShortcutDialog.__setKeyLabelText</h4>
112 <b>__setKeyLabelText</b>(<i>txt</i>) 112 <b>__setKeyLabelText</b>(<i>txt</i>)
113 <p> 113 <p>
114 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#116;&#101;x&#116; &#111;&#102; &#97; &#107;&#101;y &#108;&#97;&#98;&#101;&#108;. 114 Private method to set the text of a key label.
115 </p><dl> 115 </p><dl>
116 <dt><i>txt</i></dt> 116 <dt><i>txt</i></dt>
117 <dd> 117 <dd>
118 &#116;&#101;x&#116; &#116;&#111; &#98;&#101; &#115;&#101;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 118 text to be set (string)
119 </dd> 119 </dd>
120 </dl><a NAME="ShortcutDialog.__typeChanged" ID="ShortcutDialog.__typeChanged"></a> 120 </dl><a NAME="ShortcutDialog.__typeChanged" ID="ShortcutDialog.__typeChanged"></a>
121 <h4>ShortcutDialog.__typeChanged</h4> 121 <h4>ShortcutDialog.__typeChanged</h4>
122 <b>__typeChanged</b>(<i></i>) 122 <b>__typeChanged</b>(<i></i>)
123 <p> 123 <p>
124 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#104;&#97;&#110;&#103;&#101; &#111;&#102; &#116;&#104;&#101; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;&#115; &#116;y&#112;&#101;. 124 Private slot to handle the change of the shortcuts type.
125 </p><a NAME="ShortcutDialog.eventFilter" ID="ShortcutDialog.eventFilter"></a> 125 </p><a NAME="ShortcutDialog.eventFilter" ID="ShortcutDialog.eventFilter"></a>
126 <h4>ShortcutDialog.eventFilter</h4> 126 <h4>ShortcutDialog.eventFilter</h4>
127 <b>eventFilter</b>(<i>watched, event</i>) 127 <b>eventFilter</b>(<i>watched, event</i>)
128 <p> 128 <p>
129 &#77;&#101;&#116;&#104;&#111;&#100; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#102;&#105;&#108;&#116;&#101;&#114; &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#113;&#117;&#101;&#117;&#101;. 129 Method called to filter the event queue.
130 </p><dl> 130 </p><dl>
131 <dt><i>watched</i></dt> 131 <dt><i>watched</i></dt>
132 <dd> 132 <dd>
133 &#116;&#104;&#101; &#81;&#79;&#98;&#106;&#101;&#99;&#116; &#98;&#101;&#105;&#110;&#103; w&#97;&#116;&#99;&#104;&#101;&#100; 133 the QObject being watched
134 </dd><dt><i>event</i></dt> 134 </dd><dt><i>event</i></dt>
135 <dd> 135 <dd>
136 &#116;&#104;&#101; &#101;v&#101;&#110;&#116; &#116;&#104;&#97;&#116; &#111;&#99;&#99;&#117;&#114;&#114;&#101;&#100; 136 the event that occurred
137 </dd> 137 </dd>
138 </dl><dl> 138 </dl><dl>
139 <dt>Returns:</dt> 139 <dt>Returns:</dt>
140 <dd> 140 <dd>
141 &#97;&#108;w&#97;y&#115; &#70;&#97;&#108;&#115;&#101; 141 always False
142 </dd> 142 </dd>
143 </dl><a NAME="ShortcutDialog.keyPressEvent" ID="ShortcutDialog.keyPressEvent"></a> 143 </dl><a NAME="ShortcutDialog.keyPressEvent" ID="ShortcutDialog.keyPressEvent"></a>
144 <h4>ShortcutDialog.keyPressEvent</h4> 144 <h4>ShortcutDialog.keyPressEvent</h4>
145 <b>keyPressEvent</b>(<i>evt</i>) 145 <b>keyPressEvent</b>(<i>evt</i>)
146 <p> 146 <p>
147 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#97; &#107;&#101;y &#112;&#114;&#101;&#115;&#115; &#101;v&#101;&#110;&#116;. 147 Private method to handle a key press event.
148 </p><dl> 148 </p><dl>
149 <dt><i>evt</i></dt> 149 <dt><i>evt</i></dt>
150 <dd> 150 <dd>
151 &#116;&#104;&#101; &#107;&#101;y &#101;v&#101;&#110;&#116; (&#81;&#75;&#101;y&#69;v&#101;&#110;&#116;) 151 the key event (QKeyEvent)
152 </dd> 152 </dd>
153 </dl><a NAME="ShortcutDialog.on_buttonBox_accepted" ID="ShortcutDialog.on_buttonBox_accepted"></a> 153 </dl><a NAME="ShortcutDialog.on_buttonBox_accepted" ID="ShortcutDialog.on_buttonBox_accepted"></a>
154 <h4>ShortcutDialog.on_buttonBox_accepted</h4> 154 <h4>ShortcutDialog.on_buttonBox_accepted</h4>
155 <b>on_buttonBox_accepted</b>(<i></i>) 155 <b>on_buttonBox_accepted</b>(<i></i>)
156 <p> 156 <p>
157 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#79;&#75; &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;. 157 Private slot to handle the OK button press.
158 </p><a NAME="ShortcutDialog.setKeys" ID="ShortcutDialog.setKeys"></a> 158 </p><a NAME="ShortcutDialog.setKeys" ID="ShortcutDialog.setKeys"></a>
159 <h4>ShortcutDialog.setKeys</h4> 159 <h4>ShortcutDialog.setKeys</h4>
160 <b>setKeys</b>(<i>key, alternateKey, noCheck, objectType</i>) 160 <b>setKeys</b>(<i>key, alternateKey, noCheck, objectType</i>)
161 <p> 161 <p>
162 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#107;&#101;y &#116;&#111; &#98;&#101; &#99;&#111;&#110;&#102;&#105;&#103;&#117;&#114;&#101;&#100;. 162 Public method to set the key to be configured.
163 </p><dl> 163 </p><dl>
164 <dt><i>key</i></dt> 164 <dt><i>key</i></dt>
165 <dd> 165 <dd>
166 &#107;&#101;y &#115;&#101;&#113;&#117;&#101;&#110;&#99;&#101; &#116;&#111; &#98;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#100; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;) 166 key sequence to be changed (QKeySequence)
167 </dd><dt><i>alternateKey</i></dt> 167 </dd><dt><i>alternateKey</i></dt>
168 <dd> 168 <dd>
169 &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#101; &#107;&#101;y &#115;&#101;&#113;&#117;&#101;&#110;&#99;&#101; &#116;&#111; &#98;&#101; &#99;&#104;&#97;&#110;&#103;&#101;&#100; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;) 169 alternate key sequence to be changed (QKeySequence)
170 </dd><dt><i>noCheck</i></dt> 170 </dd><dt><i>noCheck</i></dt>
171 <dd> 171 <dd>
172 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#116;&#104;&#97;&#116; &#110;&#111; &#117;&#110;&#105;&#113;&#117;&#101;&#110;&#101;&#115;&#115; &#99;&#104;&#101;&#99;&#107; &#115;&#104;&#111;&#117;&#108;&#100; 172 flag indicating that no uniqueness check should
173 &#98;&#101; &#112;&#101;&#114;&#102;&#111;&#114;&#109;&#101;&#100; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 173 be performed (boolean)
174 </dd><dt><i>objectType</i></dt> 174 </dd><dt><i>objectType</i></dt>
175 <dd> 175 <dd>
176 &#116;y&#112;&#101; &#111;&#102; &#116;&#104;&#101; &#111;&#98;&#106;&#101;&#99;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;). 176 type of the object (string).
177 </dd> 177 </dd>
178 </dl> 178 </dl>
179 <div align="right"><a href="#top">Up</a></div> 179 <div align="right"><a href="#top">Up</a></div>
180 <hr /> 180 <hr />
181 </body></html> 181 </body></html>

eric ide

mercurial