98 Private method to display a dialog and get the code. |
98 Private method to display a dialog and get the code. |
99 |
99 |
100 @param editor reference to the current editor |
100 @param editor reference to the current editor |
101 @return the generated code (string) and a success flag (boolean) |
101 @return the generated code (string) and a success flag (boolean) |
102 """ |
102 """ |
103 from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import \ |
103 from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import ( |
104 ColorDialogWizardDialog |
104 ColorDialogWizardDialog |
|
105 ) |
105 dlg = ColorDialogWizardDialog(None) |
106 dlg = ColorDialogWizardDialog(None) |
106 if dlg.exec_() == QDialog.Accepted: |
107 if dlg.exec_() == QDialog.Accepted: |
107 line, index = editor.getCursorPosition() |
108 line, index = editor.getCursorPosition() |
108 indLevel = editor.indentation(line) // editor.indentationWidth() |
109 indLevel = editor.indentation(line) // editor.indentationWidth() |
109 if editor.indentationsUseTabs(): |
110 if editor.indentationsUseTabs(): |