32 |
32 |
33 def __init__(self, project, parms=None, parent=None): |
33 def __init__(self, project, parms=None, parent=None): |
34 """ |
34 """ |
35 Constructor |
35 Constructor |
36 |
36 |
37 @param project reference to the project object (Project.Project) |
37 @param project reference to the project object |
|
38 @type Project |
38 @param parms parameters to set in the dialog |
39 @param parms parameters to set in the dialog |
|
40 @type dict |
39 @param parent parent widget of this dialog |
41 @param parent parent widget of this dialog |
|
42 @type QWidget |
40 """ |
43 """ |
41 super().__init__(parent) |
44 super().__init__(parent) |
42 self.setupUi(self) |
45 self.setupUi(self) |
43 |
46 |
44 self.startDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
47 self.startDirPicker.setMode(EricPathPickerModes.DIRECTORY_MODE) |
404 |
407 |
405 def __selectColor(self, colorKey): |
408 def __selectColor(self, colorKey): |
406 """ |
409 """ |
407 Private method to select a color. |
410 Private method to select a color. |
408 |
411 |
409 @param colorKey key of the color to select (string) |
412 @param colorKey key of the color to select |
|
413 @type str |
410 """ |
414 """ |
411 color = QColorDialog.getColor(QColor(self.colors[colorKey])) |
415 color = QColorDialog.getColor(QColor(self.colors[colorKey])) |
412 if color.isValid(): |
416 if color.isValid(): |
413 self.colors[colorKey] = color.name() |
417 self.colors[colorKey] = color.name() |
414 self.sample.setHtml(self.sampleText.format(**self.colors)) |
418 self.sample.setHtml(self.sampleText.format(**self.colors)) |
498 @pyqtSlot(bool) |
502 @pyqtSlot(bool) |
499 def on_qtHelpGroup_toggled(self, enabled): |
503 def on_qtHelpGroup_toggled(self, enabled): |
500 """ |
504 """ |
501 Private slot to toggle the generation of QtHelp files. |
505 Private slot to toggle the generation of QtHelp files. |
502 |
506 |
503 @param enabled flag indicating the state (boolean) |
507 @param enabled flag indicating the state |
|
508 @type bool |
504 """ |
509 """ |
505 self.__checkQtHelpOptions() |
510 self.__checkQtHelpOptions() |
506 |
511 |
507 @pyqtSlot(str) |
512 @pyqtSlot(str) |
508 def on_qtHelpNamespaceEdit_textChanged(self, txt): |
513 def on_qtHelpNamespaceEdit_textChanged(self, txt): |
509 """ |
514 """ |
510 Private slot to check the namespace. |
515 Private slot to check the namespace. |
511 |
516 |
512 @param txt text of the line edit (string) |
517 @param txt text of the line edit |
|
518 @type str |
513 """ |
519 """ |
514 self.__checkQtHelpOptions() |
520 self.__checkQtHelpOptions() |
515 |
521 |
516 @pyqtSlot(str) |
522 @pyqtSlot(str) |
517 def on_qtHelpFolderEdit_textChanged(self, txt): |
523 def on_qtHelpFolderEdit_textChanged(self, txt): |
518 """ |
524 """ |
519 Private slot to check the virtual folder. |
525 Private slot to check the virtual folder. |
520 |
526 |
521 @param txt text of the line edit (string) |
527 @param txt text of the line edit |
|
528 @type str |
522 """ |
529 """ |
523 self.__checkQtHelpOptions() |
530 self.__checkQtHelpOptions() |
524 |
531 |
525 @pyqtSlot(str) |
532 @pyqtSlot(str) |
526 def on_qtHelpTitleEdit_textChanged(self, txt): |
533 def on_qtHelpTitleEdit_textChanged(self, txt): |
527 """ |
534 """ |
528 Private slot to check the title. |
535 Private slot to check the title. |
529 |
536 |
530 @param txt text of the line edit (string) |
537 @param txt text of the line edit |
|
538 @type str |
531 """ |
539 """ |
532 self.__checkQtHelpOptions() |
540 self.__checkQtHelpOptions() |
533 |
541 |
534 @pyqtSlot(str) |
542 @pyqtSlot(str) |
535 def on_qtHelpDirPicker_pathSelected(self, path): |
543 def on_qtHelpDirPicker_pathSelected(self, path): |