123 |
124 |
124 def getCode(self): |
125 def getCode(self): |
125 """ |
126 """ |
126 Public method to get the source code. |
127 Public method to get the source code. |
127 |
128 |
128 @return generated code (string) |
129 @return generated code |
|
130 @rtype str |
129 """ |
131 """ |
130 templateData = { |
132 templateData = { |
131 "year": QDate.currentDate().year(), |
133 "year": QDate.currentDate().year(), |
132 "author": self.authorEdit.text(), |
134 "author": self.authorEdit.text(), |
133 "email": self.authorEmailEdit.text(), |
135 "email": self.authorEmailEdit.text(), |
195 |
197 |
196 def packageName(self): |
198 def packageName(self): |
197 """ |
199 """ |
198 Public method to retrieve the plug-in package name. |
200 Public method to retrieve the plug-in package name. |
199 |
201 |
200 @return plug-in package name (string) |
202 @return plug-in package name |
|
203 @rtype str |
201 """ |
204 """ |
202 if self.createPackageCheckBox.isChecked(): |
205 if self.createPackageCheckBox.isChecked(): |
203 return self.packageNameEdit.text() |
206 return self.packageNameEdit.text() |
204 else: |
207 else: |
205 return "" |
208 return "" |
207 @pyqtSlot(str) |
210 @pyqtSlot(str) |
208 def on_pluginTypeCombo_currentTextChanged(self, txt): |
211 def on_pluginTypeCombo_currentTextChanged(self, txt): |
209 """ |
212 """ |
210 Private slot to react upon the selection of a plug-in type. |
213 Private slot to react upon the selection of a plug-in type. |
211 |
214 |
212 @param txt selected plug-in type (string) |
215 @param txt selected plug-in type |
|
216 @type str |
213 """ |
217 """ |
214 self.pixmapCheckBox.setChecked(txt == "viewmanager") |
218 self.pixmapCheckBox.setChecked(txt == "viewmanager") |