5 |
5 |
6 """ |
6 """ |
7 Module implementing the QRegExp wizard dialog. |
7 Module implementing the QRegExp wizard dialog. |
8 """ |
8 """ |
9 |
9 |
10 import sys |
|
11 import os |
10 import os |
12 |
11 |
13 from PyQt4.QtCore import * |
12 from PyQt4.QtCore import * |
14 from PyQt4.QtGui import * |
13 from PyQt4.QtGui import * |
15 |
|
16 from E5Gui.E5Application import e5App |
|
17 |
14 |
18 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardDialog |
15 from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardDialog |
19 |
16 |
20 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
17 from .QRegExpWizardRepeatDialog import QRegExpWizardRepeatDialog |
21 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog |
18 from .QRegExpWizardCharactersDialog import QRegExpWizardCharactersDialog |
74 self.nextButton.setEnabled(False) |
71 self.nextButton.setEnabled(False) |
75 |
72 |
76 if fromEric: |
73 if fromEric: |
77 self.buttonBox.button(QDialogButtonBox.Close).hide() |
74 self.buttonBox.button(QDialogButtonBox.Close).hide() |
78 self.copyButton = None |
75 self.copyButton = None |
79 uitype = e5App().getObject("Project").getProjectType() |
|
80 else: |
76 else: |
81 self.copyButton = \ |
77 self.copyButton = \ |
82 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) |
78 self.buttonBox.addButton(self.trUtf8("Copy"), QDialogButtonBox.ActionRole) |
83 self.copyButton.setToolTip(\ |
79 self.copyButton.setToolTip(\ |
84 self.trUtf8("Copy the regular expression to the clipboard")) |
80 self.trUtf8("Copy the regular expression to the clipboard")) |