42 super(QRegExpWizardWidget, self).__init__(parent) |
42 super(QRegExpWizardWidget, self).__init__(parent) |
43 self.setupUi(self) |
43 self.setupUi(self) |
44 |
44 |
45 # initialize icons of the tool buttons |
45 # initialize icons of the tool buttons |
46 # regexp tool buttons |
46 # regexp tool buttons |
47 self.charButton.setIcon(UI.PixmapCache.getIcon("characters.png")) |
47 self.charButton.setIcon(UI.PixmapCache.getIcon("characters")) |
48 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar.png")) |
48 self.anycharButton.setIcon(UI.PixmapCache.getIcon("anychar")) |
49 self.repeatButton.setIcon(UI.PixmapCache.getIcon("repeat.png")) |
49 self.repeatButton.setIcon(UI.PixmapCache.getIcon("repeat")) |
50 self.nonGroupButton.setIcon(UI.PixmapCache.getIcon("nongroup.png")) |
50 self.nonGroupButton.setIcon(UI.PixmapCache.getIcon("nongroup")) |
51 self.groupButton.setIcon(UI.PixmapCache.getIcon("group.png")) |
51 self.groupButton.setIcon(UI.PixmapCache.getIcon("group")) |
52 self.altnButton.setIcon(UI.PixmapCache.getIcon("altn.png")) |
52 self.altnButton.setIcon(UI.PixmapCache.getIcon("altn")) |
53 self.beglineButton.setIcon(UI.PixmapCache.getIcon("begline.png")) |
53 self.beglineButton.setIcon(UI.PixmapCache.getIcon("begline")) |
54 self.endlineButton.setIcon(UI.PixmapCache.getIcon("endline.png")) |
54 self.endlineButton.setIcon(UI.PixmapCache.getIcon("endline")) |
55 self.wordboundButton.setIcon( |
55 self.wordboundButton.setIcon( |
56 UI.PixmapCache.getIcon("wordboundary.png")) |
56 UI.PixmapCache.getIcon("wordboundary")) |
57 self.nonwordboundButton.setIcon( |
57 self.nonwordboundButton.setIcon( |
58 UI.PixmapCache.getIcon("nonwordboundary.png")) |
58 UI.PixmapCache.getIcon("nonwordboundary")) |
59 self.poslookaheadButton.setIcon( |
59 self.poslookaheadButton.setIcon( |
60 UI.PixmapCache.getIcon("poslookahead.png")) |
60 UI.PixmapCache.getIcon("poslookahead")) |
61 self.neglookaheadButton.setIcon( |
61 self.neglookaheadButton.setIcon( |
62 UI.PixmapCache.getIcon("neglookahead.png")) |
62 UI.PixmapCache.getIcon("neglookahead")) |
63 self.undoButton.setIcon(UI.PixmapCache.getIcon("editUndo.png")) |
63 self.undoButton.setIcon(UI.PixmapCache.getIcon("editUndo")) |
64 self.redoButton.setIcon(UI.PixmapCache.getIcon("editRedo.png")) |
64 self.redoButton.setIcon(UI.PixmapCache.getIcon("editRedo")) |
65 # wildcard tool buttons |
65 # wildcard tool buttons |
66 self.wildcardCharButton.setIcon( |
66 self.wildcardCharButton.setIcon( |
67 UI.PixmapCache.getIcon("characters.png")) |
67 UI.PixmapCache.getIcon("characters")) |
68 self.wildcardAnycharButton.setIcon( |
68 self.wildcardAnycharButton.setIcon( |
69 UI.PixmapCache.getIcon("anychar.png")) |
69 UI.PixmapCache.getIcon("anychar")) |
70 self.wildcardRepeatButton.setIcon(UI.PixmapCache.getIcon("repeat.png")) |
70 self.wildcardRepeatButton.setIcon(UI.PixmapCache.getIcon("repeat")) |
71 # W3C tool buttons |
71 # W3C tool buttons |
72 self.w3cCharButton.setIcon(UI.PixmapCache.getIcon("characters.png")) |
72 self.w3cCharButton.setIcon(UI.PixmapCache.getIcon("characters")) |
73 self.w3cAnycharButton.setIcon(UI.PixmapCache.getIcon("anychar.png")) |
73 self.w3cAnycharButton.setIcon(UI.PixmapCache.getIcon("anychar")) |
74 self.w3cRepeatButton.setIcon(UI.PixmapCache.getIcon("repeat.png")) |
74 self.w3cRepeatButton.setIcon(UI.PixmapCache.getIcon("repeat")) |
75 self.w3cGroupButton.setIcon(UI.PixmapCache.getIcon("group.png")) |
75 self.w3cGroupButton.setIcon(UI.PixmapCache.getIcon("group")) |
76 self.w3cAltnButton.setIcon(UI.PixmapCache.getIcon("altn.png")) |
76 self.w3cAltnButton.setIcon(UI.PixmapCache.getIcon("altn")) |
77 |
77 |
78 # initialize the syntax pattern combo |
78 # initialize the syntax pattern combo |
79 self.syntaxCombo.addItem("RegExp", QRegExp.RegExp) |
79 self.syntaxCombo.addItem("RegExp", QRegExp.RegExp) |
80 self.syntaxCombo.addItem("RegExp2", QRegExp.RegExp2) |
80 self.syntaxCombo.addItem("RegExp2", QRegExp.RegExp2) |
81 self.syntaxCombo.addItem("Wildcard", QRegExp.Wildcard) |
81 self.syntaxCombo.addItem("Wildcard", QRegExp.Wildcard) |