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