|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesRenamePatchDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Plugins.VcsPlugins.vcsMercurial.QueuesExtension.HgQueuesRenamePatchDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the data to rename a patch. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#HgQueuesRenamePatchDialog">HgQueuesRenamePatchDialog</a></td> |
|
25 <td>Class implementing a dialog to enter the data to rename a patch.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="HgQueuesRenamePatchDialog" ID="HgQueuesRenamePatchDialog"></a> |
|
36 <h2>HgQueuesRenamePatchDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to enter the data to rename a patch. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_HgQueuesRenamePatchDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#HgQueuesRenamePatchDialog.__init__">HgQueuesRenamePatchDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgQueuesRenamePatchDialog.__updateUI">__updateUI</a></td> |
|
63 <td>Private slot to update the UI.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgQueuesRenamePatchDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the entered data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgQueuesRenamePatchDialog.on_nameCombo_currentIndexChanged">on_nameCombo_currentIndexChanged</a></td> |
|
71 <td>Private slot to handle changes of the selected patch name.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgQueuesRenamePatchDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
75 <td>Private slot to handle changes of the new name.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgQueuesRenamePatchDialog.on_namedButton_toggled">on_namedButton_toggled</a></td> |
|
79 <td>Private slot to handle changes of the selection method.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="HgQueuesRenamePatchDialog.__init__" ID="HgQueuesRenamePatchDialog.__init__"></a> |
|
89 <h4>HgQueuesRenamePatchDialog (Constructor)</h4> |
|
90 <b>HgQueuesRenamePatchDialog</b>(<i>currentPatch, patchesList, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>currentPatch</i></dt> |
|
98 <dd> |
|
99 name of the current patch (string) |
|
100 </dd> |
|
101 <dt><i>patchesList</i></dt> |
|
102 <dd> |
|
103 list of patches to select from (list of strings) |
|
104 </dd> |
|
105 <dt><i>parent</i></dt> |
|
106 <dd> |
|
107 reference to the parent widget (QWidget) |
|
108 </dd> |
|
109 </dl> |
|
110 <a NAME="HgQueuesRenamePatchDialog.__updateUI" ID="HgQueuesRenamePatchDialog.__updateUI"></a> |
|
111 <h4>HgQueuesRenamePatchDialog.__updateUI</h4> |
|
112 <b>__updateUI</b>(<i></i>) |
|
113 |
|
114 <p> |
|
115 Private slot to update the UI. |
|
116 </p> |
|
117 <a NAME="HgQueuesRenamePatchDialog.getData" ID="HgQueuesRenamePatchDialog.getData"></a> |
|
118 <h4>HgQueuesRenamePatchDialog.getData</h4> |
|
119 <b>getData</b>(<i></i>) |
|
120 |
|
121 <p> |
|
122 Public method to retrieve the entered data. |
|
123 </p> |
|
124 <dl> |
|
125 <dt>Return:</dt> |
|
126 <dd> |
|
127 tuple of new name and selected patch (string, string) |
|
128 </dd> |
|
129 </dl> |
|
130 <a NAME="HgQueuesRenamePatchDialog.on_nameCombo_currentIndexChanged" ID="HgQueuesRenamePatchDialog.on_nameCombo_currentIndexChanged"></a> |
|
131 <h4>HgQueuesRenamePatchDialog.on_nameCombo_currentIndexChanged</h4> |
|
132 <b>on_nameCombo_currentIndexChanged</b>(<i>index</i>) |
|
133 |
|
134 <p> |
|
135 Private slot to handle changes of the selected patch name. |
|
136 </p> |
|
137 <dl> |
|
138 |
|
139 <dt><i>index</i> (int)</dt> |
|
140 <dd> |
|
141 current index |
|
142 </dd> |
|
143 </dl> |
|
144 <a NAME="HgQueuesRenamePatchDialog.on_nameEdit_textChanged" ID="HgQueuesRenamePatchDialog.on_nameEdit_textChanged"></a> |
|
145 <h4>HgQueuesRenamePatchDialog.on_nameEdit_textChanged</h4> |
|
146 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
147 |
|
148 <p> |
|
149 Private slot to handle changes of the new name. |
|
150 </p> |
|
151 <dl> |
|
152 |
|
153 <dt><i>txt</i></dt> |
|
154 <dd> |
|
155 text of the edit (string) |
|
156 </dd> |
|
157 </dl> |
|
158 <a NAME="HgQueuesRenamePatchDialog.on_namedButton_toggled" ID="HgQueuesRenamePatchDialog.on_namedButton_toggled"></a> |
|
159 <h4>HgQueuesRenamePatchDialog.on_namedButton_toggled</h4> |
|
160 <b>on_namedButton_toggled</b>(<i>checked</i>) |
|
161 |
|
162 <p> |
|
163 Private slot to handle changes of the selection method. |
|
164 </p> |
|
165 <dl> |
|
166 |
|
167 <dt><i>checked</i></dt> |
|
168 <dd> |
|
169 state of the check box (boolean) |
|
170 </dd> |
|
171 </dl> |
|
172 <div align="right"><a href="#top">Up</a></div> |
|
173 <hr /> |
|
174 </body></html> |