src/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9433
6df1aeaa4529
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
21 QDialogButtonBox, 21 QDialogButtonBox,
22 QVBoxLayout, 22 QVBoxLayout,
23 QTableWidgetItem, 23 QTableWidgetItem,
24 ) 24 )
25 25
26 from EricWidgets import EricMessageBox, EricFileDialog 26 from eric7.EricWidgets import EricMessageBox, EricFileDialog
27 from EricWidgets.EricMainWindow import EricMainWindow 27 from eric7.EricWidgets.EricMainWindow import EricMainWindow
28 28
29 from .Ui_PyRegExpWizardDialog import Ui_PyRegExpWizardDialog 29 from .Ui_PyRegExpWizardDialog import Ui_PyRegExpWizardDialog
30 30
31 import UI.PixmapCache 31 from eric7.EricGui import EricPixmapCache
32 32
33 import Utilities 33 from eric7 import Preferences, Utilities
34 import Preferences
35 34
36 35
37 class PyRegExpWizardWidget(QWidget, Ui_PyRegExpWizardDialog): 36 class PyRegExpWizardWidget(QWidget, Ui_PyRegExpWizardDialog):
38 """ 37 """
39 Class implementing the Python re wizard dialog. 38 Class implementing the Python re wizard dialog.
48 """ 47 """
49 super().__init__(parent) 48 super().__init__(parent)
50 self.setupUi(self) 49 self.setupUi(self)
51 50
52 # initialize icons of the tool buttons 51 # initialize icons of the tool buttons
53 self.commentButton.setIcon(UI.PixmapCache.getIcon("comment")) 52 self.commentButton.setIcon(EricPixmapCache.getIcon("comment"))
54 self.charButton.setIcon(UI.PixmapCache.getIcon("characters")) 53 self.charButton.setIcon(EricPixmapCache.getIcon("characters"))
55 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar")) 54 self.anycharButton.setIcon(EricPixmapCache.getIcon("anychar"))
56 self.repeatButton.setIcon(UI.PixmapCache.getIcon("repeat")) 55 self.repeatButton.setIcon(EricPixmapCache.getIcon("repeat"))
57 self.nonGroupButton.setIcon(UI.PixmapCache.getIcon("nongroup")) 56 self.nonGroupButton.setIcon(EricPixmapCache.getIcon("nongroup"))
58 self.groupButton.setIcon(UI.PixmapCache.getIcon("group")) 57 self.groupButton.setIcon(EricPixmapCache.getIcon("group"))
59 self.namedGroupButton.setIcon(UI.PixmapCache.getIcon("namedgroup")) 58 self.namedGroupButton.setIcon(EricPixmapCache.getIcon("namedgroup"))
60 self.namedReferenceButton.setIcon(UI.PixmapCache.getIcon("namedreference")) 59 self.namedReferenceButton.setIcon(EricPixmapCache.getIcon("namedreference"))
61 self.altnButton.setIcon(UI.PixmapCache.getIcon("altn")) 60 self.altnButton.setIcon(EricPixmapCache.getIcon("altn"))
62 self.beglineButton.setIcon(UI.PixmapCache.getIcon("begline")) 61 self.beglineButton.setIcon(EricPixmapCache.getIcon("begline"))
63 self.endlineButton.setIcon(UI.PixmapCache.getIcon("endline")) 62 self.endlineButton.setIcon(EricPixmapCache.getIcon("endline"))
64 self.wordboundButton.setIcon(UI.PixmapCache.getIcon("wordboundary")) 63 self.wordboundButton.setIcon(EricPixmapCache.getIcon("wordboundary"))
65 self.nonwordboundButton.setIcon(UI.PixmapCache.getIcon("nonwordboundary")) 64 self.nonwordboundButton.setIcon(EricPixmapCache.getIcon("nonwordboundary"))
66 self.poslookaheadButton.setIcon(UI.PixmapCache.getIcon("poslookahead")) 65 self.poslookaheadButton.setIcon(EricPixmapCache.getIcon("poslookahead"))
67 self.neglookaheadButton.setIcon(UI.PixmapCache.getIcon("neglookahead")) 66 self.neglookaheadButton.setIcon(EricPixmapCache.getIcon("neglookahead"))
68 self.poslookbehindButton.setIcon(UI.PixmapCache.getIcon("poslookbehind")) 67 self.poslookbehindButton.setIcon(EricPixmapCache.getIcon("poslookbehind"))
69 self.neglookbehindButton.setIcon(UI.PixmapCache.getIcon("neglookbehind")) 68 self.neglookbehindButton.setIcon(EricPixmapCache.getIcon("neglookbehind"))
70 self.undoButton.setIcon(UI.PixmapCache.getIcon("editUndo")) 69 self.undoButton.setIcon(EricPixmapCache.getIcon("editUndo"))
71 self.redoButton.setIcon(UI.PixmapCache.getIcon("editRedo")) 70 self.redoButton.setIcon(EricPixmapCache.getIcon("editRedo"))
72 71
73 self.namedGroups = re.compile(r"""\(?P<([^>]+)>""").findall 72 self.namedGroups = re.compile(r"""\(?P<([^>]+)>""").findall
74 73
75 self.saveButton = self.buttonBox.addButton( 74 self.saveButton = self.buttonBox.addButton(
76 self.tr("Save"), QDialogButtonBox.ButtonRole.ActionRole 75 self.tr("Save"), QDialogButtonBox.ButtonRole.ActionRole

eric ide

mercurial