|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric4.Preferences.ToolGroupConfigurationDialog</title> |
|
6 <style> |
|
7 body { |
|
8 background:white; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #4FA4FF; } |
|
14 h2 { color: white; background: #4FA4FF; } |
|
15 h3 { color: white; background: #00557F; } |
|
16 h4 { color: white; background: #00557F; } |
|
17 |
|
18 a { color: #AA5500; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric4.Preferences.ToolGroupConfigurationDialog</h1> |
|
24 <p> |
|
25 Module implementing a configuration dialog for the tools menu. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#ToolGroupConfigurationDialog">ToolGroupConfigurationDialog</a></td> |
|
35 <td>Class implementing a configuration dialog for the tool groups.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="ToolGroupConfigurationDialog" ID="ToolGroupConfigurationDialog"></a> |
|
44 <h2>ToolGroupConfigurationDialog</h2> |
|
45 <p> |
|
46 Class implementing a configuration dialog for the tool groups. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QDialog, Ui_ToolGroupConfigurationDialog |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>None</td></tr> |
|
53 </table> |
|
54 <h3>Methods</h3> |
|
55 <table> |
|
56 <tr> |
|
57 <td><a href="#ToolGroupConfigurationDialog.__init__">ToolGroupConfigurationDialog</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#ToolGroupConfigurationDialog.__swap">__swap</a></td> |
|
61 <td>Private method used two swap two list entries given by their index.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#ToolGroupConfigurationDialog.getToolGroups">getToolGroups</a></td> |
|
64 <td>Public method to retrieve the tool groups.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#ToolGroupConfigurationDialog.on_addButton_clicked">on_addButton_clicked</a></td> |
|
67 <td>Private slot to add a new entry.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#ToolGroupConfigurationDialog.on_changeButton_clicked">on_changeButton_clicked</a></td> |
|
70 <td>Private slot to change an entry.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#ToolGroupConfigurationDialog.on_deleteButton_clicked">on_deleteButton_clicked</a></td> |
|
73 <td>Private slot to delete the selected entry.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#ToolGroupConfigurationDialog.on_downButton_clicked">on_downButton_clicked</a></td> |
|
76 <td>Private slot to move an entry down in the list.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#ToolGroupConfigurationDialog.on_groupsList_currentRowChanged">on_groupsList_currentRowChanged</a></td> |
|
79 <td>Private slot to set the lineedits depending on the selected entry.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#ToolGroupConfigurationDialog.on_newButton_clicked">on_newButton_clicked</a></td> |
|
82 <td>Private slot to clear all entry fields.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#ToolGroupConfigurationDialog.on_upButton_clicked">on_upButton_clicked</a></td> |
|
85 <td>Private slot to move an entry up in the list.</td> |
|
86 </tr> |
|
87 </table> |
|
88 <a NAME="ToolGroupConfigurationDialog.__init__" ID="ToolGroupConfigurationDialog.__init__"></a> |
|
89 <h4>ToolGroupConfigurationDialog (Constructor)</h4> |
|
90 <b>ToolGroupConfigurationDialog</b>(<i>toolGroups, currentGroup, parent = None</i>) |
|
91 <p> |
|
92 Constructor |
|
93 </p><dl> |
|
94 <dt><i>toolGroups</i></dt> |
|
95 <dd> |
|
96 list of configured tool groups |
|
97 </dd><dt><i>currentGroup</i></dt> |
|
98 <dd> |
|
99 number of the active group (integer) |
|
100 </dd><dt><i>parent</i></dt> |
|
101 <dd> |
|
102 parent widget (QWidget) |
|
103 </dd> |
|
104 </dl><a NAME="ToolGroupConfigurationDialog.__swap" ID="ToolGroupConfigurationDialog.__swap"></a> |
|
105 <h4>ToolGroupConfigurationDialog.__swap</h4> |
|
106 <b>__swap</b>(<i>itm1, itm2</i>) |
|
107 <p> |
|
108 Private method used two swap two list entries given by their index. |
|
109 </p><dl> |
|
110 <dt><i>itm1</i></dt> |
|
111 <dd> |
|
112 index of first entry (int) |
|
113 </dd><dt><i>itm2</i></dt> |
|
114 <dd> |
|
115 index of second entry (int) |
|
116 </dd> |
|
117 </dl><a NAME="ToolGroupConfigurationDialog.getToolGroups" ID="ToolGroupConfigurationDialog.getToolGroups"></a> |
|
118 <h4>ToolGroupConfigurationDialog.getToolGroups</h4> |
|
119 <b>getToolGroups</b>(<i></i>) |
|
120 <p> |
|
121 Public method to retrieve the tool groups. |
|
122 </p><dl> |
|
123 <dt>Returns:</dt> |
|
124 <dd> |
|
125 a list of lists containing the group name and the |
|
126 tool group entries |
|
127 </dd> |
|
128 </dl><a NAME="ToolGroupConfigurationDialog.on_addButton_clicked" ID="ToolGroupConfigurationDialog.on_addButton_clicked"></a> |
|
129 <h4>ToolGroupConfigurationDialog.on_addButton_clicked</h4> |
|
130 <b>on_addButton_clicked</b>(<i></i>) |
|
131 <p> |
|
132 Private slot to add a new entry. |
|
133 </p><a NAME="ToolGroupConfigurationDialog.on_changeButton_clicked" ID="ToolGroupConfigurationDialog.on_changeButton_clicked"></a> |
|
134 <h4>ToolGroupConfigurationDialog.on_changeButton_clicked</h4> |
|
135 <b>on_changeButton_clicked</b>(<i></i>) |
|
136 <p> |
|
137 Private slot to change an entry. |
|
138 </p><a NAME="ToolGroupConfigurationDialog.on_deleteButton_clicked" ID="ToolGroupConfigurationDialog.on_deleteButton_clicked"></a> |
|
139 <h4>ToolGroupConfigurationDialog.on_deleteButton_clicked</h4> |
|
140 <b>on_deleteButton_clicked</b>(<i></i>) |
|
141 <p> |
|
142 Private slot to delete the selected entry. |
|
143 </p><a NAME="ToolGroupConfigurationDialog.on_downButton_clicked" ID="ToolGroupConfigurationDialog.on_downButton_clicked"></a> |
|
144 <h4>ToolGroupConfigurationDialog.on_downButton_clicked</h4> |
|
145 <b>on_downButton_clicked</b>(<i></i>) |
|
146 <p> |
|
147 Private slot to move an entry down in the list. |
|
148 </p><a NAME="ToolGroupConfigurationDialog.on_groupsList_currentRowChanged" ID="ToolGroupConfigurationDialog.on_groupsList_currentRowChanged"></a> |
|
149 <h4>ToolGroupConfigurationDialog.on_groupsList_currentRowChanged</h4> |
|
150 <b>on_groupsList_currentRowChanged</b>(<i>row</i>) |
|
151 <p> |
|
152 Private slot to set the lineedits depending on the selected entry. |
|
153 </p><dl> |
|
154 <dt><i>row</i></dt> |
|
155 <dd> |
|
156 the row of the selected entry (integer) |
|
157 </dd> |
|
158 </dl><a NAME="ToolGroupConfigurationDialog.on_newButton_clicked" ID="ToolGroupConfigurationDialog.on_newButton_clicked"></a> |
|
159 <h4>ToolGroupConfigurationDialog.on_newButton_clicked</h4> |
|
160 <b>on_newButton_clicked</b>(<i></i>) |
|
161 <p> |
|
162 Private slot to clear all entry fields. |
|
163 </p><a NAME="ToolGroupConfigurationDialog.on_upButton_clicked" ID="ToolGroupConfigurationDialog.on_upButton_clicked"></a> |
|
164 <h4>ToolGroupConfigurationDialog.on_upButton_clicked</h4> |
|
165 <b>on_upButton_clicked</b>(<i></i>) |
|
166 <p> |
|
167 Private slot to move an entry up in the list. |
|
168 </p> |
|
169 <div align="right"><a href="#top">Up</a></div> |
|
170 <hr /> |
|
171 </body></html> |