|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Plugins.VcsPlugins.vcsMercurial.HgAddSubrepositoryDialog</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.HgAddSubrepositoryDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to add a sub-repository. |
|
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="#HgAddSubrepositoryDialog">HgAddSubrepositoryDialog</a></td> |
|
25 <td>Class implementing a dialog to add a sub-repository.</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="HgAddSubrepositoryDialog" ID="HgAddSubrepositoryDialog"></a> |
|
36 <h2>HgAddSubrepositoryDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to add a sub-repository. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_HgAddSubrepositoryDialog |
|
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="#HgAddSubrepositoryDialog.__init__">HgAddSubrepositoryDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#HgAddSubrepositoryDialog.__updateOk">__updateOk</a></td> |
|
63 <td>Private slot to update the state of the OK button.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#HgAddSubrepositoryDialog.getData">getData</a></td> |
|
67 <td>Public method to get the data.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#HgAddSubrepositoryDialog.on_pathPicker_pathSelected">on_pathPicker_pathSelected</a></td> |
|
71 <td>Private slot handling the selection of a subrepository path.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#HgAddSubrepositoryDialog.on_pathPicker_textChanged">on_pathPicker_textChanged</a></td> |
|
75 <td>Private slot to handle the update of the path.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#HgAddSubrepositoryDialog.on_urlEdit_textChanged">on_urlEdit_textChanged</a></td> |
|
79 <td>Private slot to handle the update of the URL.</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="HgAddSubrepositoryDialog.__init__" ID="HgAddSubrepositoryDialog.__init__"></a> |
|
89 <h4>HgAddSubrepositoryDialog (Constructor)</h4> |
|
90 <b>HgAddSubrepositoryDialog</b>(<i>projectPath, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>projectPath</i></dt> |
|
98 <dd> |
|
99 project directory name (string) |
|
100 </dd> |
|
101 <dt><i>parent</i></dt> |
|
102 <dd> |
|
103 reference to the parent widget (QWidget) |
|
104 </dd> |
|
105 </dl> |
|
106 <a NAME="HgAddSubrepositoryDialog.__updateOk" ID="HgAddSubrepositoryDialog.__updateOk"></a> |
|
107 <h4>HgAddSubrepositoryDialog.__updateOk</h4> |
|
108 <b>__updateOk</b>(<i></i>) |
|
109 |
|
110 <p> |
|
111 Private slot to update the state of the OK button. |
|
112 </p> |
|
113 <a NAME="HgAddSubrepositoryDialog.getData" ID="HgAddSubrepositoryDialog.getData"></a> |
|
114 <h4>HgAddSubrepositoryDialog.getData</h4> |
|
115 <b>getData</b>(<i></i>) |
|
116 |
|
117 <p> |
|
118 Public method to get the data. |
|
119 </p> |
|
120 <dl> |
|
121 <dt>Return:</dt> |
|
122 <dd> |
|
123 tuple containing the relative path within the project, the |
|
124 sub-repository type and the sub-repository URL (string, string, |
|
125 string) |
|
126 </dd> |
|
127 </dl> |
|
128 <a NAME="HgAddSubrepositoryDialog.on_pathPicker_pathSelected" ID="HgAddSubrepositoryDialog.on_pathPicker_pathSelected"></a> |
|
129 <h4>HgAddSubrepositoryDialog.on_pathPicker_pathSelected</h4> |
|
130 <b>on_pathPicker_pathSelected</b>(<i>path</i>) |
|
131 |
|
132 <p> |
|
133 Private slot handling the selection of a subrepository path. |
|
134 </p> |
|
135 <dl> |
|
136 |
|
137 <dt><i>path</i> (str)</dt> |
|
138 <dd> |
|
139 path of the subrepository |
|
140 </dd> |
|
141 </dl> |
|
142 <a NAME="HgAddSubrepositoryDialog.on_pathPicker_textChanged" ID="HgAddSubrepositoryDialog.on_pathPicker_textChanged"></a> |
|
143 <h4>HgAddSubrepositoryDialog.on_pathPicker_textChanged</h4> |
|
144 <b>on_pathPicker_textChanged</b>(<i>p0</i>) |
|
145 |
|
146 <p> |
|
147 Private slot to handle the update of the path. |
|
148 </p> |
|
149 <dl> |
|
150 |
|
151 <dt><i>p0</i></dt> |
|
152 <dd> |
|
153 text of the path edit (string) |
|
154 </dd> |
|
155 </dl> |
|
156 <a NAME="HgAddSubrepositoryDialog.on_urlEdit_textChanged" ID="HgAddSubrepositoryDialog.on_urlEdit_textChanged"></a> |
|
157 <h4>HgAddSubrepositoryDialog.on_urlEdit_textChanged</h4> |
|
158 <b>on_urlEdit_textChanged</b>(<i>p0</i>) |
|
159 |
|
160 <p> |
|
161 Private slot to handle the update of the URL. |
|
162 </p> |
|
163 <dl> |
|
164 |
|
165 <dt><i>p0</i></dt> |
|
166 <dd> |
|
167 text of the URL edit (string) |
|
168 </dd> |
|
169 </dl> |
|
170 <div align="right"><a href="#top">Up</a></div> |
|
171 <hr /> |
|
172 </body></html> |