|
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>Plugin_Refactoring_Rope.RefactoringRope.RestructureDialog</title> |
|
6 <style> |
|
7 body { |
|
8 background: #EDECE6; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #85774A; } |
|
14 h2 { color: white; background: #85774A; } |
|
15 h3 { color: white; background: #9D936E; } |
|
16 h4 { color: white; background: #9D936E; } |
|
17 |
|
18 a { color: #BA6D36; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>Plugin_Refactoring_Rope.RefactoringRope.RestructureDialog</h1> |
|
24 <p> |
|
25 Module implementing the Restructure dialog. |
|
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="#RestructureDialog">RestructureDialog</a></td> |
|
35 <td>Class implementing the Restructure dialog.</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="RestructureDialog" ID="RestructureDialog"></a> |
|
44 <h2>RestructureDialog</h2> |
|
45 <p> |
|
46 Class implementing the Restructure dialog. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 RefactoringDialogBase, Ui_RestructureDialog |
|
50 <h3>Class Attributes</h3> |
|
51 <table> |
|
52 <tr><td>history</td></tr> |
|
53 </table> |
|
54 <h3>Methods</h3> |
|
55 <table> |
|
56 <tr> |
|
57 <td><a href="#RestructureDialog.__init__">RestructureDialog</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#RestructureDialog.__loadData">__loadData</a></td> |
|
61 <td>Private slot to load the history data into the dialog.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#RestructureDialog.__saveData">__saveData</a></td> |
|
64 <td>Private slot to save the data for later reuse.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#RestructureDialog.__updateUI">__updateUI</a></td> |
|
67 <td>Private slot to update the UI.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#RestructureDialog._calculateChanges">_calculateChanges</a></td> |
|
70 <td>Protected method to calculate the changes.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#RestructureDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
73 <td>Private slot to act on the button pressed.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#RestructureDialog.on_goalEdit_textChanged">on_goalEdit_textChanged</a></td> |
|
76 <td>Private slot to react to changes of the goal.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#RestructureDialog.on_patternEdit_textChanged">on_patternEdit_textChanged</a></td> |
|
79 <td>Private slot to react to changes of the pattern.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <a NAME="RestructureDialog.__init__" ID="RestructureDialog.__init__"></a> |
|
83 <h4>RestructureDialog (Constructor)</h4> |
|
84 <b>RestructureDialog</b>(<i>refactoring, title, parent = None</i>) |
|
85 <p> |
|
86 Constructor |
|
87 </p><dl> |
|
88 <dt><i>refactoring</i></dt> |
|
89 <dd> |
|
90 reference to the main refactoring object |
|
91 (Refactoring) |
|
92 </dd><dt><i>title</i></dt> |
|
93 <dd> |
|
94 title of the dialog (string) |
|
95 </dd><dt><i>parent</i></dt> |
|
96 <dd> |
|
97 reference to the parent widget (QWidget) |
|
98 </dd> |
|
99 </dl><a NAME="RestructureDialog.__loadData" ID="RestructureDialog.__loadData"></a> |
|
100 <h4>RestructureDialog.__loadData</h4> |
|
101 <b>__loadData</b>(<i></i>) |
|
102 <p> |
|
103 Private slot to load the history data into the dialog. |
|
104 </p><a NAME="RestructureDialog.__saveData" ID="RestructureDialog.__saveData"></a> |
|
105 <h4>RestructureDialog.__saveData</h4> |
|
106 <b>__saveData</b>(<i></i>) |
|
107 <p> |
|
108 Private slot to save the data for later reuse. |
|
109 </p><a NAME="RestructureDialog.__updateUI" ID="RestructureDialog.__updateUI"></a> |
|
110 <h4>RestructureDialog.__updateUI</h4> |
|
111 <b>__updateUI</b>(<i></i>) |
|
112 <p> |
|
113 Private slot to update the UI. |
|
114 </p><a NAME="RestructureDialog._calculateChanges" ID="RestructureDialog._calculateChanges"></a> |
|
115 <h4>RestructureDialog._calculateChanges</h4> |
|
116 <b>_calculateChanges</b>(<i>handle</i>) |
|
117 <p> |
|
118 Protected method to calculate the changes. |
|
119 </p><dl> |
|
120 <dt><i>handle</i></dt> |
|
121 <dd> |
|
122 reference to the task handle |
|
123 (rope.base.taskhandle.TaskHandle) |
|
124 </dd> |
|
125 </dl><dl> |
|
126 <dt>Returns:</dt> |
|
127 <dd> |
|
128 reference to the Changes object (rope.base.change.ChangeSet) |
|
129 </dd> |
|
130 </dl><a NAME="RestructureDialog.on_buttonBox_clicked" ID="RestructureDialog.on_buttonBox_clicked"></a> |
|
131 <h4>RestructureDialog.on_buttonBox_clicked</h4> |
|
132 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
133 <p> |
|
134 Private slot to act on the button pressed. |
|
135 </p><dl> |
|
136 <dt><i>button</i></dt> |
|
137 <dd> |
|
138 reference to the button pressed (QAbstractButton) |
|
139 </dd> |
|
140 </dl><a NAME="RestructureDialog.on_goalEdit_textChanged" ID="RestructureDialog.on_goalEdit_textChanged"></a> |
|
141 <h4>RestructureDialog.on_goalEdit_textChanged</h4> |
|
142 <b>on_goalEdit_textChanged</b>(<i></i>) |
|
143 <p> |
|
144 Private slot to react to changes of the goal. |
|
145 </p><a NAME="RestructureDialog.on_patternEdit_textChanged" ID="RestructureDialog.on_patternEdit_textChanged"></a> |
|
146 <h4>RestructureDialog.on_patternEdit_textChanged</h4> |
|
147 <b>on_patternEdit_textChanged</b>(<i></i>) |
|
148 <p> |
|
149 Private slot to react to changes of the pattern. |
|
150 </p> |
|
151 <div align="right"><a href="#top">Up</a></div> |
|
152 <hr /> |
|
153 </body></html> |