7 Module implementing a dialog to enter the data for a new dialog class file. |
7 Module implementing a dialog to enter the data for a new dialog class file. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
|
12 from PyQt6.QtCore import pyqtSlot |
12 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
13 from PyQt6.QtWidgets import QDialog, QDialogButtonBox |
13 |
14 |
14 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
15 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes |
15 |
16 |
16 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog |
17 from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog |
53 self.classnameEdit.text() != "" |
54 self.classnameEdit.text() != "" |
54 and self.filenameEdit.text() != "" |
55 and self.filenameEdit.text() != "" |
55 and self.pathnamePicker.text() != "" |
56 and self.pathnamePicker.text() != "" |
56 ) |
57 ) |
57 |
58 |
|
59 @pyqtSlot(str) |
58 def on_classnameEdit_textChanged(self, text): |
60 def on_classnameEdit_textChanged(self, text): |
59 """ |
61 """ |
60 Private slot called, when thext of the classname edit has changed. |
62 Private slot called, when thext of the classname edit has changed. |
61 |
63 |
62 @param text changed text (string) |
64 @param text changed text (string) |
63 """ |
65 """ |
64 self.__enableOkButton() |
66 self.__enableOkButton() |
65 |
67 |
|
68 @pyqtSlot(str) |
66 def on_filenameEdit_textChanged(self, text): |
69 def on_filenameEdit_textChanged(self, text): |
67 """ |
70 """ |
68 Private slot called, when thext of the filename edit has changed. |
71 Private slot called, when thext of the filename edit has changed. |
69 |
72 |
70 @param text changed text (string) |
73 @param text changed text (string) |
71 """ |
74 """ |
72 self.__enableOkButton() |
75 self.__enableOkButton() |
73 |
76 |
|
77 @pyqtSlot(str) |
74 def on_pathnamePicker_textChanged(self, text): |
78 def on_pathnamePicker_textChanged(self, text): |
75 """ |
79 """ |
76 Private slot called, when the text of the path name has changed. |
80 Private slot called, when the text of the path name has changed. |
77 |
81 |
78 @param text changed text (string) |
82 @param text changed text (string) |