Wed, 13 Jan 2010 18:53:58 +0000
Renamed E4Gui to E5Gui.
--- a/APIs/Python3/eric5.api Tue Jan 12 18:39:15 2010 +0000 +++ b/APIs/Python3/eric5.api Wed Jan 13 18:53:58 2010 +0000 @@ -953,229 +953,6 @@ eric5.DocumentationTools.TemplatesListsStyleCSS.signalsListTemplate?7 eric5.DocumentationTools.TemplatesListsStyleCSS.sinceInfoTemplate?7 eric5.DocumentationTools.supportedExtensionsDictForApis?7 -eric5.E4Gui.E4Action.ArgumentsError?1(error) -eric5.E4Gui.E4Action.E4Action.alternateShortcut?4() -eric5.E4Gui.E4Action.E4Action.setAlternateShortcut?4(shortcut) -eric5.E4Gui.E4Action.E4Action?1(*args) -eric5.E4Gui.E4Action.addActions?4(target, actions) -eric5.E4Gui.E4Action.createActionGroup?4(parent, name = None, exclusive = False) -eric5.E4Gui.E4Application.E4Application.getObject?4(name) -eric5.E4Gui.E4Application.E4Application.getPluginObject?4(name) -eric5.E4Gui.E4Application.E4Application.getPluginObjectType?4(name) -eric5.E4Gui.E4Application.E4Application.getPluginObjects?4() -eric5.E4Gui.E4Application.E4Application.registerObject?4(name, object) -eric5.E4Gui.E4Application.E4Application.registerPluginObject?4(name, object, pluginType = None) -eric5.E4Gui.E4Application.E4Application.unregisterPluginObject?4(name) -eric5.E4Gui.E4Application.E4Application?1(argv) -eric5.E4Gui.E4Application.e4App?7 -eric5.E4Gui.E4Completers.E4DirCompleter?1(parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False) -eric5.E4Gui.E4Completers.E4FileCompleter?1(parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False) -eric5.E4Gui.E4Completers.E4StringListCompleter?1(parent = None, strings = [], completionMode = QCompleter.PopupCompletion) -eric5.E4Gui.E4Led.E4Led.color?4() -eric5.E4Gui.E4Led.E4Led.darkFactor?4() -eric5.E4Gui.E4Led.E4Led.isFramed?4() -eric5.E4Gui.E4Led.E4Led.isOn?4() -eric5.E4Gui.E4Led.E4Led.minimumSizeHint?4() -eric5.E4Gui.E4Led.E4Led.off?4() -eric5.E4Gui.E4Led.E4Led.on?4() -eric5.E4Gui.E4Led.E4Led.paintEvent?4(evt) -eric5.E4Gui.E4Led.E4Led.ratio?4() -eric5.E4Gui.E4Led.E4Led.setColor?4(color) -eric5.E4Gui.E4Led.E4Led.setDarkFactor?4(darkfactor) -eric5.E4Gui.E4Led.E4Led.setFramed?4(framed) -eric5.E4Gui.E4Led.E4Led.setOn?4(state) -eric5.E4Gui.E4Led.E4Led.setRatio?4(ratio) -eric5.E4Gui.E4Led.E4Led.setShape?4(shape) -eric5.E4Gui.E4Led.E4Led.shape?4() -eric5.E4Gui.E4Led.E4Led.sizeHint?4() -eric5.E4Gui.E4Led.E4Led.toggle?4() -eric5.E4Gui.E4Led.E4Led?1(parent = None, color = None, shape = E4LedCircular, rectRatio = 1) -eric5.E4Gui.E4Led.E4LedCircular?7 -eric5.E4Gui.E4Led.E4LedRectangular?7 -eric5.E4Gui.E4LineEdit.E4LineEdit.inactiveText?4() -eric5.E4Gui.E4LineEdit.E4LineEdit.paintEvent?4(evt) -eric5.E4Gui.E4LineEdit.E4LineEdit.setInactiveText?4(inactiveText) -eric5.E4Gui.E4LineEdit.E4LineEdit?1(parent = None, inactiveText = "") -eric5.E4Gui.E4ListView.E4ListView.keyPressEvent?4(evt) -eric5.E4Gui.E4ListView.E4ListView.removeAll?4() -eric5.E4Gui.E4ListView.E4ListView.removeSelected?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.createBaseMenu?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.createMenu?4(parent, max_, parentMenu = None, menu = None) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.dragEnterEvent?4(evt) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.dropEvent?4(evt) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.firstSeparator?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.index?4(action) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.makeAction?4(icon, text, parent) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.maxRows?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.model?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.mouseMoveEvent?4(evt) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.mousePressEvent?4(evt) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.mouseReleaseEvent?4(evt) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.postPopulated?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.prePopulated?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.removeEntry?4(idx) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.resetFlags?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.rootIndex?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.separatorRole?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setFirstSeparator?4(offset) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setMaxRows?4(rows) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setModel?4(model) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setRootIndex?4(index) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setSeparatorRole?4(role) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.setStatusBarTextRole?4(role) -eric5.E4Gui.E4ModelMenu.E4ModelMenu.statusBarTextRole?4() -eric5.E4Gui.E4ModelMenu.E4ModelMenu?1(parent = None) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar._build?5() -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar._createMenu?5() -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.dragEnterEvent?4(evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.dropEvent?4(evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.eventFilter?4(obj, evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.hideEvent?4(evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.index?4(action) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.model?4() -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.mouseMoveEvent?4(evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.resetFlags?4() -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.rootIndex?4() -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.setModel?4(model) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.setRootIndex?4(idx) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar.showEvent?4(evt) -eric5.E4Gui.E4ModelToolBar.E4ModelToolBar?1(title = None, parent = None) -eric5.E4Gui.E4SideBar.E4SideBar.East?7 -eric5.E4Gui.E4SideBar.E4SideBar.North?7 -eric5.E4Gui.E4SideBar.E4SideBar.South?7 -eric5.E4Gui.E4SideBar.E4SideBar.Version?7 -eric5.E4Gui.E4SideBar.E4SideBar.West?7 -eric5.E4Gui.E4SideBar.E4SideBar.addTab?4(widget, iconOrLabel, label = None) -eric5.E4Gui.E4SideBar.E4SideBar.clear?4() -eric5.E4Gui.E4SideBar.E4SideBar.count?4() -eric5.E4Gui.E4SideBar.E4SideBar.currentIndex?4() -eric5.E4Gui.E4SideBar.E4SideBar.currentWidget?4() -eric5.E4Gui.E4SideBar.E4SideBar.enterEvent?4(event) -eric5.E4Gui.E4SideBar.E4SideBar.eventFilter?4(obj, evt) -eric5.E4Gui.E4SideBar.E4SideBar.expand?4() -eric5.E4Gui.E4SideBar.E4SideBar.indexOf?4(widget) -eric5.E4Gui.E4SideBar.E4SideBar.insertTab?4(index, widget, iconOrLabel, label = None) -eric5.E4Gui.E4SideBar.E4SideBar.isAutoHiding?4() -eric5.E4Gui.E4SideBar.E4SideBar.isMinimized?4() -eric5.E4Gui.E4SideBar.E4SideBar.isTabEnabled?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.leaveEvent?4(event) -eric5.E4Gui.E4SideBar.E4SideBar.nextTab?4() -eric5.E4Gui.E4SideBar.E4SideBar.orientation?4() -eric5.E4Gui.E4SideBar.E4SideBar.prevTab?4() -eric5.E4Gui.E4SideBar.E4SideBar.removeTab?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.restoreState?4(state) -eric5.E4Gui.E4SideBar.E4SideBar.saveState?4() -eric5.E4Gui.E4SideBar.E4SideBar.setCurrentIndex?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.setCurrentWidget?4(widget) -eric5.E4Gui.E4SideBar.E4SideBar.setOrientation?4(orient) -eric5.E4Gui.E4SideBar.E4SideBar.setSplitter?4(splitter) -eric5.E4Gui.E4SideBar.E4SideBar.setTabEnabled?4(index, enabled) -eric5.E4Gui.E4SideBar.E4SideBar.setTabIcon?4(index, icon) -eric5.E4Gui.E4SideBar.E4SideBar.setTabText?4(index, text) -eric5.E4Gui.E4SideBar.E4SideBar.setTabToolTip?4(index, tip) -eric5.E4Gui.E4SideBar.E4SideBar.setTabWhatsThis?4(index, text) -eric5.E4Gui.E4SideBar.E4SideBar.shrink?4() -eric5.E4Gui.E4SideBar.E4SideBar.tabIcon?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.tabText?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.tabToolTip?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.tabWhatsThis?4(index) -eric5.E4Gui.E4SideBar.E4SideBar.widget?4(index) -eric5.E4Gui.E4SideBar.E4SideBar?1(orientation = None, parent = None) -eric5.E4Gui.E4SingleApplication.E4SingleApplicationClient.processArgs?4(args) -eric5.E4Gui.E4SingleApplication.E4SingleApplicationClient?1() -eric5.E4Gui.E4SingleApplication.E4SingleApplicationServer.handleCommand?4(cmd, params) -eric5.E4Gui.E4SingleApplication.E4SingleApplicationServer?1() -eric5.E4Gui.E4SingleApplication.SAArguments?7 -eric5.E4Gui.E4SingleApplication.SAFile?7 -eric5.E4Gui.E4SingleApplication.SAOpenFile?7 -eric5.E4Gui.E4SingleApplication.SAOpenProject?7 -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabel.paintEvent?4(event) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabel.setText?4(txt) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabel?1(parent = None) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath.length?4(txt) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath.paintEvent?4(event) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath.setPath?4(path) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath.setSurrounding?4(surrounding) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath.setTextPath?4(surrounding, path) -eric5.E4Gui.E4SqueezeLabels.E4SqueezeLabelPath?1(parent = None) -eric5.E4Gui.E4TabWidget.E4DnDTabBar.dragEnterEvent?4(event) -eric5.E4Gui.E4TabWidget.E4DnDTabBar.dropEvent?4(event) -eric5.E4Gui.E4TabWidget.E4DnDTabBar.mouseMoveEvent?4(event) -eric5.E4Gui.E4TabWidget.E4DnDTabBar.mousePressEvent?4(event) -eric5.E4Gui.E4TabWidget.E4DnDTabBar?1(parent = None) -eric5.E4Gui.E4TabWidget.E4TabWidget.animationLabel?4(index, animationFile) -eric5.E4Gui.E4TabWidget.E4TabWidget.moveTab?4(curIndex, newIndex) -eric5.E4Gui.E4TabWidget.E4TabWidget.nextTab?4() -eric5.E4Gui.E4TabWidget.E4TabWidget.prevTab?4() -eric5.E4Gui.E4TabWidget.E4TabWidget.resetAnimation?4(index) -eric5.E4Gui.E4TabWidget.E4TabWidget.selectTab?4(pos) -eric5.E4Gui.E4TabWidget.E4TabWidget.setTabContextMenuPolicy?4(policy) -eric5.E4Gui.E4TabWidget.E4TabWidget.switchTab?4() -eric5.E4Gui.E4TabWidget.E4TabWidget?1(parent = None, dnd = False) -eric5.E4Gui.E4TabWidget.E4WheelTabBar.wheelEvent?4(event) -eric5.E4Gui.E4TabWidget.E4WheelTabBar?1(parent = None) -eric5.E4Gui.E4TableView.E4TableView.keyPressEvent?4(evt) -eric5.E4Gui.E4TableView.E4TableView.removeAll?4() -eric5.E4Gui.E4TableView.E4TableView.removeSelected?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.ActionIdRole?7 -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.WidgetActionRole?7 -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_actionsTree_currentItemChanged?4(current, previous) -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_buttonBox_clicked?4(button) -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_downButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_leftButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_newButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_removeButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_renameButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_rightButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_toolbarActionsList_currentItemChanged?4(current, previous) -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog.on_upButton_clicked?4() -eric5.E4Gui.E4ToolBarDialog.E4ToolBarDialog?1(toolBarManager, parent = None) -eric5.E4Gui.E4ToolBarDialog.E4ToolBarItem?1(toolBarId, actionIDs, default) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.CustomToolBarMarker?7 -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.ToolBarMarker?7 -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.VersionMarker?7 -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.actionById?4(aID) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.addAction?4(action, category) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.addToolBar?4(toolBar, category) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.categories?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.categoryActions?4(category) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.createToolBar?4(title) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.defaultToolBarActions?4(tbID) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.defaultToolBars?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.deleteToolBar?4(toolBar) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.isDefaultToolBar?4(toolBar) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.isWidgetAction?4(action) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.mainWindow?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.removeAction?4(action) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.removeToolBar?4(toolBar) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.removeWidgetActions?4(actions) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.renameToolBar?4(toolBar, title) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.resetAllToolBars?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.resetToolBar?4(toolBar) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.restoreState?4(state, version = 0) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.saveState?4(version = 0) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.setMainWindow?4(mainWindow) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.setToolBar?4(toolBar, actions) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.setToolBars?4(toolBars) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.toolBarActions?4(tbID) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.toolBarById?4(tbID) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.toolBarWidgetAction?4(action) -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.toolBars?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager.toolBarsActions?4() -eric5.E4Gui.E4ToolBarManager.E4ToolBarManager?1(ui = None, parent = None) -eric5.E4Gui.E4ToolBox.E4HorizontalToolBox.addItem?4(widget, icon, text) -eric5.E4Gui.E4ToolBox.E4HorizontalToolBox.insertItem?4(index, widget, icon, text) -eric5.E4Gui.E4ToolBox.E4HorizontalToolBox.setItemEnabled?4(index, enabled) -eric5.E4Gui.E4ToolBox.E4HorizontalToolBox.setItemToolTip?4(index, toolTip) -eric5.E4Gui.E4ToolBox.E4HorizontalToolBox?1(parent = None) -eric5.E4Gui.E4ToolBox.E4VerticalToolBox.wheelEvent?4(event) -eric5.E4Gui.E4ToolBox.E4VerticalToolBox?1(parent = None) -eric5.E4Gui.E4TreeSortFilterProxyModel.E4TreeSortFilterProxyModel.filterAcceptsRow?4(sourceRow, sourceParent) -eric5.E4Gui.E4TreeSortFilterProxyModel.E4TreeSortFilterProxyModel.hasChildren?4(parent = QModelIndex()) -eric5.E4Gui.E4TreeSortFilterProxyModel.E4TreeSortFilterProxyModel?1(parent = None) -eric5.E4Gui.E4TreeView.E4TreeView.keyPressEvent?4(evt) -eric5.E4Gui.E4TreeView.E4TreeView.removeAll?4() -eric5.E4Gui.E4TreeView.E4TreeView.removeSelected?4() eric5.E5Graphics.E5ArrowItem.ArrowheadAngleFactor?7 eric5.E5Graphics.E5ArrowItem.E5ArrowItem.boundingRect?4() eric5.E5Graphics.E5ArrowItem.E5ArrowItem.paint?4(painter, option, widget = None) @@ -1198,6 +975,229 @@ eric5.E5Graphics.E5GraphicsView.E5GraphicsView.zoomOut?4() eric5.E5Graphics.E5GraphicsView.E5GraphicsView.zoomReset?4() eric5.E5Graphics.E5GraphicsView.E5GraphicsView?1(scene, parent = None) +eric5.E5Gui.E5Action.ArgumentsError?1(error) +eric5.E5Gui.E5Action.E5Action.alternateShortcut?4() +eric5.E5Gui.E5Action.E5Action.setAlternateShortcut?4(shortcut) +eric5.E5Gui.E5Action.E5Action?1(*args) +eric5.E5Gui.E5Action.addActions?4(target, actions) +eric5.E5Gui.E5Action.createActionGroup?4(parent, name = None, exclusive = False) +eric5.E5Gui.E5Application.E5Application.getObject?4(name) +eric5.E5Gui.E5Application.E5Application.getPluginObject?4(name) +eric5.E5Gui.E5Application.E5Application.getPluginObjectType?4(name) +eric5.E5Gui.E5Application.E5Application.getPluginObjects?4() +eric5.E5Gui.E5Application.E5Application.registerObject?4(name, object) +eric5.E5Gui.E5Application.E5Application.registerPluginObject?4(name, object, pluginType = None) +eric5.E5Gui.E5Application.E5Application.unregisterPluginObject?4(name) +eric5.E5Gui.E5Application.E5Application?1(argv) +eric5.E5Gui.E5Application.e5App?7 +eric5.E5Gui.E5Completers.E5DirCompleter?1(parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False) +eric5.E5Gui.E5Completers.E5FileCompleter?1(parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False) +eric5.E5Gui.E5Completers.E5StringListCompleter?1(parent = None, strings = [], completionMode = QCompleter.PopupCompletion) +eric5.E5Gui.E5Led.E5Led.color?4() +eric5.E5Gui.E5Led.E5Led.darkFactor?4() +eric5.E5Gui.E5Led.E5Led.isFramed?4() +eric5.E5Gui.E5Led.E5Led.isOn?4() +eric5.E5Gui.E5Led.E5Led.minimumSizeHint?4() +eric5.E5Gui.E5Led.E5Led.off?4() +eric5.E5Gui.E5Led.E5Led.on?4() +eric5.E5Gui.E5Led.E5Led.paintEvent?4(evt) +eric5.E5Gui.E5Led.E5Led.ratio?4() +eric5.E5Gui.E5Led.E5Led.setColor?4(color) +eric5.E5Gui.E5Led.E5Led.setDarkFactor?4(darkfactor) +eric5.E5Gui.E5Led.E5Led.setFramed?4(framed) +eric5.E5Gui.E5Led.E5Led.setOn?4(state) +eric5.E5Gui.E5Led.E5Led.setRatio?4(ratio) +eric5.E5Gui.E5Led.E5Led.setShape?4(shape) +eric5.E5Gui.E5Led.E5Led.shape?4() +eric5.E5Gui.E5Led.E5Led.sizeHint?4() +eric5.E5Gui.E5Led.E5Led.toggle?4() +eric5.E5Gui.E5Led.E5Led?1(parent = None, color = None, shape = E5LedCircular, rectRatio = 1) +eric5.E5Gui.E5Led.E5LedCircular?7 +eric5.E5Gui.E5Led.E5LedRectangular?7 +eric5.E5Gui.E5LineEdit.E5LineEdit.inactiveText?4() +eric5.E5Gui.E5LineEdit.E5LineEdit.paintEvent?4(evt) +eric5.E5Gui.E5LineEdit.E5LineEdit.setInactiveText?4(inactiveText) +eric5.E5Gui.E5LineEdit.E5LineEdit?1(parent = None, inactiveText = "") +eric5.E5Gui.E5ListView.E5ListView.keyPressEvent?4(evt) +eric5.E5Gui.E5ListView.E5ListView.removeAll?4() +eric5.E5Gui.E5ListView.E5ListView.removeSelected?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.createBaseMenu?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.createMenu?4(parent, max_, parentMenu = None, menu = None) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.dragEnterEvent?4(evt) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.dropEvent?4(evt) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.firstSeparator?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.index?4(action) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.makeAction?4(icon, text, parent) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.maxRows?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.model?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.mouseMoveEvent?4(evt) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.mousePressEvent?4(evt) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.mouseReleaseEvent?4(evt) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.postPopulated?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.prePopulated?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.removeEntry?4(idx) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.resetFlags?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.rootIndex?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.separatorRole?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setFirstSeparator?4(offset) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setMaxRows?4(rows) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setModel?4(model) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setRootIndex?4(index) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setSeparatorRole?4(role) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.setStatusBarTextRole?4(role) +eric5.E5Gui.E5ModelMenu.E5ModelMenu.statusBarTextRole?4() +eric5.E5Gui.E5ModelMenu.E5ModelMenu?1(parent = None) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar._build?5() +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar._createMenu?5() +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.dragEnterEvent?4(evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.dropEvent?4(evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.eventFilter?4(obj, evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.hideEvent?4(evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.index?4(action) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.model?4() +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.mouseMoveEvent?4(evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.resetFlags?4() +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.rootIndex?4() +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.setModel?4(model) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.setRootIndex?4(idx) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar.showEvent?4(evt) +eric5.E5Gui.E5ModelToolBar.E5ModelToolBar?1(title = None, parent = None) +eric5.E5Gui.E5SideBar.E5SideBar.East?7 +eric5.E5Gui.E5SideBar.E5SideBar.North?7 +eric5.E5Gui.E5SideBar.E5SideBar.South?7 +eric5.E5Gui.E5SideBar.E5SideBar.Version?7 +eric5.E5Gui.E5SideBar.E5SideBar.West?7 +eric5.E5Gui.E5SideBar.E5SideBar.addTab?4(widget, iconOrLabel, label = None) +eric5.E5Gui.E5SideBar.E5SideBar.clear?4() +eric5.E5Gui.E5SideBar.E5SideBar.count?4() +eric5.E5Gui.E5SideBar.E5SideBar.currentIndex?4() +eric5.E5Gui.E5SideBar.E5SideBar.currentWidget?4() +eric5.E5Gui.E5SideBar.E5SideBar.enterEvent?4(event) +eric5.E5Gui.E5SideBar.E5SideBar.eventFilter?4(obj, evt) +eric5.E5Gui.E5SideBar.E5SideBar.expand?4() +eric5.E5Gui.E5SideBar.E5SideBar.indexOf?4(widget) +eric5.E5Gui.E5SideBar.E5SideBar.insertTab?4(index, widget, iconOrLabel, label = None) +eric5.E5Gui.E5SideBar.E5SideBar.isAutoHiding?4() +eric5.E5Gui.E5SideBar.E5SideBar.isMinimized?4() +eric5.E5Gui.E5SideBar.E5SideBar.isTabEnabled?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.leaveEvent?4(event) +eric5.E5Gui.E5SideBar.E5SideBar.nextTab?4() +eric5.E5Gui.E5SideBar.E5SideBar.orientation?4() +eric5.E5Gui.E5SideBar.E5SideBar.prevTab?4() +eric5.E5Gui.E5SideBar.E5SideBar.removeTab?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.restoreState?4(state) +eric5.E5Gui.E5SideBar.E5SideBar.saveState?4() +eric5.E5Gui.E5SideBar.E5SideBar.setCurrentIndex?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.setCurrentWidget?4(widget) +eric5.E5Gui.E5SideBar.E5SideBar.setOrientation?4(orient) +eric5.E5Gui.E5SideBar.E5SideBar.setSplitter?4(splitter) +eric5.E5Gui.E5SideBar.E5SideBar.setTabEnabled?4(index, enabled) +eric5.E5Gui.E5SideBar.E5SideBar.setTabIcon?4(index, icon) +eric5.E5Gui.E5SideBar.E5SideBar.setTabText?4(index, text) +eric5.E5Gui.E5SideBar.E5SideBar.setTabToolTip?4(index, tip) +eric5.E5Gui.E5SideBar.E5SideBar.setTabWhatsThis?4(index, text) +eric5.E5Gui.E5SideBar.E5SideBar.shrink?4() +eric5.E5Gui.E5SideBar.E5SideBar.tabIcon?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.tabText?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.tabToolTip?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.tabWhatsThis?4(index) +eric5.E5Gui.E5SideBar.E5SideBar.widget?4(index) +eric5.E5Gui.E5SideBar.E5SideBar?1(orientation = None, parent = None) +eric5.E5Gui.E5SingleApplication.E5SingleApplicationClient.processArgs?4(args) +eric5.E5Gui.E5SingleApplication.E5SingleApplicationClient?1() +eric5.E5Gui.E5SingleApplication.E5SingleApplicationServer.handleCommand?4(cmd, params) +eric5.E5Gui.E5SingleApplication.E5SingleApplicationServer?1() +eric5.E5Gui.E5SingleApplication.SAArguments?7 +eric5.E5Gui.E5SingleApplication.SAFile?7 +eric5.E5Gui.E5SingleApplication.SAOpenFile?7 +eric5.E5Gui.E5SingleApplication.SAOpenProject?7 +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabel.paintEvent?4(event) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabel.setText?4(txt) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabel?1(parent = None) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath.length?4(txt) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath.paintEvent?4(event) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath.setPath?4(path) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath.setSurrounding?4(surrounding) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath.setTextPath?4(surrounding, path) +eric5.E5Gui.E5SqueezeLabels.E5SqueezeLabelPath?1(parent = None) +eric5.E5Gui.E5TabWidget.E5DnDTabBar.dragEnterEvent?4(event) +eric5.E5Gui.E5TabWidget.E5DnDTabBar.dropEvent?4(event) +eric5.E5Gui.E5TabWidget.E5DnDTabBar.mouseMoveEvent?4(event) +eric5.E5Gui.E5TabWidget.E5DnDTabBar.mousePressEvent?4(event) +eric5.E5Gui.E5TabWidget.E5DnDTabBar?1(parent = None) +eric5.E5Gui.E5TabWidget.E5TabWidget.animationLabel?4(index, animationFile) +eric5.E5Gui.E5TabWidget.E5TabWidget.moveTab?4(curIndex, newIndex) +eric5.E5Gui.E5TabWidget.E5TabWidget.nextTab?4() +eric5.E5Gui.E5TabWidget.E5TabWidget.prevTab?4() +eric5.E5Gui.E5TabWidget.E5TabWidget.resetAnimation?4(index) +eric5.E5Gui.E5TabWidget.E5TabWidget.selectTab?4(pos) +eric5.E5Gui.E5TabWidget.E5TabWidget.setTabContextMenuPolicy?4(policy) +eric5.E5Gui.E5TabWidget.E5TabWidget.switchTab?4() +eric5.E5Gui.E5TabWidget.E5TabWidget?1(parent = None, dnd = False) +eric5.E5Gui.E5TabWidget.E5WheelTabBar.wheelEvent?4(event) +eric5.E5Gui.E5TabWidget.E5WheelTabBar?1(parent = None) +eric5.E5Gui.E5TableView.E5TableView.keyPressEvent?4(evt) +eric5.E5Gui.E5TableView.E5TableView.removeAll?4() +eric5.E5Gui.E5TableView.E5TableView.removeSelected?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.ActionIdRole?7 +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.WidgetActionRole?7 +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_actionsTree_currentItemChanged?4(current, previous) +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_buttonBox_clicked?4(button) +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_downButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_leftButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_newButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_removeButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_renameButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_rightButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_toolbarActionsList_currentItemChanged?4(current, previous) +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog.on_upButton_clicked?4() +eric5.E5Gui.E5ToolBarDialog.E5ToolBarDialog?1(toolBarManager, parent = None) +eric5.E5Gui.E5ToolBarDialog.E5ToolBarItem?1(toolBarId, actionIDs, default) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.CustomToolBarMarker?7 +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.ToolBarMarker?7 +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.VersionMarker?7 +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.actionById?4(aID) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.addAction?4(action, category) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.addToolBar?4(toolBar, category) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.categories?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.categoryActions?4(category) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.createToolBar?4(title) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.defaultToolBarActions?4(tbID) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.defaultToolBars?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.deleteToolBar?4(toolBar) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.isDefaultToolBar?4(toolBar) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.isWidgetAction?4(action) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.mainWindow?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.removeAction?4(action) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.removeToolBar?4(toolBar) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.removeWidgetActions?4(actions) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.renameToolBar?4(toolBar, title) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.resetAllToolBars?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.resetToolBar?4(toolBar) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.restoreState?4(state, version = 0) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.saveState?4(version = 0) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.setMainWindow?4(mainWindow) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.setToolBar?4(toolBar, actions) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.setToolBars?4(toolBars) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.toolBarActions?4(tbID) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.toolBarById?4(tbID) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.toolBarWidgetAction?4(action) +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.toolBars?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager.toolBarsActions?4() +eric5.E5Gui.E5ToolBarManager.E5ToolBarManager?1(ui = None, parent = None) +eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.addItem?4(widget, icon, text) +eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.insertItem?4(index, widget, icon, text) +eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.setItemEnabled?4(index, enabled) +eric5.E5Gui.E5ToolBox.E5HorizontalToolBox.setItemToolTip?4(index, toolTip) +eric5.E5Gui.E5ToolBox.E5HorizontalToolBox?1(parent = None) +eric5.E5Gui.E5ToolBox.E5VerticalToolBox.wheelEvent?4(event) +eric5.E5Gui.E5ToolBox.E5VerticalToolBox?1(parent = None) +eric5.E5Gui.E5TreeSortFilterProxyModel.E5TreeSortFilterProxyModel.filterAcceptsRow?4(sourceRow, sourceParent) +eric5.E5Gui.E5TreeSortFilterProxyModel.E5TreeSortFilterProxyModel.hasChildren?4(parent = QModelIndex()) +eric5.E5Gui.E5TreeSortFilterProxyModel.E5TreeSortFilterProxyModel?1(parent = None) +eric5.E5Gui.E5TreeView.E5TreeView.keyPressEvent?4(evt) +eric5.E5Gui.E5TreeView.E5TreeView.removeAll?4() +eric5.E5Gui.E5TreeView.E5TreeView.removeSelected?4() eric5.E5Network.E5NetworkHeaderDetailsDialog.E5NetworkHeaderDetailsDialog.setData?4(name, value) eric5.E5Network.E5NetworkHeaderDetailsDialog.E5NetworkHeaderDetailsDialog?1(parent = None) eric5.E5Network.E5NetworkMonitor.E5NetworkMonitor._monitor?8 @@ -2233,7 +2233,7 @@ eric5.MultiProject.AddProjectDialog.AddProjectDialog.on_filenameEdit_textChanged?4(p0) eric5.MultiProject.AddProjectDialog.AddProjectDialog.on_nameEdit_textChanged?4(p0) eric5.MultiProject.AddProjectDialog.AddProjectDialog?1(parent = None, startdir = None, project = None) -eric5.MultiProject.MultiProject.MultiProject.addE4Actions?4(actions) +eric5.MultiProject.MultiProject.MultiProject.addE5Actions?4(actions) eric5.MultiProject.MultiProject.MultiProject.addProject?4(startdir = None) eric5.MultiProject.MultiProject.MultiProject.changeProjectProperties?4(pro) eric5.MultiProject.MultiProject.MultiProject.checkDirty?4() @@ -2255,7 +2255,7 @@ eric5.MultiProject.MultiProject.MultiProject.newMultiProject?4() eric5.MultiProject.MultiProject.MultiProject.openMultiProject?4(fn = None, openMaster = True) eric5.MultiProject.MultiProject.MultiProject.openProject?4(filename) -eric5.MultiProject.MultiProject.MultiProject.removeE4Actions?4(actions) +eric5.MultiProject.MultiProject.MultiProject.removeE5Actions?4(actions) eric5.MultiProject.MultiProject.MultiProject.removeProject?4(fn) eric5.MultiProject.MultiProject.MultiProject.saveMultiProject?4() eric5.MultiProject.MultiProject.MultiProject.saveMultiProjectAs?4() @@ -3792,7 +3792,7 @@ eric5.Project.NewPythonPackageDialog.NewPythonPackageDialog.on_packageEdit_textChanged?4(txt) eric5.Project.NewPythonPackageDialog.NewPythonPackageDialog?1(relPath, parent = None) eric5.Project.Project.Project.addDirectory?4(filter = None, startdir = None) -eric5.Project.Project.Project.addE4Actions?4(actions) +eric5.Project.Project.Project.addE5Actions?4(actions) eric5.Project.Project.Project.addFiles?4(filter = None, startdir = None) eric5.Project.Project.Project.addIdlDir?4() eric5.Project.Project.Project.addIdlFiles?4() @@ -3863,7 +3863,7 @@ eric5.Project.Project.Project.othersAdded?4(fn, updateModel = True) eric5.Project.Project.Project.registerProjectType?4(type_, description, fileTypeCallback = None, binaryTranslationsCallback = None, lexerAssociationCallback = None) eric5.Project.Project.Project.removeDirectory?4(dn) -eric5.Project.Project.Project.removeE4Actions?4(actions) +eric5.Project.Project.Project.removeE5Actions?4(actions) eric5.Project.Project.Project.removeFile?4(fn, updateModel = True) eric5.Project.Project.Project.removeLanguageFile?4(langFile) eric5.Project.Project.Project.renameFile?4(oldfn, newfn = None) @@ -5014,7 +5014,7 @@ eric5.UI.UserInterface.Redirector.flush?4() eric5.UI.UserInterface.Redirector.write?4(s) eric5.UI.UserInterface.Redirector?1(stderr) -eric5.UI.UserInterface.UserInterface.addE4Actions?4(actions, type) +eric5.UI.UserInterface.UserInterface.addE5Actions?4(actions, type) eric5.UI.UserInterface.UserInterface.appendToStderr?4(s) eric5.UI.UserInterface.UserInterface.appendToStdout?4(s) eric5.UI.UserInterface.UserInterface.checkConfigurationStatus?4() @@ -5039,7 +5039,7 @@ eric5.UI.UserInterface.UserInterface.performVersionCheck?4(manual = True, alternative = 0, showVersions = False) eric5.UI.UserInterface.UserInterface.processArgs?4(args) eric5.UI.UserInterface.UserInterface.registerToolbar?4(name, text, toolbar) -eric5.UI.UserInterface.UserInterface.removeE4Actions?4(actions, type = 'ui') +eric5.UI.UserInterface.UserInterface.removeE5Actions?4(actions, type = 'ui') eric5.UI.UserInterface.UserInterface.reregisterToolbar?4(name, text) eric5.UI.UserInterface.UserInterface.setDebugProfile?4(save = True) eric5.UI.UserInterface.UserInterface.showAvailableVersionsInfo?4()
--- a/Debugger/BreakPointViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/BreakPointViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .EditBreakpointDialog import EditBreakpointDialog
--- a/Debugger/DebugServer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebugServer.py Wed Jan 13 18:53:58 2010 +0000 @@ -16,7 +16,7 @@ from PyQt4.QtGui import QMessageBox from PyQt4.QtNetwork import QTcpServer, QHostAddress, QHostInfo -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .BreakPointModel import BreakPointModel from .WatchPointModel import WatchPointModel
--- a/Debugger/DebugUI.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebugUI.py Wed Jan 13 18:53:58 2010 +0000 @@ -24,7 +24,7 @@ import UI.PixmapCache import UI.Config -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Action import E5Action, createActionGroup from eric5config import getConfig @@ -156,7 +156,7 @@ """ self.actions = [] - self.runAct = E4Action(self.trUtf8('Run Script'), + self.runAct = E5Action(self.trUtf8('Run Script'), UI.PixmapCache.getIcon("runScript.png"), self.trUtf8('&Run Script...'),Qt.Key_F2,0,self,'dbg_run_script') self.runAct.setStatusTip(self.trUtf8('Run the current Script')) @@ -168,7 +168,7 @@ self.connect(self.runAct, SIGNAL('triggered()'), self.__runScript) self.actions.append(self.runAct) - self.runProjectAct = E4Action(self.trUtf8('Run Project'), + self.runProjectAct = E5Action(self.trUtf8('Run Project'), UI.PixmapCache.getIcon("runProject.png"), self.trUtf8('Run &Project...'),Qt.SHIFT + Qt.Key_F2,0,self, 'dbg_run_project') @@ -183,7 +183,7 @@ self.connect(self.runProjectAct, SIGNAL('triggered()'), self.__runProject) self.actions.append(self.runProjectAct) - self.coverageAct = E4Action(self.trUtf8('Coverage run of Script'), + self.coverageAct = E5Action(self.trUtf8('Coverage run of Script'), UI.PixmapCache.getIcon("coverageScript.png"), self.trUtf8('Coverage run of Script...'),0,0,self,'dbg_coverage_script') self.coverageAct.setStatusTip(\ @@ -197,7 +197,7 @@ self.connect(self.coverageAct, SIGNAL('triggered()'), self.__coverageScript) self.actions.append(self.coverageAct) - self.coverageProjectAct = E4Action(self.trUtf8('Coverage run of Project'), + self.coverageProjectAct = E5Action(self.trUtf8('Coverage run of Project'), UI.PixmapCache.getIcon("coverageProject.png"), self.trUtf8('Coverage run of Project...'),0,0,self,'dbg_coverage_project') self.coverageProjectAct.setStatusTip(\ @@ -212,7 +212,7 @@ self.connect(self.coverageProjectAct, SIGNAL('triggered()'), self.__coverageProject) self.actions.append(self.coverageProjectAct) - self.profileAct = E4Action(self.trUtf8('Profile Script'), + self.profileAct = E5Action(self.trUtf8('Profile Script'), UI.PixmapCache.getIcon("profileScript.png"), self.trUtf8('Profile Script...'),0,0,self,'dbg_profile_script') self.profileAct.setStatusTip(self.trUtf8('Profile the current Script')) @@ -224,7 +224,7 @@ self.connect(self.profileAct, SIGNAL('triggered()'), self.__profileScript) self.actions.append(self.profileAct) - self.profileProjectAct = E4Action(self.trUtf8('Profile Project'), + self.profileProjectAct = E5Action(self.trUtf8('Profile Project'), UI.PixmapCache.getIcon("profileProject.png"), self.trUtf8('Profile Project...'),0,0,self,'dbg_profile_project') self.profileProjectAct.setStatusTip(self.trUtf8('Profile the current Project')) @@ -237,7 +237,7 @@ self.connect(self.profileProjectAct, SIGNAL('triggered()'), self.__profileProject) self.actions.append(self.profileProjectAct) - self.debugAct = E4Action(self.trUtf8('Debug Script'), + self.debugAct = E5Action(self.trUtf8('Debug Script'), UI.PixmapCache.getIcon("debugScript.png"), self.trUtf8('&Debug Script...'),Qt.Key_F5,0,self,'dbg_debug_script') self.debugAct.setStatusTip(self.trUtf8('Debug the current Script')) @@ -250,7 +250,7 @@ self.connect(self.debugAct, SIGNAL('triggered()'), self.__debugScript) self.actions.append(self.debugAct) - self.debugProjectAct = E4Action(self.trUtf8('Debug Project'), + self.debugProjectAct = E5Action(self.trUtf8('Debug Project'), UI.PixmapCache.getIcon("debugProject.png"), self.trUtf8('Debug &Project...'),Qt.SHIFT + Qt.Key_F5,0,self, 'dbg_debug_project') @@ -265,7 +265,7 @@ self.connect(self.debugProjectAct, SIGNAL('triggered()'), self.__debugProject) self.actions.append(self.debugProjectAct) - self.restartAct = E4Action(self.trUtf8('Restart Script'), + self.restartAct = E5Action(self.trUtf8('Restart Script'), UI.PixmapCache.getIcon("restart.png"), self.trUtf8('Restart Script'),Qt.Key_F4,0,self,'dbg_restart_script') self.restartAct.setStatusTip(self.trUtf8('Restart the last debugged script')) @@ -278,7 +278,7 @@ self.connect(self.restartAct, SIGNAL('triggered()'), self.__doRestart) self.actions.append(self.restartAct) - self.stopAct = E4Action(self.trUtf8('Stop Script'), + self.stopAct = E5Action(self.trUtf8('Stop Script'), UI.PixmapCache.getIcon("stopScript.png"), self.trUtf8('Stop Script'),Qt.SHIFT + Qt.Key_F10,0, self,'dbg_stop_script') @@ -292,7 +292,7 @@ self.debugActGrp = createActionGroup(self) - act = E4Action(self.trUtf8('Continue'), + act = E5Action(self.trUtf8('Continue'), UI.PixmapCache.getIcon("continue.png"), self.trUtf8('&Continue'),Qt.Key_F6,0, self.debugActGrp,'dbg_continue') @@ -306,7 +306,7 @@ self.connect(act, SIGNAL('triggered()'), self.__continue) self.actions.append(act) - act = E4Action(self.trUtf8('Continue to Cursor'), + act = E5Action(self.trUtf8('Continue to Cursor'), UI.PixmapCache.getIcon("continueToCursor.png"), self.trUtf8('Continue &To Cursor'),Qt.SHIFT + Qt.Key_F6,0, self.debugActGrp,'dbg_continue_to_cursor') @@ -320,7 +320,7 @@ self.connect(act, SIGNAL('triggered()'), self.__runToCursor) self.actions.append(act) - act = E4Action(self.trUtf8('Single Step'), + act = E5Action(self.trUtf8('Single Step'), UI.PixmapCache.getIcon("step.png"), self.trUtf8('Sin&gle Step'),Qt.Key_F7,0, self.debugActGrp,'dbg_single_step') @@ -335,7 +335,7 @@ self.connect(act, SIGNAL('triggered()'), self.__step) self.actions.append(act) - act = E4Action(self.trUtf8('Step Over'), + act = E5Action(self.trUtf8('Step Over'), UI.PixmapCache.getIcon("stepOver.png"), self.trUtf8('Step &Over'),Qt.Key_F8,0, self.debugActGrp,'dbg_step_over') @@ -351,7 +351,7 @@ self.connect(act, SIGNAL('triggered()'), self.__stepOver) self.actions.append(act) - act = E4Action(self.trUtf8('Step Out'), + act = E5Action(self.trUtf8('Step Out'), UI.PixmapCache.getIcon("stepOut.png"), self.trUtf8('Step Ou&t'),Qt.Key_F9,0, self.debugActGrp,'dbg_step_out') @@ -367,7 +367,7 @@ self.connect(act, SIGNAL('triggered()'), self.__stepOut) self.actions.append(act) - act = E4Action(self.trUtf8('Stop'), + act = E5Action(self.trUtf8('Stop'), UI.PixmapCache.getIcon("stepQuit.png"), self.trUtf8('&Stop'),Qt.Key_F10,0, self.debugActGrp,'dbg_stop') @@ -381,7 +381,7 @@ self.debugActGrp2 = createActionGroup(self) - act = E4Action(self.trUtf8('Evaluate'), + act = E5Action(self.trUtf8('Evaluate'), self.trUtf8('E&valuate...'), 0,0,self.debugActGrp2,'dbg_evaluate') act.setStatusTip(self.trUtf8('Evaluate in current context')) @@ -394,7 +394,7 @@ self.connect(act, SIGNAL('triggered()'), self.__eval) self.actions.append(act) - act = E4Action(self.trUtf8('Execute'), + act = E5Action(self.trUtf8('Execute'), self.trUtf8('E&xecute...'), 0,0,self.debugActGrp2,'dbg_execute') act.setStatusTip(\ @@ -407,7 +407,7 @@ self.connect(act, SIGNAL('triggered()'), self.__exec) self.actions.append(act) - self.dbgFilterAct = E4Action(self.trUtf8('Variables Type Filter'), + self.dbgFilterAct = E5Action(self.trUtf8('Variables Type Filter'), self.trUtf8('Varia&bles Type Filter...'), 0, 0, self, 'dbg_variables_filter') self.dbgFilterAct.setStatusTip(self.trUtf8('Configure variables type filter')) @@ -421,7 +421,7 @@ self.__configureVariablesFilters) self.actions.append(self.dbgFilterAct) - self.excFilterAct = E4Action(self.trUtf8('Exceptions Filter'), + self.excFilterAct = E5Action(self.trUtf8('Exceptions Filter'), self.trUtf8('&Exceptions Filter...'), 0, 0, self, 'dbg_exceptions_filter') self.excFilterAct.setStatusTip(self.trUtf8('Configure exceptions filter')) self.excFilterAct.setWhatsThis(self.trUtf8( @@ -435,7 +435,7 @@ self.__configureExceptionsFilter) self.actions.append(self.excFilterAct) - self.excIgnoreFilterAct = E4Action(self.trUtf8('Ignored Exceptions'), + self.excIgnoreFilterAct = E5Action(self.trUtf8('Ignored Exceptions'), self.trUtf8('&Ignored Exceptions...'), 0, 0, self, 'dbg_ignored_exceptions') self.excIgnoreFilterAct.setStatusTip(self.trUtf8('Configure ignored exceptions')) @@ -451,7 +451,7 @@ self.dbgSetBpActGrp = createActionGroup(self) - self.dbgToggleBpAct = E4Action(self.trUtf8('Toggle Breakpoint'), + self.dbgToggleBpAct = E5Action(self.trUtf8('Toggle Breakpoint'), UI.PixmapCache.getIcon("breakpointToggle.png"), self.trUtf8('Toggle Breakpoint'), QKeySequence(self.trUtf8("Shift+F11","Debug|Toggle Breakpoint")), 0, @@ -465,7 +465,7 @@ self.connect(self.dbgToggleBpAct, SIGNAL('triggered()'), self.__toggleBreakpoint) self.actions.append(self.dbgToggleBpAct) - self.dbgEditBpAct = E4Action(self.trUtf8('Edit Breakpoint'), + self.dbgEditBpAct = E5Action(self.trUtf8('Edit Breakpoint'), UI.PixmapCache.getIcon("cBreakpointToggle.png"), self.trUtf8('Edit Breakpoint...'), QKeySequence(self.trUtf8("Shift+F12","Debug|Edit Breakpoint")), 0, @@ -479,7 +479,7 @@ self.connect(self.dbgEditBpAct, SIGNAL('triggered()'), self.__editBreakpoint) self.actions.append(self.dbgEditBpAct) - self.dbgNextBpAct = E4Action(self.trUtf8('Next Breakpoint'), + self.dbgNextBpAct = E5Action(self.trUtf8('Next Breakpoint'), UI.PixmapCache.getIcon("breakpointNext.png"), self.trUtf8('Next Breakpoint'), QKeySequence(self.trUtf8("Ctrl+Shift+PgDown","Debug|Next Breakpoint")), 0, @@ -492,7 +492,7 @@ self.connect(self.dbgNextBpAct, SIGNAL('triggered()'), self.__nextBreakpoint) self.actions.append(self.dbgNextBpAct) - self.dbgPrevBpAct = E4Action(self.trUtf8('Previous Breakpoint'), + self.dbgPrevBpAct = E5Action(self.trUtf8('Previous Breakpoint'), UI.PixmapCache.getIcon("breakpointPrevious.png"), self.trUtf8('Previous Breakpoint'), QKeySequence(self.trUtf8("Ctrl+Shift+PgUp","Debug|Previous Breakpoint")), @@ -505,7 +505,7 @@ self.connect(self.dbgPrevBpAct, SIGNAL('triggered()'), self.__previousBreakpoint) self.actions.append(self.dbgPrevBpAct) - act = E4Action(self.trUtf8('Clear Breakpoints'), + act = E5Action(self.trUtf8('Clear Breakpoints'), self.trUtf8('Clear Breakpoints'), QKeySequence(self.trUtf8("Ctrl+Shift+C","Debug|Clear Breakpoints")), 0, self.dbgSetBpActGrp, 'dbg_clear_breakpoint') @@ -581,7 +581,7 @@ """ Public slot to initialize the debug toolbars. - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbars (list of QToolBar) """ starttb = QToolBar(self.trUtf8("Start"), self.parent()) @@ -1976,6 +1976,6 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.actions[:] \ No newline at end of file
--- a/Debugger/DebugViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebugViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -33,7 +33,7 @@ import Utilities import UI.PixmapCache -from E4Gui.E4TabWidget import E4TabWidget +from E5Gui.E5TabWidget import E5TabWidget class DebugViewer(QWidget): """ @@ -74,7 +74,7 @@ self.__mainLayout.setMargin(0) self.setLayout(self.__mainLayout) - self.__tabWidget = E4TabWidget() + self.__tabWidget = E5TabWidget() self.__mainLayout.addWidget(self.__tabWidget) self.embeddedShell = embeddedShell @@ -433,4 +433,4 @@ """ if current is not None and self.__doThreadListUpdate: tid = int(current.text(0)) - self.debugServer.remoteSetThread(tid) + self.debugServer.remoteSetThread(tid) \ No newline at end of file
--- a/Debugger/DebuggerInterfacePython.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebuggerInterfacePython.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import QInputDialog, QMessageBox -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .DebugProtocol import * from . import DebugClientCapabilities
--- a/Debugger/DebuggerInterfacePython3.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebuggerInterfacePython3.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import QInputDialog, QMessageBox -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .DebugProtocol import * from . import DebugClientCapabilities
--- a/Debugger/DebuggerInterfaceRuby.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/DebuggerInterfaceRuby.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import QMessageBox -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .DebugProtocol import * from . import DebugClientCapabilities
--- a/Debugger/EditBreakpointDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/EditBreakpointDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_EditBreakpointDialog import Ui_EditBreakpointDialog @@ -43,7 +43,7 @@ self.setModal(modal) self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) - self.filenameCompleter = E4FileCompleter(self.filenameCombo) + self.filenameCompleter = E5FileCompleter(self.filenameCombo) fn, lineno = id @@ -157,4 +157,4 @@ return (fn, self.linenoSpinBox.value(), self.conditionCombo.currentText(), self.temporaryCheckBox.isChecked(), self.enabledCheckBox.isChecked(), - self.ignoreSpinBox.value()) + self.ignoreSpinBox.value()) \ No newline at end of file
--- a/Debugger/ExceptionLogger.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/ExceptionLogger.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App class ExceptionLogger(QTreeWidget):
--- a/Debugger/StartDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/StartDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter import Utilities import Preferences @@ -76,7 +76,7 @@ self.clearButton = self.ui.buttonBox.addButton(\ self.trUtf8("Clear Histories"), QDialogButtonBox.ActionRole) - self.workdirCompleter = E4DirCompleter(self.ui.workdirCombo) + self.workdirCompleter = E5DirCompleter(self.ui.workdirCombo) self.setWindowTitle(caption) self.ui.cmdlineCombo.clear() @@ -209,4 +209,4 @@ @param button button that was clicked (QAbstractButton) """ if button == self.clearButton: - self.__clearHistories() + self.__clearHistories() \ No newline at end of file
--- a/Debugger/VariablesViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/VariablesViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Config import ConfigVarTypeDispStrings, ConfigVarTypeStrings from .VariableDetailDialog import VariableDetailDialog
--- a/Debugger/WatchPointViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Debugger/WatchPointViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .EditWatchpointDialog import EditWatchpointDialog
--- a/Documentation/Help/source.qhp Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Help/source.qhp Wed Jan 13 18:53:58 2010 +0000 @@ -101,30 +101,30 @@ <section title="eric5.DocumentationTools.TemplatesListsStyle" ref="eric5.DocumentationTools.TemplatesListsStyle.html" /> <section title="eric5.DocumentationTools.TemplatesListsStyleCSS" ref="eric5.DocumentationTools.TemplatesListsStyleCSS.html" /> </section> - <section title="eric5.E4Gui" ref="index-eric5.E4Gui.html"> - <section title="eric5.E4Gui.E4Action" ref="eric5.E4Gui.E4Action.html" /> - <section title="eric5.E4Gui.E4Application" ref="eric5.E4Gui.E4Application.html" /> - <section title="eric5.E4Gui.E4Completers" ref="eric5.E4Gui.E4Completers.html" /> - <section title="eric5.E4Gui.E4Led" ref="eric5.E4Gui.E4Led.html" /> - <section title="eric5.E4Gui.E4LineEdit" ref="eric5.E4Gui.E4LineEdit.html" /> - <section title="eric5.E4Gui.E4ListView" ref="eric5.E4Gui.E4ListView.html" /> - <section title="eric5.E4Gui.E4ModelMenu" ref="eric5.E4Gui.E4ModelMenu.html" /> - <section title="eric5.E4Gui.E4ModelToolBar" ref="eric5.E4Gui.E4ModelToolBar.html" /> - <section title="eric5.E4Gui.E4SideBar" ref="eric5.E4Gui.E4SideBar.html" /> - <section title="eric5.E4Gui.E4SingleApplication" ref="eric5.E4Gui.E4SingleApplication.html" /> - <section title="eric5.E4Gui.E4SqueezeLabels" ref="eric5.E4Gui.E4SqueezeLabels.html" /> - <section title="eric5.E4Gui.E4TabWidget" ref="eric5.E4Gui.E4TabWidget.html" /> - <section title="eric5.E4Gui.E4TableView" ref="eric5.E4Gui.E4TableView.html" /> - <section title="eric5.E4Gui.E4ToolBarDialog" ref="eric5.E4Gui.E4ToolBarDialog.html" /> - <section title="eric5.E4Gui.E4ToolBarManager" ref="eric5.E4Gui.E4ToolBarManager.html" /> - <section title="eric5.E4Gui.E4ToolBox" ref="eric5.E4Gui.E4ToolBox.html" /> - <section title="eric5.E4Gui.E4TreeSortFilterProxyModel" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html" /> - <section title="eric5.E4Gui.E4TreeView" ref="eric5.E4Gui.E4TreeView.html" /> - </section> <section title="eric5.E5Graphics" ref="index-eric5.E5Graphics.html"> <section title="eric5.E5Graphics.E5ArrowItem" ref="eric5.E5Graphics.E5ArrowItem.html" /> <section title="eric5.E5Graphics.E5GraphicsView" ref="eric5.E5Graphics.E5GraphicsView.html" /> </section> + <section title="eric5.E5Gui" ref="index-eric5.E5Gui.html"> + <section title="eric5.E5Gui.E5Action" ref="eric5.E5Gui.E5Action.html" /> + <section title="eric5.E5Gui.E5Application" ref="eric5.E5Gui.E5Application.html" /> + <section title="eric5.E5Gui.E5Completers" ref="eric5.E5Gui.E5Completers.html" /> + <section title="eric5.E5Gui.E5Led" ref="eric5.E5Gui.E5Led.html" /> + <section title="eric5.E5Gui.E5LineEdit" ref="eric5.E5Gui.E5LineEdit.html" /> + <section title="eric5.E5Gui.E5ListView" ref="eric5.E5Gui.E5ListView.html" /> + <section title="eric5.E5Gui.E5ModelMenu" ref="eric5.E5Gui.E5ModelMenu.html" /> + <section title="eric5.E5Gui.E5ModelToolBar" ref="eric5.E5Gui.E5ModelToolBar.html" /> + <section title="eric5.E5Gui.E5SideBar" ref="eric5.E5Gui.E5SideBar.html" /> + <section title="eric5.E5Gui.E5SingleApplication" ref="eric5.E5Gui.E5SingleApplication.html" /> + <section title="eric5.E5Gui.E5SqueezeLabels" ref="eric5.E5Gui.E5SqueezeLabels.html" /> + <section title="eric5.E5Gui.E5TabWidget" ref="eric5.E5Gui.E5TabWidget.html" /> + <section title="eric5.E5Gui.E5TableView" ref="eric5.E5Gui.E5TableView.html" /> + <section title="eric5.E5Gui.E5ToolBarDialog" ref="eric5.E5Gui.E5ToolBarDialog.html" /> + <section title="eric5.E5Gui.E5ToolBarManager" ref="eric5.E5Gui.E5ToolBarManager.html" /> + <section title="eric5.E5Gui.E5ToolBox" ref="eric5.E5Gui.E5ToolBox.html" /> + <section title="eric5.E5Gui.E5TreeSortFilterProxyModel" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html" /> + <section title="eric5.E5Gui.E5TreeView" ref="eric5.E5Gui.E5TreeView.html" /> + </section> <section title="eric5.E5Network" ref="index-eric5.E5Network.html"> <section title="eric5.E5Network.E5NetworkHeaderDetailsDialog" ref="eric5.E5Network.E5NetworkHeaderDetailsDialog.html" /> <section title="eric5.E5Network.E5NetworkMonitor" ref="eric5.E5Network.E5NetworkMonitor.html" /> @@ -1509,7 +1509,7 @@ <keyword name="MultiProject.__syncRecent" id="MultiProject.__syncRecent" ref="eric5.MultiProject.MultiProject.html#MultiProject.__syncRecent" /> <keyword name="MultiProject.__writeMultiProject" id="MultiProject.__writeMultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.__writeMultiProject" /> <keyword name="MultiProject.__writeXMLMultiProject" id="MultiProject.__writeXMLMultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.__writeXMLMultiProject" /> - <keyword name="MultiProject.addE4Actions" id="MultiProject.addE4Actions" ref="eric5.MultiProject.MultiProject.html#MultiProject.addE4Actions" /> + <keyword name="MultiProject.addE5Actions" id="MultiProject.addE5Actions" ref="eric5.MultiProject.MultiProject.html#MultiProject.addE5Actions" /> <keyword name="MultiProject.addProject" id="MultiProject.addProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.addProject" /> <keyword name="MultiProject.changeProjectProperties" id="MultiProject.changeProjectProperties" ref="eric5.MultiProject.MultiProject.html#MultiProject.changeProjectProperties" /> <keyword name="MultiProject.checkDirty" id="MultiProject.checkDirty" ref="eric5.MultiProject.MultiProject.html#MultiProject.checkDirty" /> @@ -1531,7 +1531,7 @@ <keyword name="MultiProject.newMultiProject" id="MultiProject.newMultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.newMultiProject" /> <keyword name="MultiProject.openMultiProject" id="MultiProject.openMultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.openMultiProject" /> <keyword name="MultiProject.openProject" id="MultiProject.openProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.openProject" /> - <keyword name="MultiProject.removeE4Actions" id="MultiProject.removeE4Actions" ref="eric5.MultiProject.MultiProject.html#MultiProject.removeE4Actions" /> + <keyword name="MultiProject.removeE5Actions" id="MultiProject.removeE5Actions" ref="eric5.MultiProject.MultiProject.html#MultiProject.removeE5Actions" /> <keyword name="MultiProject.removeProject" id="MultiProject.removeProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.removeProject" /> <keyword name="MultiProject.saveMultiProject" id="MultiProject.saveMultiProject" ref="eric5.MultiProject.MultiProject.html#MultiProject.saveMultiProject" /> <keyword name="MultiProject.saveMultiProjectAs" id="MultiProject.saveMultiProjectAs" ref="eric5.MultiProject.MultiProject.html#MultiProject.saveMultiProjectAs" /> @@ -3903,7 +3903,7 @@ <keyword name="UserInterface.__whatsThis" id="UserInterface.__whatsThis" ref="eric5.UI.UserInterface.html#UserInterface.__whatsThis" /> <keyword name="UserInterface.__writeSession" id="UserInterface.__writeSession" ref="eric5.UI.UserInterface.html#UserInterface.__writeSession" /> <keyword name="UserInterface.__writeTasks" id="UserInterface.__writeTasks" ref="eric5.UI.UserInterface.html#UserInterface.__writeTasks" /> - <keyword name="UserInterface.addE4Actions" id="UserInterface.addE4Actions" ref="eric5.UI.UserInterface.html#UserInterface.addE4Actions" /> + <keyword name="UserInterface.addE5Actions" id="UserInterface.addE5Actions" ref="eric5.UI.UserInterface.html#UserInterface.addE5Actions" /> <keyword name="UserInterface.appendToStderr" id="UserInterface.appendToStderr" ref="eric5.UI.UserInterface.html#UserInterface.appendToStderr" /> <keyword name="UserInterface.appendToStdout" id="UserInterface.appendToStdout" ref="eric5.UI.UserInterface.html#UserInterface.appendToStdout" /> <keyword name="UserInterface.checkConfigurationStatus" id="UserInterface.checkConfigurationStatus" ref="eric5.UI.UserInterface.html#UserInterface.checkConfigurationStatus" /> @@ -3925,7 +3925,7 @@ <keyword name="UserInterface.performVersionCheck" id="UserInterface.performVersionCheck" ref="eric5.UI.UserInterface.html#UserInterface.performVersionCheck" /> <keyword name="UserInterface.processArgs" id="UserInterface.processArgs" ref="eric5.UI.UserInterface.html#UserInterface.processArgs" /> <keyword name="UserInterface.registerToolbar" id="UserInterface.registerToolbar" ref="eric5.UI.UserInterface.html#UserInterface.registerToolbar" /> - <keyword name="UserInterface.removeE4Actions" id="UserInterface.removeE4Actions" ref="eric5.UI.UserInterface.html#UserInterface.removeE4Actions" /> + <keyword name="UserInterface.removeE5Actions" id="UserInterface.removeE5Actions" ref="eric5.UI.UserInterface.html#UserInterface.removeE5Actions" /> <keyword name="UserInterface.reregisterToolbar" id="UserInterface.reregisterToolbar" ref="eric5.UI.UserInterface.html#UserInterface.reregisterToolbar" /> <keyword name="UserInterface.setDebugProfile" id="UserInterface.setDebugProfile" ref="eric5.UI.UserInterface.html#UserInterface.setDebugProfile" /> <keyword name="UserInterface.showAvailableVersionsInfo" id="UserInterface.showAvailableVersionsInfo" ref="eric5.UI.UserInterface.html#UserInterface.showAvailableVersionsInfo" /> @@ -3962,286 +3962,286 @@ <keyword name="BrowserSortFilterProxyModel.lessThan" id="BrowserSortFilterProxyModel.lessThan" ref="eric5.UI.BrowserSortFilterProxyModel.html#BrowserSortFilterProxyModel.lessThan" /> <keyword name="BrowserSortFilterProxyModel.preferencesChanged" id="BrowserSortFilterProxyModel.preferencesChanged" ref="eric5.UI.BrowserSortFilterProxyModel.html#BrowserSortFilterProxyModel.preferencesChanged" /> <keyword name="BrowserSortFilterProxyModel.sort" id="BrowserSortFilterProxyModel.sort" ref="eric5.UI.BrowserSortFilterProxyModel.html#BrowserSortFilterProxyModel.sort" /> - <keyword name="E4Gui (Package)" id="E4Gui (Package)" ref="index-eric5.E4Gui.html" /> - <keyword name="E4TabWidget (Module)" id="E4TabWidget (Module)" ref="eric5.E4Gui.E4TabWidget.html" /> - <keyword name="E4DnDTabBar" id="E4DnDTabBar" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar" /> - <keyword name="E4TabWidget" id="E4TabWidget" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget" /> - <keyword name="E4WheelTabBar" id="E4WheelTabBar" ref="eric5.E4Gui.E4TabWidget.html#E4WheelTabBar" /> - <keyword name="E4DnDTabBar (Constructor)" id="E4DnDTabBar (Constructor)" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar.__init__" /> - <keyword name="E4DnDTabBar.dragEnterEvent" id="E4DnDTabBar.dragEnterEvent" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar.dragEnterEvent" /> - <keyword name="E4DnDTabBar.dropEvent" id="E4DnDTabBar.dropEvent" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar.dropEvent" /> - <keyword name="E4DnDTabBar.mouseMoveEvent" id="E4DnDTabBar.mouseMoveEvent" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar.mouseMoveEvent" /> - <keyword name="E4DnDTabBar.mousePressEvent" id="E4DnDTabBar.mousePressEvent" ref="eric5.E4Gui.E4TabWidget.html#E4DnDTabBar.mousePressEvent" /> - <keyword name="E4TabWidget (Constructor)" id="E4TabWidget (Constructor)" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.__init__" /> - <keyword name="E4TabWidget.__currentChanged" id="E4TabWidget.__currentChanged" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.__currentChanged" /> - <keyword name="E4TabWidget.__freeSide" id="E4TabWidget.__freeSide" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.__freeSide" /> - <keyword name="E4TabWidget.__handleTabCustomContextMenuRequested" id="E4TabWidget.__handleTabCustomContextMenuRequested" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.__handleTabCustomContextMenuRequested" /> - <keyword name="E4TabWidget.animationLabel" id="E4TabWidget.animationLabel" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.animationLabel" /> - <keyword name="E4TabWidget.moveTab" id="E4TabWidget.moveTab" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.moveTab" /> - <keyword name="E4TabWidget.nextTab" id="E4TabWidget.nextTab" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.nextTab" /> - <keyword name="E4TabWidget.prevTab" id="E4TabWidget.prevTab" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.prevTab" /> - <keyword name="E4TabWidget.resetAnimation" id="E4TabWidget.resetAnimation" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.resetAnimation" /> - <keyword name="E4TabWidget.selectTab" id="E4TabWidget.selectTab" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.selectTab" /> - <keyword name="E4TabWidget.setTabContextMenuPolicy" id="E4TabWidget.setTabContextMenuPolicy" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.setTabContextMenuPolicy" /> - <keyword name="E4TabWidget.switchTab" id="E4TabWidget.switchTab" ref="eric5.E4Gui.E4TabWidget.html#E4TabWidget.switchTab" /> - <keyword name="E4WheelTabBar (Constructor)" id="E4WheelTabBar (Constructor)" ref="eric5.E4Gui.E4TabWidget.html#E4WheelTabBar.__init__" /> - <keyword name="E4WheelTabBar.wheelEvent" id="E4WheelTabBar.wheelEvent" ref="eric5.E4Gui.E4TabWidget.html#E4WheelTabBar.wheelEvent" /> - <keyword name="E4SideBar (Module)" id="E4SideBar (Module)" ref="eric5.E4Gui.E4SideBar.html" /> - <keyword name="E4SideBar" id="E4SideBar" ref="eric5.E4Gui.E4SideBar.html#E4SideBar" /> - <keyword name="E4SideBar (Constructor)" id="E4SideBar (Constructor)" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.__init__" /> - <keyword name="E4SideBar.__appFocusChanged" id="E4SideBar.__appFocusChanged" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.__appFocusChanged" /> - <keyword name="E4SideBar.__autoHideToggled" id="E4SideBar.__autoHideToggled" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.__autoHideToggled" /> - <keyword name="E4SideBar.addTab" id="E4SideBar.addTab" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.addTab" /> - <keyword name="E4SideBar.clear" id="E4SideBar.clear" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.clear" /> - <keyword name="E4SideBar.count" id="E4SideBar.count" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.count" /> - <keyword name="E4SideBar.currentIndex" id="E4SideBar.currentIndex" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.currentIndex" /> - <keyword name="E4SideBar.currentWidget" id="E4SideBar.currentWidget" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.currentWidget" /> - <keyword name="E4SideBar.enterEvent" id="E4SideBar.enterEvent" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.enterEvent" /> - <keyword name="E4SideBar.eventFilter" id="E4SideBar.eventFilter" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.eventFilter" /> - <keyword name="E4SideBar.expand" id="E4SideBar.expand" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.expand" /> - <keyword name="E4SideBar.indexOf" id="E4SideBar.indexOf" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.indexOf" /> - <keyword name="E4SideBar.insertTab" id="E4SideBar.insertTab" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.insertTab" /> - <keyword name="E4SideBar.isAutoHiding" id="E4SideBar.isAutoHiding" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.isAutoHiding" /> - <keyword name="E4SideBar.isMinimized" id="E4SideBar.isMinimized" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.isMinimized" /> - <keyword name="E4SideBar.isTabEnabled" id="E4SideBar.isTabEnabled" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.isTabEnabled" /> - <keyword name="E4SideBar.leaveEvent" id="E4SideBar.leaveEvent" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.leaveEvent" /> - <keyword name="E4SideBar.nextTab" id="E4SideBar.nextTab" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.nextTab" /> - <keyword name="E4SideBar.orientation" id="E4SideBar.orientation" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.orientation" /> - <keyword name="E4SideBar.prevTab" id="E4SideBar.prevTab" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.prevTab" /> - <keyword name="E4SideBar.removeTab" id="E4SideBar.removeTab" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.removeTab" /> - <keyword name="E4SideBar.restoreState" id="E4SideBar.restoreState" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.restoreState" /> - <keyword name="E4SideBar.saveState" id="E4SideBar.saveState" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.saveState" /> - <keyword name="E4SideBar.setCurrentIndex" id="E4SideBar.setCurrentIndex" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setCurrentIndex" /> - <keyword name="E4SideBar.setCurrentWidget" id="E4SideBar.setCurrentWidget" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setCurrentWidget" /> - <keyword name="E4SideBar.setOrientation" id="E4SideBar.setOrientation" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setOrientation" /> - <keyword name="E4SideBar.setSplitter" id="E4SideBar.setSplitter" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setSplitter" /> - <keyword name="E4SideBar.setTabEnabled" id="E4SideBar.setTabEnabled" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setTabEnabled" /> - <keyword name="E4SideBar.setTabIcon" id="E4SideBar.setTabIcon" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setTabIcon" /> - <keyword name="E4SideBar.setTabText" id="E4SideBar.setTabText" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setTabText" /> - <keyword name="E4SideBar.setTabToolTip" id="E4SideBar.setTabToolTip" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setTabToolTip" /> - <keyword name="E4SideBar.setTabWhatsThis" id="E4SideBar.setTabWhatsThis" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.setTabWhatsThis" /> - <keyword name="E4SideBar.shrink" id="E4SideBar.shrink" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.shrink" /> - <keyword name="E4SideBar.tabIcon" id="E4SideBar.tabIcon" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.tabIcon" /> - <keyword name="E4SideBar.tabText" id="E4SideBar.tabText" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.tabText" /> - <keyword name="E4SideBar.tabToolTip" id="E4SideBar.tabToolTip" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.tabToolTip" /> - <keyword name="E4SideBar.tabWhatsThis" id="E4SideBar.tabWhatsThis" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.tabWhatsThis" /> - <keyword name="E4SideBar.widget" id="E4SideBar.widget" ref="eric5.E4Gui.E4SideBar.html#E4SideBar.widget" /> - <keyword name="E4ModelToolBar (Module)" id="E4ModelToolBar (Module)" ref="eric5.E4Gui.E4ModelToolBar.html" /> - <keyword name="E4ModelToolBar" id="E4ModelToolBar" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar" /> - <keyword name="E4ModelToolBar (Constructor)" id="E4ModelToolBar (Constructor)" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.__init__" /> - <keyword name="E4ModelToolBar._build" id="E4ModelToolBar._build" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar._build" /> - <keyword name="E4ModelToolBar._createMenu" id="E4ModelToolBar._createMenu" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar._createMenu" /> - <keyword name="E4ModelToolBar.dragEnterEvent" id="E4ModelToolBar.dragEnterEvent" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.dragEnterEvent" /> - <keyword name="E4ModelToolBar.dropEvent" id="E4ModelToolBar.dropEvent" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.dropEvent" /> - <keyword name="E4ModelToolBar.eventFilter" id="E4ModelToolBar.eventFilter" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.eventFilter" /> - <keyword name="E4ModelToolBar.hideEvent" id="E4ModelToolBar.hideEvent" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.hideEvent" /> - <keyword name="E4ModelToolBar.index" id="E4ModelToolBar.index" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.index" /> - <keyword name="E4ModelToolBar.model" id="E4ModelToolBar.model" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.model" /> - <keyword name="E4ModelToolBar.mouseMoveEvent" id="E4ModelToolBar.mouseMoveEvent" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.mouseMoveEvent" /> - <keyword name="E4ModelToolBar.resetFlags" id="E4ModelToolBar.resetFlags" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.resetFlags" /> - <keyword name="E4ModelToolBar.rootIndex" id="E4ModelToolBar.rootIndex" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.rootIndex" /> - <keyword name="E4ModelToolBar.setModel" id="E4ModelToolBar.setModel" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.setModel" /> - <keyword name="E4ModelToolBar.setRootIndex" id="E4ModelToolBar.setRootIndex" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.setRootIndex" /> - <keyword name="E4ModelToolBar.showEvent" id="E4ModelToolBar.showEvent" ref="eric5.E4Gui.E4ModelToolBar.html#E4ModelToolBar.showEvent" /> - <keyword name="E4SqueezeLabels (Module)" id="E4SqueezeLabels (Module)" ref="eric5.E4Gui.E4SqueezeLabels.html" /> - <keyword name="E4SqueezeLabel" id="E4SqueezeLabel" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabel" /> - <keyword name="E4SqueezeLabelPath" id="E4SqueezeLabelPath" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath" /> - <keyword name="E4SqueezeLabel (Constructor)" id="E4SqueezeLabel (Constructor)" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabel.__init__" /> - <keyword name="E4SqueezeLabel.paintEvent" id="E4SqueezeLabel.paintEvent" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabel.paintEvent" /> - <keyword name="E4SqueezeLabel.setText" id="E4SqueezeLabel.setText" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabel.setText" /> - <keyword name="E4SqueezeLabelPath (Constructor)" id="E4SqueezeLabelPath (Constructor)" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.__init__" /> - <keyword name="E4SqueezeLabelPath.length" id="E4SqueezeLabelPath.length" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.length" /> - <keyword name="E4SqueezeLabelPath.paintEvent" id="E4SqueezeLabelPath.paintEvent" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.paintEvent" /> - <keyword name="E4SqueezeLabelPath.setPath" id="E4SqueezeLabelPath.setPath" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.setPath" /> - <keyword name="E4SqueezeLabelPath.setSurrounding" id="E4SqueezeLabelPath.setSurrounding" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.setSurrounding" /> - <keyword name="E4SqueezeLabelPath.setTextPath" id="E4SqueezeLabelPath.setTextPath" ref="eric5.E4Gui.E4SqueezeLabels.html#E4SqueezeLabelPath.setTextPath" /> - <keyword name="E4ToolBarDialog (Module)" id="E4ToolBarDialog (Module)" ref="eric5.E4Gui.E4ToolBarDialog.html" /> - <keyword name="E4ToolBarDialog" id="E4ToolBarDialog" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog" /> - <keyword name="E4ToolBarItem" id="E4ToolBarItem" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarItem" /> - <keyword name="E4ToolBarDialog (Constructor)" id="E4ToolBarDialog (Constructor)" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__init__" /> - <keyword name="E4ToolBarDialog.__resetCurrentToolbar" id="E4ToolBarDialog.__resetCurrentToolbar" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__resetCurrentToolbar" /> - <keyword name="E4ToolBarDialog.__restoreCurrentToolbar" id="E4ToolBarDialog.__restoreCurrentToolbar" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__restoreCurrentToolbar" /> - <keyword name="E4ToolBarDialog.__restoreCurrentToolbarToDefault" id="E4ToolBarDialog.__restoreCurrentToolbarToDefault" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__restoreCurrentToolbarToDefault" /> - <keyword name="E4ToolBarDialog.__saveToolBars" id="E4ToolBarDialog.__saveToolBars" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__saveToolBars" /> - <keyword name="E4ToolBarDialog.__setupButtons" id="E4ToolBarDialog.__setupButtons" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__setupButtons" /> - <keyword name="E4ToolBarDialog.__toolbarComboBox_currentIndexChanged" id="E4ToolBarDialog.__toolbarComboBox_currentIndexChanged" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.__toolbarComboBox_currentIndexChanged" /> - <keyword name="E4ToolBarDialog.on_actionsTree_currentItemChanged" id="E4ToolBarDialog.on_actionsTree_currentItemChanged" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_actionsTree_currentItemChanged" /> - <keyword name="E4ToolBarDialog.on_buttonBox_clicked" id="E4ToolBarDialog.on_buttonBox_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_buttonBox_clicked" /> - <keyword name="E4ToolBarDialog.on_downButton_clicked" id="E4ToolBarDialog.on_downButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_downButton_clicked" /> - <keyword name="E4ToolBarDialog.on_leftButton_clicked" id="E4ToolBarDialog.on_leftButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_leftButton_clicked" /> - <keyword name="E4ToolBarDialog.on_newButton_clicked" id="E4ToolBarDialog.on_newButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_newButton_clicked" /> - <keyword name="E4ToolBarDialog.on_removeButton_clicked" id="E4ToolBarDialog.on_removeButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_removeButton_clicked" /> - <keyword name="E4ToolBarDialog.on_renameButton_clicked" id="E4ToolBarDialog.on_renameButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_renameButton_clicked" /> - <keyword name="E4ToolBarDialog.on_rightButton_clicked" id="E4ToolBarDialog.on_rightButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_rightButton_clicked" /> - <keyword name="E4ToolBarDialog.on_toolbarActionsList_currentItemChanged" id="E4ToolBarDialog.on_toolbarActionsList_currentItemChanged" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_toolbarActionsList_currentItemChanged" /> - <keyword name="E4ToolBarDialog.on_upButton_clicked" id="E4ToolBarDialog.on_upButton_clicked" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarDialog.on_upButton_clicked" /> - <keyword name="E4ToolBarItem (Constructor)" id="E4ToolBarItem (Constructor)" ref="eric5.E4Gui.E4ToolBarDialog.html#E4ToolBarItem.__init__" /> - <keyword name="E4ModelMenu (Module)" id="E4ModelMenu (Module)" ref="eric5.E4Gui.E4ModelMenu.html" /> - <keyword name="E4ModelMenu" id="E4ModelMenu" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu" /> - <keyword name="E4ModelMenu (Constructor)" id="E4ModelMenu (Constructor)" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.__init__" /> - <keyword name="E4ModelMenu.__aboutToShow" id="E4ModelMenu.__aboutToShow" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.__aboutToShow" /> - <keyword name="E4ModelMenu.__actionTriggered" id="E4ModelMenu.__actionTriggered" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.__actionTriggered" /> - <keyword name="E4ModelMenu.__makeAction" id="E4ModelMenu.__makeAction" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.__makeAction" /> - <keyword name="E4ModelMenu.createBaseMenu" id="E4ModelMenu.createBaseMenu" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.createBaseMenu" /> - <keyword name="E4ModelMenu.createMenu" id="E4ModelMenu.createMenu" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.createMenu" /> - <keyword name="E4ModelMenu.dragEnterEvent" id="E4ModelMenu.dragEnterEvent" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.dragEnterEvent" /> - <keyword name="E4ModelMenu.dropEvent" id="E4ModelMenu.dropEvent" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.dropEvent" /> - <keyword name="E4ModelMenu.firstSeparator" id="E4ModelMenu.firstSeparator" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.firstSeparator" /> - <keyword name="E4ModelMenu.index" id="E4ModelMenu.index" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.index" /> - <keyword name="E4ModelMenu.makeAction" id="E4ModelMenu.makeAction" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.makeAction" /> - <keyword name="E4ModelMenu.maxRows" id="E4ModelMenu.maxRows" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.maxRows" /> - <keyword name="E4ModelMenu.model" id="E4ModelMenu.model" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.model" /> - <keyword name="E4ModelMenu.mouseMoveEvent" id="E4ModelMenu.mouseMoveEvent" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.mouseMoveEvent" /> - <keyword name="E4ModelMenu.mousePressEvent" id="E4ModelMenu.mousePressEvent" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.mousePressEvent" /> - <keyword name="E4ModelMenu.mouseReleaseEvent" id="E4ModelMenu.mouseReleaseEvent" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.mouseReleaseEvent" /> - <keyword name="E4ModelMenu.postPopulated" id="E4ModelMenu.postPopulated" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.postPopulated" /> - <keyword name="E4ModelMenu.prePopulated" id="E4ModelMenu.prePopulated" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.prePopulated" /> - <keyword name="E4ModelMenu.removeEntry" id="E4ModelMenu.removeEntry" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.removeEntry" /> - <keyword name="E4ModelMenu.resetFlags" id="E4ModelMenu.resetFlags" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.resetFlags" /> - <keyword name="E4ModelMenu.rootIndex" id="E4ModelMenu.rootIndex" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.rootIndex" /> - <keyword name="E4ModelMenu.separatorRole" id="E4ModelMenu.separatorRole" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.separatorRole" /> - <keyword name="E4ModelMenu.setFirstSeparator" id="E4ModelMenu.setFirstSeparator" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setFirstSeparator" /> - <keyword name="E4ModelMenu.setMaxRows" id="E4ModelMenu.setMaxRows" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setMaxRows" /> - <keyword name="E4ModelMenu.setModel" id="E4ModelMenu.setModel" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setModel" /> - <keyword name="E4ModelMenu.setRootIndex" id="E4ModelMenu.setRootIndex" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setRootIndex" /> - <keyword name="E4ModelMenu.setSeparatorRole" id="E4ModelMenu.setSeparatorRole" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setSeparatorRole" /> - <keyword name="E4ModelMenu.setStatusBarTextRole" id="E4ModelMenu.setStatusBarTextRole" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.setStatusBarTextRole" /> - <keyword name="E4ModelMenu.statusBarTextRole" id="E4ModelMenu.statusBarTextRole" ref="eric5.E4Gui.E4ModelMenu.html#E4ModelMenu.statusBarTextRole" /> - <keyword name="E4TreeView (Module)" id="E4TreeView (Module)" ref="eric5.E4Gui.E4TreeView.html" /> - <keyword name="E4TreeView" id="E4TreeView" ref="eric5.E4Gui.E4TreeView.html#E4TreeView" /> - <keyword name="E4TreeView.keyPressEvent" id="E4TreeView.keyPressEvent" ref="eric5.E4Gui.E4TreeView.html#E4TreeView.keyPressEvent" /> - <keyword name="E4TreeView.removeAll" id="E4TreeView.removeAll" ref="eric5.E4Gui.E4TreeView.html#E4TreeView.removeAll" /> - <keyword name="E4TreeView.removeSelected" id="E4TreeView.removeSelected" ref="eric5.E4Gui.E4TreeView.html#E4TreeView.removeSelected" /> - <keyword name="E4ListView (Module)" id="E4ListView (Module)" ref="eric5.E4Gui.E4ListView.html" /> - <keyword name="E4ListView" id="E4ListView" ref="eric5.E4Gui.E4ListView.html#E4ListView" /> - <keyword name="E4ListView.keyPressEvent" id="E4ListView.keyPressEvent" ref="eric5.E4Gui.E4ListView.html#E4ListView.keyPressEvent" /> - <keyword name="E4ListView.removeAll" id="E4ListView.removeAll" ref="eric5.E4Gui.E4ListView.html#E4ListView.removeAll" /> - <keyword name="E4ListView.removeSelected" id="E4ListView.removeSelected" ref="eric5.E4Gui.E4ListView.html#E4ListView.removeSelected" /> - <keyword name="E4Action (Module)" id="E4Action (Module)" ref="eric5.E4Gui.E4Action.html" /> - <keyword name="ArgumentsError" id="ArgumentsError" ref="eric5.E4Gui.E4Action.html#ArgumentsError" /> - <keyword name="E4Action" id="E4Action" ref="eric5.E4Gui.E4Action.html#E4Action" /> - <keyword name="addActions" id="addActions" ref="eric5.E4Gui.E4Action.html#addActions" /> - <keyword name="createActionGroup" id="createActionGroup" ref="eric5.E4Gui.E4Action.html#createActionGroup" /> - <keyword name="ArgumentsError (Constructor)" id="ArgumentsError (Constructor)" ref="eric5.E4Gui.E4Action.html#ArgumentsError.__init__" /> - <keyword name="ArgumentsError.__repr__" id="ArgumentsError.__repr__" ref="eric5.E4Gui.E4Action.html#ArgumentsError.__repr__" /> - <keyword name="ArgumentsError.__str__" id="ArgumentsError.__str__" ref="eric5.E4Gui.E4Action.html#ArgumentsError.__str__" /> - <keyword name="E4Action (Constructor)" id="E4Action (Constructor)" ref="eric5.E4Gui.E4Action.html#E4Action.__init__" /> - <keyword name="E4Action.alternateShortcut" id="E4Action.alternateShortcut" ref="eric5.E4Gui.E4Action.html#E4Action.alternateShortcut" /> - <keyword name="E4Action.setAlternateShortcut" id="E4Action.setAlternateShortcut" ref="eric5.E4Gui.E4Action.html#E4Action.setAlternateShortcut" /> - <keyword name="E4TreeSortFilterProxyModel (Module)" id="E4TreeSortFilterProxyModel (Module)" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html" /> - <keyword name="E4TreeSortFilterProxyModel" id="E4TreeSortFilterProxyModel" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html#E4TreeSortFilterProxyModel" /> - <keyword name="E4TreeSortFilterProxyModel (Constructor)" id="E4TreeSortFilterProxyModel (Constructor)" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html#E4TreeSortFilterProxyModel.__init__" /> - <keyword name="E4TreeSortFilterProxyModel.filterAcceptsRow" id="E4TreeSortFilterProxyModel.filterAcceptsRow" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html#E4TreeSortFilterProxyModel.filterAcceptsRow" /> - <keyword name="E4TreeSortFilterProxyModel.hasChildren" id="E4TreeSortFilterProxyModel.hasChildren" ref="eric5.E4Gui.E4TreeSortFilterProxyModel.html#E4TreeSortFilterProxyModel.hasChildren" /> - <keyword name="E4Completers (Module)" id="E4Completers (Module)" ref="eric5.E4Gui.E4Completers.html" /> - <keyword name="E4DirCompleter" id="E4DirCompleter" ref="eric5.E4Gui.E4Completers.html#E4DirCompleter" /> - <keyword name="E4FileCompleter" id="E4FileCompleter" ref="eric5.E4Gui.E4Completers.html#E4FileCompleter" /> - <keyword name="E4StringListCompleter" id="E4StringListCompleter" ref="eric5.E4Gui.E4Completers.html#E4StringListCompleter" /> - <keyword name="E4DirCompleter (Constructor)" id="E4DirCompleter (Constructor)" ref="eric5.E4Gui.E4Completers.html#E4DirCompleter.__init__" /> - <keyword name="E4FileCompleter (Constructor)" id="E4FileCompleter (Constructor)" ref="eric5.E4Gui.E4Completers.html#E4FileCompleter.__init__" /> - <keyword name="E4StringListCompleter (Constructor)" id="E4StringListCompleter (Constructor)" ref="eric5.E4Gui.E4Completers.html#E4StringListCompleter.__init__" /> - <keyword name="E4ToolBox (Module)" id="E4ToolBox (Module)" ref="eric5.E4Gui.E4ToolBox.html" /> - <keyword name="E4HorizontalToolBox" id="E4HorizontalToolBox" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox" /> - <keyword name="E4VerticalToolBox" id="E4VerticalToolBox" ref="eric5.E4Gui.E4ToolBox.html#E4VerticalToolBox" /> - <keyword name="E4HorizontalToolBox (Constructor)" id="E4HorizontalToolBox (Constructor)" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox.__init__" /> - <keyword name="E4HorizontalToolBox.addItem" id="E4HorizontalToolBox.addItem" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox.addItem" /> - <keyword name="E4HorizontalToolBox.insertItem" id="E4HorizontalToolBox.insertItem" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox.insertItem" /> - <keyword name="E4HorizontalToolBox.setItemEnabled" id="E4HorizontalToolBox.setItemEnabled" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox.setItemEnabled" /> - <keyword name="E4HorizontalToolBox.setItemToolTip" id="E4HorizontalToolBox.setItemToolTip" ref="eric5.E4Gui.E4ToolBox.html#E4HorizontalToolBox.setItemToolTip" /> - <keyword name="E4VerticalToolBox (Constructor)" id="E4VerticalToolBox (Constructor)" ref="eric5.E4Gui.E4ToolBox.html#E4VerticalToolBox.__init__" /> - <keyword name="E4VerticalToolBox.wheelEvent" id="E4VerticalToolBox.wheelEvent" ref="eric5.E4Gui.E4ToolBox.html#E4VerticalToolBox.wheelEvent" /> - <keyword name="E4ToolBarManager (Module)" id="E4ToolBarManager (Module)" ref="eric5.E4Gui.E4ToolBarManager.html" /> - <keyword name="E4ToolBarManager" id="E4ToolBarManager" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager" /> - <keyword name="E4ToolBarManager (Constructor)" id="E4ToolBarManager (Constructor)" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.__init__" /> - <keyword name="E4ToolBarManager.__findAction" id="E4ToolBarManager.__findAction" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.__findAction" /> - <keyword name="E4ToolBarManager.__findDefaultToolBar" id="E4ToolBarManager.__findDefaultToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.__findDefaultToolBar" /> - <keyword name="E4ToolBarManager.__toolBarByName" id="E4ToolBarManager.__toolBarByName" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.__toolBarByName" /> - <keyword name="E4ToolBarManager.actionById" id="E4ToolBarManager.actionById" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.actionById" /> - <keyword name="E4ToolBarManager.addAction" id="E4ToolBarManager.addAction" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.addAction" /> - <keyword name="E4ToolBarManager.addToolBar" id="E4ToolBarManager.addToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.addToolBar" /> - <keyword name="E4ToolBarManager.categories" id="E4ToolBarManager.categories" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.categories" /> - <keyword name="E4ToolBarManager.categoryActions" id="E4ToolBarManager.categoryActions" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.categoryActions" /> - <keyword name="E4ToolBarManager.createToolBar" id="E4ToolBarManager.createToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.createToolBar" /> - <keyword name="E4ToolBarManager.defaultToolBarActions" id="E4ToolBarManager.defaultToolBarActions" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.defaultToolBarActions" /> - <keyword name="E4ToolBarManager.defaultToolBars" id="E4ToolBarManager.defaultToolBars" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.defaultToolBars" /> - <keyword name="E4ToolBarManager.deleteToolBar" id="E4ToolBarManager.deleteToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.deleteToolBar" /> - <keyword name="E4ToolBarManager.isDefaultToolBar" id="E4ToolBarManager.isDefaultToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.isDefaultToolBar" /> - <keyword name="E4ToolBarManager.isWidgetAction" id="E4ToolBarManager.isWidgetAction" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.isWidgetAction" /> - <keyword name="E4ToolBarManager.mainWindow" id="E4ToolBarManager.mainWindow" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.mainWindow" /> - <keyword name="E4ToolBarManager.removeAction" id="E4ToolBarManager.removeAction" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.removeAction" /> - <keyword name="E4ToolBarManager.removeToolBar" id="E4ToolBarManager.removeToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.removeToolBar" /> - <keyword name="E4ToolBarManager.removeWidgetActions" id="E4ToolBarManager.removeWidgetActions" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.removeWidgetActions" /> - <keyword name="E4ToolBarManager.renameToolBar" id="E4ToolBarManager.renameToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.renameToolBar" /> - <keyword name="E4ToolBarManager.resetAllToolBars" id="E4ToolBarManager.resetAllToolBars" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.resetAllToolBars" /> - <keyword name="E4ToolBarManager.resetToolBar" id="E4ToolBarManager.resetToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.resetToolBar" /> - <keyword name="E4ToolBarManager.restoreState" id="E4ToolBarManager.restoreState" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.restoreState" /> - <keyword name="E4ToolBarManager.saveState" id="E4ToolBarManager.saveState" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.saveState" /> - <keyword name="E4ToolBarManager.setMainWindow" id="E4ToolBarManager.setMainWindow" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.setMainWindow" /> - <keyword name="E4ToolBarManager.setToolBar" id="E4ToolBarManager.setToolBar" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.setToolBar" /> - <keyword name="E4ToolBarManager.setToolBars" id="E4ToolBarManager.setToolBars" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.setToolBars" /> - <keyword name="E4ToolBarManager.toolBarActions" id="E4ToolBarManager.toolBarActions" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.toolBarActions" /> - <keyword name="E4ToolBarManager.toolBarById" id="E4ToolBarManager.toolBarById" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.toolBarById" /> - <keyword name="E4ToolBarManager.toolBarWidgetAction" id="E4ToolBarManager.toolBarWidgetAction" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.toolBarWidgetAction" /> - <keyword name="E4ToolBarManager.toolBars" id="E4ToolBarManager.toolBars" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.toolBars" /> - <keyword name="E4ToolBarManager.toolBarsActions" id="E4ToolBarManager.toolBarsActions" ref="eric5.E4Gui.E4ToolBarManager.html#E4ToolBarManager.toolBarsActions" /> - <keyword name="E4TableView (Module)" id="E4TableView (Module)" ref="eric5.E4Gui.E4TableView.html" /> - <keyword name="E4TableView" id="E4TableView" ref="eric5.E4Gui.E4TableView.html#E4TableView" /> - <keyword name="E4TableView.keyPressEvent" id="E4TableView.keyPressEvent" ref="eric5.E4Gui.E4TableView.html#E4TableView.keyPressEvent" /> - <keyword name="E4TableView.removeAll" id="E4TableView.removeAll" ref="eric5.E4Gui.E4TableView.html#E4TableView.removeAll" /> - <keyword name="E4TableView.removeSelected" id="E4TableView.removeSelected" ref="eric5.E4Gui.E4TableView.html#E4TableView.removeSelected" /> - <keyword name="E4LineEdit (Module)" id="E4LineEdit (Module)" ref="eric5.E4Gui.E4LineEdit.html" /> - <keyword name="E4LineEdit" id="E4LineEdit" ref="eric5.E4Gui.E4LineEdit.html#E4LineEdit" /> - <keyword name="E4LineEdit (Constructor)" id="E4LineEdit (Constructor)" ref="eric5.E4Gui.E4LineEdit.html#E4LineEdit.__init__" /> - <keyword name="E4LineEdit.inactiveText" id="E4LineEdit.inactiveText" ref="eric5.E4Gui.E4LineEdit.html#E4LineEdit.inactiveText" /> - <keyword name="E4LineEdit.paintEvent" id="E4LineEdit.paintEvent" ref="eric5.E4Gui.E4LineEdit.html#E4LineEdit.paintEvent" /> - <keyword name="E4LineEdit.setInactiveText" id="E4LineEdit.setInactiveText" ref="eric5.E4Gui.E4LineEdit.html#E4LineEdit.setInactiveText" /> - <keyword name="E4Led (Module)" id="E4Led (Module)" ref="eric5.E4Gui.E4Led.html" /> - <keyword name="E4Led" id="E4Led" ref="eric5.E4Gui.E4Led.html#E4Led" /> - <keyword name="E4Led (Constructor)" id="E4Led (Constructor)" ref="eric5.E4Gui.E4Led.html#E4Led.__init__" /> - <keyword name="E4Led.__getBestRoundSize" id="E4Led.__getBestRoundSize" ref="eric5.E4Gui.E4Led.html#E4Led.__getBestRoundSize" /> - <keyword name="E4Led.__paintRectangular" id="E4Led.__paintRectangular" ref="eric5.E4Gui.E4Led.html#E4Led.__paintRectangular" /> - <keyword name="E4Led.__paintRound" id="E4Led.__paintRound" ref="eric5.E4Gui.E4Led.html#E4Led.__paintRound" /> - <keyword name="E4Led.color" id="E4Led.color" ref="eric5.E4Gui.E4Led.html#E4Led.color" /> - <keyword name="E4Led.darkFactor" id="E4Led.darkFactor" ref="eric5.E4Gui.E4Led.html#E4Led.darkFactor" /> - <keyword name="E4Led.isFramed" id="E4Led.isFramed" ref="eric5.E4Gui.E4Led.html#E4Led.isFramed" /> - <keyword name="E4Led.isOn" id="E4Led.isOn" ref="eric5.E4Gui.E4Led.html#E4Led.isOn" /> - <keyword name="E4Led.minimumSizeHint" id="E4Led.minimumSizeHint" ref="eric5.E4Gui.E4Led.html#E4Led.minimumSizeHint" /> - <keyword name="E4Led.off" id="E4Led.off" ref="eric5.E4Gui.E4Led.html#E4Led.off" /> - <keyword name="E4Led.on" id="E4Led.on" ref="eric5.E4Gui.E4Led.html#E4Led.on" /> - <keyword name="E4Led.paintEvent" id="E4Led.paintEvent" ref="eric5.E4Gui.E4Led.html#E4Led.paintEvent" /> - <keyword name="E4Led.ratio" id="E4Led.ratio" ref="eric5.E4Gui.E4Led.html#E4Led.ratio" /> - <keyword name="E4Led.setColor" id="E4Led.setColor" ref="eric5.E4Gui.E4Led.html#E4Led.setColor" /> - <keyword name="E4Led.setDarkFactor" id="E4Led.setDarkFactor" ref="eric5.E4Gui.E4Led.html#E4Led.setDarkFactor" /> - <keyword name="E4Led.setFramed" id="E4Led.setFramed" ref="eric5.E4Gui.E4Led.html#E4Led.setFramed" /> - <keyword name="E4Led.setOn" id="E4Led.setOn" ref="eric5.E4Gui.E4Led.html#E4Led.setOn" /> - <keyword name="E4Led.setRatio" id="E4Led.setRatio" ref="eric5.E4Gui.E4Led.html#E4Led.setRatio" /> - <keyword name="E4Led.setShape" id="E4Led.setShape" ref="eric5.E4Gui.E4Led.html#E4Led.setShape" /> - <keyword name="E4Led.shape" id="E4Led.shape" ref="eric5.E4Gui.E4Led.html#E4Led.shape" /> - <keyword name="E4Led.sizeHint" id="E4Led.sizeHint" ref="eric5.E4Gui.E4Led.html#E4Led.sizeHint" /> - <keyword name="E4Led.toggle" id="E4Led.toggle" ref="eric5.E4Gui.E4Led.html#E4Led.toggle" /> - <keyword name="E4Application (Module)" id="E4Application (Module)" ref="eric5.E4Gui.E4Application.html" /> - <keyword name="E4Application" id="E4Application" ref="eric5.E4Gui.E4Application.html#E4Application" /> - <keyword name="E4Application (Constructor)" id="E4Application (Constructor)" ref="eric5.E4Gui.E4Application.html#E4Application.__init__" /> - <keyword name="E4Application.getObject" id="E4Application.getObject" ref="eric5.E4Gui.E4Application.html#E4Application.getObject" /> - <keyword name="E4Application.getPluginObject" id="E4Application.getPluginObject" ref="eric5.E4Gui.E4Application.html#E4Application.getPluginObject" /> - <keyword name="E4Application.getPluginObjectType" id="E4Application.getPluginObjectType" ref="eric5.E4Gui.E4Application.html#E4Application.getPluginObjectType" /> - <keyword name="E4Application.getPluginObjects" id="E4Application.getPluginObjects" ref="eric5.E4Gui.E4Application.html#E4Application.getPluginObjects" /> - <keyword name="E4Application.registerObject" id="E4Application.registerObject" ref="eric5.E4Gui.E4Application.html#E4Application.registerObject" /> - <keyword name="E4Application.registerPluginObject" id="E4Application.registerPluginObject" ref="eric5.E4Gui.E4Application.html#E4Application.registerPluginObject" /> - <keyword name="E4Application.unregisterPluginObject" id="E4Application.unregisterPluginObject" ref="eric5.E4Gui.E4Application.html#E4Application.unregisterPluginObject" /> - <keyword name="E4SingleApplication (Module)" id="E4SingleApplication (Module)" ref="eric5.E4Gui.E4SingleApplication.html" /> - <keyword name="E4SingleApplicationClient" id="E4SingleApplicationClient" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient" /> - <keyword name="E4SingleApplicationServer" id="E4SingleApplicationServer" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer" /> - <keyword name="E4SingleApplicationClient (Constructor)" id="E4SingleApplicationClient (Constructor)" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient.__init__" /> - <keyword name="E4SingleApplicationClient.__openFile" id="E4SingleApplicationClient.__openFile" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient.__openFile" /> - <keyword name="E4SingleApplicationClient.__openProject" id="E4SingleApplicationClient.__openProject" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient.__openProject" /> - <keyword name="E4SingleApplicationClient.__sendArguments" id="E4SingleApplicationClient.__sendArguments" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient.__sendArguments" /> - <keyword name="E4SingleApplicationClient.processArgs" id="E4SingleApplicationClient.processArgs" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationClient.processArgs" /> - <keyword name="E4SingleApplicationServer (Constructor)" id="E4SingleApplicationServer (Constructor)" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer.__init__" /> - <keyword name="E4SingleApplicationServer.__saArguments" id="E4SingleApplicationServer.__saArguments" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer.__saArguments" /> - <keyword name="E4SingleApplicationServer.__saOpenFile" id="E4SingleApplicationServer.__saOpenFile" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer.__saOpenFile" /> - <keyword name="E4SingleApplicationServer.__saOpenProject" id="E4SingleApplicationServer.__saOpenProject" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer.__saOpenProject" /> - <keyword name="E4SingleApplicationServer.handleCommand" id="E4SingleApplicationServer.handleCommand" ref="eric5.E4Gui.E4SingleApplication.html#E4SingleApplicationServer.handleCommand" /> + <keyword name="E5Gui (Package)" id="E5Gui (Package)" ref="index-eric5.E5Gui.html" /> + <keyword name="E5SingleApplication (Module)" id="E5SingleApplication (Module)" ref="eric5.E5Gui.E5SingleApplication.html" /> + <keyword name="E5SingleApplicationClient" id="E5SingleApplicationClient" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient" /> + <keyword name="E5SingleApplicationServer" id="E5SingleApplicationServer" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer" /> + <keyword name="E5SingleApplicationClient (Constructor)" id="E5SingleApplicationClient (Constructor)" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient.__init__" /> + <keyword name="E5SingleApplicationClient.__openFile" id="E5SingleApplicationClient.__openFile" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient.__openFile" /> + <keyword name="E5SingleApplicationClient.__openProject" id="E5SingleApplicationClient.__openProject" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient.__openProject" /> + <keyword name="E5SingleApplicationClient.__sendArguments" id="E5SingleApplicationClient.__sendArguments" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient.__sendArguments" /> + <keyword name="E5SingleApplicationClient.processArgs" id="E5SingleApplicationClient.processArgs" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationClient.processArgs" /> + <keyword name="E5SingleApplicationServer (Constructor)" id="E5SingleApplicationServer (Constructor)" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer.__init__" /> + <keyword name="E5SingleApplicationServer.__saArguments" id="E5SingleApplicationServer.__saArguments" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer.__saArguments" /> + <keyword name="E5SingleApplicationServer.__saOpenFile" id="E5SingleApplicationServer.__saOpenFile" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer.__saOpenFile" /> + <keyword name="E5SingleApplicationServer.__saOpenProject" id="E5SingleApplicationServer.__saOpenProject" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer.__saOpenProject" /> + <keyword name="E5SingleApplicationServer.handleCommand" id="E5SingleApplicationServer.handleCommand" ref="eric5.E5Gui.E5SingleApplication.html#E5SingleApplicationServer.handleCommand" /> + <keyword name="E5LineEdit (Module)" id="E5LineEdit (Module)" ref="eric5.E5Gui.E5LineEdit.html" /> + <keyword name="E5LineEdit" id="E5LineEdit" ref="eric5.E5Gui.E5LineEdit.html#E5LineEdit" /> + <keyword name="E5LineEdit (Constructor)" id="E5LineEdit (Constructor)" ref="eric5.E5Gui.E5LineEdit.html#E5LineEdit.__init__" /> + <keyword name="E5LineEdit.inactiveText" id="E5LineEdit.inactiveText" ref="eric5.E5Gui.E5LineEdit.html#E5LineEdit.inactiveText" /> + <keyword name="E5LineEdit.paintEvent" id="E5LineEdit.paintEvent" ref="eric5.E5Gui.E5LineEdit.html#E5LineEdit.paintEvent" /> + <keyword name="E5LineEdit.setInactiveText" id="E5LineEdit.setInactiveText" ref="eric5.E5Gui.E5LineEdit.html#E5LineEdit.setInactiveText" /> + <keyword name="E5Led (Module)" id="E5Led (Module)" ref="eric5.E5Gui.E5Led.html" /> + <keyword name="E5Led" id="E5Led" ref="eric5.E5Gui.E5Led.html#E5Led" /> + <keyword name="E5Led (Constructor)" id="E5Led (Constructor)" ref="eric5.E5Gui.E5Led.html#E5Led.__init__" /> + <keyword name="E5Led.__getBestRoundSize" id="E5Led.__getBestRoundSize" ref="eric5.E5Gui.E5Led.html#E5Led.__getBestRoundSize" /> + <keyword name="E5Led.__paintRectangular" id="E5Led.__paintRectangular" ref="eric5.E5Gui.E5Led.html#E5Led.__paintRectangular" /> + <keyword name="E5Led.__paintRound" id="E5Led.__paintRound" ref="eric5.E5Gui.E5Led.html#E5Led.__paintRound" /> + <keyword name="E5Led.color" id="E5Led.color" ref="eric5.E5Gui.E5Led.html#E5Led.color" /> + <keyword name="E5Led.darkFactor" id="E5Led.darkFactor" ref="eric5.E5Gui.E5Led.html#E5Led.darkFactor" /> + <keyword name="E5Led.isFramed" id="E5Led.isFramed" ref="eric5.E5Gui.E5Led.html#E5Led.isFramed" /> + <keyword name="E5Led.isOn" id="E5Led.isOn" ref="eric5.E5Gui.E5Led.html#E5Led.isOn" /> + <keyword name="E5Led.minimumSizeHint" id="E5Led.minimumSizeHint" ref="eric5.E5Gui.E5Led.html#E5Led.minimumSizeHint" /> + <keyword name="E5Led.off" id="E5Led.off" ref="eric5.E5Gui.E5Led.html#E5Led.off" /> + <keyword name="E5Led.on" id="E5Led.on" ref="eric5.E5Gui.E5Led.html#E5Led.on" /> + <keyword name="E5Led.paintEvent" id="E5Led.paintEvent" ref="eric5.E5Gui.E5Led.html#E5Led.paintEvent" /> + <keyword name="E5Led.ratio" id="E5Led.ratio" ref="eric5.E5Gui.E5Led.html#E5Led.ratio" /> + <keyword name="E5Led.setColor" id="E5Led.setColor" ref="eric5.E5Gui.E5Led.html#E5Led.setColor" /> + <keyword name="E5Led.setDarkFactor" id="E5Led.setDarkFactor" ref="eric5.E5Gui.E5Led.html#E5Led.setDarkFactor" /> + <keyword name="E5Led.setFramed" id="E5Led.setFramed" ref="eric5.E5Gui.E5Led.html#E5Led.setFramed" /> + <keyword name="E5Led.setOn" id="E5Led.setOn" ref="eric5.E5Gui.E5Led.html#E5Led.setOn" /> + <keyword name="E5Led.setRatio" id="E5Led.setRatio" ref="eric5.E5Gui.E5Led.html#E5Led.setRatio" /> + <keyword name="E5Led.setShape" id="E5Led.setShape" ref="eric5.E5Gui.E5Led.html#E5Led.setShape" /> + <keyword name="E5Led.shape" id="E5Led.shape" ref="eric5.E5Gui.E5Led.html#E5Led.shape" /> + <keyword name="E5Led.sizeHint" id="E5Led.sizeHint" ref="eric5.E5Gui.E5Led.html#E5Led.sizeHint" /> + <keyword name="E5Led.toggle" id="E5Led.toggle" ref="eric5.E5Gui.E5Led.html#E5Led.toggle" /> + <keyword name="E5SqueezeLabels (Module)" id="E5SqueezeLabels (Module)" ref="eric5.E5Gui.E5SqueezeLabels.html" /> + <keyword name="E5SqueezeLabel" id="E5SqueezeLabel" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabel" /> + <keyword name="E5SqueezeLabelPath" id="E5SqueezeLabelPath" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath" /> + <keyword name="E5SqueezeLabel (Constructor)" id="E5SqueezeLabel (Constructor)" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabel.__init__" /> + <keyword name="E5SqueezeLabel.paintEvent" id="E5SqueezeLabel.paintEvent" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabel.paintEvent" /> + <keyword name="E5SqueezeLabel.setText" id="E5SqueezeLabel.setText" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabel.setText" /> + <keyword name="E5SqueezeLabelPath (Constructor)" id="E5SqueezeLabelPath (Constructor)" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.__init__" /> + <keyword name="E5SqueezeLabelPath.length" id="E5SqueezeLabelPath.length" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.length" /> + <keyword name="E5SqueezeLabelPath.paintEvent" id="E5SqueezeLabelPath.paintEvent" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.paintEvent" /> + <keyword name="E5SqueezeLabelPath.setPath" id="E5SqueezeLabelPath.setPath" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.setPath" /> + <keyword name="E5SqueezeLabelPath.setSurrounding" id="E5SqueezeLabelPath.setSurrounding" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.setSurrounding" /> + <keyword name="E5SqueezeLabelPath.setTextPath" id="E5SqueezeLabelPath.setTextPath" ref="eric5.E5Gui.E5SqueezeLabels.html#E5SqueezeLabelPath.setTextPath" /> + <keyword name="E5ToolBox (Module)" id="E5ToolBox (Module)" ref="eric5.E5Gui.E5ToolBox.html" /> + <keyword name="E5HorizontalToolBox" id="E5HorizontalToolBox" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox" /> + <keyword name="E5VerticalToolBox" id="E5VerticalToolBox" ref="eric5.E5Gui.E5ToolBox.html#E5VerticalToolBox" /> + <keyword name="E5HorizontalToolBox (Constructor)" id="E5HorizontalToolBox (Constructor)" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.__init__" /> + <keyword name="E5HorizontalToolBox.addItem" id="E5HorizontalToolBox.addItem" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.addItem" /> + <keyword name="E5HorizontalToolBox.insertItem" id="E5HorizontalToolBox.insertItem" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.insertItem" /> + <keyword name="E5HorizontalToolBox.setItemEnabled" id="E5HorizontalToolBox.setItemEnabled" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.setItemEnabled" /> + <keyword name="E5HorizontalToolBox.setItemToolTip" id="E5HorizontalToolBox.setItemToolTip" ref="eric5.E5Gui.E5ToolBox.html#E5HorizontalToolBox.setItemToolTip" /> + <keyword name="E5VerticalToolBox (Constructor)" id="E5VerticalToolBox (Constructor)" ref="eric5.E5Gui.E5ToolBox.html#E5VerticalToolBox.__init__" /> + <keyword name="E5VerticalToolBox.wheelEvent" id="E5VerticalToolBox.wheelEvent" ref="eric5.E5Gui.E5ToolBox.html#E5VerticalToolBox.wheelEvent" /> + <keyword name="E5SideBar (Module)" id="E5SideBar (Module)" ref="eric5.E5Gui.E5SideBar.html" /> + <keyword name="E5SideBar" id="E5SideBar" ref="eric5.E5Gui.E5SideBar.html#E5SideBar" /> + <keyword name="E5SideBar (Constructor)" id="E5SideBar (Constructor)" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.__init__" /> + <keyword name="E5SideBar.__appFocusChanged" id="E5SideBar.__appFocusChanged" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.__appFocusChanged" /> + <keyword name="E5SideBar.__autoHideToggled" id="E5SideBar.__autoHideToggled" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.__autoHideToggled" /> + <keyword name="E5SideBar.addTab" id="E5SideBar.addTab" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.addTab" /> + <keyword name="E5SideBar.clear" id="E5SideBar.clear" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.clear" /> + <keyword name="E5SideBar.count" id="E5SideBar.count" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.count" /> + <keyword name="E5SideBar.currentIndex" id="E5SideBar.currentIndex" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.currentIndex" /> + <keyword name="E5SideBar.currentWidget" id="E5SideBar.currentWidget" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.currentWidget" /> + <keyword name="E5SideBar.enterEvent" id="E5SideBar.enterEvent" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.enterEvent" /> + <keyword name="E5SideBar.eventFilter" id="E5SideBar.eventFilter" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.eventFilter" /> + <keyword name="E5SideBar.expand" id="E5SideBar.expand" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.expand" /> + <keyword name="E5SideBar.indexOf" id="E5SideBar.indexOf" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.indexOf" /> + <keyword name="E5SideBar.insertTab" id="E5SideBar.insertTab" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.insertTab" /> + <keyword name="E5SideBar.isAutoHiding" id="E5SideBar.isAutoHiding" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.isAutoHiding" /> + <keyword name="E5SideBar.isMinimized" id="E5SideBar.isMinimized" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.isMinimized" /> + <keyword name="E5SideBar.isTabEnabled" id="E5SideBar.isTabEnabled" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.isTabEnabled" /> + <keyword name="E5SideBar.leaveEvent" id="E5SideBar.leaveEvent" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.leaveEvent" /> + <keyword name="E5SideBar.nextTab" id="E5SideBar.nextTab" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.nextTab" /> + <keyword name="E5SideBar.orientation" id="E5SideBar.orientation" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.orientation" /> + <keyword name="E5SideBar.prevTab" id="E5SideBar.prevTab" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.prevTab" /> + <keyword name="E5SideBar.removeTab" id="E5SideBar.removeTab" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.removeTab" /> + <keyword name="E5SideBar.restoreState" id="E5SideBar.restoreState" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.restoreState" /> + <keyword name="E5SideBar.saveState" id="E5SideBar.saveState" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.saveState" /> + <keyword name="E5SideBar.setCurrentIndex" id="E5SideBar.setCurrentIndex" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setCurrentIndex" /> + <keyword name="E5SideBar.setCurrentWidget" id="E5SideBar.setCurrentWidget" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setCurrentWidget" /> + <keyword name="E5SideBar.setOrientation" id="E5SideBar.setOrientation" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setOrientation" /> + <keyword name="E5SideBar.setSplitter" id="E5SideBar.setSplitter" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setSplitter" /> + <keyword name="E5SideBar.setTabEnabled" id="E5SideBar.setTabEnabled" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setTabEnabled" /> + <keyword name="E5SideBar.setTabIcon" id="E5SideBar.setTabIcon" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setTabIcon" /> + <keyword name="E5SideBar.setTabText" id="E5SideBar.setTabText" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setTabText" /> + <keyword name="E5SideBar.setTabToolTip" id="E5SideBar.setTabToolTip" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setTabToolTip" /> + <keyword name="E5SideBar.setTabWhatsThis" id="E5SideBar.setTabWhatsThis" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.setTabWhatsThis" /> + <keyword name="E5SideBar.shrink" id="E5SideBar.shrink" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.shrink" /> + <keyword name="E5SideBar.tabIcon" id="E5SideBar.tabIcon" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.tabIcon" /> + <keyword name="E5SideBar.tabText" id="E5SideBar.tabText" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.tabText" /> + <keyword name="E5SideBar.tabToolTip" id="E5SideBar.tabToolTip" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.tabToolTip" /> + <keyword name="E5SideBar.tabWhatsThis" id="E5SideBar.tabWhatsThis" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.tabWhatsThis" /> + <keyword name="E5SideBar.widget" id="E5SideBar.widget" ref="eric5.E5Gui.E5SideBar.html#E5SideBar.widget" /> + <keyword name="E5TreeView (Module)" id="E5TreeView (Module)" ref="eric5.E5Gui.E5TreeView.html" /> + <keyword name="E5TreeView" id="E5TreeView" ref="eric5.E5Gui.E5TreeView.html#E5TreeView" /> + <keyword name="E5TreeView.keyPressEvent" id="E5TreeView.keyPressEvent" ref="eric5.E5Gui.E5TreeView.html#E5TreeView.keyPressEvent" /> + <keyword name="E5TreeView.removeAll" id="E5TreeView.removeAll" ref="eric5.E5Gui.E5TreeView.html#E5TreeView.removeAll" /> + <keyword name="E5TreeView.removeSelected" id="E5TreeView.removeSelected" ref="eric5.E5Gui.E5TreeView.html#E5TreeView.removeSelected" /> + <keyword name="E5Completers (Module)" id="E5Completers (Module)" ref="eric5.E5Gui.E5Completers.html" /> + <keyword name="E5DirCompleter" id="E5DirCompleter" ref="eric5.E5Gui.E5Completers.html#E5DirCompleter" /> + <keyword name="E5FileCompleter" id="E5FileCompleter" ref="eric5.E5Gui.E5Completers.html#E5FileCompleter" /> + <keyword name="E5StringListCompleter" id="E5StringListCompleter" ref="eric5.E5Gui.E5Completers.html#E5StringListCompleter" /> + <keyword name="E5DirCompleter (Constructor)" id="E5DirCompleter (Constructor)" ref="eric5.E5Gui.E5Completers.html#E5DirCompleter.__init__" /> + <keyword name="E5FileCompleter (Constructor)" id="E5FileCompleter (Constructor)" ref="eric5.E5Gui.E5Completers.html#E5FileCompleter.__init__" /> + <keyword name="E5StringListCompleter (Constructor)" id="E5StringListCompleter (Constructor)" ref="eric5.E5Gui.E5Completers.html#E5StringListCompleter.__init__" /> + <keyword name="E5ListView (Module)" id="E5ListView (Module)" ref="eric5.E5Gui.E5ListView.html" /> + <keyword name="E5ListView" id="E5ListView" ref="eric5.E5Gui.E5ListView.html#E5ListView" /> + <keyword name="E5ListView.keyPressEvent" id="E5ListView.keyPressEvent" ref="eric5.E5Gui.E5ListView.html#E5ListView.keyPressEvent" /> + <keyword name="E5ListView.removeAll" id="E5ListView.removeAll" ref="eric5.E5Gui.E5ListView.html#E5ListView.removeAll" /> + <keyword name="E5ListView.removeSelected" id="E5ListView.removeSelected" ref="eric5.E5Gui.E5ListView.html#E5ListView.removeSelected" /> + <keyword name="E5ToolBarManager (Module)" id="E5ToolBarManager (Module)" ref="eric5.E5Gui.E5ToolBarManager.html" /> + <keyword name="E5ToolBarManager" id="E5ToolBarManager" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager" /> + <keyword name="E5ToolBarManager (Constructor)" id="E5ToolBarManager (Constructor)" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.__init__" /> + <keyword name="E5ToolBarManager.__findAction" id="E5ToolBarManager.__findAction" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.__findAction" /> + <keyword name="E5ToolBarManager.__findDefaultToolBar" id="E5ToolBarManager.__findDefaultToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.__findDefaultToolBar" /> + <keyword name="E5ToolBarManager.__toolBarByName" id="E5ToolBarManager.__toolBarByName" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.__toolBarByName" /> + <keyword name="E5ToolBarManager.actionById" id="E5ToolBarManager.actionById" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.actionById" /> + <keyword name="E5ToolBarManager.addAction" id="E5ToolBarManager.addAction" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.addAction" /> + <keyword name="E5ToolBarManager.addToolBar" id="E5ToolBarManager.addToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.addToolBar" /> + <keyword name="E5ToolBarManager.categories" id="E5ToolBarManager.categories" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.categories" /> + <keyword name="E5ToolBarManager.categoryActions" id="E5ToolBarManager.categoryActions" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.categoryActions" /> + <keyword name="E5ToolBarManager.createToolBar" id="E5ToolBarManager.createToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.createToolBar" /> + <keyword name="E5ToolBarManager.defaultToolBarActions" id="E5ToolBarManager.defaultToolBarActions" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.defaultToolBarActions" /> + <keyword name="E5ToolBarManager.defaultToolBars" id="E5ToolBarManager.defaultToolBars" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.defaultToolBars" /> + <keyword name="E5ToolBarManager.deleteToolBar" id="E5ToolBarManager.deleteToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.deleteToolBar" /> + <keyword name="E5ToolBarManager.isDefaultToolBar" id="E5ToolBarManager.isDefaultToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.isDefaultToolBar" /> + <keyword name="E5ToolBarManager.isWidgetAction" id="E5ToolBarManager.isWidgetAction" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.isWidgetAction" /> + <keyword name="E5ToolBarManager.mainWindow" id="E5ToolBarManager.mainWindow" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.mainWindow" /> + <keyword name="E5ToolBarManager.removeAction" id="E5ToolBarManager.removeAction" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.removeAction" /> + <keyword name="E5ToolBarManager.removeToolBar" id="E5ToolBarManager.removeToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.removeToolBar" /> + <keyword name="E5ToolBarManager.removeWidgetActions" id="E5ToolBarManager.removeWidgetActions" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.removeWidgetActions" /> + <keyword name="E5ToolBarManager.renameToolBar" id="E5ToolBarManager.renameToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.renameToolBar" /> + <keyword name="E5ToolBarManager.resetAllToolBars" id="E5ToolBarManager.resetAllToolBars" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.resetAllToolBars" /> + <keyword name="E5ToolBarManager.resetToolBar" id="E5ToolBarManager.resetToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.resetToolBar" /> + <keyword name="E5ToolBarManager.restoreState" id="E5ToolBarManager.restoreState" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.restoreState" /> + <keyword name="E5ToolBarManager.saveState" id="E5ToolBarManager.saveState" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.saveState" /> + <keyword name="E5ToolBarManager.setMainWindow" id="E5ToolBarManager.setMainWindow" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.setMainWindow" /> + <keyword name="E5ToolBarManager.setToolBar" id="E5ToolBarManager.setToolBar" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.setToolBar" /> + <keyword name="E5ToolBarManager.setToolBars" id="E5ToolBarManager.setToolBars" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.setToolBars" /> + <keyword name="E5ToolBarManager.toolBarActions" id="E5ToolBarManager.toolBarActions" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.toolBarActions" /> + <keyword name="E5ToolBarManager.toolBarById" id="E5ToolBarManager.toolBarById" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.toolBarById" /> + <keyword name="E5ToolBarManager.toolBarWidgetAction" id="E5ToolBarManager.toolBarWidgetAction" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.toolBarWidgetAction" /> + <keyword name="E5ToolBarManager.toolBars" id="E5ToolBarManager.toolBars" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.toolBars" /> + <keyword name="E5ToolBarManager.toolBarsActions" id="E5ToolBarManager.toolBarsActions" ref="eric5.E5Gui.E5ToolBarManager.html#E5ToolBarManager.toolBarsActions" /> + <keyword name="E5ToolBarDialog (Module)" id="E5ToolBarDialog (Module)" ref="eric5.E5Gui.E5ToolBarDialog.html" /> + <keyword name="E5ToolBarDialog" id="E5ToolBarDialog" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog" /> + <keyword name="E5ToolBarItem" id="E5ToolBarItem" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarItem" /> + <keyword name="E5ToolBarDialog (Constructor)" id="E5ToolBarDialog (Constructor)" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__init__" /> + <keyword name="E5ToolBarDialog.__resetCurrentToolbar" id="E5ToolBarDialog.__resetCurrentToolbar" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__resetCurrentToolbar" /> + <keyword name="E5ToolBarDialog.__restoreCurrentToolbar" id="E5ToolBarDialog.__restoreCurrentToolbar" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__restoreCurrentToolbar" /> + <keyword name="E5ToolBarDialog.__restoreCurrentToolbarToDefault" id="E5ToolBarDialog.__restoreCurrentToolbarToDefault" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__restoreCurrentToolbarToDefault" /> + <keyword name="E5ToolBarDialog.__saveToolBars" id="E5ToolBarDialog.__saveToolBars" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__saveToolBars" /> + <keyword name="E5ToolBarDialog.__setupButtons" id="E5ToolBarDialog.__setupButtons" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__setupButtons" /> + <keyword name="E5ToolBarDialog.__toolbarComboBox_currentIndexChanged" id="E5ToolBarDialog.__toolbarComboBox_currentIndexChanged" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.__toolbarComboBox_currentIndexChanged" /> + <keyword name="E5ToolBarDialog.on_actionsTree_currentItemChanged" id="E5ToolBarDialog.on_actionsTree_currentItemChanged" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_actionsTree_currentItemChanged" /> + <keyword name="E5ToolBarDialog.on_buttonBox_clicked" id="E5ToolBarDialog.on_buttonBox_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_buttonBox_clicked" /> + <keyword name="E5ToolBarDialog.on_downButton_clicked" id="E5ToolBarDialog.on_downButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_downButton_clicked" /> + <keyword name="E5ToolBarDialog.on_leftButton_clicked" id="E5ToolBarDialog.on_leftButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_leftButton_clicked" /> + <keyword name="E5ToolBarDialog.on_newButton_clicked" id="E5ToolBarDialog.on_newButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_newButton_clicked" /> + <keyword name="E5ToolBarDialog.on_removeButton_clicked" id="E5ToolBarDialog.on_removeButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_removeButton_clicked" /> + <keyword name="E5ToolBarDialog.on_renameButton_clicked" id="E5ToolBarDialog.on_renameButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_renameButton_clicked" /> + <keyword name="E5ToolBarDialog.on_rightButton_clicked" id="E5ToolBarDialog.on_rightButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_rightButton_clicked" /> + <keyword name="E5ToolBarDialog.on_toolbarActionsList_currentItemChanged" id="E5ToolBarDialog.on_toolbarActionsList_currentItemChanged" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_toolbarActionsList_currentItemChanged" /> + <keyword name="E5ToolBarDialog.on_upButton_clicked" id="E5ToolBarDialog.on_upButton_clicked" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarDialog.on_upButton_clicked" /> + <keyword name="E5ToolBarItem (Constructor)" id="E5ToolBarItem (Constructor)" ref="eric5.E5Gui.E5ToolBarDialog.html#E5ToolBarItem.__init__" /> + <keyword name="E5Application (Module)" id="E5Application (Module)" ref="eric5.E5Gui.E5Application.html" /> + <keyword name="E5Application" id="E5Application" ref="eric5.E5Gui.E5Application.html#E5Application" /> + <keyword name="E5Application (Constructor)" id="E5Application (Constructor)" ref="eric5.E5Gui.E5Application.html#E5Application.__init__" /> + <keyword name="E5Application.getObject" id="E5Application.getObject" ref="eric5.E5Gui.E5Application.html#E5Application.getObject" /> + <keyword name="E5Application.getPluginObject" id="E5Application.getPluginObject" ref="eric5.E5Gui.E5Application.html#E5Application.getPluginObject" /> + <keyword name="E5Application.getPluginObjectType" id="E5Application.getPluginObjectType" ref="eric5.E5Gui.E5Application.html#E5Application.getPluginObjectType" /> + <keyword name="E5Application.getPluginObjects" id="E5Application.getPluginObjects" ref="eric5.E5Gui.E5Application.html#E5Application.getPluginObjects" /> + <keyword name="E5Application.registerObject" id="E5Application.registerObject" ref="eric5.E5Gui.E5Application.html#E5Application.registerObject" /> + <keyword name="E5Application.registerPluginObject" id="E5Application.registerPluginObject" ref="eric5.E5Gui.E5Application.html#E5Application.registerPluginObject" /> + <keyword name="E5Application.unregisterPluginObject" id="E5Application.unregisterPluginObject" ref="eric5.E5Gui.E5Application.html#E5Application.unregisterPluginObject" /> + <keyword name="E5TreeSortFilterProxyModel (Module)" id="E5TreeSortFilterProxyModel (Module)" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html" /> + <keyword name="E5TreeSortFilterProxyModel" id="E5TreeSortFilterProxyModel" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html#E5TreeSortFilterProxyModel" /> + <keyword name="E5TreeSortFilterProxyModel (Constructor)" id="E5TreeSortFilterProxyModel (Constructor)" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html#E5TreeSortFilterProxyModel.__init__" /> + <keyword name="E5TreeSortFilterProxyModel.filterAcceptsRow" id="E5TreeSortFilterProxyModel.filterAcceptsRow" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html#E5TreeSortFilterProxyModel.filterAcceptsRow" /> + <keyword name="E5TreeSortFilterProxyModel.hasChildren" id="E5TreeSortFilterProxyModel.hasChildren" ref="eric5.E5Gui.E5TreeSortFilterProxyModel.html#E5TreeSortFilterProxyModel.hasChildren" /> + <keyword name="E5TabWidget (Module)" id="E5TabWidget (Module)" ref="eric5.E5Gui.E5TabWidget.html" /> + <keyword name="E5DnDTabBar" id="E5DnDTabBar" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar" /> + <keyword name="E5TabWidget" id="E5TabWidget" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget" /> + <keyword name="E5WheelTabBar" id="E5WheelTabBar" ref="eric5.E5Gui.E5TabWidget.html#E5WheelTabBar" /> + <keyword name="E5DnDTabBar (Constructor)" id="E5DnDTabBar (Constructor)" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar.__init__" /> + <keyword name="E5DnDTabBar.dragEnterEvent" id="E5DnDTabBar.dragEnterEvent" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar.dragEnterEvent" /> + <keyword name="E5DnDTabBar.dropEvent" id="E5DnDTabBar.dropEvent" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar.dropEvent" /> + <keyword name="E5DnDTabBar.mouseMoveEvent" id="E5DnDTabBar.mouseMoveEvent" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar.mouseMoveEvent" /> + <keyword name="E5DnDTabBar.mousePressEvent" id="E5DnDTabBar.mousePressEvent" ref="eric5.E5Gui.E5TabWidget.html#E5DnDTabBar.mousePressEvent" /> + <keyword name="E5TabWidget (Constructor)" id="E5TabWidget (Constructor)" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.__init__" /> + <keyword name="E5TabWidget.__currentChanged" id="E5TabWidget.__currentChanged" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.__currentChanged" /> + <keyword name="E5TabWidget.__freeSide" id="E5TabWidget.__freeSide" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.__freeSide" /> + <keyword name="E5TabWidget.__handleTabCustomContextMenuRequested" id="E5TabWidget.__handleTabCustomContextMenuRequested" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.__handleTabCustomContextMenuRequested" /> + <keyword name="E5TabWidget.animationLabel" id="E5TabWidget.animationLabel" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.animationLabel" /> + <keyword name="E5TabWidget.moveTab" id="E5TabWidget.moveTab" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.moveTab" /> + <keyword name="E5TabWidget.nextTab" id="E5TabWidget.nextTab" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.nextTab" /> + <keyword name="E5TabWidget.prevTab" id="E5TabWidget.prevTab" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.prevTab" /> + <keyword name="E5TabWidget.resetAnimation" id="E5TabWidget.resetAnimation" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.resetAnimation" /> + <keyword name="E5TabWidget.selectTab" id="E5TabWidget.selectTab" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.selectTab" /> + <keyword name="E5TabWidget.setTabContextMenuPolicy" id="E5TabWidget.setTabContextMenuPolicy" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.setTabContextMenuPolicy" /> + <keyword name="E5TabWidget.switchTab" id="E5TabWidget.switchTab" ref="eric5.E5Gui.E5TabWidget.html#E5TabWidget.switchTab" /> + <keyword name="E5WheelTabBar (Constructor)" id="E5WheelTabBar (Constructor)" ref="eric5.E5Gui.E5TabWidget.html#E5WheelTabBar.__init__" /> + <keyword name="E5WheelTabBar.wheelEvent" id="E5WheelTabBar.wheelEvent" ref="eric5.E5Gui.E5TabWidget.html#E5WheelTabBar.wheelEvent" /> + <keyword name="E5Action (Module)" id="E5Action (Module)" ref="eric5.E5Gui.E5Action.html" /> + <keyword name="ArgumentsError" id="ArgumentsError" ref="eric5.E5Gui.E5Action.html#ArgumentsError" /> + <keyword name="E5Action" id="E5Action" ref="eric5.E5Gui.E5Action.html#E5Action" /> + <keyword name="addActions" id="addActions" ref="eric5.E5Gui.E5Action.html#addActions" /> + <keyword name="createActionGroup" id="createActionGroup" ref="eric5.E5Gui.E5Action.html#createActionGroup" /> + <keyword name="ArgumentsError (Constructor)" id="ArgumentsError (Constructor)" ref="eric5.E5Gui.E5Action.html#ArgumentsError.__init__" /> + <keyword name="ArgumentsError.__repr__" id="ArgumentsError.__repr__" ref="eric5.E5Gui.E5Action.html#ArgumentsError.__repr__" /> + <keyword name="ArgumentsError.__str__" id="ArgumentsError.__str__" ref="eric5.E5Gui.E5Action.html#ArgumentsError.__str__" /> + <keyword name="E5Action (Constructor)" id="E5Action (Constructor)" ref="eric5.E5Gui.E5Action.html#E5Action.__init__" /> + <keyword name="E5Action.alternateShortcut" id="E5Action.alternateShortcut" ref="eric5.E5Gui.E5Action.html#E5Action.alternateShortcut" /> + <keyword name="E5Action.setAlternateShortcut" id="E5Action.setAlternateShortcut" ref="eric5.E5Gui.E5Action.html#E5Action.setAlternateShortcut" /> + <keyword name="E5ModelMenu (Module)" id="E5ModelMenu (Module)" ref="eric5.E5Gui.E5ModelMenu.html" /> + <keyword name="E5ModelMenu" id="E5ModelMenu" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu" /> + <keyword name="E5ModelMenu (Constructor)" id="E5ModelMenu (Constructor)" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.__init__" /> + <keyword name="E5ModelMenu.__aboutToShow" id="E5ModelMenu.__aboutToShow" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.__aboutToShow" /> + <keyword name="E5ModelMenu.__actionTriggered" id="E5ModelMenu.__actionTriggered" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.__actionTriggered" /> + <keyword name="E5ModelMenu.__makeAction" id="E5ModelMenu.__makeAction" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.__makeAction" /> + <keyword name="E5ModelMenu.createBaseMenu" id="E5ModelMenu.createBaseMenu" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.createBaseMenu" /> + <keyword name="E5ModelMenu.createMenu" id="E5ModelMenu.createMenu" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.createMenu" /> + <keyword name="E5ModelMenu.dragEnterEvent" id="E5ModelMenu.dragEnterEvent" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.dragEnterEvent" /> + <keyword name="E5ModelMenu.dropEvent" id="E5ModelMenu.dropEvent" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.dropEvent" /> + <keyword name="E5ModelMenu.firstSeparator" id="E5ModelMenu.firstSeparator" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.firstSeparator" /> + <keyword name="E5ModelMenu.index" id="E5ModelMenu.index" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.index" /> + <keyword name="E5ModelMenu.makeAction" id="E5ModelMenu.makeAction" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.makeAction" /> + <keyword name="E5ModelMenu.maxRows" id="E5ModelMenu.maxRows" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.maxRows" /> + <keyword name="E5ModelMenu.model" id="E5ModelMenu.model" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.model" /> + <keyword name="E5ModelMenu.mouseMoveEvent" id="E5ModelMenu.mouseMoveEvent" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.mouseMoveEvent" /> + <keyword name="E5ModelMenu.mousePressEvent" id="E5ModelMenu.mousePressEvent" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.mousePressEvent" /> + <keyword name="E5ModelMenu.mouseReleaseEvent" id="E5ModelMenu.mouseReleaseEvent" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.mouseReleaseEvent" /> + <keyword name="E5ModelMenu.postPopulated" id="E5ModelMenu.postPopulated" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.postPopulated" /> + <keyword name="E5ModelMenu.prePopulated" id="E5ModelMenu.prePopulated" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.prePopulated" /> + <keyword name="E5ModelMenu.removeEntry" id="E5ModelMenu.removeEntry" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.removeEntry" /> + <keyword name="E5ModelMenu.resetFlags" id="E5ModelMenu.resetFlags" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.resetFlags" /> + <keyword name="E5ModelMenu.rootIndex" id="E5ModelMenu.rootIndex" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.rootIndex" /> + <keyword name="E5ModelMenu.separatorRole" id="E5ModelMenu.separatorRole" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.separatorRole" /> + <keyword name="E5ModelMenu.setFirstSeparator" id="E5ModelMenu.setFirstSeparator" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setFirstSeparator" /> + <keyword name="E5ModelMenu.setMaxRows" id="E5ModelMenu.setMaxRows" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setMaxRows" /> + <keyword name="E5ModelMenu.setModel" id="E5ModelMenu.setModel" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setModel" /> + <keyword name="E5ModelMenu.setRootIndex" id="E5ModelMenu.setRootIndex" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setRootIndex" /> + <keyword name="E5ModelMenu.setSeparatorRole" id="E5ModelMenu.setSeparatorRole" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setSeparatorRole" /> + <keyword name="E5ModelMenu.setStatusBarTextRole" id="E5ModelMenu.setStatusBarTextRole" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.setStatusBarTextRole" /> + <keyword name="E5ModelMenu.statusBarTextRole" id="E5ModelMenu.statusBarTextRole" ref="eric5.E5Gui.E5ModelMenu.html#E5ModelMenu.statusBarTextRole" /> + <keyword name="E5TableView (Module)" id="E5TableView (Module)" ref="eric5.E5Gui.E5TableView.html" /> + <keyword name="E5TableView" id="E5TableView" ref="eric5.E5Gui.E5TableView.html#E5TableView" /> + <keyword name="E5TableView.keyPressEvent" id="E5TableView.keyPressEvent" ref="eric5.E5Gui.E5TableView.html#E5TableView.keyPressEvent" /> + <keyword name="E5TableView.removeAll" id="E5TableView.removeAll" ref="eric5.E5Gui.E5TableView.html#E5TableView.removeAll" /> + <keyword name="E5TableView.removeSelected" id="E5TableView.removeSelected" ref="eric5.E5Gui.E5TableView.html#E5TableView.removeSelected" /> + <keyword name="E5ModelToolBar (Module)" id="E5ModelToolBar (Module)" ref="eric5.E5Gui.E5ModelToolBar.html" /> + <keyword name="E5ModelToolBar" id="E5ModelToolBar" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar" /> + <keyword name="E5ModelToolBar (Constructor)" id="E5ModelToolBar (Constructor)" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.__init__" /> + <keyword name="E5ModelToolBar._build" id="E5ModelToolBar._build" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar._build" /> + <keyword name="E5ModelToolBar._createMenu" id="E5ModelToolBar._createMenu" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar._createMenu" /> + <keyword name="E5ModelToolBar.dragEnterEvent" id="E5ModelToolBar.dragEnterEvent" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.dragEnterEvent" /> + <keyword name="E5ModelToolBar.dropEvent" id="E5ModelToolBar.dropEvent" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.dropEvent" /> + <keyword name="E5ModelToolBar.eventFilter" id="E5ModelToolBar.eventFilter" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.eventFilter" /> + <keyword name="E5ModelToolBar.hideEvent" id="E5ModelToolBar.hideEvent" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.hideEvent" /> + <keyword name="E5ModelToolBar.index" id="E5ModelToolBar.index" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.index" /> + <keyword name="E5ModelToolBar.model" id="E5ModelToolBar.model" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.model" /> + <keyword name="E5ModelToolBar.mouseMoveEvent" id="E5ModelToolBar.mouseMoveEvent" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.mouseMoveEvent" /> + <keyword name="E5ModelToolBar.resetFlags" id="E5ModelToolBar.resetFlags" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.resetFlags" /> + <keyword name="E5ModelToolBar.rootIndex" id="E5ModelToolBar.rootIndex" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.rootIndex" /> + <keyword name="E5ModelToolBar.setModel" id="E5ModelToolBar.setModel" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.setModel" /> + <keyword name="E5ModelToolBar.setRootIndex" id="E5ModelToolBar.setRootIndex" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.setRootIndex" /> + <keyword name="E5ModelToolBar.showEvent" id="E5ModelToolBar.showEvent" ref="eric5.E5Gui.E5ModelToolBar.html#E5ModelToolBar.showEvent" /> <keyword name="Project (Package)" id="Project (Package)" ref="index-eric5.Project.html" /> <keyword name="DebuggerPropertiesDialog (Module)" id="DebuggerPropertiesDialog (Module)" ref="eric5.Project.DebuggerPropertiesDialog.html" /> <keyword name="DebuggerPropertiesDialog" id="DebuggerPropertiesDialog" ref="eric5.Project.DebuggerPropertiesDialog.html#DebuggerPropertiesDialog" /> @@ -4359,7 +4359,7 @@ <keyword name="Project.__writeUserProperties" id="Project.__writeUserProperties" ref="eric5.Project.Project.html#Project.__writeUserProperties" /> <keyword name="Project.__writeXMLProject" id="Project.__writeXMLProject" ref="eric5.Project.Project.html#Project.__writeXMLProject" /> <keyword name="Project.addDirectory" id="Project.addDirectory" ref="eric5.Project.Project.html#Project.addDirectory" /> - <keyword name="Project.addE4Actions" id="Project.addE4Actions" ref="eric5.Project.Project.html#Project.addE4Actions" /> + <keyword name="Project.addE5Actions" id="Project.addE5Actions" ref="eric5.Project.Project.html#Project.addE5Actions" /> <keyword name="Project.addFiles" id="Project.addFiles" ref="eric5.Project.Project.html#Project.addFiles" /> <keyword name="Project.addIdlDir" id="Project.addIdlDir" ref="eric5.Project.Project.html#Project.addIdlDir" /> <keyword name="Project.addIdlFiles" id="Project.addIdlFiles" ref="eric5.Project.Project.html#Project.addIdlFiles" /> @@ -4428,7 +4428,7 @@ <keyword name="Project.othersAdded" id="Project.othersAdded" ref="eric5.Project.Project.html#Project.othersAdded" /> <keyword name="Project.registerProjectType" id="Project.registerProjectType" ref="eric5.Project.Project.html#Project.registerProjectType" /> <keyword name="Project.removeDirectory" id="Project.removeDirectory" ref="eric5.Project.Project.html#Project.removeDirectory" /> - <keyword name="Project.removeE4Actions" id="Project.removeE4Actions" ref="eric5.Project.Project.html#Project.removeE4Actions" /> + <keyword name="Project.removeE5Actions" id="Project.removeE5Actions" ref="eric5.Project.Project.html#Project.removeE5Actions" /> <keyword name="Project.removeFile" id="Project.removeFile" ref="eric5.Project.Project.html#Project.removeFile" /> <keyword name="Project.removeLanguageFile" id="Project.removeLanguageFile" ref="eric5.Project.Project.html#Project.removeLanguageFile" /> <keyword name="Project.renameFile" id="Project.renameFile" ref="eric5.Project.Project.html#Project.renameFile" /> @@ -8916,26 +8916,26 @@ <file>eric5.DocumentationTools.QtHelpGenerator.html</file> <file>eric5.DocumentationTools.TemplatesListsStyle.html</file> <file>eric5.DocumentationTools.TemplatesListsStyleCSS.html</file> - <file>eric5.E4Gui.E4Action.html</file> - <file>eric5.E4Gui.E4Application.html</file> - <file>eric5.E4Gui.E4Completers.html</file> - <file>eric5.E4Gui.E4Led.html</file> - <file>eric5.E4Gui.E4LineEdit.html</file> - <file>eric5.E4Gui.E4ListView.html</file> - <file>eric5.E4Gui.E4ModelMenu.html</file> - <file>eric5.E4Gui.E4ModelToolBar.html</file> - <file>eric5.E4Gui.E4SideBar.html</file> - <file>eric5.E4Gui.E4SingleApplication.html</file> - <file>eric5.E4Gui.E4SqueezeLabels.html</file> - <file>eric5.E4Gui.E4TabWidget.html</file> - <file>eric5.E4Gui.E4TableView.html</file> - <file>eric5.E4Gui.E4ToolBarDialog.html</file> - <file>eric5.E4Gui.E4ToolBarManager.html</file> - <file>eric5.E4Gui.E4ToolBox.html</file> - <file>eric5.E4Gui.E4TreeSortFilterProxyModel.html</file> - <file>eric5.E4Gui.E4TreeView.html</file> <file>eric5.E5Graphics.E5ArrowItem.html</file> <file>eric5.E5Graphics.E5GraphicsView.html</file> + <file>eric5.E5Gui.E5Action.html</file> + <file>eric5.E5Gui.E5Application.html</file> + <file>eric5.E5Gui.E5Completers.html</file> + <file>eric5.E5Gui.E5Led.html</file> + <file>eric5.E5Gui.E5LineEdit.html</file> + <file>eric5.E5Gui.E5ListView.html</file> + <file>eric5.E5Gui.E5ModelMenu.html</file> + <file>eric5.E5Gui.E5ModelToolBar.html</file> + <file>eric5.E5Gui.E5SideBar.html</file> + <file>eric5.E5Gui.E5SingleApplication.html</file> + <file>eric5.E5Gui.E5SqueezeLabels.html</file> + <file>eric5.E5Gui.E5TabWidget.html</file> + <file>eric5.E5Gui.E5TableView.html</file> + <file>eric5.E5Gui.E5ToolBarDialog.html</file> + <file>eric5.E5Gui.E5ToolBarManager.html</file> + <file>eric5.E5Gui.E5ToolBox.html</file> + <file>eric5.E5Gui.E5TreeSortFilterProxyModel.html</file> + <file>eric5.E5Gui.E5TreeView.html</file> <file>eric5.E5Network.E5NetworkHeaderDetailsDialog.html</file> <file>eric5.E5Network.E5NetworkMonitor.html</file> <file>eric5.E5XML.Config.html</file> @@ -9392,8 +9392,8 @@ <file>index-eric5.DebugClients.html</file> <file>index-eric5.Debugger.html</file> <file>index-eric5.DocumentationTools.html</file> - <file>index-eric5.E4Gui.html</file> <file>index-eric5.E5Graphics.html</file> + <file>index-eric5.E5Gui.html</file> <file>index-eric5.E5Network.html</file> <file>index-eric5.E5XML.html</file> <file>index-eric5.Globals.html</file>
--- a/Documentation/Source/eric5.Debugger.DebugUI.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Debugger.DebugUI.html Wed Jan 13 18:53:58 2010 +0000 @@ -752,7 +752,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="DebugUI.initActions" ID="DebugUI.initActions"></a> <h4>DebugUI.initActions</h4> @@ -777,7 +777,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt>
--- a/Documentation/Source/eric5.E4Gui.E4Action.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,220 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4Action</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4Action</h1> -<p> -Module implementing an Action class extending QAction. -</p><p> -This extension is necessary in order to support alternate keyboard -shortcuts. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#ArgumentsError">ArgumentsError</a></td> -<td>Class implementing an exception, which is raised, if the wrong number of arguments are given.</td> -</tr><tr> -<td><a href="#E4Action">E4Action</a></td> -<td>Class implementing an Action class extending QAction.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr> -<td><a href="#addActions">addActions</a></td> -<td>Module function to add a list of actions to a widget.</td> -</tr><tr> -<td><a href="#createActionGroup">createActionGroup</a></td> -<td>Module function to create an action group.</td> -</tr> -</table> -<hr /><hr /> -<a NAME="ArgumentsError" ID="ArgumentsError"></a> -<h2>ArgumentsError</h2> -<p> - Class implementing an exception, which is raised, if the wrong number of arguments - are given. -</p> -<h3>Derived from</h3> -RuntimeError -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#ArgumentsError.__init__">ArgumentsError</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#ArgumentsError.__repr__">__repr__</a></td> -<td>Private method returning a representation of the exception.</td> -</tr><tr> -<td><a href="#ArgumentsError.__str__">__str__</a></td> -<td>Private method returning a string representation of the exception.</td> -</tr> -</table> -<a NAME="ArgumentsError.__init__" ID="ArgumentsError.__init__"></a> -<h4>ArgumentsError (Constructor)</h4> -<b>ArgumentsError</b>(<i>error</i>) -<p> - Constructor -</p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError.__repr__"></a> -<h4>ArgumentsError.__repr__</h4> -<b>__repr__</b>(<i></i>) -<p> - Private method returning a representation of the exception. -</p><dl> -<dt>Returns:</dt> -<dd> -string representing the error message -</dd> -</dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError.__str__"></a> -<h4>ArgumentsError.__str__</h4> -<b>__str__</b>(<i></i>) -<p> - Private method returning a string representation of the exception. -</p><dl> -<dt>Returns:</dt> -<dd> -string representing the error message -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4Action" ID="E4Action"></a> -<h2>E4Action</h2> -<p> - Class implementing an Action class extending QAction. -</p> -<h3>Derived from</h3> -QAction -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4Action.__init__">E4Action</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4Action.alternateShortcut">alternateShortcut</a></td> -<td>Public method to retrieve the alternative keyboard shortcut.</td> -</tr><tr> -<td><a href="#E4Action.setAlternateShortcut">setAlternateShortcut</a></td> -<td>Public slot to set the alternative keyboard shortcut.</td> -</tr> -</table> -<a NAME="E4Action.__init__" ID="E4Action.__init__"></a> -<h4>E4Action (Constructor)</h4> -<b>E4Action</b>(<i>*args</i>) -<p> - Constructor -</p><dl> -<dt><i>args</i></dt> -<dd> -argument list of the constructor. This list is one of - <ul> - <li>text (string), icon (QIcon), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string), toggle (boolean)</li> - <li>text (string), icon (QIcon), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string)</li> - <li>text (string), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string), toggle (boolean)</li> - <li>text (string), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string)</li> - </ul> -</dd> -</dl><a NAME="E4Action.alternateShortcut" ID="E4Action.alternateShortcut"></a> -<h4>E4Action.alternateShortcut</h4> -<b>alternateShortcut</b>(<i></i>) -<p> - Public method to retrieve the alternative keyboard shortcut. -</p><dl> -<dt>Returns:</dt> -<dd> -the alternative accelerator (QKeySequence) -</dd> -</dl><a NAME="E4Action.setAlternateShortcut" ID="E4Action.setAlternateShortcut"></a> -<h4>E4Action.setAlternateShortcut</h4> -<b>setAlternateShortcut</b>(<i>shortcut</i>) -<p> - Public slot to set the alternative keyboard shortcut. -</p><dl> -<dt><i>shortcut</i></dt> -<dd> -the alternative accelerator (QKeySequence) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="addActions" ID="addActions"></a> -<h2>addActions</h2> -<b>addActions</b>(<i>target, actions</i>) -<p> - Module function to add a list of actions to a widget. -</p><dl> -<dt><i>target</i></dt> -<dd> -reference to the target widget (QWidget) -</dd><dt><i>actions</i></dt> -<dd> -list of actions to be added to the target. A - None indicates a separator (list of QActions) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="createActionGroup" ID="createActionGroup"></a> -<h2>createActionGroup</h2> -<b>createActionGroup</b>(<i>parent, name = None, exclusive = False</i>) -<p> - Module function to create an action group. -</p><dl> -<dt><i>parent</i></dt> -<dd> -parent object of the action group (QObject) -</dd><dt><i>name</i></dt> -<dd> -name of the action group object (string) -</dd><dt><i>exclusive</i></dt> -<dd> -flag indicating an exclusive action group (boolean) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the created action group (QActionGroup) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4Application.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,215 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4Application</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4Application</h1> -<p> -Class implementing a specialized application class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>e4App</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4Application">E4Application</a></td> -<td>Eric application class with an object registry.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4Application" ID="E4Application"></a> -<h2>E4Application</h2> -<p> - Eric application class with an object registry. -</p> -<h3>Derived from</h3> -QApplication -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4Application.__init__">E4Application</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4Application.getObject">getObject</a></td> -<td>Public method to get a reference to a registered object.</td> -</tr><tr> -<td><a href="#E4Application.getPluginObject">getPluginObject</a></td> -<td>Public method to get a reference to a registered plugin object.</td> -</tr><tr> -<td><a href="#E4Application.getPluginObjectType">getPluginObjectType</a></td> -<td>Public method to get the type of a registered plugin object.</td> -</tr><tr> -<td><a href="#E4Application.getPluginObjects">getPluginObjects</a></td> -<td>Public method to get a list of (name, reference) pairs of all registered plugin objects.</td> -</tr><tr> -<td><a href="#E4Application.registerObject">registerObject</a></td> -<td>Public method to register an object in the object registry.</td> -</tr><tr> -<td><a href="#E4Application.registerPluginObject">registerPluginObject</a></td> -<td>Public method to register a plugin object in the object registry.</td> -</tr><tr> -<td><a href="#E4Application.unregisterPluginObject">unregisterPluginObject</a></td> -<td>Public method to unregister a plugin object in the object registry.</td> -</tr> -</table> -<a NAME="E4Application.__init__" ID="E4Application.__init__"></a> -<h4>E4Application (Constructor)</h4> -<b>E4Application</b>(<i>argv</i>) -<p> - Constructor -</p><dl> -<dt><i>argv</i></dt> -<dd> -command line arguments -</dd> -</dl><a NAME="E4Application.getObject" ID="E4Application.getObject"></a> -<h4>E4Application.getObject</h4> -<b>getObject</b>(<i>name</i>) -<p> - Public method to get a reference to a registered object. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the object (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the registered object -</dd> -</dl><dl> -<dt>Raises <b>KeyError</b>:</dt> -<dd> -raised when the given name is not known -</dd> -</dl><a NAME="E4Application.getPluginObject" ID="E4Application.getPluginObject"></a> -<h4>E4Application.getPluginObject</h4> -<b>getPluginObject</b>(<i>name</i>) -<p> - Public method to get a reference to a registered plugin object. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the plugin object (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the registered plugin object -</dd> -</dl><dl> -<dt>Raises <b>KeyError</b>:</dt> -<dd> -raised when the given name is not known -</dd> -</dl><a NAME="E4Application.getPluginObjectType" ID="E4Application.getPluginObjectType"></a> -<h4>E4Application.getPluginObjectType</h4> -<b>getPluginObjectType</b>(<i>name</i>) -<p> - Public method to get the type of a registered plugin object. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the plugin object (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -type of the plugin object (string) -</dd> -</dl><dl> -<dt>Raises <b>KeyError</b>:</dt> -<dd> -raised when the given name is not known -</dd> -</dl><a NAME="E4Application.getPluginObjects" ID="E4Application.getPluginObjects"></a> -<h4>E4Application.getPluginObjects</h4> -<b>getPluginObjects</b>(<i></i>) -<p> - Public method to get a list of (name, reference) pairs of all - registered plugin objects. -</p><dl> -<dt>Returns:</dt> -<dd> -list of (name, reference) pairs -</dd> -</dl><a NAME="E4Application.registerObject" ID="E4Application.registerObject"></a> -<h4>E4Application.registerObject</h4> -<b>registerObject</b>(<i>name, object</i>) -<p> - Public method to register an object in the object registry. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the object (string) -</dd><dt><i>object</i></dt> -<dd> -reference to the object -</dd> -</dl><dl> -<dt>Raises <b>KeyError</b>:</dt> -<dd> -raised when the given name is already in use -</dd> -</dl><a NAME="E4Application.registerPluginObject" ID="E4Application.registerPluginObject"></a> -<h4>E4Application.registerPluginObject</h4> -<b>registerPluginObject</b>(<i>name, object, pluginType = None</i>) -<p> - Public method to register a plugin object in the object registry. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the plugin object (string) -</dd><dt><i>object</i></dt> -<dd> -reference to the plugin object -</dd><dt><i>pluginType=</i></dt> -<dd> -type of the plugin object (string) -</dd> -</dl><dl> -<dt>Raises <b>KeyError</b>:</dt> -<dd> -raised when the given name is already in use -</dd> -</dl><a NAME="E4Application.unregisterPluginObject" ID="E4Application.unregisterPluginObject"></a> -<h4>E4Application.unregisterPluginObject</h4> -<b>unregisterPluginObject</b>(<i>name</i>) -<p> - Public method to unregister a plugin object in the object registry. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the plugin object (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4Completers.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,163 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4Completers</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4Completers</h1> -<p> -Module implementing various kinds of completers. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4DirCompleter">E4DirCompleter</a></td> -<td>Class implementing a completer for directory names.</td> -</tr><tr> -<td><a href="#E4FileCompleter">E4FileCompleter</a></td> -<td>Class implementing a completer for file names.</td> -</tr><tr> -<td><a href="#E4StringListCompleter">E4StringListCompleter</a></td> -<td>Class implementing a completer for strings lists.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4DirCompleter" ID="E4DirCompleter"></a> -<h2>E4DirCompleter</h2> -<p> - Class implementing a completer for directory names. -</p> -<h3>Derived from</h3> -QCompleter -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4DirCompleter.__init__">E4DirCompleter</a></td> -<td>Constructor</td> -</tr> -</table> -<a NAME="E4DirCompleter.__init__" ID="E4DirCompleter.__init__"></a> -<h4>E4DirCompleter (Constructor)</h4> -<b>E4DirCompleter</b>(<i>parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -parent widget of the completer (QWidget) -</dd><dt><i>completionMode=</i></dt> -<dd> -completion mode of the - completer (QCompleter.CompletionMode) -</dd><dt><i>showHidden=</i></dt> -<dd> -flag indicating to show hidden entries as well (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4FileCompleter" ID="E4FileCompleter"></a> -<h2>E4FileCompleter</h2> -<p> - Class implementing a completer for file names. -</p> -<h3>Derived from</h3> -QCompleter -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4FileCompleter.__init__">E4FileCompleter</a></td> -<td>Constructor</td> -</tr> -</table> -<a NAME="E4FileCompleter.__init__" ID="E4FileCompleter.__init__"></a> -<h4>E4FileCompleter (Constructor)</h4> -<b>E4FileCompleter</b>(<i>parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -parent widget of the completer (QWidget) -</dd><dt><i>completionMode=</i></dt> -<dd> -completion mode of the - completer (QCompleter.CompletionMode) -</dd><dt><i>showHidden=</i></dt> -<dd> -flag indicating to show hidden entries as well (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4StringListCompleter" ID="E4StringListCompleter"></a> -<h2>E4StringListCompleter</h2> -<p> - Class implementing a completer for strings lists. -</p> -<h3>Derived from</h3> -QCompleter -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4StringListCompleter.__init__">E4StringListCompleter</a></td> -<td>Constructor</td> -</tr> -</table> -<a NAME="E4StringListCompleter.__init__" ID="E4StringListCompleter.__init__"></a> -<h4>E4StringListCompleter (Constructor)</h4> -<b>E4StringListCompleter</b>(<i>parent = None, strings = [], completionMode = QCompleter.PopupCompletion</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -parent widget of the completer (QWidget) -</dd><dt><i>strings</i></dt> -<dd> -list of string to load into the completer (list of strings) -</dd><dt><i>completionMode=</i></dt> -<dd> -completion mode of the - completer (QCompleter.CompletionMode) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4Led.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,338 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4Led</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4Led</h1> -<p> -Module implementing a LED widget. -</p><p> -It was inspired by KLed. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>E4LedCircular</td></tr><tr><td>E4LedRectangular</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4Led">E4Led</a></td> -<td>Class implementing a LED widget.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4Led" ID="E4Led"></a> -<h2>E4Led</h2> -<p> - Class implementing a LED widget. -</p> -<h3>Derived from</h3> -QWidget -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4Led.__init__">E4Led</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4Led.__getBestRoundSize">__getBestRoundSize</a></td> -<td>Private method to calculate the width of the LED.</td> -</tr><tr> -<td><a href="#E4Led.__paintRectangular">__paintRectangular</a></td> -<td>Private method to paint a rectangular raised LED.</td> -</tr><tr> -<td><a href="#E4Led.__paintRound">__paintRound</a></td> -<td>Private method to paint a round raised LED.</td> -</tr><tr> -<td><a href="#E4Led.color">color</a></td> -<td>Public method to return the LED color.</td> -</tr><tr> -<td><a href="#E4Led.darkFactor">darkFactor</a></td> -<td>Public method to return the dark factor.</td> -</tr><tr> -<td><a href="#E4Led.isFramed">isFramed</a></td> -<td>Public method to return the framed state.</td> -</tr><tr> -<td><a href="#E4Led.isOn">isOn</a></td> -<td>Public method to return the LED state.</td> -</tr><tr> -<td><a href="#E4Led.minimumSizeHint">minimumSizeHint</a></td> -<td>Public method to give a hint about our minimum size.</td> -</tr><tr> -<td><a href="#E4Led.off">off</a></td> -<td>Public slot to set the LED to off.</td> -</tr><tr> -<td><a href="#E4Led.on">on</a></td> -<td>Public slot to set the LED to on.</td> -</tr><tr> -<td><a href="#E4Led.paintEvent">paintEvent</a></td> -<td>Protected slot handling the paint event.</td> -</tr><tr> -<td><a href="#E4Led.ratio">ratio</a></td> -<td>Public method to return the LED rectangular ratio (width / height).</td> -</tr><tr> -<td><a href="#E4Led.setColor">setColor</a></td> -<td>Public method to set the LED color.</td> -</tr><tr> -<td><a href="#E4Led.setDarkFactor">setDarkFactor</a></td> -<td>Public method to set the dark factor.</td> -</tr><tr> -<td><a href="#E4Led.setFramed">setFramed</a></td> -<td>Public slot to set the __framedLed attribute.</td> -</tr><tr> -<td><a href="#E4Led.setOn">setOn</a></td> -<td>Public method to set the LED to on.</td> -</tr><tr> -<td><a href="#E4Led.setRatio">setRatio</a></td> -<td>Public method to set the LED rectangular ratio (width / height).</td> -</tr><tr> -<td><a href="#E4Led.setShape">setShape</a></td> -<td>Public method to set the LED shape.</td> -</tr><tr> -<td><a href="#E4Led.shape">shape</a></td> -<td>Public method to return the LED shape.</td> -</tr><tr> -<td><a href="#E4Led.sizeHint">sizeHint</a></td> -<td>Public method to give a hint about our desired size.</td> -</tr><tr> -<td><a href="#E4Led.toggle">toggle</a></td> -<td>Public slot to toggle the LED state.</td> -</tr> -</table> -<a NAME="E4Led.__init__" ID="E4Led.__init__"></a> -<h4>E4Led (Constructor)</h4> -<b>E4Led</b>(<i>parent = None, color = None, shape = E4LedCircular, rectRatio = 1</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to parent widget (QWidget) -</dd><dt><i>color</i></dt> -<dd> -color of the LED (QColor) -</dd><dt><i>shape</i></dt> -<dd> -shape of the LED (E4LedCircular, E4LedRectangular) -</dd><dt><i>rectRation</i></dt> -<dd> -ratio width to height, if shape is rectangular (float) -</dd> -</dl><a NAME="E4Led.__getBestRoundSize" ID="E4Led.__getBestRoundSize"></a> -<h4>E4Led.__getBestRoundSize</h4> -<b>__getBestRoundSize</b>(<i></i>) -<p> - Private method to calculate the width of the LED. -</p><dl> -<dt>Returns:</dt> -<dd> -new width of the LED (integer) -</dd> -</dl><a NAME="E4Led.__paintRectangular" ID="E4Led.__paintRectangular"></a> -<h4>E4Led.__paintRectangular</h4> -<b>__paintRectangular</b>(<i></i>) -<p> - Private method to paint a rectangular raised LED. -</p><a NAME="E4Led.__paintRound" ID="E4Led.__paintRound"></a> -<h4>E4Led.__paintRound</h4> -<b>__paintRound</b>(<i></i>) -<p> - Private method to paint a round raised LED. -</p><a NAME="E4Led.color" ID="E4Led.color"></a> -<h4>E4Led.color</h4> -<b>color</b>(<i></i>) -<p> - Public method to return the LED color. -</p><dl> -<dt>Returns:</dt> -<dd> -color of the LED (QColor) -</dd> -</dl><a NAME="E4Led.darkFactor" ID="E4Led.darkFactor"></a> -<h4>E4Led.darkFactor</h4> -<b>darkFactor</b>(<i></i>) -<p> - Public method to return the dark factor. -</p><dl> -<dt>Returns:</dt> -<dd> -the current dark factor (integer) -</dd> -</dl><a NAME="E4Led.isFramed" ID="E4Led.isFramed"></a> -<h4>E4Led.isFramed</h4> -<b>isFramed</b>(<i></i>) -<p> - Public method to return the framed state. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the current framed state (boolean) -</dd> -</dl><a NAME="E4Led.isOn" ID="E4Led.isOn"></a> -<h4>E4Led.isOn</h4> -<b>isOn</b>(<i></i>) -<p> - Public method to return the LED state. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the light state (boolean) -</dd> -</dl><a NAME="E4Led.minimumSizeHint" ID="E4Led.minimumSizeHint"></a> -<h4>E4Led.minimumSizeHint</h4> -<b>minimumSizeHint</b>(<i></i>) -<p> - Public method to give a hint about our minimum size. -</p><dl> -<dt>Returns:</dt> -<dd> -size hint (QSize) -</dd> -</dl><a NAME="E4Led.off" ID="E4Led.off"></a> -<h4>E4Led.off</h4> -<b>off</b>(<i></i>) -<p> - Public slot to set the LED to off. -</p><a NAME="E4Led.on" ID="E4Led.on"></a> -<h4>E4Led.on</h4> -<b>on</b>(<i></i>) -<p> - Public slot to set the LED to on. -</p><a NAME="E4Led.paintEvent" ID="E4Led.paintEvent"></a> -<h4>E4Led.paintEvent</h4> -<b>paintEvent</b>(<i>evt</i>) -<p> - Protected slot handling the paint event. -</p><dl> -<dt><i>evt</i></dt> -<dd> -paint event object (QPaintEvent) -</dd> -</dl><dl> -<dt>Raises <b>TypeError</b>:</dt> -<dd> -The E4Led has an unsupported shape type. -</dd> -</dl><a NAME="E4Led.ratio" ID="E4Led.ratio"></a> -<h4>E4Led.ratio</h4> -<b>ratio</b>(<i></i>) -<p> - Public method to return the LED rectangular ratio (width / height). -</p><dl> -<dt>Returns:</dt> -<dd> -LED rectangular ratio (float) -</dd> -</dl><a NAME="E4Led.setColor" ID="E4Led.setColor"></a> -<h4>E4Led.setColor</h4> -<b>setColor</b>(<i>color</i>) -<p> - Public method to set the LED color. -</p><dl> -<dt><i>color</i></dt> -<dd> -color for the LED (QColor) -</dd> -</dl><a NAME="E4Led.setDarkFactor" ID="E4Led.setDarkFactor"></a> -<h4>E4Led.setDarkFactor</h4> -<b>setDarkFactor</b>(<i>darkfactor</i>) -<p> - Public method to set the dark factor. -</p><dl> -<dt><i>darkfactor</i></dt> -<dd> -value to set for the dark factor (integer) -</dd> -</dl><a NAME="E4Led.setFramed" ID="E4Led.setFramed"></a> -<h4>E4Led.setFramed</h4> -<b>setFramed</b>(<i>framed</i>) -<p> - Public slot to set the __framedLed attribute. -</p><dl> -<dt><i>framed</i></dt> -<dd> -flag indicating the framed state (boolean) -</dd> -</dl><a NAME="E4Led.setOn" ID="E4Led.setOn"></a> -<h4>E4Led.setOn</h4> -<b>setOn</b>(<i>state</i>) -<p> - Public method to set the LED to on. -</p><dl> -<dt><i>state</i></dt> -<dd> -new state of the LED (boolean) -</dd> -</dl><a NAME="E4Led.setRatio" ID="E4Led.setRatio"></a> -<h4>E4Led.setRatio</h4> -<b>setRatio</b>(<i>ratio</i>) -<p> - Public method to set the LED rectangular ratio (width / height). -</p><dl> -<dt><i>ratio</i></dt> -<dd> -new LED rectangular ratio (float) -</dd> -</dl><a NAME="E4Led.setShape" ID="E4Led.setShape"></a> -<h4>E4Led.setShape</h4> -<b>setShape</b>(<i>shape</i>) -<p> - Public method to set the LED shape. -</p><dl> -<dt><i>shape</i></dt> -<dd> -new LED shape (E4LedCircular, E4LedRectangular) -</dd> -</dl><a NAME="E4Led.shape" ID="E4Led.shape"></a> -<h4>E4Led.shape</h4> -<b>shape</b>(<i></i>) -<p> - Public method to return the LED shape. -</p><dl> -<dt>Returns:</dt> -<dd> -LED shape (E4LedCircular, E4LedRectangular) -</dd> -</dl><a NAME="E4Led.sizeHint" ID="E4Led.sizeHint"></a> -<h4>E4Led.sizeHint</h4> -<b>sizeHint</b>(<i></i>) -<p> - Public method to give a hint about our desired size. -</p><dl> -<dt>Returns:</dt> -<dd> -size hint (QSize) -</dd> -</dl><a NAME="E4Led.toggle" ID="E4Led.toggle"></a> -<h4>E4Led.toggle</h4> -<b>toggle</b>(<i></i>) -<p> - Public slot to toggle the LED state. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4LineEdit.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,113 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4LineEdit</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4LineEdit</h1> -<p> -Module implementing specialized line edits. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4LineEdit">E4LineEdit</a></td> -<td>Class implementing a line edit widget showing some inactive text.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4LineEdit" ID="E4LineEdit"></a> -<h2>E4LineEdit</h2> -<p> - Class implementing a line edit widget showing some inactive text. -</p> -<h3>Derived from</h3> -QLineEdit -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4LineEdit.__init__">E4LineEdit</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4LineEdit.inactiveText">inactiveText</a></td> -<td>Public method to get the inactive text.</td> -</tr><tr> -<td><a href="#E4LineEdit.paintEvent">paintEvent</a></td> -<td>Protected method handling a paint event.</td> -</tr><tr> -<td><a href="#E4LineEdit.setInactiveText">setInactiveText</a></td> -<td>Public method to set the inactive text.</td> -</tr> -</table> -<a NAME="E4LineEdit.__init__" ID="E4LineEdit.__init__"></a> -<h4>E4LineEdit (Constructor)</h4> -<b>E4LineEdit</b>(<i>parent = None, inactiveText = ""</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd><dt><i>inactiveText</i></dt> -<dd> -text to be shown on inactivity (string) -</dd> -</dl><a NAME="E4LineEdit.inactiveText" ID="E4LineEdit.inactiveText"></a> -<h4>E4LineEdit.inactiveText</h4> -<b>inactiveText</b>(<i></i>) -<p> - Public method to get the inactive text. -</p><p> - return inactive text (string) -</p><a NAME="E4LineEdit.paintEvent" ID="E4LineEdit.paintEvent"></a> -<h4>E4LineEdit.paintEvent</h4> -<b>paintEvent</b>(<i>evt</i>) -<p> - Protected method handling a paint event. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the paint event (QPaintEvent) -</dd> -</dl><a NAME="E4LineEdit.setInactiveText" ID="E4LineEdit.setInactiveText"></a> -<h4>E4LineEdit.setInactiveText</h4> -<b>setInactiveText</b>(<i>inactiveText</i>) -<p> - Public method to set the inactive text. -</p><dl> -<dt><i>inactiveText</i></dt> -<dd> -text to be shown on inactivity (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ListView.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ListView</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ListView</h1> -<p> -Module implementing specialized list views. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4ListView">E4ListView</a></td> -<td>Class implementing a list view supporting removal of entries.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4ListView" ID="E4ListView"></a> -<h2>E4ListView</h2> -<p> - Class implementing a list view supporting removal of entries. -</p> -<h3>Derived from</h3> -QListView -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ListView.keyPressEvent">keyPressEvent</a></td> -<td>Protected method implementing special key handling.</td> -</tr><tr> -<td><a href="#E4ListView.removeAll">removeAll</a></td> -<td>Public method to clear the view.</td> -</tr><tr> -<td><a href="#E4ListView.removeSelected">removeSelected</a></td> -<td>Public method to remove the selected entries.</td> -</tr> -</table> -<a NAME="E4ListView.keyPressEvent" ID="E4ListView.keyPressEvent"></a> -<h4>E4ListView.keyPressEvent</h4> -<b>keyPressEvent</b>(<i>evt</i>) -<p> - Protected method implementing special key handling. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QKeyEvent) -</dd> -</dl><a NAME="E4ListView.removeAll" ID="E4ListView.removeAll"></a> -<h4>E4ListView.removeAll</h4> -<b>removeAll</b>(<i></i>) -<p> - Public method to clear the view. -</p><a NAME="E4ListView.removeSelected" ID="E4ListView.removeSelected"></a> -<h4>E4ListView.removeSelected</h4> -<b>removeSelected</b>(<i></i>) -<p> - Public method to remove the selected entries. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ModelMenu.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,459 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ModelMenu</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ModelMenu</h1> -<p> -Module implementing a menu populated from a QAbstractItemModel. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4ModelMenu">E4ModelMenu</a></td> -<td>Class implementing a menu populated from a QAbstractItemModel.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4ModelMenu" ID="E4ModelMenu"></a> -<h2>E4ModelMenu</h2> -<p> - Class implementing a menu populated from a QAbstractItemModel. -</p><h4>Signals</h4> -<dl> -<dt>activated(const QModelIndex&)</dt> -<dd> -emitted when an action has been triggered -</dd> -</dl> -<h3>Derived from</h3> -QMenu -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ModelMenu.__init__">E4ModelMenu</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4ModelMenu.__aboutToShow">__aboutToShow</a></td> -<td>Private slot to show the menu.</td> -</tr><tr> -<td><a href="#E4ModelMenu.__actionTriggered">__actionTriggered</a></td> -<td>Private slot to handle the triggering of an action.</td> -</tr><tr> -<td><a href="#E4ModelMenu.__makeAction">__makeAction</a></td> -<td>Private method to create an action.</td> -</tr><tr> -<td><a href="#E4ModelMenu.createBaseMenu">createBaseMenu</a></td> -<td>Public method to get the menu that is used to populate sub menu's.</td> -</tr><tr> -<td><a href="#E4ModelMenu.createMenu">createMenu</a></td> -<td>Public method to put all the children of a parent into a menu of a given length.</td> -</tr><tr> -<td><a href="#E4ModelMenu.dragEnterEvent">dragEnterEvent</a></td> -<td>Protected method to handle drag enter events.</td> -</tr><tr> -<td><a href="#E4ModelMenu.dropEvent">dropEvent</a></td> -<td>Protected method to handle drop events.</td> -</tr><tr> -<td><a href="#E4ModelMenu.firstSeparator">firstSeparator</a></td> -<td>Public method to get the first separator.</td> -</tr><tr> -<td><a href="#E4ModelMenu.index">index</a></td> -<td>Public method to get the index of an action.</td> -</tr><tr> -<td><a href="#E4ModelMenu.makeAction">makeAction</a></td> -<td>Public method to create an action.</td> -</tr><tr> -<td><a href="#E4ModelMenu.maxRows">maxRows</a></td> -<td>Public method to get the maximum number of entries to show.</td> -</tr><tr> -<td><a href="#E4ModelMenu.model">model</a></td> -<td>Public method to get a reference to the model.</td> -</tr><tr> -<td><a href="#E4ModelMenu.mouseMoveEvent">mouseMoveEvent</a></td> -<td>Protected method to handle mouse move events.</td> -</tr><tr> -<td><a href="#E4ModelMenu.mousePressEvent">mousePressEvent</a></td> -<td>Protected method handling mouse press events.</td> -</tr><tr> -<td><a href="#E4ModelMenu.mouseReleaseEvent">mouseReleaseEvent</a></td> -<td>Protected method handling mouse release events.</td> -</tr><tr> -<td><a href="#E4ModelMenu.postPopulated">postPopulated</a></td> -<td>Public method to add any actions after the tree.</td> -</tr><tr> -<td><a href="#E4ModelMenu.prePopulated">prePopulated</a></td> -<td>Public method to add any actions before the tree.</td> -</tr><tr> -<td><a href="#E4ModelMenu.removeEntry">removeEntry</a></td> -<td>Public method to remove a menu entry.</td> -</tr><tr> -<td><a href="#E4ModelMenu.resetFlags">resetFlags</a></td> -<td>Public method to reset the saved internal state.</td> -</tr><tr> -<td><a href="#E4ModelMenu.rootIndex">rootIndex</a></td> -<td>Public method to get the index of the root item.</td> -</tr><tr> -<td><a href="#E4ModelMenu.separatorRole">separatorRole</a></td> -<td>Public method to get the role of the separator.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setFirstSeparator">setFirstSeparator</a></td> -<td>Public method to set the first separator.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setMaxRows">setMaxRows</a></td> -<td>Public method to set the maximum number of entries to show.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setModel">setModel</a></td> -<td>Public method to set the model for the menu.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setRootIndex">setRootIndex</a></td> -<td>Public method to set the index of the root item.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setSeparatorRole">setSeparatorRole</a></td> -<td>Public method to set the role of the separator.</td> -</tr><tr> -<td><a href="#E4ModelMenu.setStatusBarTextRole">setStatusBarTextRole</a></td> -<td>Public method to set the role of the status bar text.</td> -</tr><tr> -<td><a href="#E4ModelMenu.statusBarTextRole">statusBarTextRole</a></td> -<td>Public method to get the role of the status bar text.</td> -</tr> -</table> -<a NAME="E4ModelMenu.__init__" ID="E4ModelMenu.__init__"></a> -<h4>E4ModelMenu (Constructor)</h4> -<b>E4ModelMenu</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4ModelMenu.__aboutToShow" ID="E4ModelMenu.__aboutToShow"></a> -<h4>E4ModelMenu.__aboutToShow</h4> -<b>__aboutToShow</b>(<i></i>) -<p> - Private slot to show the menu. -</p><a NAME="E4ModelMenu.__actionTriggered" ID="E4ModelMenu.__actionTriggered"></a> -<h4>E4ModelMenu.__actionTriggered</h4> -<b>__actionTriggered</b>(<i>action</i>) -<p> - Private slot to handle the triggering of an action. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action that was triggered (QAction) -</dd> -</dl><a NAME="E4ModelMenu.__makeAction" ID="E4ModelMenu.__makeAction"></a> -<h4>E4ModelMenu.__makeAction</h4> -<b>__makeAction</b>(<i>idx</i>) -<p> - Private method to create an action. -</p><dl> -<dt><i>idx</i></dt> -<dd> -index of the item to create an action for (QModelIndex) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the created action (QAction) -</dd> -</dl><a NAME="E4ModelMenu.createBaseMenu" ID="E4ModelMenu.createBaseMenu"></a> -<h4>E4ModelMenu.createBaseMenu</h4> -<b>createBaseMenu</b>(<i></i>) -<p> - Public method to get the menu that is used to populate sub menu's. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to the menu (E4ModelMenu) -</dd> -</dl><a NAME="E4ModelMenu.createMenu" ID="E4ModelMenu.createMenu"></a> -<h4>E4ModelMenu.createMenu</h4> -<b>createMenu</b>(<i>parent, max_, parentMenu = None, menu = None</i>) -<p> - Public method to put all the children of a parent into a menu of a given length. -</p><dl> -<dt><i>parent</i></dt> -<dd> -index of the parent item (QModelIndex) -</dd><dt><i>max_</i></dt> -<dd> -maximum number of entries (integer) -</dd><dt><i>parentMenu</i></dt> -<dd> -reference to the parent menu (QMenu) -</dd><dt><i>menu</i></dt> -<dd> -reference to the menu to be populated (QMenu) -</dd> -</dl><a NAME="E4ModelMenu.dragEnterEvent" ID="E4ModelMenu.dragEnterEvent"></a> -<h4>E4ModelMenu.dragEnterEvent</h4> -<b>dragEnterEvent</b>(<i>evt</i>) -<p> - Protected method to handle drag enter events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QDragEnterEvent) -</dd> -</dl><a NAME="E4ModelMenu.dropEvent" ID="E4ModelMenu.dropEvent"></a> -<h4>E4ModelMenu.dropEvent</h4> -<b>dropEvent</b>(<i>evt</i>) -<p> - Protected method to handle drop events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QDropEvent) -</dd> -</dl><a NAME="E4ModelMenu.firstSeparator" ID="E4ModelMenu.firstSeparator"></a> -<h4>E4ModelMenu.firstSeparator</h4> -<b>firstSeparator</b>(<i></i>) -<p> - Public method to get the first separator. -</p><dl> -<dt>Returns:</dt> -<dd> -row number of the first separator (integer) -</dd> -</dl><a NAME="E4ModelMenu.index" ID="E4ModelMenu.index"></a> -<h4>E4ModelMenu.index</h4> -<b>index</b>(<i>action</i>) -<p> - Public method to get the index of an action. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action to get the index for (QAction) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the action (QModelIndex) -</dd> -</dl><a NAME="E4ModelMenu.makeAction" ID="E4ModelMenu.makeAction"></a> -<h4>E4ModelMenu.makeAction</h4> -<b>makeAction</b>(<i>icon, text, parent</i>) -<p> - Public method to create an action. -</p><dl> -<dt><i>icon</i></dt> -<dd> -icon of the action (QIcon) -</dd><dt><i>text</i></dt> -<dd> -text of the action (string) -</dd><dt><i>reference</i></dt> -<dd> -to the parent object (QObject) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the created action (QAction) -</dd> -</dl><a NAME="E4ModelMenu.maxRows" ID="E4ModelMenu.maxRows"></a> -<h4>E4ModelMenu.maxRows</h4> -<b>maxRows</b>(<i></i>) -<p> - Public method to get the maximum number of entries to show. -</p><dl> -<dt>Returns:</dt> -<dd> -maximum number of entries to show (integer) -</dd> -</dl><a NAME="E4ModelMenu.model" ID="E4ModelMenu.model"></a> -<h4>E4ModelMenu.model</h4> -<b>model</b>(<i></i>) -<p> - Public method to get a reference to the model. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to the model (QAbstractItemModel) -</dd> -</dl><a NAME="E4ModelMenu.mouseMoveEvent" ID="E4ModelMenu.mouseMoveEvent"></a> -<h4>E4ModelMenu.mouseMoveEvent</h4> -<b>mouseMoveEvent</b>(<i>evt</i>) -<p> - Protected method to handle mouse move events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QMouseEvent) -</dd> -</dl><a NAME="E4ModelMenu.mousePressEvent" ID="E4ModelMenu.mousePressEvent"></a> -<h4>E4ModelMenu.mousePressEvent</h4> -<b>mousePressEvent</b>(<i>evt</i>) -<p> - Protected method handling mouse press events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event object (QMouseEvent) -</dd> -</dl><a NAME="E4ModelMenu.mouseReleaseEvent" ID="E4ModelMenu.mouseReleaseEvent"></a> -<h4>E4ModelMenu.mouseReleaseEvent</h4> -<b>mouseReleaseEvent</b>(<i>evt</i>) -<p> - Protected method handling mouse release events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event object (QMouseEvent) -</dd> -</dl><a NAME="E4ModelMenu.postPopulated" ID="E4ModelMenu.postPopulated"></a> -<h4>E4ModelMenu.postPopulated</h4> -<b>postPopulated</b>(<i></i>) -<p> - Public method to add any actions after the tree. -</p><a NAME="E4ModelMenu.prePopulated" ID="E4ModelMenu.prePopulated"></a> -<h4>E4ModelMenu.prePopulated</h4> -<b>prePopulated</b>(<i></i>) -<p> - Public method to add any actions before the tree. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating if any actions were added -</dd> -</dl><a NAME="E4ModelMenu.removeEntry" ID="E4ModelMenu.removeEntry"></a> -<h4>E4ModelMenu.removeEntry</h4> -<b>removeEntry</b>(<i>idx</i>) -<p> - Public method to remove a menu entry. -</p><dl> -<dt><i>idx</i></dt> -<dd> -index of the entry to be removed (QModelIndex) -</dd> -</dl><a NAME="E4ModelMenu.resetFlags" ID="E4ModelMenu.resetFlags"></a> -<h4>E4ModelMenu.resetFlags</h4> -<b>resetFlags</b>(<i></i>) -<p> - Public method to reset the saved internal state. -</p><a NAME="E4ModelMenu.rootIndex" ID="E4ModelMenu.rootIndex"></a> -<h4>E4ModelMenu.rootIndex</h4> -<b>rootIndex</b>(<i></i>) -<p> - Public method to get the index of the root item. -</p><dl> -<dt>Returns:</dt> -<dd> -index of the root item (QModelIndex) -</dd> -</dl><a NAME="E4ModelMenu.separatorRole" ID="E4ModelMenu.separatorRole"></a> -<h4>E4ModelMenu.separatorRole</h4> -<b>separatorRole</b>(<i></i>) -<p> - Public method to get the role of the separator. -</p><dl> -<dt>Returns:</dt> -<dd> -role of the separator (integer) -</dd> -</dl><a NAME="E4ModelMenu.setFirstSeparator" ID="E4ModelMenu.setFirstSeparator"></a> -<h4>E4ModelMenu.setFirstSeparator</h4> -<b>setFirstSeparator</b>(<i>offset</i>) -<p> - Public method to set the first separator. -</p><dl> -<dt><i>offset</i></dt> -<dd> -row number of the first separator (integer) -</dd> -</dl><a NAME="E4ModelMenu.setMaxRows" ID="E4ModelMenu.setMaxRows"></a> -<h4>E4ModelMenu.setMaxRows</h4> -<b>setMaxRows</b>(<i>rows</i>) -<p> - Public method to set the maximum number of entries to show. -</p><dl> -<dt><i>rows</i></dt> -<dd> -maximum number of entries to show (integer) -</dd> -</dl><a NAME="E4ModelMenu.setModel" ID="E4ModelMenu.setModel"></a> -<h4>E4ModelMenu.setModel</h4> -<b>setModel</b>(<i>model</i>) -<p> - Public method to set the model for the menu. -</p><dl> -<dt><i>model</i></dt> -<dd> -reference to the model (QAbstractItemModel) -</dd> -</dl><a NAME="E4ModelMenu.setRootIndex" ID="E4ModelMenu.setRootIndex"></a> -<h4>E4ModelMenu.setRootIndex</h4> -<b>setRootIndex</b>(<i>index</i>) -<p> - Public method to set the index of the root item. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the root item (QModelIndex) -</dd> -</dl><a NAME="E4ModelMenu.setSeparatorRole" ID="E4ModelMenu.setSeparatorRole"></a> -<h4>E4ModelMenu.setSeparatorRole</h4> -<b>setSeparatorRole</b>(<i>role</i>) -<p> - Public method to set the role of the separator. -</p><dl> -<dt><i>role</i></dt> -<dd> -role of the separator (integer) -</dd> -</dl><a NAME="E4ModelMenu.setStatusBarTextRole" ID="E4ModelMenu.setStatusBarTextRole"></a> -<h4>E4ModelMenu.setStatusBarTextRole</h4> -<b>setStatusBarTextRole</b>(<i>role</i>) -<p> - Public method to set the role of the status bar text. -</p><dl> -<dt><i>role</i></dt> -<dd> -role of the status bar text (integer) -</dd> -</dl><a NAME="E4ModelMenu.statusBarTextRole" ID="E4ModelMenu.statusBarTextRole"></a> -<h4>E4ModelMenu.statusBarTextRole</h4> -<b>statusBarTextRole</b>(<i></i>) -<p> - Public method to get the role of the status bar text. -</p><dl> -<dt>Returns:</dt> -<dd> -role of the status bar text (integer) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ModelToolBar.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,262 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ModelToolBar</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ModelToolBar</h1> -<p> -Module implementing a tool bar populated from a QAbstractItemModel. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4ModelToolBar">E4ModelToolBar</a></td> -<td>Class implementing a tool bar populated from a QAbstractItemModel.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4ModelToolBar" ID="E4ModelToolBar"></a> -<h2>E4ModelToolBar</h2> -<p> - Class implementing a tool bar populated from a QAbstractItemModel. -</p> -<h3>Derived from</h3> -QToolBar -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ModelToolBar.__init__">E4ModelToolBar</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4ModelToolBar._build">_build</a></td> -<td>Protected slot to build the tool bar.</td> -</tr><tr> -<td><a href="#E4ModelToolBar._createMenu">_createMenu</a></td> -<td>Protected method to create the menu for a tool bar action.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.dragEnterEvent">dragEnterEvent</a></td> -<td>Protected method to handle drag enter events.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.dropEvent">dropEvent</a></td> -<td>Protected method to handle drop events.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.eventFilter">eventFilter</a></td> -<td>Public method to handle event for other objects.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.hideEvent">hideEvent</a></td> -<td>Protected method to handle hide events.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.index">index</a></td> -<td>Public method to get the index of an action.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.model">model</a></td> -<td>Public method to get a reference to the model.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.mouseMoveEvent">mouseMoveEvent</a></td> -<td>Protected method to handle mouse move events.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.resetFlags">resetFlags</a></td> -<td>Public method to reset the saved internal state.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.rootIndex">rootIndex</a></td> -<td>Public method to get the root index.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.setModel">setModel</a></td> -<td>Public method to set the model for the tool bar.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.setRootIndex">setRootIndex</a></td> -<td>Public method to set the root index.</td> -</tr><tr> -<td><a href="#E4ModelToolBar.showEvent">showEvent</a></td> -<td>Protected method to handle show events.</td> -</tr> -</table> -<a NAME="E4ModelToolBar.__init__" ID="E4ModelToolBar.__init__"></a> -<h4>E4ModelToolBar (Constructor)</h4> -<b>E4ModelToolBar</b>(<i>title = None, parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>title</i></dt> -<dd> -title for the tool bar (string) -</dd><dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4ModelToolBar._build" ID="E4ModelToolBar._build"></a> -<h4>E4ModelToolBar._build</h4> -<b>_build</b>(<i></i>) -<p> - Protected slot to build the tool bar. -</p><a NAME="E4ModelToolBar._createMenu" ID="E4ModelToolBar._createMenu"></a> -<h4>E4ModelToolBar._createMenu</h4> -<b>_createMenu</b>(<i></i>) -<p> - Protected method to create the menu for a tool bar action. -</p><dl> -<dt>Returns:</dt> -<dd> -menu for a tool bar action (E4ModelMenu) -</dd> -</dl><a NAME="E4ModelToolBar.dragEnterEvent" ID="E4ModelToolBar.dragEnterEvent"></a> -<h4>E4ModelToolBar.dragEnterEvent</h4> -<b>dragEnterEvent</b>(<i>evt</i>) -<p> - Protected method to handle drag enter events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QDragEnterEvent) -</dd> -</dl><a NAME="E4ModelToolBar.dropEvent" ID="E4ModelToolBar.dropEvent"></a> -<h4>E4ModelToolBar.dropEvent</h4> -<b>dropEvent</b>(<i>evt</i>) -<p> - Protected method to handle drop events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QDropEvent) -</dd> -</dl><a NAME="E4ModelToolBar.eventFilter" ID="E4ModelToolBar.eventFilter"></a> -<h4>E4ModelToolBar.eventFilter</h4> -<b>eventFilter</b>(<i>obj, evt</i>) -<p> - Public method to handle event for other objects. -</p><dl> -<dt><i>obj</i></dt> -<dd> -reference to the object (QObject) -</dd><dt><i>evt</i></dt> -<dd> -reference to the event (QEvent) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating that the event should be filtered out (boolean) -</dd> -</dl><a NAME="E4ModelToolBar.hideEvent" ID="E4ModelToolBar.hideEvent"></a> -<h4>E4ModelToolBar.hideEvent</h4> -<b>hideEvent</b>(<i>evt</i>) -<p> - Protected method to handle hide events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the hide event (QHideEvent) -</dd> -</dl><a NAME="E4ModelToolBar.index" ID="E4ModelToolBar.index"></a> -<h4>E4ModelToolBar.index</h4> -<b>index</b>(<i>action</i>) -<p> - Public method to get the index of an action. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action to get the index for (QAction) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the action (QModelIndex) -</dd> -</dl><a NAME="E4ModelToolBar.model" ID="E4ModelToolBar.model"></a> -<h4>E4ModelToolBar.model</h4> -<b>model</b>(<i></i>) -<p> - Public method to get a reference to the model. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to the model (QAbstractItemModel) -</dd> -</dl><a NAME="E4ModelToolBar.mouseMoveEvent" ID="E4ModelToolBar.mouseMoveEvent"></a> -<h4>E4ModelToolBar.mouseMoveEvent</h4> -<b>mouseMoveEvent</b>(<i>evt</i>) -<p> - Protected method to handle mouse move events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QMouseEvent) -</dd> -</dl><a NAME="E4ModelToolBar.resetFlags" ID="E4ModelToolBar.resetFlags"></a> -<h4>E4ModelToolBar.resetFlags</h4> -<b>resetFlags</b>(<i></i>) -<p> - Public method to reset the saved internal state. -</p><a NAME="E4ModelToolBar.rootIndex" ID="E4ModelToolBar.rootIndex"></a> -<h4>E4ModelToolBar.rootIndex</h4> -<b>rootIndex</b>(<i></i>) -<p> - Public method to get the root index. -</p><dl> -<dt>Returns:</dt> -<dd> -root index (QModelIndex) -</dd> -</dl><a NAME="E4ModelToolBar.setModel" ID="E4ModelToolBar.setModel"></a> -<h4>E4ModelToolBar.setModel</h4> -<b>setModel</b>(<i>model</i>) -<p> - Public method to set the model for the tool bar. -</p><dl> -<dt><i>model</i></dt> -<dd> -reference to the model (QAbstractItemModel) -</dd> -</dl><a NAME="E4ModelToolBar.setRootIndex" ID="E4ModelToolBar.setRootIndex"></a> -<h4>E4ModelToolBar.setRootIndex</h4> -<b>setRootIndex</b>(<i>idx</i>) -<p> - Public method to set the root index. -</p><dl> -<dt><i>idx</i></dt> -<dd> -index to be set as the root index (QModelIndex) -</dd> -</dl><a NAME="E4ModelToolBar.showEvent" ID="E4ModelToolBar.showEvent"></a> -<h4>E4ModelToolBar.showEvent</h4> -<b>showEvent</b>(<i>evt</i>) -<p> - Protected method to handle show events. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the hide event (QHideEvent) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4SideBar.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,619 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4SideBar</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4SideBar</h1> -<p> -Module implementing a sidebar class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4SideBar">E4SideBar</a></td> -<td>Class implementing a sidebar with a widget area, that is hidden or shown, if the current tab is clicked again.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4SideBar" ID="E4SideBar"></a> -<h2>E4SideBar</h2> -<p> - Class implementing a sidebar with a widget area, that is hidden or shown, if the - current tab is clicked again. -</p> -<h3>Derived from</h3> -QWidget -<h3>Class Attributes</h3> -<table> -<tr><td>East</td></tr><tr><td>North</td></tr><tr><td>South</td></tr><tr><td>Version</td></tr><tr><td>West</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4SideBar.__init__">E4SideBar</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4SideBar.__appFocusChanged">__appFocusChanged</a></td> -<td>Private slot to handle a change of the focus.</td> -</tr><tr> -<td><a href="#E4SideBar.__autoHideToggled">__autoHideToggled</a></td> -<td>Private slot to handle the toggling of the autohide button.</td> -</tr><tr> -<td><a href="#E4SideBar.addTab">addTab</a></td> -<td>Public method to add a tab to the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.clear">clear</a></td> -<td>Public method to remove all tabs.</td> -</tr><tr> -<td><a href="#E4SideBar.count">count</a></td> -<td>Public method to get the number of tabs.</td> -</tr><tr> -<td><a href="#E4SideBar.currentIndex">currentIndex</a></td> -<td>Public method to get the index of the current tab.</td> -</tr><tr> -<td><a href="#E4SideBar.currentWidget">currentWidget</a></td> -<td>Public method to get a reference to the current widget.</td> -</tr><tr> -<td><a href="#E4SideBar.enterEvent">enterEvent</a></td> -<td>Protected method to handle the mouse entering this widget.</td> -</tr><tr> -<td><a href="#E4SideBar.eventFilter">eventFilter</a></td> -<td>Protected method to handle some events for the tabbar.</td> -</tr><tr> -<td><a href="#E4SideBar.expand">expand</a></td> -<td>Public method to expand the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.indexOf">indexOf</a></td> -<td>Public method to get the index of the given widget.</td> -</tr><tr> -<td><a href="#E4SideBar.insertTab">insertTab</a></td> -<td>Public method to insert a tab into the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.isAutoHiding">isAutoHiding</a></td> -<td>Public method to check, if the auto hide function is active.</td> -</tr><tr> -<td><a href="#E4SideBar.isMinimized">isMinimized</a></td> -<td>Public method to check the minimized state.</td> -</tr><tr> -<td><a href="#E4SideBar.isTabEnabled">isTabEnabled</a></td> -<td>Public method to check, if a tab is enabled.</td> -</tr><tr> -<td><a href="#E4SideBar.leaveEvent">leaveEvent</a></td> -<td>Protected method to handle the mouse leaving this widget.</td> -</tr><tr> -<td><a href="#E4SideBar.nextTab">nextTab</a></td> -<td>Public slot used to show the next tab.</td> -</tr><tr> -<td><a href="#E4SideBar.orientation">orientation</a></td> -<td>Public method to get the orientation of the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.prevTab">prevTab</a></td> -<td>Public slot used to show the previous tab.</td> -</tr><tr> -<td><a href="#E4SideBar.removeTab">removeTab</a></td> -<td>Public method to remove a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.restoreState">restoreState</a></td> -<td>Public method to restore the state of the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.saveState">saveState</a></td> -<td>Public method to save the state of the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.setCurrentIndex">setCurrentIndex</a></td> -<td>Public slot to set the current index.</td> -</tr><tr> -<td><a href="#E4SideBar.setCurrentWidget">setCurrentWidget</a></td> -<td>Public slot to set the current widget.</td> -</tr><tr> -<td><a href="#E4SideBar.setOrientation">setOrientation</a></td> -<td>Public method to set the orientation of the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.setSplitter">setSplitter</a></td> -<td>Public method to set the splitter managing the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.setTabEnabled">setTabEnabled</a></td> -<td>Public method to set the enabled state of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.setTabIcon">setTabIcon</a></td> -<td>Public method to set the icon of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.setTabText">setTabText</a></td> -<td>Public method to set the text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.setTabToolTip">setTabToolTip</a></td> -<td>Public method to set the tooltip text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.setTabWhatsThis">setTabWhatsThis</a></td> -<td>Public method to set the WhatsThis text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.shrink">shrink</a></td> -<td>Public method to shrink the sidebar.</td> -</tr><tr> -<td><a href="#E4SideBar.tabIcon">tabIcon</a></td> -<td>Public method to get the icon of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.tabText">tabText</a></td> -<td>Public method to get the text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.tabToolTip">tabToolTip</a></td> -<td>Public method to get the tooltip text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.tabWhatsThis">tabWhatsThis</a></td> -<td>Public method to get the WhatsThis text of a tab.</td> -</tr><tr> -<td><a href="#E4SideBar.widget">widget</a></td> -<td>Public method to get a reference to the widget associated with a tab.</td> -</tr> -</table> -<a NAME="E4SideBar.__init__" ID="E4SideBar.__init__"></a> -<h4>E4SideBar (Constructor)</h4> -<b>E4SideBar</b>(<i>orientation = None, parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>orientation</i></dt> -<dd> -orientation of the sidebar widget (North, East, South, West) -</dd><dt><i>parent</i></dt> -<dd> -parent widget (QWidget) -</dd> -</dl><a NAME="E4SideBar.__appFocusChanged" ID="E4SideBar.__appFocusChanged"></a> -<h4>E4SideBar.__appFocusChanged</h4> -<b>__appFocusChanged</b>(<i>old, now</i>) -<p> - Private slot to handle a change of the focus. -</p><dl> -<dt><i>old</i></dt> -<dd> -reference to the widget, that lost focus (QWidget or None) -</dd><dt><i>now</i></dt> -<dd> -reference to the widget having the focus (QWidget or None) -</dd> -</dl><a NAME="E4SideBar.__autoHideToggled" ID="E4SideBar.__autoHideToggled"></a> -<h4>E4SideBar.__autoHideToggled</h4> -<b>__autoHideToggled</b>(<i>checked</i>) -<p> - Private slot to handle the toggling of the autohide button. -</p><dl> -<dt><i>checked</i></dt> -<dd> -flag indicating the checked state of the button (boolean) -</dd> -</dl><a NAME="E4SideBar.addTab" ID="E4SideBar.addTab"></a> -<h4>E4SideBar.addTab</h4> -<b>addTab</b>(<i>widget, iconOrLabel, label = None</i>) -<p> - Public method to add a tab to the sidebar. -</p><dl> -<dt><i>widget</i></dt> -<dd> -reference to the widget to add (QWidget) -</dd><dt><i>iconOrLabel</i></dt> -<dd> -reference to the icon or the labeltext of the tab - (QIcon, string) -</dd><dt><i>label</i></dt> -<dd> -the labeltext of the tab (string) (only to be - used, if the second parameter is a QIcon) -</dd> -</dl><a NAME="E4SideBar.clear" ID="E4SideBar.clear"></a> -<h4>E4SideBar.clear</h4> -<b>clear</b>(<i></i>) -<p> - Public method to remove all tabs. -</p><a NAME="E4SideBar.count" ID="E4SideBar.count"></a> -<h4>E4SideBar.count</h4> -<b>count</b>(<i></i>) -<p> - Public method to get the number of tabs. -</p><dl> -<dt>Returns:</dt> -<dd> -number of tabs in the sidebar (integer) -</dd> -</dl><a NAME="E4SideBar.currentIndex" ID="E4SideBar.currentIndex"></a> -<h4>E4SideBar.currentIndex</h4> -<b>currentIndex</b>(<i></i>) -<p> - Public method to get the index of the current tab. -</p><dl> -<dt>Returns:</dt> -<dd> -index of the current tab (integer) -</dd> -</dl><a NAME="E4SideBar.currentWidget" ID="E4SideBar.currentWidget"></a> -<h4>E4SideBar.currentWidget</h4> -<b>currentWidget</b>(<i></i>) -<p> - Public method to get a reference to the current widget. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to the current widget (QWidget) -</dd> -</dl><a NAME="E4SideBar.enterEvent" ID="E4SideBar.enterEvent"></a> -<h4>E4SideBar.enterEvent</h4> -<b>enterEvent</b>(<i>event</i>) -<p> - Protected method to handle the mouse entering this widget. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the event (QEvent) -</dd> -</dl><a NAME="E4SideBar.eventFilter" ID="E4SideBar.eventFilter"></a> -<h4>E4SideBar.eventFilter</h4> -<b>eventFilter</b>(<i>obj, evt</i>) -<p> - Protected method to handle some events for the tabbar. -</p><dl> -<dt><i>obj</i></dt> -<dd> -reference to the object (QObject) -</dd><dt><i>evt</i></dt> -<dd> -reference to the event object (QEvent) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating, if the event was handled (boolean) -</dd> -</dl><a NAME="E4SideBar.expand" ID="E4SideBar.expand"></a> -<h4>E4SideBar.expand</h4> -<b>expand</b>(<i></i>) -<p> - Public method to expand the sidebar. -</p><a NAME="E4SideBar.indexOf" ID="E4SideBar.indexOf"></a> -<h4>E4SideBar.indexOf</h4> -<b>indexOf</b>(<i>widget</i>) -<p> - Public method to get the index of the given widget. -</p><dl> -<dt><i>widget</i></dt> -<dd> -reference to the widget to get the index of (QWidget) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the given widget (integer) -</dd> -</dl><a NAME="E4SideBar.insertTab" ID="E4SideBar.insertTab"></a> -<h4>E4SideBar.insertTab</h4> -<b>insertTab</b>(<i>index, widget, iconOrLabel, label = None</i>) -<p> - Public method to insert a tab into the sidebar. -</p><dl> -<dt><i>index</i></dt> -<dd> -the index to insert the tab at (integer) -</dd><dt><i>widget</i></dt> -<dd> -reference to the widget to insert (QWidget) -</dd><dt><i>iconOrLabel</i></dt> -<dd> -reference to the icon or the labeltext of the tab - (QIcon, string) -</dd><dt><i>label</i></dt> -<dd> -the labeltext of the tab (string) (only to be - used, if the second parameter is a QIcon) -</dd> -</dl><a NAME="E4SideBar.isAutoHiding" ID="E4SideBar.isAutoHiding"></a> -<h4>E4SideBar.isAutoHiding</h4> -<b>isAutoHiding</b>(<i></i>) -<p> - Public method to check, if the auto hide function is active. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the state of auto hiding (boolean) -</dd> -</dl><a NAME="E4SideBar.isMinimized" ID="E4SideBar.isMinimized"></a> -<h4>E4SideBar.isMinimized</h4> -<b>isMinimized</b>(<i></i>) -<p> - Public method to check the minimized state. -</p><dl> -<dt>Returns:</dt> -<dd> -flag indicating the minimized state (boolean) -</dd> -</dl><a NAME="E4SideBar.isTabEnabled" ID="E4SideBar.isTabEnabled"></a> -<h4>E4SideBar.isTabEnabled</h4> -<b>isTabEnabled</b>(<i>index</i>) -<p> - Public method to check, if a tab is enabled. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab to check (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the enabled state (boolean) -</dd> -</dl><a NAME="E4SideBar.leaveEvent" ID="E4SideBar.leaveEvent"></a> -<h4>E4SideBar.leaveEvent</h4> -<b>leaveEvent</b>(<i>event</i>) -<p> - Protected method to handle the mouse leaving this widget. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the event (QEvent) -</dd> -</dl><a NAME="E4SideBar.nextTab" ID="E4SideBar.nextTab"></a> -<h4>E4SideBar.nextTab</h4> -<b>nextTab</b>(<i></i>) -<p> - Public slot used to show the next tab. -</p><a NAME="E4SideBar.orientation" ID="E4SideBar.orientation"></a> -<h4>E4SideBar.orientation</h4> -<b>orientation</b>(<i></i>) -<p> - Public method to get the orientation of the sidebar. -</p><dl> -<dt>Returns:</dt> -<dd> -orientation of the sidebar (North, East, South, West) -</dd> -</dl><a NAME="E4SideBar.prevTab" ID="E4SideBar.prevTab"></a> -<h4>E4SideBar.prevTab</h4> -<b>prevTab</b>(<i></i>) -<p> - Public slot used to show the previous tab. -</p><a NAME="E4SideBar.removeTab" ID="E4SideBar.removeTab"></a> -<h4>E4SideBar.removeTab</h4> -<b>removeTab</b>(<i>index</i>) -<p> - Public method to remove a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -the index of the tab to remove (integer) -</dd> -</dl><a NAME="E4SideBar.restoreState" ID="E4SideBar.restoreState"></a> -<h4>E4SideBar.restoreState</h4> -<b>restoreState</b>(<i>state</i>) -<p> - Public method to restore the state of the sidebar. -</p><dl> -<dt><i>state</i></dt> -<dd> -byte array containing the saved state (QByteArray) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating success (boolean) -</dd> -</dl><a NAME="E4SideBar.saveState" ID="E4SideBar.saveState"></a> -<h4>E4SideBar.saveState</h4> -<b>saveState</b>(<i></i>) -<p> - Public method to save the state of the sidebar. -</p><dl> -<dt>Returns:</dt> -<dd> -saved state as a byte array (QByteArray) -</dd> -</dl><a NAME="E4SideBar.setCurrentIndex" ID="E4SideBar.setCurrentIndex"></a> -<h4>E4SideBar.setCurrentIndex</h4> -<b>setCurrentIndex</b>(<i>index</i>) -<p> - Public slot to set the current index. -</p><dl> -<dt><i>index</i></dt> -<dd> -the index to set as the current index (integer) -</dd> -</dl><a NAME="E4SideBar.setCurrentWidget" ID="E4SideBar.setCurrentWidget"></a> -<h4>E4SideBar.setCurrentWidget</h4> -<b>setCurrentWidget</b>(<i>widget</i>) -<p> - Public slot to set the current widget. -</p><dl> -<dt><i>widget</i></dt> -<dd> -reference to the widget to become the current widget (QWidget) -</dd> -</dl><a NAME="E4SideBar.setOrientation" ID="E4SideBar.setOrientation"></a> -<h4>E4SideBar.setOrientation</h4> -<b>setOrientation</b>(<i>orient</i>) -<p> - Public method to set the orientation of the sidebar. -</p><dl> -<dt><i>orient</i></dt> -<dd> -orientation of the sidebar (North, East, South, West) -</dd> -</dl><a NAME="E4SideBar.setSplitter" ID="E4SideBar.setSplitter"></a> -<h4>E4SideBar.setSplitter</h4> -<b>setSplitter</b>(<i>splitter</i>) -<p> - Public method to set the splitter managing the sidebar. -</p><dl> -<dt><i>splitter</i></dt> -<dd> -reference to the splitter (QSplitter) -</dd> -</dl><a NAME="E4SideBar.setTabEnabled" ID="E4SideBar.setTabEnabled"></a> -<h4>E4SideBar.setTabEnabled</h4> -<b>setTabEnabled</b>(<i>index, enabled</i>) -<p> - Public method to set the enabled state of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab to set (integer) -</dd><dt><i>enabled</i></dt> -<dd> -enabled state to set (boolean) -</dd> -</dl><a NAME="E4SideBar.setTabIcon" ID="E4SideBar.setTabIcon"></a> -<h4>E4SideBar.setTabIcon</h4> -<b>setTabIcon</b>(<i>index, icon</i>) -<p> - Public method to set the icon of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd><dt><i>icon</i></dt> -<dd> -icon to be set (QIcon) -</dd> -</dl><a NAME="E4SideBar.setTabText" ID="E4SideBar.setTabText"></a> -<h4>E4SideBar.setTabText</h4> -<b>setTabText</b>(<i>index, text</i>) -<p> - Public method to set the text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd><dt><i>text</i></dt> -<dd> -text to set (string) -</dd> -</dl><a NAME="E4SideBar.setTabToolTip" ID="E4SideBar.setTabToolTip"></a> -<h4>E4SideBar.setTabToolTip</h4> -<b>setTabToolTip</b>(<i>index, tip</i>) -<p> - Public method to set the tooltip text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd><dt><i>tooltip</i></dt> -<dd> -text text to set (string) -</dd> -</dl><a NAME="E4SideBar.setTabWhatsThis" ID="E4SideBar.setTabWhatsThis"></a> -<h4>E4SideBar.setTabWhatsThis</h4> -<b>setTabWhatsThis</b>(<i>index, text</i>) -<p> - Public method to set the WhatsThis text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd><dt><i>WhatsThis</i></dt> -<dd> -text text to set (string) -</dd> -</dl><a NAME="E4SideBar.shrink" ID="E4SideBar.shrink"></a> -<h4>E4SideBar.shrink</h4> -<b>shrink</b>(<i></i>) -<p> - Public method to shrink the sidebar. -</p><a NAME="E4SideBar.tabIcon" ID="E4SideBar.tabIcon"></a> -<h4>E4SideBar.tabIcon</h4> -<b>tabIcon</b>(<i>index</i>) -<p> - Public method to get the icon of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -icon of the tab (QIcon) -</dd> -</dl><a NAME="E4SideBar.tabText" ID="E4SideBar.tabText"></a> -<h4>E4SideBar.tabText</h4> -<b>tabText</b>(<i>index</i>) -<p> - Public method to get the text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -text of the tab (string) -</dd> -</dl><a NAME="E4SideBar.tabToolTip" ID="E4SideBar.tabToolTip"></a> -<h4>E4SideBar.tabToolTip</h4> -<b>tabToolTip</b>(<i>index</i>) -<p> - Public method to get the tooltip text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -tooltip text of the tab (string) -</dd> -</dl><a NAME="E4SideBar.tabWhatsThis" ID="E4SideBar.tabWhatsThis"></a> -<h4>E4SideBar.tabWhatsThis</h4> -<b>tabWhatsThis</b>(<i>index</i>) -<p> - Public method to get the WhatsThis text of a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -WhatsThis text of the tab (string) -</dd> -</dl><a NAME="E4SideBar.widget" ID="E4SideBar.widget"></a> -<h4>E4SideBar.widget</h4> -<b>widget</b>(<i>index</i>) -<p> - Public method to get a reference to the widget associated with a tab. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the tab (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the widget (QWidget) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4SingleApplication.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,205 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4SingleApplication</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4SingleApplication</h1> -<p> -Module implementing the single application server and client. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>SAArguments</td></tr><tr><td>SAFile</td></tr><tr><td>SAOpenFile</td></tr><tr><td>SAOpenProject</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4SingleApplicationClient">E4SingleApplicationClient</a></td> -<td>Class implementing the single application client of the IDE.</td> -</tr><tr> -<td><a href="#E4SingleApplicationServer">E4SingleApplicationServer</a></td> -<td>Class implementing the single application server embedded within the IDE.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4SingleApplicationClient" ID="E4SingleApplicationClient"></a> -<h2>E4SingleApplicationClient</h2> -<p> - Class implementing the single application client of the IDE. -</p> -<h3>Derived from</h3> -SingleApplicationClient -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4SingleApplicationClient.__init__">E4SingleApplicationClient</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4SingleApplicationClient.__openFile">__openFile</a></td> -<td>Private method to open a file in the application server.</td> -</tr><tr> -<td><a href="#E4SingleApplicationClient.__openProject">__openProject</a></td> -<td>Private method to open a project in the application server.</td> -</tr><tr> -<td><a href="#E4SingleApplicationClient.__sendArguments">__sendArguments</a></td> -<td>Private method to set the command arguments in the application server.</td> -</tr><tr> -<td><a href="#E4SingleApplicationClient.processArgs">processArgs</a></td> -<td>Public method to process the command line args passed to the UI.</td> -</tr> -</table> -<a NAME="E4SingleApplicationClient.__init__" ID="E4SingleApplicationClient.__init__"></a> -<h4>E4SingleApplicationClient (Constructor)</h4> -<b>E4SingleApplicationClient</b>(<i></i>) -<p> - Constructor -</p><a NAME="E4SingleApplicationClient.__openFile" ID="E4SingleApplicationClient.__openFile"></a> -<h4>E4SingleApplicationClient.__openFile</h4> -<b>__openFile</b>(<i>fname</i>) -<p> - Private method to open a file in the application server. -</p><dl> -<dt><i>fname</i></dt> -<dd> -name of file to be opened (string) -</dd> -</dl><a NAME="E4SingleApplicationClient.__openProject" ID="E4SingleApplicationClient.__openProject"></a> -<h4>E4SingleApplicationClient.__openProject</h4> -<b>__openProject</b>(<i>pfname</i>) -<p> - Private method to open a project in the application server. -</p><dl> -<dt><i>pfname</i></dt> -<dd> -name of the projectfile to be opened (string) -</dd> -</dl><a NAME="E4SingleApplicationClient.__sendArguments" ID="E4SingleApplicationClient.__sendArguments"></a> -<h4>E4SingleApplicationClient.__sendArguments</h4> -<b>__sendArguments</b>(<i>argsStr</i>) -<p> - Private method to set the command arguments in the application server. -</p><dl> -<dt><i>argsStr</i></dt> -<dd> -space delimited list of command args (string) -</dd> -</dl><a NAME="E4SingleApplicationClient.processArgs" ID="E4SingleApplicationClient.processArgs"></a> -<h4>E4SingleApplicationClient.processArgs</h4> -<b>processArgs</b>(<i>args</i>) -<p> - Public method to process the command line args passed to the UI. -</p><dl> -<dt><i>args</i></dt> -<dd> -list of files to open -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4SingleApplicationServer" ID="E4SingleApplicationServer"></a> -<h2>E4SingleApplicationServer</h2> -<p> - Class implementing the single application server embedded within the IDE. -</p> -<h3>Derived from</h3> -SingleApplicationServer -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4SingleApplicationServer.__init__">E4SingleApplicationServer</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4SingleApplicationServer.__saArguments">__saArguments</a></td> -<td>Private method used to handle the "Arguments" command.</td> -</tr><tr> -<td><a href="#E4SingleApplicationServer.__saOpenFile">__saOpenFile</a></td> -<td>Private method used to handle the "Open File" command.</td> -</tr><tr> -<td><a href="#E4SingleApplicationServer.__saOpenProject">__saOpenProject</a></td> -<td>Private method used to handle the "Open Project" command.</td> -</tr><tr> -<td><a href="#E4SingleApplicationServer.handleCommand">handleCommand</a></td> -<td>Public slot to handle the command sent by the client.</td> -</tr> -</table> -<a NAME="E4SingleApplicationServer.__init__" ID="E4SingleApplicationServer.__init__"></a> -<h4>E4SingleApplicationServer (Constructor)</h4> -<b>E4SingleApplicationServer</b>(<i></i>) -<p> - Constructor -</p><a NAME="E4SingleApplicationServer.__saArguments" ID="E4SingleApplicationServer.__saArguments"></a> -<h4>E4SingleApplicationServer.__saArguments</h4> -<b>__saArguments</b>(<i>argsStr</i>) -<p> - Private method used to handle the "Arguments" command. -</p><dl> -<dt><i>argsStr</i></dt> -<dd> -space delimited list of command args(string) -</dd> -</dl><a NAME="E4SingleApplicationServer.__saOpenFile" ID="E4SingleApplicationServer.__saOpenFile"></a> -<h4>E4SingleApplicationServer.__saOpenFile</h4> -<b>__saOpenFile</b>(<i>fname</i>) -<p> - Private method used to handle the "Open File" command. -</p><dl> -<dt><i>fname</i></dt> -<dd> -filename to be opened (string) -</dd> -</dl><a NAME="E4SingleApplicationServer.__saOpenProject" ID="E4SingleApplicationServer.__saOpenProject"></a> -<h4>E4SingleApplicationServer.__saOpenProject</h4> -<b>__saOpenProject</b>(<i>pfname</i>) -<p> - Private method used to handle the "Open Project" command. -</p><dl> -<dt><i>pfname</i></dt> -<dd> -filename of the project to be opened (string) -</dd> -</dl><a NAME="E4SingleApplicationServer.handleCommand" ID="E4SingleApplicationServer.handleCommand"></a> -<h4>E4SingleApplicationServer.handleCommand</h4> -<b>handleCommand</b>(<i>cmd, params</i>) -<p> - Public slot to handle the command sent by the client. -</p><dl> -<dt><i>cmd</i></dt> -<dd> -commandstring (string) -</dd><dt><i>params</i></dt> -<dd> -parameterstring (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4SqueezeLabels.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,207 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4SqueezeLabels</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4SqueezeLabels</h1> -<p> -Module implementing labels that squeeze their contents to fit the size of the label. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4SqueezeLabel">E4SqueezeLabel</a></td> -<td>Class implementing a label that squeezes its contents to fit it's size.</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath">E4SqueezeLabelPath</a></td> -<td>Class implementing a label showing a file path compacted to fit it's size.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4SqueezeLabel" ID="E4SqueezeLabel"></a> -<h2>E4SqueezeLabel</h2> -<p> - Class implementing a label that squeezes its contents to fit it's size. -</p> -<h3>Derived from</h3> -QLabel -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4SqueezeLabel.__init__">E4SqueezeLabel</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4SqueezeLabel.paintEvent">paintEvent</a></td> -<td>Protected method called when some painting is required.</td> -</tr><tr> -<td><a href="#E4SqueezeLabel.setText">setText</a></td> -<td>Public method to set the label's text.</td> -</tr> -</table> -<a NAME="E4SqueezeLabel.__init__" ID="E4SqueezeLabel.__init__"></a> -<h4>E4SqueezeLabel (Constructor)</h4> -<b>E4SqueezeLabel</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent Widget (QWidget) -</dd> -</dl><a NAME="E4SqueezeLabel.paintEvent" ID="E4SqueezeLabel.paintEvent"></a> -<h4>E4SqueezeLabel.paintEvent</h4> -<b>paintEvent</b>(<i>event</i>) -<p> - Protected method called when some painting is required. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the paint event (QPaintEvent) -</dd> -</dl><a NAME="E4SqueezeLabel.setText" ID="E4SqueezeLabel.setText"></a> -<h4>E4SqueezeLabel.setText</h4> -<b>setText</b>(<i>txt</i>) -<p> - Public method to set the label's text. -</p><dl> -<dt><i>txt</i></dt> -<dd> -the text to be shown (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4SqueezeLabelPath" ID="E4SqueezeLabelPath"></a> -<h2>E4SqueezeLabelPath</h2> -<p> - Class implementing a label showing a file path compacted to fit it's size. -</p> -<h3>Derived from</h3> -QLabel -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4SqueezeLabelPath.__init__">E4SqueezeLabelPath</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath.length">length</a></td> -<td>Public method to return the length of a text in pixels.</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath.paintEvent">paintEvent</a></td> -<td>Protected method called when some painting is required.</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath.setPath">setPath</a></td> -<td>Public method to set the path of the label.</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath.setSurrounding">setSurrounding</a></td> -<td>Public method to set the surrounding of the path string.</td> -</tr><tr> -<td><a href="#E4SqueezeLabelPath.setTextPath">setTextPath</a></td> -<td>Public method to set the surrounding and the path of the label.</td> -</tr> -</table> -<a NAME="E4SqueezeLabelPath.__init__" ID="E4SqueezeLabelPath.__init__"></a> -<h4>E4SqueezeLabelPath (Constructor)</h4> -<b>E4SqueezeLabelPath</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent Widget (QWidget) -</dd> -</dl><a NAME="E4SqueezeLabelPath.length" ID="E4SqueezeLabelPath.length"></a> -<h4>E4SqueezeLabelPath.length</h4> -<b>length</b>(<i>txt</i>) -<p> - Public method to return the length of a text in pixels. -</p><dl> -<dt><i>txt</i></dt> -<dd> -text to calculate the length for after wrapped (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -length of the wrapped text in pixels (integer) -</dd> -</dl><a NAME="E4SqueezeLabelPath.paintEvent" ID="E4SqueezeLabelPath.paintEvent"></a> -<h4>E4SqueezeLabelPath.paintEvent</h4> -<b>paintEvent</b>(<i>event</i>) -<p> - Protected method called when some painting is required. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the paint event (QPaintEvent) -</dd> -</dl><a NAME="E4SqueezeLabelPath.setPath" ID="E4SqueezeLabelPath.setPath"></a> -<h4>E4SqueezeLabelPath.setPath</h4> -<b>setPath</b>(<i>path</i>) -<p> - Public method to set the path of the label. -</p><dl> -<dt><i>path</i></dt> -<dd> -path to be shown (string) -</dd> -</dl><a NAME="E4SqueezeLabelPath.setSurrounding" ID="E4SqueezeLabelPath.setSurrounding"></a> -<h4>E4SqueezeLabelPath.setSurrounding</h4> -<b>setSurrounding</b>(<i>surrounding</i>) -<p> - Public method to set the surrounding of the path string. -</p><dl> -<dt><i>surrounding</i></dt> -<dd> -the a string containg placeholders for the path (string) -</dd> -</dl><a NAME="E4SqueezeLabelPath.setTextPath" ID="E4SqueezeLabelPath.setTextPath"></a> -<h4>E4SqueezeLabelPath.setTextPath</h4> -<b>setTextPath</b>(<i>surrounding, path</i>) -<p> - Public method to set the surrounding and the path of the label. -</p><dl> -<dt><i>surrounding</i></dt> -<dd> -the a string containg placeholders for the path (string) -</dd><dt><i>path</i></dt> -<dd> -path to be shown (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4TabWidget.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,371 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4TabWidget</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4TabWidget</h1> -<p> -Module implementing a TabWidget class substituting QTabWidget. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4DnDTabBar">E4DnDTabBar</a></td> -<td>Class implementing a tab bar class substituting QTabBar.</td> -</tr><tr> -<td><a href="#E4TabWidget">E4TabWidget</a></td> -<td>Class implementing a tab widget class substituting QTabWidget.</td> -</tr><tr> -<td><a href="#E4WheelTabBar">E4WheelTabBar</a></td> -<td>Class implementing a tab bar class substituting QTabBar to support wheel events.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4DnDTabBar" ID="E4DnDTabBar"></a> -<h2>E4DnDTabBar</h2> -<p> - Class implementing a tab bar class substituting QTabBar. -</p><h4>Signals</h4> -<dl> -<dt>tabMoveRequested(int, int)</dt> -<dd> -emitted to signal a tab move request giving - the old and new index position -</dd> -</dl> -<h3>Derived from</h3> -E4WheelTabBar -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4DnDTabBar.__init__">E4DnDTabBar</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4DnDTabBar.dragEnterEvent">dragEnterEvent</a></td> -<td>Protected method to handle drag enter events.</td> -</tr><tr> -<td><a href="#E4DnDTabBar.dropEvent">dropEvent</a></td> -<td>Protected method to handle drop events.</td> -</tr><tr> -<td><a href="#E4DnDTabBar.mouseMoveEvent">mouseMoveEvent</a></td> -<td>Protected method to handle mouse move events.</td> -</tr><tr> -<td><a href="#E4DnDTabBar.mousePressEvent">mousePressEvent</a></td> -<td>Protected method to handle mouse press events.</td> -</tr> -</table> -<a NAME="E4DnDTabBar.__init__" ID="E4DnDTabBar.__init__"></a> -<h4>E4DnDTabBar (Constructor)</h4> -<b>E4DnDTabBar</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4DnDTabBar.dragEnterEvent" ID="E4DnDTabBar.dragEnterEvent"></a> -<h4>E4DnDTabBar.dragEnterEvent</h4> -<b>dragEnterEvent</b>(<i>event</i>) -<p> - Protected method to handle drag enter events. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the drag enter event (QDragEnterEvent) -</dd> -</dl><a NAME="E4DnDTabBar.dropEvent" ID="E4DnDTabBar.dropEvent"></a> -<h4>E4DnDTabBar.dropEvent</h4> -<b>dropEvent</b>(<i>event</i>) -<p> - Protected method to handle drop events. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the drop event (QDropEvent) -</dd> -</dl><a NAME="E4DnDTabBar.mouseMoveEvent" ID="E4DnDTabBar.mouseMoveEvent"></a> -<h4>E4DnDTabBar.mouseMoveEvent</h4> -<b>mouseMoveEvent</b>(<i>event</i>) -<p> - Protected method to handle mouse move events. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the mouse move event (QMouseEvent) -</dd> -</dl><a NAME="E4DnDTabBar.mousePressEvent" ID="E4DnDTabBar.mousePressEvent"></a> -<h4>E4DnDTabBar.mousePressEvent</h4> -<b>mousePressEvent</b>(<i>event</i>) -<p> - Protected method to handle mouse press events. -</p><dl> -<dt><i>event</i></dt> -<dd> -reference to the mouse press event (QMouseEvent) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4TabWidget" ID="E4TabWidget"></a> -<h2>E4TabWidget</h2> -<p> - Class implementing a tab widget class substituting QTabWidget. -</p><p> - It provides slots to show the previous and next tab and give - them the input focus and it allows to have a context menu for the tabs. -</p><h4>Signals</h4> -<dl> -<dt>customTabContextMenuRequested(const QPoint & point, int index)</dt> -<dd> -emitted when - a context menu for a tab is requested -</dd> -</dl> -<h3>Derived from</h3> -QTabWidget -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4TabWidget.__init__">E4TabWidget</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4TabWidget.__currentChanged">__currentChanged</a></td> -<td>Private slot to handle the currentChanged signal.</td> -</tr><tr> -<td><a href="#E4TabWidget.__freeSide">__freeSide</a></td> -<td>Private method to determine the free side of a tab.</td> -</tr><tr> -<td><a href="#E4TabWidget.__handleTabCustomContextMenuRequested">__handleTabCustomContextMenuRequested</a></td> -<td>Private slot to handle the context menu request for the tabbar.</td> -</tr><tr> -<td><a href="#E4TabWidget.animationLabel">animationLabel</a></td> -<td>Public slot to set an animated icon.</td> -</tr><tr> -<td><a href="#E4TabWidget.moveTab">moveTab</a></td> -<td>Public method to move a tab to a new index.</td> -</tr><tr> -<td><a href="#E4TabWidget.nextTab">nextTab</a></td> -<td>Public slot used to show the next tab.</td> -</tr><tr> -<td><a href="#E4TabWidget.prevTab">prevTab</a></td> -<td>Public slot used to show the previous tab.</td> -</tr><tr> -<td><a href="#E4TabWidget.resetAnimation">resetAnimation</a></td> -<td>Public slot to reset an animated icon.</td> -</tr><tr> -<td><a href="#E4TabWidget.selectTab">selectTab</a></td> -<td>Public method to get the index of a tab given a position.</td> -</tr><tr> -<td><a href="#E4TabWidget.setTabContextMenuPolicy">setTabContextMenuPolicy</a></td> -<td>Public method to set the context menu policy of the tab.</td> -</tr><tr> -<td><a href="#E4TabWidget.switchTab">switchTab</a></td> -<td>Public slot used to switch between the current and the previous current tab.</td> -</tr> -</table> -<a NAME="E4TabWidget.__init__" ID="E4TabWidget.__init__"></a> -<h4>E4TabWidget (Constructor)</h4> -<b>E4TabWidget</b>(<i>parent = None, dnd = False</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd><dt><i>dnd=</i></dt> -<dd> -flag indicating the support for Drag & Drop (boolean) -</dd> -</dl><a NAME="E4TabWidget.__currentChanged" ID="E4TabWidget.__currentChanged"></a> -<h4>E4TabWidget.__currentChanged</h4> -<b>__currentChanged</b>(<i>index</i>) -<p> - Private slot to handle the currentChanged signal. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the current tab -</dd> -</dl><a NAME="E4TabWidget.__freeSide" ID="E4TabWidget.__freeSide"></a> -<h4>E4TabWidget.__freeSide</h4> -<b>__freeSide</b>(<i></i>) -<p> - Private method to determine the free side of a tab. -</p><dl> -<dt>Returns:</dt> -<dd> -free side (QTabBar.ButtonPosition) -</dd> -</dl><a NAME="E4TabWidget.__handleTabCustomContextMenuRequested" ID="E4TabWidget.__handleTabCustomContextMenuRequested"></a> -<h4>E4TabWidget.__handleTabCustomContextMenuRequested</h4> -<b>__handleTabCustomContextMenuRequested</b>(<i>point</i>) -<p> - Private slot to handle the context menu request for the tabbar. -</p><dl> -<dt><i>point</i></dt> -<dd> -point the context menu was requested (QPoint) -</dd> -</dl><a NAME="E4TabWidget.animationLabel" ID="E4TabWidget.animationLabel"></a> -<h4>E4TabWidget.animationLabel</h4> -<b>animationLabel</b>(<i>index, animationFile</i>) -<p> - Public slot to set an animated icon. -</p><dl> -<dt><i>index</i></dt> -<dd> -tab index (integer) -</dd><dt><i>animationFile</i></dt> -<dd> -name of the file containing the animation (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the created label (QLabel) -</dd> -</dl><a NAME="E4TabWidget.moveTab" ID="E4TabWidget.moveTab"></a> -<h4>E4TabWidget.moveTab</h4> -<b>moveTab</b>(<i>curIndex, newIndex</i>) -<p> - Public method to move a tab to a new index. -</p><dl> -<dt><i>curIndex</i></dt> -<dd> -index of tab to be moved (integer) -</dd><dt><i>newIndex</i></dt> -<dd> -index the tab should be moved to (integer) -</dd> -</dl><a NAME="E4TabWidget.nextTab" ID="E4TabWidget.nextTab"></a> -<h4>E4TabWidget.nextTab</h4> -<b>nextTab</b>(<i></i>) -<p> - Public slot used to show the next tab. -</p><a NAME="E4TabWidget.prevTab" ID="E4TabWidget.prevTab"></a> -<h4>E4TabWidget.prevTab</h4> -<b>prevTab</b>(<i></i>) -<p> - Public slot used to show the previous tab. -</p><a NAME="E4TabWidget.resetAnimation" ID="E4TabWidget.resetAnimation"></a> -<h4>E4TabWidget.resetAnimation</h4> -<b>resetAnimation</b>(<i>index</i>) -<p> - Public slot to reset an animated icon. -</p><dl> -<dt><i>index</i></dt> -<dd> -tab index (integer) -</dd> -</dl><a NAME="E4TabWidget.selectTab" ID="E4TabWidget.selectTab"></a> -<h4>E4TabWidget.selectTab</h4> -<b>selectTab</b>(<i>pos</i>) -<p> - Public method to get the index of a tab given a position. -</p><dl> -<dt><i>pos</i></dt> -<dd> -position determining the tab index (QPoint) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the tab (integer) -</dd> -</dl><a NAME="E4TabWidget.setTabContextMenuPolicy" ID="E4TabWidget.setTabContextMenuPolicy"></a> -<h4>E4TabWidget.setTabContextMenuPolicy</h4> -<b>setTabContextMenuPolicy</b>(<i>policy</i>) -<p> - Public method to set the context menu policy of the tab. -</p><dl> -<dt><i>policy</i></dt> -<dd> -context menu policy to set (Qt.ContextMenuPolicy) -</dd> -</dl><a NAME="E4TabWidget.switchTab" ID="E4TabWidget.switchTab"></a> -<h4>E4TabWidget.switchTab</h4> -<b>switchTab</b>(<i></i>) -<p> - Public slot used to switch between the current and the previous current tab. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4WheelTabBar" ID="E4WheelTabBar"></a> -<h2>E4WheelTabBar</h2> -<p> - Class implementing a tab bar class substituting QTabBar to support wheel events. -</p> -<h3>Derived from</h3> -QTabBar -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4WheelTabBar.__init__">E4WheelTabBar</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4WheelTabBar.wheelEvent">wheelEvent</a></td> -<td>Protected slot to support wheel events.</td> -</tr> -</table> -<a NAME="E4WheelTabBar.__init__" ID="E4WheelTabBar.__init__"></a> -<h4>E4WheelTabBar (Constructor)</h4> -<b>E4WheelTabBar</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4WheelTabBar.wheelEvent" ID="E4WheelTabBar.wheelEvent"></a> -<h4>E4WheelTabBar.wheelEvent</h4> -<b>wheelEvent</b>(<i>event</i>) -<p> - Protected slot to support wheel events. -</p><dl> -<dt><i>reference</i></dt> -<dd> -to the wheel event (QWheelEvent) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4TableView.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4TableView</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4TableView</h1> -<p> -Module implementing specialized table views. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4TableView">E4TableView</a></td> -<td>Class implementing a table view supporting removal of entries.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4TableView" ID="E4TableView"></a> -<h2>E4TableView</h2> -<p> - Class implementing a table view supporting removal of entries. -</p> -<h3>Derived from</h3> -QTableView -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4TableView.keyPressEvent">keyPressEvent</a></td> -<td>Protected method implementing special key handling.</td> -</tr><tr> -<td><a href="#E4TableView.removeAll">removeAll</a></td> -<td>Public method to clear the view.</td> -</tr><tr> -<td><a href="#E4TableView.removeSelected">removeSelected</a></td> -<td>Public method to remove the selected entries.</td> -</tr> -</table> -<a NAME="E4TableView.keyPressEvent" ID="E4TableView.keyPressEvent"></a> -<h4>E4TableView.keyPressEvent</h4> -<b>keyPressEvent</b>(<i>evt</i>) -<p> - Protected method implementing special key handling. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QKeyEvent) -</dd> -</dl><a NAME="E4TableView.removeAll" ID="E4TableView.removeAll"></a> -<h4>E4TableView.removeAll</h4> -<b>removeAll</b>(<i></i>) -<p> - Public method to clear the view. -</p><a NAME="E4TableView.removeSelected" ID="E4TableView.removeSelected"></a> -<h4>E4TableView.removeSelected</h4> -<b>removeSelected</b>(<i></i>) -<p> - Public method to remove the selected entries. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ToolBarDialog.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,255 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ToolBarDialog</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ToolBarDialog</h1> -<p> -Module implementing a toolbar configuration dialog. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4ToolBarDialog">E4ToolBarDialog</a></td> -<td>Class implementing a toolbar configuration dialog.</td> -</tr><tr> -<td><a href="#E4ToolBarItem">E4ToolBarItem</a></td> -<td>Class storing data belonging to a toolbar entry of the toolbar dialog.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4ToolBarDialog" ID="E4ToolBarDialog"></a> -<h2>E4ToolBarDialog</h2> -<p> - Class implementing a toolbar configuration dialog. -</p> -<h3>Derived from</h3> -QDialog, Ui_E4ToolBarDialog -<h3>Class Attributes</h3> -<table> -<tr><td>ActionIdRole</td></tr><tr><td>WidgetActionRole</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ToolBarDialog.__init__">E4ToolBarDialog</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__resetCurrentToolbar">__resetCurrentToolbar</a></td> -<td>Private method to revert all changes made to the current toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__restoreCurrentToolbar">__restoreCurrentToolbar</a></td> -<td>Private methdo to restore the current toolbar to the given list of actions.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__restoreCurrentToolbarToDefault">__restoreCurrentToolbarToDefault</a></td> -<td>Private method to set the current toolbar to it's default configuration.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__saveToolBars">__saveToolBars</a></td> -<td>Private method to save the configured toolbars.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__setupButtons">__setupButtons</a></td> -<td>Private slot to set the buttons state.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.__toolbarComboBox_currentIndexChanged">__toolbarComboBox_currentIndexChanged</a></td> -<td>Private slot called upon a selection of the current toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_actionsTree_currentItemChanged">on_actionsTree_currentItemChanged</a></td> -<td>Private slot called, when the currently selected action changes.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> -<td>Private slot called, when a button of the button box was clicked.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_downButton_clicked">on_downButton_clicked</a></td> -<td>Private slot used to move an action down in the list.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_leftButton_clicked">on_leftButton_clicked</a></td> -<td>Private slot to delete an action from the list.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_newButton_clicked">on_newButton_clicked</a></td> -<td>Private slot to create a new toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> -<td>Private slot to remove a custom toolbar</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_renameButton_clicked">on_renameButton_clicked</a></td> -<td>Private slot to rename a custom toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_rightButton_clicked">on_rightButton_clicked</a></td> -<td>Private slot to add an action to the list.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_toolbarActionsList_currentItemChanged">on_toolbarActionsList_currentItemChanged</a></td> -<td>Slot documentation goes here.</td> -</tr><tr> -<td><a href="#E4ToolBarDialog.on_upButton_clicked">on_upButton_clicked</a></td> -<td>Private slot used to move an action up in the list.</td> -</tr> -</table> -<a NAME="E4ToolBarDialog.__init__" ID="E4ToolBarDialog.__init__"></a> -<h4>E4ToolBarDialog (Constructor)</h4> -<b>E4ToolBarDialog</b>(<i>toolBarManager, parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>toolBarManager</i></dt> -<dd> -reference to a toolbar manager object (E4ToolBarManager) -</dd><dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4ToolBarDialog.__resetCurrentToolbar" ID="E4ToolBarDialog.__resetCurrentToolbar"></a> -<h4>E4ToolBarDialog.__resetCurrentToolbar</h4> -<b>__resetCurrentToolbar</b>(<i></i>) -<p> - Private method to revert all changes made to the current toolbar. -</p><a NAME="E4ToolBarDialog.__restoreCurrentToolbar" ID="E4ToolBarDialog.__restoreCurrentToolbar"></a> -<h4>E4ToolBarDialog.__restoreCurrentToolbar</h4> -<b>__restoreCurrentToolbar</b>(<i>actions</i>) -<p> - Private methdo to restore the current toolbar to the given list of actions. -</p><dl> -<dt><i>actions</i></dt> -<dd> -list of actions to set for the current toolbar (list of QAction) -</dd> -</dl><a NAME="E4ToolBarDialog.__restoreCurrentToolbarToDefault" ID="E4ToolBarDialog.__restoreCurrentToolbarToDefault"></a> -<h4>E4ToolBarDialog.__restoreCurrentToolbarToDefault</h4> -<b>__restoreCurrentToolbarToDefault</b>(<i></i>) -<p> - Private method to set the current toolbar to it's default configuration. -</p><a NAME="E4ToolBarDialog.__saveToolBars" ID="E4ToolBarDialog.__saveToolBars"></a> -<h4>E4ToolBarDialog.__saveToolBars</h4> -<b>__saveToolBars</b>(<i></i>) -<p> - Private method to save the configured toolbars. -</p><a NAME="E4ToolBarDialog.__setupButtons" ID="E4ToolBarDialog.__setupButtons"></a> -<h4>E4ToolBarDialog.__setupButtons</h4> -<b>__setupButtons</b>(<i></i>) -<p> - Private slot to set the buttons state. -</p><a NAME="E4ToolBarDialog.__toolbarComboBox_currentIndexChanged" ID="E4ToolBarDialog.__toolbarComboBox_currentIndexChanged"></a> -<h4>E4ToolBarDialog.__toolbarComboBox_currentIndexChanged</h4> -<b>__toolbarComboBox_currentIndexChanged</b>(<i>index</i>) -<p> - Private slot called upon a selection of the current toolbar. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the new current toolbar (integer) -</dd> -</dl><a NAME="E4ToolBarDialog.on_actionsTree_currentItemChanged" ID="E4ToolBarDialog.on_actionsTree_currentItemChanged"></a> -<h4>E4ToolBarDialog.on_actionsTree_currentItemChanged</h4> -<b>on_actionsTree_currentItemChanged</b>(<i>current, previous</i>) -<p> - Private slot called, when the currently selected action changes. -</p><a NAME="E4ToolBarDialog.on_buttonBox_clicked" ID="E4ToolBarDialog.on_buttonBox_clicked"></a> -<h4>E4ToolBarDialog.on_buttonBox_clicked</h4> -<b>on_buttonBox_clicked</b>(<i>button</i>) -<p> - Private slot called, when a button of the button box was clicked. -</p><a NAME="E4ToolBarDialog.on_downButton_clicked" ID="E4ToolBarDialog.on_downButton_clicked"></a> -<h4>E4ToolBarDialog.on_downButton_clicked</h4> -<b>on_downButton_clicked</b>(<i></i>) -<p> - Private slot used to move an action down in the list. -</p><a NAME="E4ToolBarDialog.on_leftButton_clicked" ID="E4ToolBarDialog.on_leftButton_clicked"></a> -<h4>E4ToolBarDialog.on_leftButton_clicked</h4> -<b>on_leftButton_clicked</b>(<i></i>) -<p> - Private slot to delete an action from the list. -</p><a NAME="E4ToolBarDialog.on_newButton_clicked" ID="E4ToolBarDialog.on_newButton_clicked"></a> -<h4>E4ToolBarDialog.on_newButton_clicked</h4> -<b>on_newButton_clicked</b>(<i></i>) -<p> - Private slot to create a new toolbar. -</p><a NAME="E4ToolBarDialog.on_removeButton_clicked" ID="E4ToolBarDialog.on_removeButton_clicked"></a> -<h4>E4ToolBarDialog.on_removeButton_clicked</h4> -<b>on_removeButton_clicked</b>(<i></i>) -<p> - Private slot to remove a custom toolbar -</p><a NAME="E4ToolBarDialog.on_renameButton_clicked" ID="E4ToolBarDialog.on_renameButton_clicked"></a> -<h4>E4ToolBarDialog.on_renameButton_clicked</h4> -<b>on_renameButton_clicked</b>(<i></i>) -<p> - Private slot to rename a custom toolbar. -</p><a NAME="E4ToolBarDialog.on_rightButton_clicked" ID="E4ToolBarDialog.on_rightButton_clicked"></a> -<h4>E4ToolBarDialog.on_rightButton_clicked</h4> -<b>on_rightButton_clicked</b>(<i></i>) -<p> - Private slot to add an action to the list. -</p><a NAME="E4ToolBarDialog.on_toolbarActionsList_currentItemChanged" ID="E4ToolBarDialog.on_toolbarActionsList_currentItemChanged"></a> -<h4>E4ToolBarDialog.on_toolbarActionsList_currentItemChanged</h4> -<b>on_toolbarActionsList_currentItemChanged</b>(<i>current, previous</i>) -<p> - Slot documentation goes here. -</p><a NAME="E4ToolBarDialog.on_upButton_clicked" ID="E4ToolBarDialog.on_upButton_clicked"></a> -<h4>E4ToolBarDialog.on_upButton_clicked</h4> -<b>on_upButton_clicked</b>(<i></i>) -<p> - Private slot used to move an action up in the list. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4ToolBarItem" ID="E4ToolBarItem"></a> -<h2>E4ToolBarItem</h2> -<p> - Class storing data belonging to a toolbar entry of the toolbar dialog. -</p> -<h3>Derived from</h3> -object -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ToolBarItem.__init__">E4ToolBarItem</a></td> -<td>Constructor</td> -</tr> -</table> -<a NAME="E4ToolBarItem.__init__" ID="E4ToolBarItem.__init__"></a> -<h4>E4ToolBarItem (Constructor)</h4> -<b>E4ToolBarItem</b>(<i>toolBarId, actionIDs, default</i>) -<p> - Constructor -</p><dl> -<dt><i>toolBarId</i></dt> -<dd> -id of the toolbar object (integer) -</dd><dt><i>actionIDs</i></dt> -<dd> -list of action IDs belonging to the toolbar (list of integer) -</dd><dt><i>default</i></dt> -<dd> -flag indicating a default toolbar (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ToolBarManager.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,558 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ToolBarManager</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ToolBarManager</h1> -<p> -Module implementing a toolbar manager class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4ToolBarManager">E4ToolBarManager</a></td> -<td>Class implementing a toolbar manager.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4ToolBarManager" ID="E4ToolBarManager"></a> -<h2>E4ToolBarManager</h2> -<p> - Class implementing a toolbar manager. -</p> -<h3>Derived from</h3> -QObject -<h3>Class Attributes</h3> -<table> -<tr><td>CustomToolBarMarker</td></tr><tr><td>ToolBarMarker</td></tr><tr><td>VersionMarker</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4ToolBarManager.__init__">E4ToolBarManager</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4ToolBarManager.__findAction">__findAction</a></td> -<td>Private method to find an action by name.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.__findDefaultToolBar">__findDefaultToolBar</a></td> -<td>Private method to find a default toolbar by name.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.__toolBarByName">__toolBarByName</a></td> -<td>Private slot to get a toolbar by it's object name.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.actionById">actionById</a></td> -<td>Public method to get an action given it's id.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.addAction">addAction</a></td> -<td>Public method to add an action to be managed.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.addToolBar">addToolBar</a></td> -<td>Public method to add a toolbar to be managed.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.categories">categories</a></td> -<td>Public method to get the list of categories.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.categoryActions">categoryActions</a></td> -<td>Public method to get the actions belonging to a category.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.createToolBar">createToolBar</a></td> -<td>Public method to create a custom toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.defaultToolBarActions">defaultToolBarActions</a></td> -<td>Public method to get a default toolbar's actions given it's id.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.defaultToolBars">defaultToolBars</a></td> -<td>Public method to get all toolbars added with addToolBar().</td> -</tr><tr> -<td><a href="#E4ToolBarManager.deleteToolBar">deleteToolBar</a></td> -<td>Public method to remove a custom toolbar created with createToolBar().</td> -</tr><tr> -<td><a href="#E4ToolBarManager.isDefaultToolBar">isDefaultToolBar</a></td> -<td>Public method to check, if a toolbar was added with addToolBar().</td> -</tr><tr> -<td><a href="#E4ToolBarManager.isWidgetAction">isWidgetAction</a></td> -<td>Public method to check, if action is a widget action.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.mainWindow">mainWindow</a></td> -<td>Public method to get the reference to the main window.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.removeAction">removeAction</a></td> -<td>Public method to remove an action from the manager.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.removeToolBar">removeToolBar</a></td> -<td>Public method to remove a toolbar added with addToolBar().</td> -</tr><tr> -<td><a href="#E4ToolBarManager.removeWidgetActions">removeWidgetActions</a></td> -<td>Public method to remove widget actions.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.renameToolBar">renameToolBar</a></td> -<td>Public method to give a toolbar a new title.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.resetAllToolBars">resetAllToolBars</a></td> -<td>Public method to reset all toolbars to their default state.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.resetToolBar">resetToolBar</a></td> -<td>Public method to reset a toolbar to it's default state.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.restoreState">restoreState</a></td> -<td>Public method to restore the state of the toolbar manager.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.saveState">saveState</a></td> -<td>Public method to save the state of the toolbar manager.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.setMainWindow">setMainWindow</a></td> -<td>Public method to set the reference to the main window.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.setToolBar">setToolBar</a></td> -<td>Public method to set the actions of a toolbar.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.setToolBars">setToolBars</a></td> -<td>Public method to set the actions of several toolbars.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.toolBarActions">toolBarActions</a></td> -<td>Public method to get a toolbar's actions given it's id.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.toolBarById">toolBarById</a></td> -<td>Public method to get a toolbar given it's id.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.toolBarWidgetAction">toolBarWidgetAction</a></td> -<td>Public method to get the toolbar for a widget action.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.toolBars">toolBars</a></td> -<td>Public method to get all toolbars.</td> -</tr><tr> -<td><a href="#E4ToolBarManager.toolBarsActions">toolBarsActions</a></td> -<td>Public method to get all toolbars and their actions.</td> -</tr> -</table> -<a NAME="E4ToolBarManager.__init__" ID="E4ToolBarManager.__init__"></a> -<h4>E4ToolBarManager (Constructor)</h4> -<b>E4ToolBarManager</b>(<i>ui = None, parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>ui</i></dt> -<dd> -reference to the user interface object (UI.UserInterface) -</dd><dt><i>parent</i></dt> -<dd> -reference to the parent object (QObject) -</dd> -</dl><a NAME="E4ToolBarManager.__findAction" ID="E4ToolBarManager.__findAction"></a> -<h4>E4ToolBarManager.__findAction</h4> -<b>__findAction</b>(<i>name</i>) -<p> - Private method to find an action by name. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the action to search for (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the action (QAction) -</dd> -</dl><a NAME="E4ToolBarManager.__findDefaultToolBar" ID="E4ToolBarManager.__findDefaultToolBar"></a> -<h4>E4ToolBarManager.__findDefaultToolBar</h4> -<b>__findDefaultToolBar</b>(<i>name</i>) -<p> - Private method to find a default toolbar by name. -</p><dl> -<dt><i>name</i></dt> -<dd> -name of the default toolbar to search for (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the default toolbar (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.__toolBarByName" ID="E4ToolBarManager.__toolBarByName"></a> -<h4>E4ToolBarManager.__toolBarByName</h4> -<b>__toolBarByName</b>(<i>name</i>) -<p> - Private slot to get a toolbar by it's object name. -</p><dl> -<dt><i>name</i></dt> -<dd> -object name of the toolbar (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the toolbar (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.actionById" ID="E4ToolBarManager.actionById"></a> -<h4>E4ToolBarManager.actionById</h4> -<b>actionById</b>(<i>aID</i>) -<p> - Public method to get an action given it's id. -</p><dl> -<dt><i>aID</i></dt> -<dd> -id of the action object (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the action (QAction) -</dd> -</dl><a NAME="E4ToolBarManager.addAction" ID="E4ToolBarManager.addAction"></a> -<h4>E4ToolBarManager.addAction</h4> -<b>addAction</b>(<i>action, category</i>) -<p> - Public method to add an action to be managed. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action to be managed (QAction) -</dd><dt><i>category</i></dt> -<dd> -category for the toolbar (string) -</dd> -</dl><a NAME="E4ToolBarManager.addToolBar" ID="E4ToolBarManager.addToolBar"></a> -<h4>E4ToolBarManager.addToolBar</h4> -<b>addToolBar</b>(<i>toolBar, category</i>) -<p> - Public method to add a toolbar to be managed. -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to be managed (QToolBar) -</dd><dt><i>category</i></dt> -<dd> -category for the toolbar (string) -</dd> -</dl><a NAME="E4ToolBarManager.categories" ID="E4ToolBarManager.categories"></a> -<h4>E4ToolBarManager.categories</h4> -<b>categories</b>(<i></i>) -<p> - Public method to get the list of categories. -</p><dl> -<dt>Returns:</dt> -<dd> -list of categories (list of string) -</dd> -</dl><a NAME="E4ToolBarManager.categoryActions" ID="E4ToolBarManager.categoryActions"></a> -<h4>E4ToolBarManager.categoryActions</h4> -<b>categoryActions</b>(<i>category</i>) -<p> - Public method to get the actions belonging to a category. -</p><dl> -<dt><i>category</i></dt> -<dd> -category for the toolbar (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of actions (list of QAction) -</dd> -</dl><a NAME="E4ToolBarManager.createToolBar" ID="E4ToolBarManager.createToolBar"></a> -<h4>E4ToolBarManager.createToolBar</h4> -<b>createToolBar</b>(<i>title</i>) -<p> - Public method to create a custom toolbar. -</p><dl> -<dt><i>title</i></dt> -<dd> -title to be used for the toolbar (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the created toolbar (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.defaultToolBarActions" ID="E4ToolBarManager.defaultToolBarActions"></a> -<h4>E4ToolBarManager.defaultToolBarActions</h4> -<b>defaultToolBarActions</b>(<i>tbID</i>) -<p> - Public method to get a default toolbar's actions given it's id. -</p><dl> -<dt><i>tbID</i></dt> -<dd> -id of the default toolbar object (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of actions (list of QAction) -</dd> -</dl><a NAME="E4ToolBarManager.defaultToolBars" ID="E4ToolBarManager.defaultToolBars"></a> -<h4>E4ToolBarManager.defaultToolBars</h4> -<b>defaultToolBars</b>(<i></i>) -<p> - Public method to get all toolbars added with addToolBar(). -</p><dl> -<dt>Returns:</dt> -<dd> -list of all default toolbars (list of QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.deleteToolBar" ID="E4ToolBarManager.deleteToolBar"></a> -<h4>E4ToolBarManager.deleteToolBar</h4> -<b>deleteToolBar</b>(<i>toolBar</i>) -<p> - Public method to remove a custom toolbar created with createToolBar(). -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to be managed (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.isDefaultToolBar" ID="E4ToolBarManager.isDefaultToolBar"></a> -<h4>E4ToolBarManager.isDefaultToolBar</h4> -<b>isDefaultToolBar</b>(<i>toolBar</i>) -<p> - Public method to check, if a toolbar was added with addToolBar(). -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to be checked (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.isWidgetAction" ID="E4ToolBarManager.isWidgetAction"></a> -<h4>E4ToolBarManager.isWidgetAction</h4> -<b>isWidgetAction</b>(<i>action</i>) -<p> - Public method to check, if action is a widget action. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action to be checked (QAction) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating a widget action (boolean) -</dd> -</dl><a NAME="E4ToolBarManager.mainWindow" ID="E4ToolBarManager.mainWindow"></a> -<h4>E4ToolBarManager.mainWindow</h4> -<b>mainWindow</b>(<i></i>) -<p> - Public method to get the reference to the main window. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to the main window (QMainWindow) -</dd> -</dl><a NAME="E4ToolBarManager.removeAction" ID="E4ToolBarManager.removeAction"></a> -<h4>E4ToolBarManager.removeAction</h4> -<b>removeAction</b>(<i>action</i>) -<p> - Public method to remove an action from the manager. -</p><dl> -<dt><i>action</i></dt> -<dd> -reference to the action to be removed (QAction) -</dd> -</dl><a NAME="E4ToolBarManager.removeToolBar" ID="E4ToolBarManager.removeToolBar"></a> -<h4>E4ToolBarManager.removeToolBar</h4> -<b>removeToolBar</b>(<i>toolBar</i>) -<p> - Public method to remove a toolbar added with addToolBar(). -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to be removed (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.removeWidgetActions" ID="E4ToolBarManager.removeWidgetActions"></a> -<h4>E4ToolBarManager.removeWidgetActions</h4> -<b>removeWidgetActions</b>(<i>actions</i>) -<p> - Public method to remove widget actions. -</p><dl> -<dt><i>actions</i></dt> -<dd> -dictionary with toolbar id as key and - a list of widget actions as value -</dd> -</dl><a NAME="E4ToolBarManager.renameToolBar" ID="E4ToolBarManager.renameToolBar"></a> -<h4>E4ToolBarManager.renameToolBar</h4> -<b>renameToolBar</b>(<i>toolBar, title</i>) -<p> - Public method to give a toolbar a new title. -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to be managed (QToolBar) -</dd><dt><i>title</i></dt> -<dd> -title to be used for the toolbar (string) -</dd> -</dl><a NAME="E4ToolBarManager.resetAllToolBars" ID="E4ToolBarManager.resetAllToolBars"></a> -<h4>E4ToolBarManager.resetAllToolBars</h4> -<b>resetAllToolBars</b>(<i></i>) -<p> - Public method to reset all toolbars to their default state. -</p><a NAME="E4ToolBarManager.resetToolBar" ID="E4ToolBarManager.resetToolBar"></a> -<h4>E4ToolBarManager.resetToolBar</h4> -<b>resetToolBar</b>(<i>toolBar</i>) -<p> - Public method to reset a toolbar to it's default state. -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to configure (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.restoreState" ID="E4ToolBarManager.restoreState"></a> -<h4>E4ToolBarManager.restoreState</h4> -<b>restoreState</b>(<i>state, version = 0</i>) -<p> - Public method to restore the state of the toolbar manager. -</p><dl> -<dt><i>state</i></dt> -<dd> -byte array containing the saved state (QByteArray) -</dd><dt><i>version</i></dt> -<dd> -version number stored with the data (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating success (boolean) -</dd> -</dl><a NAME="E4ToolBarManager.saveState" ID="E4ToolBarManager.saveState"></a> -<h4>E4ToolBarManager.saveState</h4> -<b>saveState</b>(<i>version = 0</i>) -<p> - Public method to save the state of the toolbar manager. -</p><dl> -<dt><i>version</i></dt> -<dd> -version number stored with the data (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -saved state as a byte array (QByteArray) -</dd> -</dl><a NAME="E4ToolBarManager.setMainWindow" ID="E4ToolBarManager.setMainWindow"></a> -<h4>E4ToolBarManager.setMainWindow</h4> -<b>setMainWindow</b>(<i>mainWindow</i>) -<p> - Public method to set the reference to the main window. -</p><dl> -<dt><i>mainWindow</i></dt> -<dd> -reference to the main window (QMainWindow) -</dd> -</dl><a NAME="E4ToolBarManager.setToolBar" ID="E4ToolBarManager.setToolBar"></a> -<h4>E4ToolBarManager.setToolBar</h4> -<b>setToolBar</b>(<i>toolBar, actions</i>) -<p> - Public method to set the actions of a toolbar. -</p><dl> -<dt><i>toolBar</i></dt> -<dd> -reference to the toolbar to configure (QToolBar) -</dd><dt><i>actions</i></dt> -<dd> -list of actions to be set (list of QAction) -</dd> -</dl><a NAME="E4ToolBarManager.setToolBars" ID="E4ToolBarManager.setToolBars"></a> -<h4>E4ToolBarManager.setToolBars</h4> -<b>setToolBars</b>(<i>toolBars</i>) -<p> - Public method to set the actions of several toolbars. -</p><dl> -<dt><i>toolBars</i></dt> -<dd> -dictionary with toolbar id as key and - a list of actions as value -</dd> -</dl><a NAME="E4ToolBarManager.toolBarActions" ID="E4ToolBarManager.toolBarActions"></a> -<h4>E4ToolBarManager.toolBarActions</h4> -<b>toolBarActions</b>(<i>tbID</i>) -<p> - Public method to get a toolbar's actions given it's id. -</p><dl> -<dt><i>tbID</i></dt> -<dd> -id of the toolbar object (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -list of actions (list of QAction) -</dd> -</dl><a NAME="E4ToolBarManager.toolBarById" ID="E4ToolBarManager.toolBarById"></a> -<h4>E4ToolBarManager.toolBarById</h4> -<b>toolBarById</b>(<i>tbID</i>) -<p> - Public method to get a toolbar given it's id. -</p><dl> -<dt><i>tbID</i></dt> -<dd> -id of the toolbar object (integer) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the toolbar (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.toolBarWidgetAction" ID="E4ToolBarManager.toolBarWidgetAction"></a> -<h4>E4ToolBarManager.toolBarWidgetAction</h4> -<b>toolBarWidgetAction</b>(<i>action</i>) -<p> - Public method to get the toolbar for a widget action. -</p><dl> -<dt><i>action</i></dt> -<dd> -widget action to check for (QAction) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -reference to the toolbar containing action (QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.toolBars" ID="E4ToolBarManager.toolBars"></a> -<h4>E4ToolBarManager.toolBars</h4> -<b>toolBars</b>(<i></i>) -<p> - Public method to get all toolbars. -</p><dl> -<dt>Returns:</dt> -<dd> -list of all toolbars (list of QToolBar) -</dd> -</dl><a NAME="E4ToolBarManager.toolBarsActions" ID="E4ToolBarManager.toolBarsActions"></a> -<h4>E4ToolBarManager.toolBarsActions</h4> -<b>toolBarsActions</b>(<i></i>) -<p> - Public method to get all toolbars and their actions. -</p><dl> -<dt>Returns:</dt> -<dd> -reference to dictionary of toolbar IDs as key and list - of actions as values -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4ToolBox.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,204 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4ToolBox</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4ToolBox</h1> -<p> -Module implementing a horizontal and a vertical toolbox class. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4HorizontalToolBox">E4HorizontalToolBox</a></td> -<td>Class implementing a vertical QToolBox like widget.</td> -</tr><tr> -<td><a href="#E4VerticalToolBox">E4VerticalToolBox</a></td> -<td>Class implementing a ToolBox class substituting QToolBox to support wheel events.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4HorizontalToolBox" ID="E4HorizontalToolBox"></a> -<h2>E4HorizontalToolBox</h2> -<p> - Class implementing a vertical QToolBox like widget. -</p> -<h3>Derived from</h3> -E4TabWidget -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4HorizontalToolBox.__init__">E4HorizontalToolBox</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4HorizontalToolBox.addItem">addItem</a></td> -<td>Public method to add a widget to the toolbox.</td> -</tr><tr> -<td><a href="#E4HorizontalToolBox.insertItem">insertItem</a></td> -<td>Public method to add a widget to the toolbox.</td> -</tr><tr> -<td><a href="#E4HorizontalToolBox.setItemEnabled">setItemEnabled</a></td> -<td>Public method to set the enabled state of an item.</td> -</tr><tr> -<td><a href="#E4HorizontalToolBox.setItemToolTip">setItemToolTip</a></td> -<td>Public method to set the tooltip of an item.</td> -</tr> -</table> -<a NAME="E4HorizontalToolBox.__init__" ID="E4HorizontalToolBox.__init__"></a> -<h4>E4HorizontalToolBox (Constructor)</h4> -<b>E4HorizontalToolBox</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4HorizontalToolBox.addItem" ID="E4HorizontalToolBox.addItem"></a> -<h4>E4HorizontalToolBox.addItem</h4> -<b>addItem</b>(<i>widget, icon, text</i>) -<p> - Public method to add a widget to the toolbox. -</p><dl> -<dt><i>widget</i></dt> -<dd> -reference to the widget to be added (QWidget) -</dd><dt><i>icon</i></dt> -<dd> -the icon to be shown (QIcon) -</dd><dt><i>text</i></dt> -<dd> -the text to be shown (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the added widget (integer) -</dd> -</dl><a NAME="E4HorizontalToolBox.insertItem" ID="E4HorizontalToolBox.insertItem"></a> -<h4>E4HorizontalToolBox.insertItem</h4> -<b>insertItem</b>(<i>index, widget, icon, text</i>) -<p> - Public method to add a widget to the toolbox. -</p><dl> -<dt><i>index</i></dt> -<dd> -position at which the widget should be inserted (integer) -</dd><dt><i>widget</i></dt> -<dd> -reference to the widget to be added (QWidget) -</dd><dt><i>icon</i></dt> -<dd> -the icon to be shown (QIcon) -</dd><dt><i>text</i></dt> -<dd> -the text to be shown (string) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -index of the added widget (integer) -</dd> -</dl><a NAME="E4HorizontalToolBox.setItemEnabled" ID="E4HorizontalToolBox.setItemEnabled"></a> -<h4>E4HorizontalToolBox.setItemEnabled</h4> -<b>setItemEnabled</b>(<i>index, enabled</i>) -<p> - Public method to set the enabled state of an item. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the item (integer) -</dd><dt><i>enabled</i></dt> -<dd> -flag indicating the enabled state (boolean) -</dd> -</dl><a NAME="E4HorizontalToolBox.setItemToolTip" ID="E4HorizontalToolBox.setItemToolTip"></a> -<h4>E4HorizontalToolBox.setItemToolTip</h4> -<b>setItemToolTip</b>(<i>index, toolTip</i>) -<p> - Public method to set the tooltip of an item. -</p><dl> -<dt><i>index</i></dt> -<dd> -index of the item (integer) -</dd><dt><i>toolTip</i></dt> -<dd> -tooltip text to be set (string) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /><hr /> -<a NAME="E4VerticalToolBox" ID="E4VerticalToolBox"></a> -<h2>E4VerticalToolBox</h2> -<p> - Class implementing a ToolBox class substituting QToolBox to support wheel events. -</p> -<h3>Derived from</h3> -QToolBox -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4VerticalToolBox.__init__">E4VerticalToolBox</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4VerticalToolBox.wheelEvent">wheelEvent</a></td> -<td>Protected slot to support wheel events.</td> -</tr> -</table> -<a NAME="E4VerticalToolBox.__init__" ID="E4VerticalToolBox.__init__"></a> -<h4>E4VerticalToolBox (Constructor)</h4> -<b>E4VerticalToolBox</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent widget (QWidget) -</dd> -</dl><a NAME="E4VerticalToolBox.wheelEvent" ID="E4VerticalToolBox.wheelEvent"></a> -<h4>E4VerticalToolBox.wheelEvent</h4> -<b>wheelEvent</b>(<i>event</i>) -<p> - Protected slot to support wheel events. -</p><dl> -<dt><i>reference</i></dt> -<dd> -to the wheel event (QWheelEvent) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4TreeSortFilterProxyModel.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,116 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4TreeSortFilterProxyModel</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4TreeSortFilterProxyModel</h1> -<p> -Module implementing a modified QSortFilterProxyModel. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4TreeSortFilterProxyModel">E4TreeSortFilterProxyModel</a></td> -<td>Class implementing a modified QSortFilterProxyModel.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4TreeSortFilterProxyModel" ID="E4TreeSortFilterProxyModel"></a> -<h2>E4TreeSortFilterProxyModel</h2> -<p> - Class implementing a modified QSortFilterProxyModel. -</p><p> - It always accepts the root nodes in the tree so filtering is only done - on the children. -</p> -<h3>Derived from</h3> -QSortFilterProxyModel -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4TreeSortFilterProxyModel.__init__">E4TreeSortFilterProxyModel</a></td> -<td>Constructor</td> -</tr><tr> -<td><a href="#E4TreeSortFilterProxyModel.filterAcceptsRow">filterAcceptsRow</a></td> -<td>Protected method to determine, if the row is acceptable.</td> -</tr><tr> -<td><a href="#E4TreeSortFilterProxyModel.hasChildren">hasChildren</a></td> -<td>Public method to check, if a parent node has some children.</td> -</tr> -</table> -<a NAME="E4TreeSortFilterProxyModel.__init__" ID="E4TreeSortFilterProxyModel.__init__"></a> -<h4>E4TreeSortFilterProxyModel (Constructor)</h4> -<b>E4TreeSortFilterProxyModel</b>(<i>parent = None</i>) -<p> - Constructor -</p><dl> -<dt><i>parent</i></dt> -<dd> -reference to the parent object (QObject) -</dd> -</dl><a NAME="E4TreeSortFilterProxyModel.filterAcceptsRow" ID="E4TreeSortFilterProxyModel.filterAcceptsRow"></a> -<h4>E4TreeSortFilterProxyModel.filterAcceptsRow</h4> -<b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) -<p> - Protected method to determine, if the row is acceptable. -</p><dl> -<dt><i>sourceRow</i></dt> -<dd> -row number in the source model (integer) -</dd><dt><i>sourceParent</i></dt> -<dd> -index of the source item (QModelIndex) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating acceptance (boolean) -</dd> -</dl><a NAME="E4TreeSortFilterProxyModel.hasChildren" ID="E4TreeSortFilterProxyModel.hasChildren"></a> -<h4>E4TreeSortFilterProxyModel.hasChildren</h4> -<b>hasChildren</b>(<i>parent = QModelIndex()</i>) -<p> - Public method to check, if a parent node has some children. -</p><dl> -<dt><i>parent</i></dt> -<dd> -index of the parent node (QModelIndex) -</dd> -</dl><dl> -<dt>Returns:</dt> -<dd> -flag indicating the presence of children (boolean) -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.E4Gui.E4TreeView.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,90 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui.E4TreeView</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body><a NAME="top" ID="top"></a> -<h1>eric5.E4Gui.E4TreeView</h1> -<p> -Module implementing specialized tree views. -</p> -<h3>Global Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Classes</h3> -<table> -<tr> -<td><a href="#E4TreeView">E4TreeView</a></td> -<td>Class implementing a tree view supporting removal of entries.</td> -</tr> -</table> -<h3>Functions</h3> -<table> -<tr><td>None</td></tr> -</table> -<hr /><hr /> -<a NAME="E4TreeView" ID="E4TreeView"></a> -<h2>E4TreeView</h2> -<p> - Class implementing a tree view supporting removal of entries. -</p> -<h3>Derived from</h3> -QTreeView -<h3>Class Attributes</h3> -<table> -<tr><td>None</td></tr> -</table> -<h3>Methods</h3> -<table> -<tr> -<td><a href="#E4TreeView.keyPressEvent">keyPressEvent</a></td> -<td>Protected method implementing special key handling.</td> -</tr><tr> -<td><a href="#E4TreeView.removeAll">removeAll</a></td> -<td>Public method to clear the view.</td> -</tr><tr> -<td><a href="#E4TreeView.removeSelected">removeSelected</a></td> -<td>Public method to remove the selected entries.</td> -</tr> -</table> -<a NAME="E4TreeView.keyPressEvent" ID="E4TreeView.keyPressEvent"></a> -<h4>E4TreeView.keyPressEvent</h4> -<b>keyPressEvent</b>(<i>evt</i>) -<p> - Protected method implementing special key handling. -</p><dl> -<dt><i>evt</i></dt> -<dd> -reference to the event (QKeyEvent) -</dd> -</dl><a NAME="E4TreeView.removeAll" ID="E4TreeView.removeAll"></a> -<h4>E4TreeView.removeAll</h4> -<b>removeAll</b>(<i></i>) -<p> - Public method to clear the view. -</p><a NAME="E4TreeView.removeSelected" ID="E4TreeView.removeSelected"></a> -<h4>E4TreeView.removeSelected</h4> -<b>removeSelected</b>(<i></i>) -<p> - Public method to remove the selected entries. -</p> -<div align="right"><a href="#top">Up</a></div> -<hr /> -</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5Action.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,220 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5Action</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5Action</h1> +<p> +Module implementing an Action class extending QAction. +</p><p> +This extension is necessary in order to support alternate keyboard +shortcuts. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#ArgumentsError">ArgumentsError</a></td> +<td>Class implementing an exception, which is raised, if the wrong number of arguments are given.</td> +</tr><tr> +<td><a href="#E5Action">E5Action</a></td> +<td>Class implementing an Action class extending QAction.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr> +<td><a href="#addActions">addActions</a></td> +<td>Module function to add a list of actions to a widget.</td> +</tr><tr> +<td><a href="#createActionGroup">createActionGroup</a></td> +<td>Module function to create an action group.</td> +</tr> +</table> +<hr /><hr /> +<a NAME="ArgumentsError" ID="ArgumentsError"></a> +<h2>ArgumentsError</h2> +<p> + Class implementing an exception, which is raised, if the wrong number of arguments + are given. +</p> +<h3>Derived from</h3> +RuntimeError +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#ArgumentsError.__init__">ArgumentsError</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#ArgumentsError.__repr__">__repr__</a></td> +<td>Private method returning a representation of the exception.</td> +</tr><tr> +<td><a href="#ArgumentsError.__str__">__str__</a></td> +<td>Private method returning a string representation of the exception.</td> +</tr> +</table> +<a NAME="ArgumentsError.__init__" ID="ArgumentsError.__init__"></a> +<h4>ArgumentsError (Constructor)</h4> +<b>ArgumentsError</b>(<i>error</i>) +<p> + Constructor +</p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError.__repr__"></a> +<h4>ArgumentsError.__repr__</h4> +<b>__repr__</b>(<i></i>) +<p> + Private method returning a representation of the exception. +</p><dl> +<dt>Returns:</dt> +<dd> +string representing the error message +</dd> +</dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError.__str__"></a> +<h4>ArgumentsError.__str__</h4> +<b>__str__</b>(<i></i>) +<p> + Private method returning a string representation of the exception. +</p><dl> +<dt>Returns:</dt> +<dd> +string representing the error message +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5Action" ID="E5Action"></a> +<h2>E5Action</h2> +<p> + Class implementing an Action class extending QAction. +</p> +<h3>Derived from</h3> +QAction +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5Action.__init__">E5Action</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5Action.alternateShortcut">alternateShortcut</a></td> +<td>Public method to retrieve the alternative keyboard shortcut.</td> +</tr><tr> +<td><a href="#E5Action.setAlternateShortcut">setAlternateShortcut</a></td> +<td>Public slot to set the alternative keyboard shortcut.</td> +</tr> +</table> +<a NAME="E5Action.__init__" ID="E5Action.__init__"></a> +<h4>E5Action (Constructor)</h4> +<b>E5Action</b>(<i>*args</i>) +<p> + Constructor +</p><dl> +<dt><i>args</i></dt> +<dd> +argument list of the constructor. This list is one of + <ul> + <li>text (string), icon (QIcon), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string), toggle (boolean)</li> + <li>text (string), icon (QIcon), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string)</li> + <li>text (string), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string), toggle (boolean)</li> + <li>text (string), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string)</li> + </ul> +</dd> +</dl><a NAME="E5Action.alternateShortcut" ID="E5Action.alternateShortcut"></a> +<h4>E5Action.alternateShortcut</h4> +<b>alternateShortcut</b>(<i></i>) +<p> + Public method to retrieve the alternative keyboard shortcut. +</p><dl> +<dt>Returns:</dt> +<dd> +the alternative accelerator (QKeySequence) +</dd> +</dl><a NAME="E5Action.setAlternateShortcut" ID="E5Action.setAlternateShortcut"></a> +<h4>E5Action.setAlternateShortcut</h4> +<b>setAlternateShortcut</b>(<i>shortcut</i>) +<p> + Public slot to set the alternative keyboard shortcut. +</p><dl> +<dt><i>shortcut</i></dt> +<dd> +the alternative accelerator (QKeySequence) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="addActions" ID="addActions"></a> +<h2>addActions</h2> +<b>addActions</b>(<i>target, actions</i>) +<p> + Module function to add a list of actions to a widget. +</p><dl> +<dt><i>target</i></dt> +<dd> +reference to the target widget (QWidget) +</dd><dt><i>actions</i></dt> +<dd> +list of actions to be added to the target. A + None indicates a separator (list of QActions) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="createActionGroup" ID="createActionGroup"></a> +<h2>createActionGroup</h2> +<b>createActionGroup</b>(<i>parent, name = None, exclusive = False</i>) +<p> + Module function to create an action group. +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent object of the action group (QObject) +</dd><dt><i>name</i></dt> +<dd> +name of the action group object (string) +</dd><dt><i>exclusive</i></dt> +<dd> +flag indicating an exclusive action group (boolean) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the created action group (QActionGroup) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5Application.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,215 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5Application</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5Application</h1> +<p> +Class implementing a specialized application class. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>e5App</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5Application">E5Application</a></td> +<td>Eric application class with an object registry.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5Application" ID="E5Application"></a> +<h2>E5Application</h2> +<p> + Eric application class with an object registry. +</p> +<h3>Derived from</h3> +QApplication +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5Application.__init__">E5Application</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5Application.getObject">getObject</a></td> +<td>Public method to get a reference to a registered object.</td> +</tr><tr> +<td><a href="#E5Application.getPluginObject">getPluginObject</a></td> +<td>Public method to get a reference to a registered plugin object.</td> +</tr><tr> +<td><a href="#E5Application.getPluginObjectType">getPluginObjectType</a></td> +<td>Public method to get the type of a registered plugin object.</td> +</tr><tr> +<td><a href="#E5Application.getPluginObjects">getPluginObjects</a></td> +<td>Public method to get a list of (name, reference) pairs of all registered plugin objects.</td> +</tr><tr> +<td><a href="#E5Application.registerObject">registerObject</a></td> +<td>Public method to register an object in the object registry.</td> +</tr><tr> +<td><a href="#E5Application.registerPluginObject">registerPluginObject</a></td> +<td>Public method to register a plugin object in the object registry.</td> +</tr><tr> +<td><a href="#E5Application.unregisterPluginObject">unregisterPluginObject</a></td> +<td>Public method to unregister a plugin object in the object registry.</td> +</tr> +</table> +<a NAME="E5Application.__init__" ID="E5Application.__init__"></a> +<h4>E5Application (Constructor)</h4> +<b>E5Application</b>(<i>argv</i>) +<p> + Constructor +</p><dl> +<dt><i>argv</i></dt> +<dd> +command line arguments +</dd> +</dl><a NAME="E5Application.getObject" ID="E5Application.getObject"></a> +<h4>E5Application.getObject</h4> +<b>getObject</b>(<i>name</i>) +<p> + Public method to get a reference to a registered object. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the object (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the registered object +</dd> +</dl><dl> +<dt>Raises <b>KeyError</b>:</dt> +<dd> +raised when the given name is not known +</dd> +</dl><a NAME="E5Application.getPluginObject" ID="E5Application.getPluginObject"></a> +<h4>E5Application.getPluginObject</h4> +<b>getPluginObject</b>(<i>name</i>) +<p> + Public method to get a reference to a registered plugin object. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the plugin object (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the registered plugin object +</dd> +</dl><dl> +<dt>Raises <b>KeyError</b>:</dt> +<dd> +raised when the given name is not known +</dd> +</dl><a NAME="E5Application.getPluginObjectType" ID="E5Application.getPluginObjectType"></a> +<h4>E5Application.getPluginObjectType</h4> +<b>getPluginObjectType</b>(<i>name</i>) +<p> + Public method to get the type of a registered plugin object. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the plugin object (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +type of the plugin object (string) +</dd> +</dl><dl> +<dt>Raises <b>KeyError</b>:</dt> +<dd> +raised when the given name is not known +</dd> +</dl><a NAME="E5Application.getPluginObjects" ID="E5Application.getPluginObjects"></a> +<h4>E5Application.getPluginObjects</h4> +<b>getPluginObjects</b>(<i></i>) +<p> + Public method to get a list of (name, reference) pairs of all + registered plugin objects. +</p><dl> +<dt>Returns:</dt> +<dd> +list of (name, reference) pairs +</dd> +</dl><a NAME="E5Application.registerObject" ID="E5Application.registerObject"></a> +<h4>E5Application.registerObject</h4> +<b>registerObject</b>(<i>name, object</i>) +<p> + Public method to register an object in the object registry. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the object (string) +</dd><dt><i>object</i></dt> +<dd> +reference to the object +</dd> +</dl><dl> +<dt>Raises <b>KeyError</b>:</dt> +<dd> +raised when the given name is already in use +</dd> +</dl><a NAME="E5Application.registerPluginObject" ID="E5Application.registerPluginObject"></a> +<h4>E5Application.registerPluginObject</h4> +<b>registerPluginObject</b>(<i>name, object, pluginType = None</i>) +<p> + Public method to register a plugin object in the object registry. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the plugin object (string) +</dd><dt><i>object</i></dt> +<dd> +reference to the plugin object +</dd><dt><i>pluginType=</i></dt> +<dd> +type of the plugin object (string) +</dd> +</dl><dl> +<dt>Raises <b>KeyError</b>:</dt> +<dd> +raised when the given name is already in use +</dd> +</dl><a NAME="E5Application.unregisterPluginObject" ID="E5Application.unregisterPluginObject"></a> +<h4>E5Application.unregisterPluginObject</h4> +<b>unregisterPluginObject</b>(<i>name</i>) +<p> + Public method to unregister a plugin object in the object registry. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the plugin object (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5Completers.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5Completers</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5Completers</h1> +<p> +Module implementing various kinds of completers. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5DirCompleter">E5DirCompleter</a></td> +<td>Class implementing a completer for directory names.</td> +</tr><tr> +<td><a href="#E5FileCompleter">E5FileCompleter</a></td> +<td>Class implementing a completer for file names.</td> +</tr><tr> +<td><a href="#E5StringListCompleter">E5StringListCompleter</a></td> +<td>Class implementing a completer for strings lists.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5DirCompleter" ID="E5DirCompleter"></a> +<h2>E5DirCompleter</h2> +<p> + Class implementing a completer for directory names. +</p> +<h3>Derived from</h3> +QCompleter +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5DirCompleter.__init__">E5DirCompleter</a></td> +<td>Constructor</td> +</tr> +</table> +<a NAME="E5DirCompleter.__init__" ID="E5DirCompleter.__init__"></a> +<h4>E5DirCompleter (Constructor)</h4> +<b>E5DirCompleter</b>(<i>parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent widget of the completer (QWidget) +</dd><dt><i>completionMode=</i></dt> +<dd> +completion mode of the + completer (QCompleter.CompletionMode) +</dd><dt><i>showHidden=</i></dt> +<dd> +flag indicating to show hidden entries as well (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5FileCompleter" ID="E5FileCompleter"></a> +<h2>E5FileCompleter</h2> +<p> + Class implementing a completer for file names. +</p> +<h3>Derived from</h3> +QCompleter +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5FileCompleter.__init__">E5FileCompleter</a></td> +<td>Constructor</td> +</tr> +</table> +<a NAME="E5FileCompleter.__init__" ID="E5FileCompleter.__init__"></a> +<h4>E5FileCompleter (Constructor)</h4> +<b>E5FileCompleter</b>(<i>parent = None, completionMode = QCompleter.PopupCompletion, showHidden = False</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent widget of the completer (QWidget) +</dd><dt><i>completionMode=</i></dt> +<dd> +completion mode of the + completer (QCompleter.CompletionMode) +</dd><dt><i>showHidden=</i></dt> +<dd> +flag indicating to show hidden entries as well (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5StringListCompleter" ID="E5StringListCompleter"></a> +<h2>E5StringListCompleter</h2> +<p> + Class implementing a completer for strings lists. +</p> +<h3>Derived from</h3> +QCompleter +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5StringListCompleter.__init__">E5StringListCompleter</a></td> +<td>Constructor</td> +</tr> +</table> +<a NAME="E5StringListCompleter.__init__" ID="E5StringListCompleter.__init__"></a> +<h4>E5StringListCompleter (Constructor)</h4> +<b>E5StringListCompleter</b>(<i>parent = None, strings = [], completionMode = QCompleter.PopupCompletion</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +parent widget of the completer (QWidget) +</dd><dt><i>strings</i></dt> +<dd> +list of string to load into the completer (list of strings) +</dd><dt><i>completionMode=</i></dt> +<dd> +completion mode of the + completer (QCompleter.CompletionMode) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5Led.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,338 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5Led</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5Led</h1> +<p> +Module implementing a LED widget. +</p><p> +It was inspired by KLed. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>E5LedCircular</td></tr><tr><td>E5LedRectangular</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5Led">E5Led</a></td> +<td>Class implementing a LED widget.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5Led" ID="E5Led"></a> +<h2>E5Led</h2> +<p> + Class implementing a LED widget. +</p> +<h3>Derived from</h3> +QWidget +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5Led.__init__">E5Led</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5Led.__getBestRoundSize">__getBestRoundSize</a></td> +<td>Private method to calculate the width of the LED.</td> +</tr><tr> +<td><a href="#E5Led.__paintRectangular">__paintRectangular</a></td> +<td>Private method to paint a rectangular raised LED.</td> +</tr><tr> +<td><a href="#E5Led.__paintRound">__paintRound</a></td> +<td>Private method to paint a round raised LED.</td> +</tr><tr> +<td><a href="#E5Led.color">color</a></td> +<td>Public method to return the LED color.</td> +</tr><tr> +<td><a href="#E5Led.darkFactor">darkFactor</a></td> +<td>Public method to return the dark factor.</td> +</tr><tr> +<td><a href="#E5Led.isFramed">isFramed</a></td> +<td>Public method to return the framed state.</td> +</tr><tr> +<td><a href="#E5Led.isOn">isOn</a></td> +<td>Public method to return the LED state.</td> +</tr><tr> +<td><a href="#E5Led.minimumSizeHint">minimumSizeHint</a></td> +<td>Public method to give a hint about our minimum size.</td> +</tr><tr> +<td><a href="#E5Led.off">off</a></td> +<td>Public slot to set the LED to off.</td> +</tr><tr> +<td><a href="#E5Led.on">on</a></td> +<td>Public slot to set the LED to on.</td> +</tr><tr> +<td><a href="#E5Led.paintEvent">paintEvent</a></td> +<td>Protected slot handling the paint event.</td> +</tr><tr> +<td><a href="#E5Led.ratio">ratio</a></td> +<td>Public method to return the LED rectangular ratio (width / height).</td> +</tr><tr> +<td><a href="#E5Led.setColor">setColor</a></td> +<td>Public method to set the LED color.</td> +</tr><tr> +<td><a href="#E5Led.setDarkFactor">setDarkFactor</a></td> +<td>Public method to set the dark factor.</td> +</tr><tr> +<td><a href="#E5Led.setFramed">setFramed</a></td> +<td>Public slot to set the __framedLed attribute.</td> +</tr><tr> +<td><a href="#E5Led.setOn">setOn</a></td> +<td>Public method to set the LED to on.</td> +</tr><tr> +<td><a href="#E5Led.setRatio">setRatio</a></td> +<td>Public method to set the LED rectangular ratio (width / height).</td> +</tr><tr> +<td><a href="#E5Led.setShape">setShape</a></td> +<td>Public method to set the LED shape.</td> +</tr><tr> +<td><a href="#E5Led.shape">shape</a></td> +<td>Public method to return the LED shape.</td> +</tr><tr> +<td><a href="#E5Led.sizeHint">sizeHint</a></td> +<td>Public method to give a hint about our desired size.</td> +</tr><tr> +<td><a href="#E5Led.toggle">toggle</a></td> +<td>Public slot to toggle the LED state.</td> +</tr> +</table> +<a NAME="E5Led.__init__" ID="E5Led.__init__"></a> +<h4>E5Led (Constructor)</h4> +<b>E5Led</b>(<i>parent = None, color = None, shape = E5LedCircular, rectRatio = 1</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to parent widget (QWidget) +</dd><dt><i>color</i></dt> +<dd> +color of the LED (QColor) +</dd><dt><i>shape</i></dt> +<dd> +shape of the LED (E5LedCircular, E5LedRectangular) +</dd><dt><i>rectRation</i></dt> +<dd> +ratio width to height, if shape is rectangular (float) +</dd> +</dl><a NAME="E5Led.__getBestRoundSize" ID="E5Led.__getBestRoundSize"></a> +<h4>E5Led.__getBestRoundSize</h4> +<b>__getBestRoundSize</b>(<i></i>) +<p> + Private method to calculate the width of the LED. +</p><dl> +<dt>Returns:</dt> +<dd> +new width of the LED (integer) +</dd> +</dl><a NAME="E5Led.__paintRectangular" ID="E5Led.__paintRectangular"></a> +<h4>E5Led.__paintRectangular</h4> +<b>__paintRectangular</b>(<i></i>) +<p> + Private method to paint a rectangular raised LED. +</p><a NAME="E5Led.__paintRound" ID="E5Led.__paintRound"></a> +<h4>E5Led.__paintRound</h4> +<b>__paintRound</b>(<i></i>) +<p> + Private method to paint a round raised LED. +</p><a NAME="E5Led.color" ID="E5Led.color"></a> +<h4>E5Led.color</h4> +<b>color</b>(<i></i>) +<p> + Public method to return the LED color. +</p><dl> +<dt>Returns:</dt> +<dd> +color of the LED (QColor) +</dd> +</dl><a NAME="E5Led.darkFactor" ID="E5Led.darkFactor"></a> +<h4>E5Led.darkFactor</h4> +<b>darkFactor</b>(<i></i>) +<p> + Public method to return the dark factor. +</p><dl> +<dt>Returns:</dt> +<dd> +the current dark factor (integer) +</dd> +</dl><a NAME="E5Led.isFramed" ID="E5Led.isFramed"></a> +<h4>E5Led.isFramed</h4> +<b>isFramed</b>(<i></i>) +<p> + Public method to return the framed state. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating the current framed state (boolean) +</dd> +</dl><a NAME="E5Led.isOn" ID="E5Led.isOn"></a> +<h4>E5Led.isOn</h4> +<b>isOn</b>(<i></i>) +<p> + Public method to return the LED state. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating the light state (boolean) +</dd> +</dl><a NAME="E5Led.minimumSizeHint" ID="E5Led.minimumSizeHint"></a> +<h4>E5Led.minimumSizeHint</h4> +<b>minimumSizeHint</b>(<i></i>) +<p> + Public method to give a hint about our minimum size. +</p><dl> +<dt>Returns:</dt> +<dd> +size hint (QSize) +</dd> +</dl><a NAME="E5Led.off" ID="E5Led.off"></a> +<h4>E5Led.off</h4> +<b>off</b>(<i></i>) +<p> + Public slot to set the LED to off. +</p><a NAME="E5Led.on" ID="E5Led.on"></a> +<h4>E5Led.on</h4> +<b>on</b>(<i></i>) +<p> + Public slot to set the LED to on. +</p><a NAME="E5Led.paintEvent" ID="E5Led.paintEvent"></a> +<h4>E5Led.paintEvent</h4> +<b>paintEvent</b>(<i>evt</i>) +<p> + Protected slot handling the paint event. +</p><dl> +<dt><i>evt</i></dt> +<dd> +paint event object (QPaintEvent) +</dd> +</dl><dl> +<dt>Raises <b>TypeError</b>:</dt> +<dd> +The E5Led has an unsupported shape type. +</dd> +</dl><a NAME="E5Led.ratio" ID="E5Led.ratio"></a> +<h4>E5Led.ratio</h4> +<b>ratio</b>(<i></i>) +<p> + Public method to return the LED rectangular ratio (width / height). +</p><dl> +<dt>Returns:</dt> +<dd> +LED rectangular ratio (float) +</dd> +</dl><a NAME="E5Led.setColor" ID="E5Led.setColor"></a> +<h4>E5Led.setColor</h4> +<b>setColor</b>(<i>color</i>) +<p> + Public method to set the LED color. +</p><dl> +<dt><i>color</i></dt> +<dd> +color for the LED (QColor) +</dd> +</dl><a NAME="E5Led.setDarkFactor" ID="E5Led.setDarkFactor"></a> +<h4>E5Led.setDarkFactor</h4> +<b>setDarkFactor</b>(<i>darkfactor</i>) +<p> + Public method to set the dark factor. +</p><dl> +<dt><i>darkfactor</i></dt> +<dd> +value to set for the dark factor (integer) +</dd> +</dl><a NAME="E5Led.setFramed" ID="E5Led.setFramed"></a> +<h4>E5Led.setFramed</h4> +<b>setFramed</b>(<i>framed</i>) +<p> + Public slot to set the __framedLed attribute. +</p><dl> +<dt><i>framed</i></dt> +<dd> +flag indicating the framed state (boolean) +</dd> +</dl><a NAME="E5Led.setOn" ID="E5Led.setOn"></a> +<h4>E5Led.setOn</h4> +<b>setOn</b>(<i>state</i>) +<p> + Public method to set the LED to on. +</p><dl> +<dt><i>state</i></dt> +<dd> +new state of the LED (boolean) +</dd> +</dl><a NAME="E5Led.setRatio" ID="E5Led.setRatio"></a> +<h4>E5Led.setRatio</h4> +<b>setRatio</b>(<i>ratio</i>) +<p> + Public method to set the LED rectangular ratio (width / height). +</p><dl> +<dt><i>ratio</i></dt> +<dd> +new LED rectangular ratio (float) +</dd> +</dl><a NAME="E5Led.setShape" ID="E5Led.setShape"></a> +<h4>E5Led.setShape</h4> +<b>setShape</b>(<i>shape</i>) +<p> + Public method to set the LED shape. +</p><dl> +<dt><i>shape</i></dt> +<dd> +new LED shape (E5LedCircular, E5LedRectangular) +</dd> +</dl><a NAME="E5Led.shape" ID="E5Led.shape"></a> +<h4>E5Led.shape</h4> +<b>shape</b>(<i></i>) +<p> + Public method to return the LED shape. +</p><dl> +<dt>Returns:</dt> +<dd> +LED shape (E5LedCircular, E5LedRectangular) +</dd> +</dl><a NAME="E5Led.sizeHint" ID="E5Led.sizeHint"></a> +<h4>E5Led.sizeHint</h4> +<b>sizeHint</b>(<i></i>) +<p> + Public method to give a hint about our desired size. +</p><dl> +<dt>Returns:</dt> +<dd> +size hint (QSize) +</dd> +</dl><a NAME="E5Led.toggle" ID="E5Led.toggle"></a> +<h4>E5Led.toggle</h4> +<b>toggle</b>(<i></i>) +<p> + Public slot to toggle the LED state. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5LineEdit.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5LineEdit</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5LineEdit</h1> +<p> +Module implementing specialized line edits. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5LineEdit">E5LineEdit</a></td> +<td>Class implementing a line edit widget showing some inactive text.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5LineEdit" ID="E5LineEdit"></a> +<h2>E5LineEdit</h2> +<p> + Class implementing a line edit widget showing some inactive text. +</p> +<h3>Derived from</h3> +QLineEdit +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5LineEdit.__init__">E5LineEdit</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5LineEdit.inactiveText">inactiveText</a></td> +<td>Public method to get the inactive text.</td> +</tr><tr> +<td><a href="#E5LineEdit.paintEvent">paintEvent</a></td> +<td>Protected method handling a paint event.</td> +</tr><tr> +<td><a href="#E5LineEdit.setInactiveText">setInactiveText</a></td> +<td>Public method to set the inactive text.</td> +</tr> +</table> +<a NAME="E5LineEdit.__init__" ID="E5LineEdit.__init__"></a> +<h4>E5LineEdit (Constructor)</h4> +<b>E5LineEdit</b>(<i>parent = None, inactiveText = ""</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd><dt><i>inactiveText</i></dt> +<dd> +text to be shown on inactivity (string) +</dd> +</dl><a NAME="E5LineEdit.inactiveText" ID="E5LineEdit.inactiveText"></a> +<h4>E5LineEdit.inactiveText</h4> +<b>inactiveText</b>(<i></i>) +<p> + Public method to get the inactive text. +</p><p> + return inactive text (string) +</p><a NAME="E5LineEdit.paintEvent" ID="E5LineEdit.paintEvent"></a> +<h4>E5LineEdit.paintEvent</h4> +<b>paintEvent</b>(<i>evt</i>) +<p> + Protected method handling a paint event. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the paint event (QPaintEvent) +</dd> +</dl><a NAME="E5LineEdit.setInactiveText" ID="E5LineEdit.setInactiveText"></a> +<h4>E5LineEdit.setInactiveText</h4> +<b>setInactiveText</b>(<i>inactiveText</i>) +<p> + Public method to set the inactive text. +</p><dl> +<dt><i>inactiveText</i></dt> +<dd> +text to be shown on inactivity (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ListView.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ListView</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ListView</h1> +<p> +Module implementing specialized list views. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5ListView">E5ListView</a></td> +<td>Class implementing a list view supporting removal of entries.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5ListView" ID="E5ListView"></a> +<h2>E5ListView</h2> +<p> + Class implementing a list view supporting removal of entries. +</p> +<h3>Derived from</h3> +QListView +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ListView.keyPressEvent">keyPressEvent</a></td> +<td>Protected method implementing special key handling.</td> +</tr><tr> +<td><a href="#E5ListView.removeAll">removeAll</a></td> +<td>Public method to clear the view.</td> +</tr><tr> +<td><a href="#E5ListView.removeSelected">removeSelected</a></td> +<td>Public method to remove the selected entries.</td> +</tr> +</table> +<a NAME="E5ListView.keyPressEvent" ID="E5ListView.keyPressEvent"></a> +<h4>E5ListView.keyPressEvent</h4> +<b>keyPressEvent</b>(<i>evt</i>) +<p> + Protected method implementing special key handling. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QKeyEvent) +</dd> +</dl><a NAME="E5ListView.removeAll" ID="E5ListView.removeAll"></a> +<h4>E5ListView.removeAll</h4> +<b>removeAll</b>(<i></i>) +<p> + Public method to clear the view. +</p><a NAME="E5ListView.removeSelected" ID="E5ListView.removeSelected"></a> +<h4>E5ListView.removeSelected</h4> +<b>removeSelected</b>(<i></i>) +<p> + Public method to remove the selected entries. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ModelMenu.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,459 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ModelMenu</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ModelMenu</h1> +<p> +Module implementing a menu populated from a QAbstractItemModel. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5ModelMenu">E5ModelMenu</a></td> +<td>Class implementing a menu populated from a QAbstractItemModel.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5ModelMenu" ID="E5ModelMenu"></a> +<h2>E5ModelMenu</h2> +<p> + Class implementing a menu populated from a QAbstractItemModel. +</p><h4>Signals</h4> +<dl> +<dt>activated(const QModelIndex&)</dt> +<dd> +emitted when an action has been triggered +</dd> +</dl> +<h3>Derived from</h3> +QMenu +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ModelMenu.__init__">E5ModelMenu</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5ModelMenu.__aboutToShow">__aboutToShow</a></td> +<td>Private slot to show the menu.</td> +</tr><tr> +<td><a href="#E5ModelMenu.__actionTriggered">__actionTriggered</a></td> +<td>Private slot to handle the triggering of an action.</td> +</tr><tr> +<td><a href="#E5ModelMenu.__makeAction">__makeAction</a></td> +<td>Private method to create an action.</td> +</tr><tr> +<td><a href="#E5ModelMenu.createBaseMenu">createBaseMenu</a></td> +<td>Public method to get the menu that is used to populate sub menu's.</td> +</tr><tr> +<td><a href="#E5ModelMenu.createMenu">createMenu</a></td> +<td>Public method to put all the children of a parent into a menu of a given length.</td> +</tr><tr> +<td><a href="#E5ModelMenu.dragEnterEvent">dragEnterEvent</a></td> +<td>Protected method to handle drag enter events.</td> +</tr><tr> +<td><a href="#E5ModelMenu.dropEvent">dropEvent</a></td> +<td>Protected method to handle drop events.</td> +</tr><tr> +<td><a href="#E5ModelMenu.firstSeparator">firstSeparator</a></td> +<td>Public method to get the first separator.</td> +</tr><tr> +<td><a href="#E5ModelMenu.index">index</a></td> +<td>Public method to get the index of an action.</td> +</tr><tr> +<td><a href="#E5ModelMenu.makeAction">makeAction</a></td> +<td>Public method to create an action.</td> +</tr><tr> +<td><a href="#E5ModelMenu.maxRows">maxRows</a></td> +<td>Public method to get the maximum number of entries to show.</td> +</tr><tr> +<td><a href="#E5ModelMenu.model">model</a></td> +<td>Public method to get a reference to the model.</td> +</tr><tr> +<td><a href="#E5ModelMenu.mouseMoveEvent">mouseMoveEvent</a></td> +<td>Protected method to handle mouse move events.</td> +</tr><tr> +<td><a href="#E5ModelMenu.mousePressEvent">mousePressEvent</a></td> +<td>Protected method handling mouse press events.</td> +</tr><tr> +<td><a href="#E5ModelMenu.mouseReleaseEvent">mouseReleaseEvent</a></td> +<td>Protected method handling mouse release events.</td> +</tr><tr> +<td><a href="#E5ModelMenu.postPopulated">postPopulated</a></td> +<td>Public method to add any actions after the tree.</td> +</tr><tr> +<td><a href="#E5ModelMenu.prePopulated">prePopulated</a></td> +<td>Public method to add any actions before the tree.</td> +</tr><tr> +<td><a href="#E5ModelMenu.removeEntry">removeEntry</a></td> +<td>Public method to remove a menu entry.</td> +</tr><tr> +<td><a href="#E5ModelMenu.resetFlags">resetFlags</a></td> +<td>Public method to reset the saved internal state.</td> +</tr><tr> +<td><a href="#E5ModelMenu.rootIndex">rootIndex</a></td> +<td>Public method to get the index of the root item.</td> +</tr><tr> +<td><a href="#E5ModelMenu.separatorRole">separatorRole</a></td> +<td>Public method to get the role of the separator.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setFirstSeparator">setFirstSeparator</a></td> +<td>Public method to set the first separator.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setMaxRows">setMaxRows</a></td> +<td>Public method to set the maximum number of entries to show.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setModel">setModel</a></td> +<td>Public method to set the model for the menu.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setRootIndex">setRootIndex</a></td> +<td>Public method to set the index of the root item.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setSeparatorRole">setSeparatorRole</a></td> +<td>Public method to set the role of the separator.</td> +</tr><tr> +<td><a href="#E5ModelMenu.setStatusBarTextRole">setStatusBarTextRole</a></td> +<td>Public method to set the role of the status bar text.</td> +</tr><tr> +<td><a href="#E5ModelMenu.statusBarTextRole">statusBarTextRole</a></td> +<td>Public method to get the role of the status bar text.</td> +</tr> +</table> +<a NAME="E5ModelMenu.__init__" ID="E5ModelMenu.__init__"></a> +<h4>E5ModelMenu (Constructor)</h4> +<b>E5ModelMenu</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5ModelMenu.__aboutToShow" ID="E5ModelMenu.__aboutToShow"></a> +<h4>E5ModelMenu.__aboutToShow</h4> +<b>__aboutToShow</b>(<i></i>) +<p> + Private slot to show the menu. +</p><a NAME="E5ModelMenu.__actionTriggered" ID="E5ModelMenu.__actionTriggered"></a> +<h4>E5ModelMenu.__actionTriggered</h4> +<b>__actionTriggered</b>(<i>action</i>) +<p> + Private slot to handle the triggering of an action. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action that was triggered (QAction) +</dd> +</dl><a NAME="E5ModelMenu.__makeAction" ID="E5ModelMenu.__makeAction"></a> +<h4>E5ModelMenu.__makeAction</h4> +<b>__makeAction</b>(<i>idx</i>) +<p> + Private method to create an action. +</p><dl> +<dt><i>idx</i></dt> +<dd> +index of the item to create an action for (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the created action (QAction) +</dd> +</dl><a NAME="E5ModelMenu.createBaseMenu" ID="E5ModelMenu.createBaseMenu"></a> +<h4>E5ModelMenu.createBaseMenu</h4> +<b>createBaseMenu</b>(<i></i>) +<p> + Public method to get the menu that is used to populate sub menu's. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the menu (E5ModelMenu) +</dd> +</dl><a NAME="E5ModelMenu.createMenu" ID="E5ModelMenu.createMenu"></a> +<h4>E5ModelMenu.createMenu</h4> +<b>createMenu</b>(<i>parent, max_, parentMenu = None, menu = None</i>) +<p> + Public method to put all the children of a parent into a menu of a given length. +</p><dl> +<dt><i>parent</i></dt> +<dd> +index of the parent item (QModelIndex) +</dd><dt><i>max_</i></dt> +<dd> +maximum number of entries (integer) +</dd><dt><i>parentMenu</i></dt> +<dd> +reference to the parent menu (QMenu) +</dd><dt><i>menu</i></dt> +<dd> +reference to the menu to be populated (QMenu) +</dd> +</dl><a NAME="E5ModelMenu.dragEnterEvent" ID="E5ModelMenu.dragEnterEvent"></a> +<h4>E5ModelMenu.dragEnterEvent</h4> +<b>dragEnterEvent</b>(<i>evt</i>) +<p> + Protected method to handle drag enter events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QDragEnterEvent) +</dd> +</dl><a NAME="E5ModelMenu.dropEvent" ID="E5ModelMenu.dropEvent"></a> +<h4>E5ModelMenu.dropEvent</h4> +<b>dropEvent</b>(<i>evt</i>) +<p> + Protected method to handle drop events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QDropEvent) +</dd> +</dl><a NAME="E5ModelMenu.firstSeparator" ID="E5ModelMenu.firstSeparator"></a> +<h4>E5ModelMenu.firstSeparator</h4> +<b>firstSeparator</b>(<i></i>) +<p> + Public method to get the first separator. +</p><dl> +<dt>Returns:</dt> +<dd> +row number of the first separator (integer) +</dd> +</dl><a NAME="E5ModelMenu.index" ID="E5ModelMenu.index"></a> +<h4>E5ModelMenu.index</h4> +<b>index</b>(<i>action</i>) +<p> + Public method to get the index of an action. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action to get the index for (QAction) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the action (QModelIndex) +</dd> +</dl><a NAME="E5ModelMenu.makeAction" ID="E5ModelMenu.makeAction"></a> +<h4>E5ModelMenu.makeAction</h4> +<b>makeAction</b>(<i>icon, text, parent</i>) +<p> + Public method to create an action. +</p><dl> +<dt><i>icon</i></dt> +<dd> +icon of the action (QIcon) +</dd><dt><i>text</i></dt> +<dd> +text of the action (string) +</dd><dt><i>reference</i></dt> +<dd> +to the parent object (QObject) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the created action (QAction) +</dd> +</dl><a NAME="E5ModelMenu.maxRows" ID="E5ModelMenu.maxRows"></a> +<h4>E5ModelMenu.maxRows</h4> +<b>maxRows</b>(<i></i>) +<p> + Public method to get the maximum number of entries to show. +</p><dl> +<dt>Returns:</dt> +<dd> +maximum number of entries to show (integer) +</dd> +</dl><a NAME="E5ModelMenu.model" ID="E5ModelMenu.model"></a> +<h4>E5ModelMenu.model</h4> +<b>model</b>(<i></i>) +<p> + Public method to get a reference to the model. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the model (QAbstractItemModel) +</dd> +</dl><a NAME="E5ModelMenu.mouseMoveEvent" ID="E5ModelMenu.mouseMoveEvent"></a> +<h4>E5ModelMenu.mouseMoveEvent</h4> +<b>mouseMoveEvent</b>(<i>evt</i>) +<p> + Protected method to handle mouse move events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QMouseEvent) +</dd> +</dl><a NAME="E5ModelMenu.mousePressEvent" ID="E5ModelMenu.mousePressEvent"></a> +<h4>E5ModelMenu.mousePressEvent</h4> +<b>mousePressEvent</b>(<i>evt</i>) +<p> + Protected method handling mouse press events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event object (QMouseEvent) +</dd> +</dl><a NAME="E5ModelMenu.mouseReleaseEvent" ID="E5ModelMenu.mouseReleaseEvent"></a> +<h4>E5ModelMenu.mouseReleaseEvent</h4> +<b>mouseReleaseEvent</b>(<i>evt</i>) +<p> + Protected method handling mouse release events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event object (QMouseEvent) +</dd> +</dl><a NAME="E5ModelMenu.postPopulated" ID="E5ModelMenu.postPopulated"></a> +<h4>E5ModelMenu.postPopulated</h4> +<b>postPopulated</b>(<i></i>) +<p> + Public method to add any actions after the tree. +</p><a NAME="E5ModelMenu.prePopulated" ID="E5ModelMenu.prePopulated"></a> +<h4>E5ModelMenu.prePopulated</h4> +<b>prePopulated</b>(<i></i>) +<p> + Public method to add any actions before the tree. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating if any actions were added +</dd> +</dl><a NAME="E5ModelMenu.removeEntry" ID="E5ModelMenu.removeEntry"></a> +<h4>E5ModelMenu.removeEntry</h4> +<b>removeEntry</b>(<i>idx</i>) +<p> + Public method to remove a menu entry. +</p><dl> +<dt><i>idx</i></dt> +<dd> +index of the entry to be removed (QModelIndex) +</dd> +</dl><a NAME="E5ModelMenu.resetFlags" ID="E5ModelMenu.resetFlags"></a> +<h4>E5ModelMenu.resetFlags</h4> +<b>resetFlags</b>(<i></i>) +<p> + Public method to reset the saved internal state. +</p><a NAME="E5ModelMenu.rootIndex" ID="E5ModelMenu.rootIndex"></a> +<h4>E5ModelMenu.rootIndex</h4> +<b>rootIndex</b>(<i></i>) +<p> + Public method to get the index of the root item. +</p><dl> +<dt>Returns:</dt> +<dd> +index of the root item (QModelIndex) +</dd> +</dl><a NAME="E5ModelMenu.separatorRole" ID="E5ModelMenu.separatorRole"></a> +<h4>E5ModelMenu.separatorRole</h4> +<b>separatorRole</b>(<i></i>) +<p> + Public method to get the role of the separator. +</p><dl> +<dt>Returns:</dt> +<dd> +role of the separator (integer) +</dd> +</dl><a NAME="E5ModelMenu.setFirstSeparator" ID="E5ModelMenu.setFirstSeparator"></a> +<h4>E5ModelMenu.setFirstSeparator</h4> +<b>setFirstSeparator</b>(<i>offset</i>) +<p> + Public method to set the first separator. +</p><dl> +<dt><i>offset</i></dt> +<dd> +row number of the first separator (integer) +</dd> +</dl><a NAME="E5ModelMenu.setMaxRows" ID="E5ModelMenu.setMaxRows"></a> +<h4>E5ModelMenu.setMaxRows</h4> +<b>setMaxRows</b>(<i>rows</i>) +<p> + Public method to set the maximum number of entries to show. +</p><dl> +<dt><i>rows</i></dt> +<dd> +maximum number of entries to show (integer) +</dd> +</dl><a NAME="E5ModelMenu.setModel" ID="E5ModelMenu.setModel"></a> +<h4>E5ModelMenu.setModel</h4> +<b>setModel</b>(<i>model</i>) +<p> + Public method to set the model for the menu. +</p><dl> +<dt><i>model</i></dt> +<dd> +reference to the model (QAbstractItemModel) +</dd> +</dl><a NAME="E5ModelMenu.setRootIndex" ID="E5ModelMenu.setRootIndex"></a> +<h4>E5ModelMenu.setRootIndex</h4> +<b>setRootIndex</b>(<i>index</i>) +<p> + Public method to set the index of the root item. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the root item (QModelIndex) +</dd> +</dl><a NAME="E5ModelMenu.setSeparatorRole" ID="E5ModelMenu.setSeparatorRole"></a> +<h4>E5ModelMenu.setSeparatorRole</h4> +<b>setSeparatorRole</b>(<i>role</i>) +<p> + Public method to set the role of the separator. +</p><dl> +<dt><i>role</i></dt> +<dd> +role of the separator (integer) +</dd> +</dl><a NAME="E5ModelMenu.setStatusBarTextRole" ID="E5ModelMenu.setStatusBarTextRole"></a> +<h4>E5ModelMenu.setStatusBarTextRole</h4> +<b>setStatusBarTextRole</b>(<i>role</i>) +<p> + Public method to set the role of the status bar text. +</p><dl> +<dt><i>role</i></dt> +<dd> +role of the status bar text (integer) +</dd> +</dl><a NAME="E5ModelMenu.statusBarTextRole" ID="E5ModelMenu.statusBarTextRole"></a> +<h4>E5ModelMenu.statusBarTextRole</h4> +<b>statusBarTextRole</b>(<i></i>) +<p> + Public method to get the role of the status bar text. +</p><dl> +<dt>Returns:</dt> +<dd> +role of the status bar text (integer) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ModelToolBar.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,262 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ModelToolBar</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ModelToolBar</h1> +<p> +Module implementing a tool bar populated from a QAbstractItemModel. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5ModelToolBar">E5ModelToolBar</a></td> +<td>Class implementing a tool bar populated from a QAbstractItemModel.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5ModelToolBar" ID="E5ModelToolBar"></a> +<h2>E5ModelToolBar</h2> +<p> + Class implementing a tool bar populated from a QAbstractItemModel. +</p> +<h3>Derived from</h3> +QToolBar +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ModelToolBar.__init__">E5ModelToolBar</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5ModelToolBar._build">_build</a></td> +<td>Protected slot to build the tool bar.</td> +</tr><tr> +<td><a href="#E5ModelToolBar._createMenu">_createMenu</a></td> +<td>Protected method to create the menu for a tool bar action.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.dragEnterEvent">dragEnterEvent</a></td> +<td>Protected method to handle drag enter events.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.dropEvent">dropEvent</a></td> +<td>Protected method to handle drop events.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.eventFilter">eventFilter</a></td> +<td>Public method to handle event for other objects.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.hideEvent">hideEvent</a></td> +<td>Protected method to handle hide events.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.index">index</a></td> +<td>Public method to get the index of an action.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.model">model</a></td> +<td>Public method to get a reference to the model.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.mouseMoveEvent">mouseMoveEvent</a></td> +<td>Protected method to handle mouse move events.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.resetFlags">resetFlags</a></td> +<td>Public method to reset the saved internal state.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.rootIndex">rootIndex</a></td> +<td>Public method to get the root index.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.setModel">setModel</a></td> +<td>Public method to set the model for the tool bar.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.setRootIndex">setRootIndex</a></td> +<td>Public method to set the root index.</td> +</tr><tr> +<td><a href="#E5ModelToolBar.showEvent">showEvent</a></td> +<td>Protected method to handle show events.</td> +</tr> +</table> +<a NAME="E5ModelToolBar.__init__" ID="E5ModelToolBar.__init__"></a> +<h4>E5ModelToolBar (Constructor)</h4> +<b>E5ModelToolBar</b>(<i>title = None, parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>title</i></dt> +<dd> +title for the tool bar (string) +</dd><dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5ModelToolBar._build" ID="E5ModelToolBar._build"></a> +<h4>E5ModelToolBar._build</h4> +<b>_build</b>(<i></i>) +<p> + Protected slot to build the tool bar. +</p><a NAME="E5ModelToolBar._createMenu" ID="E5ModelToolBar._createMenu"></a> +<h4>E5ModelToolBar._createMenu</h4> +<b>_createMenu</b>(<i></i>) +<p> + Protected method to create the menu for a tool bar action. +</p><dl> +<dt>Returns:</dt> +<dd> +menu for a tool bar action (E5ModelMenu) +</dd> +</dl><a NAME="E5ModelToolBar.dragEnterEvent" ID="E5ModelToolBar.dragEnterEvent"></a> +<h4>E5ModelToolBar.dragEnterEvent</h4> +<b>dragEnterEvent</b>(<i>evt</i>) +<p> + Protected method to handle drag enter events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QDragEnterEvent) +</dd> +</dl><a NAME="E5ModelToolBar.dropEvent" ID="E5ModelToolBar.dropEvent"></a> +<h4>E5ModelToolBar.dropEvent</h4> +<b>dropEvent</b>(<i>evt</i>) +<p> + Protected method to handle drop events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QDropEvent) +</dd> +</dl><a NAME="E5ModelToolBar.eventFilter" ID="E5ModelToolBar.eventFilter"></a> +<h4>E5ModelToolBar.eventFilter</h4> +<b>eventFilter</b>(<i>obj, evt</i>) +<p> + Public method to handle event for other objects. +</p><dl> +<dt><i>obj</i></dt> +<dd> +reference to the object (QObject) +</dd><dt><i>evt</i></dt> +<dd> +reference to the event (QEvent) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating that the event should be filtered out (boolean) +</dd> +</dl><a NAME="E5ModelToolBar.hideEvent" ID="E5ModelToolBar.hideEvent"></a> +<h4>E5ModelToolBar.hideEvent</h4> +<b>hideEvent</b>(<i>evt</i>) +<p> + Protected method to handle hide events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the hide event (QHideEvent) +</dd> +</dl><a NAME="E5ModelToolBar.index" ID="E5ModelToolBar.index"></a> +<h4>E5ModelToolBar.index</h4> +<b>index</b>(<i>action</i>) +<p> + Public method to get the index of an action. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action to get the index for (QAction) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the action (QModelIndex) +</dd> +</dl><a NAME="E5ModelToolBar.model" ID="E5ModelToolBar.model"></a> +<h4>E5ModelToolBar.model</h4> +<b>model</b>(<i></i>) +<p> + Public method to get a reference to the model. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the model (QAbstractItemModel) +</dd> +</dl><a NAME="E5ModelToolBar.mouseMoveEvent" ID="E5ModelToolBar.mouseMoveEvent"></a> +<h4>E5ModelToolBar.mouseMoveEvent</h4> +<b>mouseMoveEvent</b>(<i>evt</i>) +<p> + Protected method to handle mouse move events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QMouseEvent) +</dd> +</dl><a NAME="E5ModelToolBar.resetFlags" ID="E5ModelToolBar.resetFlags"></a> +<h4>E5ModelToolBar.resetFlags</h4> +<b>resetFlags</b>(<i></i>) +<p> + Public method to reset the saved internal state. +</p><a NAME="E5ModelToolBar.rootIndex" ID="E5ModelToolBar.rootIndex"></a> +<h4>E5ModelToolBar.rootIndex</h4> +<b>rootIndex</b>(<i></i>) +<p> + Public method to get the root index. +</p><dl> +<dt>Returns:</dt> +<dd> +root index (QModelIndex) +</dd> +</dl><a NAME="E5ModelToolBar.setModel" ID="E5ModelToolBar.setModel"></a> +<h4>E5ModelToolBar.setModel</h4> +<b>setModel</b>(<i>model</i>) +<p> + Public method to set the model for the tool bar. +</p><dl> +<dt><i>model</i></dt> +<dd> +reference to the model (QAbstractItemModel) +</dd> +</dl><a NAME="E5ModelToolBar.setRootIndex" ID="E5ModelToolBar.setRootIndex"></a> +<h4>E5ModelToolBar.setRootIndex</h4> +<b>setRootIndex</b>(<i>idx</i>) +<p> + Public method to set the root index. +</p><dl> +<dt><i>idx</i></dt> +<dd> +index to be set as the root index (QModelIndex) +</dd> +</dl><a NAME="E5ModelToolBar.showEvent" ID="E5ModelToolBar.showEvent"></a> +<h4>E5ModelToolBar.showEvent</h4> +<b>showEvent</b>(<i>evt</i>) +<p> + Protected method to handle show events. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the hide event (QHideEvent) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5SideBar.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,619 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5SideBar</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5SideBar</h1> +<p> +Module implementing a sidebar class. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5SideBar">E5SideBar</a></td> +<td>Class implementing a sidebar with a widget area, that is hidden or shown, if the current tab is clicked again.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5SideBar" ID="E5SideBar"></a> +<h2>E5SideBar</h2> +<p> + Class implementing a sidebar with a widget area, that is hidden or shown, if the + current tab is clicked again. +</p> +<h3>Derived from</h3> +QWidget +<h3>Class Attributes</h3> +<table> +<tr><td>East</td></tr><tr><td>North</td></tr><tr><td>South</td></tr><tr><td>Version</td></tr><tr><td>West</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5SideBar.__init__">E5SideBar</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5SideBar.__appFocusChanged">__appFocusChanged</a></td> +<td>Private slot to handle a change of the focus.</td> +</tr><tr> +<td><a href="#E5SideBar.__autoHideToggled">__autoHideToggled</a></td> +<td>Private slot to handle the toggling of the autohide button.</td> +</tr><tr> +<td><a href="#E5SideBar.addTab">addTab</a></td> +<td>Public method to add a tab to the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.clear">clear</a></td> +<td>Public method to remove all tabs.</td> +</tr><tr> +<td><a href="#E5SideBar.count">count</a></td> +<td>Public method to get the number of tabs.</td> +</tr><tr> +<td><a href="#E5SideBar.currentIndex">currentIndex</a></td> +<td>Public method to get the index of the current tab.</td> +</tr><tr> +<td><a href="#E5SideBar.currentWidget">currentWidget</a></td> +<td>Public method to get a reference to the current widget.</td> +</tr><tr> +<td><a href="#E5SideBar.enterEvent">enterEvent</a></td> +<td>Protected method to handle the mouse entering this widget.</td> +</tr><tr> +<td><a href="#E5SideBar.eventFilter">eventFilter</a></td> +<td>Protected method to handle some events for the tabbar.</td> +</tr><tr> +<td><a href="#E5SideBar.expand">expand</a></td> +<td>Public method to expand the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.indexOf">indexOf</a></td> +<td>Public method to get the index of the given widget.</td> +</tr><tr> +<td><a href="#E5SideBar.insertTab">insertTab</a></td> +<td>Public method to insert a tab into the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.isAutoHiding">isAutoHiding</a></td> +<td>Public method to check, if the auto hide function is active.</td> +</tr><tr> +<td><a href="#E5SideBar.isMinimized">isMinimized</a></td> +<td>Public method to check the minimized state.</td> +</tr><tr> +<td><a href="#E5SideBar.isTabEnabled">isTabEnabled</a></td> +<td>Public method to check, if a tab is enabled.</td> +</tr><tr> +<td><a href="#E5SideBar.leaveEvent">leaveEvent</a></td> +<td>Protected method to handle the mouse leaving this widget.</td> +</tr><tr> +<td><a href="#E5SideBar.nextTab">nextTab</a></td> +<td>Public slot used to show the next tab.</td> +</tr><tr> +<td><a href="#E5SideBar.orientation">orientation</a></td> +<td>Public method to get the orientation of the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.prevTab">prevTab</a></td> +<td>Public slot used to show the previous tab.</td> +</tr><tr> +<td><a href="#E5SideBar.removeTab">removeTab</a></td> +<td>Public method to remove a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.restoreState">restoreState</a></td> +<td>Public method to restore the state of the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.saveState">saveState</a></td> +<td>Public method to save the state of the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.setCurrentIndex">setCurrentIndex</a></td> +<td>Public slot to set the current index.</td> +</tr><tr> +<td><a href="#E5SideBar.setCurrentWidget">setCurrentWidget</a></td> +<td>Public slot to set the current widget.</td> +</tr><tr> +<td><a href="#E5SideBar.setOrientation">setOrientation</a></td> +<td>Public method to set the orientation of the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.setSplitter">setSplitter</a></td> +<td>Public method to set the splitter managing the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.setTabEnabled">setTabEnabled</a></td> +<td>Public method to set the enabled state of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.setTabIcon">setTabIcon</a></td> +<td>Public method to set the icon of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.setTabText">setTabText</a></td> +<td>Public method to set the text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.setTabToolTip">setTabToolTip</a></td> +<td>Public method to set the tooltip text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.setTabWhatsThis">setTabWhatsThis</a></td> +<td>Public method to set the WhatsThis text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.shrink">shrink</a></td> +<td>Public method to shrink the sidebar.</td> +</tr><tr> +<td><a href="#E5SideBar.tabIcon">tabIcon</a></td> +<td>Public method to get the icon of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.tabText">tabText</a></td> +<td>Public method to get the text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.tabToolTip">tabToolTip</a></td> +<td>Public method to get the tooltip text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.tabWhatsThis">tabWhatsThis</a></td> +<td>Public method to get the WhatsThis text of a tab.</td> +</tr><tr> +<td><a href="#E5SideBar.widget">widget</a></td> +<td>Public method to get a reference to the widget associated with a tab.</td> +</tr> +</table> +<a NAME="E5SideBar.__init__" ID="E5SideBar.__init__"></a> +<h4>E5SideBar (Constructor)</h4> +<b>E5SideBar</b>(<i>orientation = None, parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>orientation</i></dt> +<dd> +orientation of the sidebar widget (North, East, South, West) +</dd><dt><i>parent</i></dt> +<dd> +parent widget (QWidget) +</dd> +</dl><a NAME="E5SideBar.__appFocusChanged" ID="E5SideBar.__appFocusChanged"></a> +<h4>E5SideBar.__appFocusChanged</h4> +<b>__appFocusChanged</b>(<i>old, now</i>) +<p> + Private slot to handle a change of the focus. +</p><dl> +<dt><i>old</i></dt> +<dd> +reference to the widget, that lost focus (QWidget or None) +</dd><dt><i>now</i></dt> +<dd> +reference to the widget having the focus (QWidget or None) +</dd> +</dl><a NAME="E5SideBar.__autoHideToggled" ID="E5SideBar.__autoHideToggled"></a> +<h4>E5SideBar.__autoHideToggled</h4> +<b>__autoHideToggled</b>(<i>checked</i>) +<p> + Private slot to handle the toggling of the autohide button. +</p><dl> +<dt><i>checked</i></dt> +<dd> +flag indicating the checked state of the button (boolean) +</dd> +</dl><a NAME="E5SideBar.addTab" ID="E5SideBar.addTab"></a> +<h4>E5SideBar.addTab</h4> +<b>addTab</b>(<i>widget, iconOrLabel, label = None</i>) +<p> + Public method to add a tab to the sidebar. +</p><dl> +<dt><i>widget</i></dt> +<dd> +reference to the widget to add (QWidget) +</dd><dt><i>iconOrLabel</i></dt> +<dd> +reference to the icon or the labeltext of the tab + (QIcon, string) +</dd><dt><i>label</i></dt> +<dd> +the labeltext of the tab (string) (only to be + used, if the second parameter is a QIcon) +</dd> +</dl><a NAME="E5SideBar.clear" ID="E5SideBar.clear"></a> +<h4>E5SideBar.clear</h4> +<b>clear</b>(<i></i>) +<p> + Public method to remove all tabs. +</p><a NAME="E5SideBar.count" ID="E5SideBar.count"></a> +<h4>E5SideBar.count</h4> +<b>count</b>(<i></i>) +<p> + Public method to get the number of tabs. +</p><dl> +<dt>Returns:</dt> +<dd> +number of tabs in the sidebar (integer) +</dd> +</dl><a NAME="E5SideBar.currentIndex" ID="E5SideBar.currentIndex"></a> +<h4>E5SideBar.currentIndex</h4> +<b>currentIndex</b>(<i></i>) +<p> + Public method to get the index of the current tab. +</p><dl> +<dt>Returns:</dt> +<dd> +index of the current tab (integer) +</dd> +</dl><a NAME="E5SideBar.currentWidget" ID="E5SideBar.currentWidget"></a> +<h4>E5SideBar.currentWidget</h4> +<b>currentWidget</b>(<i></i>) +<p> + Public method to get a reference to the current widget. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the current widget (QWidget) +</dd> +</dl><a NAME="E5SideBar.enterEvent" ID="E5SideBar.enterEvent"></a> +<h4>E5SideBar.enterEvent</h4> +<b>enterEvent</b>(<i>event</i>) +<p> + Protected method to handle the mouse entering this widget. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the event (QEvent) +</dd> +</dl><a NAME="E5SideBar.eventFilter" ID="E5SideBar.eventFilter"></a> +<h4>E5SideBar.eventFilter</h4> +<b>eventFilter</b>(<i>obj, evt</i>) +<p> + Protected method to handle some events for the tabbar. +</p><dl> +<dt><i>obj</i></dt> +<dd> +reference to the object (QObject) +</dd><dt><i>evt</i></dt> +<dd> +reference to the event object (QEvent) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating, if the event was handled (boolean) +</dd> +</dl><a NAME="E5SideBar.expand" ID="E5SideBar.expand"></a> +<h4>E5SideBar.expand</h4> +<b>expand</b>(<i></i>) +<p> + Public method to expand the sidebar. +</p><a NAME="E5SideBar.indexOf" ID="E5SideBar.indexOf"></a> +<h4>E5SideBar.indexOf</h4> +<b>indexOf</b>(<i>widget</i>) +<p> + Public method to get the index of the given widget. +</p><dl> +<dt><i>widget</i></dt> +<dd> +reference to the widget to get the index of (QWidget) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the given widget (integer) +</dd> +</dl><a NAME="E5SideBar.insertTab" ID="E5SideBar.insertTab"></a> +<h4>E5SideBar.insertTab</h4> +<b>insertTab</b>(<i>index, widget, iconOrLabel, label = None</i>) +<p> + Public method to insert a tab into the sidebar. +</p><dl> +<dt><i>index</i></dt> +<dd> +the index to insert the tab at (integer) +</dd><dt><i>widget</i></dt> +<dd> +reference to the widget to insert (QWidget) +</dd><dt><i>iconOrLabel</i></dt> +<dd> +reference to the icon or the labeltext of the tab + (QIcon, string) +</dd><dt><i>label</i></dt> +<dd> +the labeltext of the tab (string) (only to be + used, if the second parameter is a QIcon) +</dd> +</dl><a NAME="E5SideBar.isAutoHiding" ID="E5SideBar.isAutoHiding"></a> +<h4>E5SideBar.isAutoHiding</h4> +<b>isAutoHiding</b>(<i></i>) +<p> + Public method to check, if the auto hide function is active. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating the state of auto hiding (boolean) +</dd> +</dl><a NAME="E5SideBar.isMinimized" ID="E5SideBar.isMinimized"></a> +<h4>E5SideBar.isMinimized</h4> +<b>isMinimized</b>(<i></i>) +<p> + Public method to check the minimized state. +</p><dl> +<dt>Returns:</dt> +<dd> +flag indicating the minimized state (boolean) +</dd> +</dl><a NAME="E5SideBar.isTabEnabled" ID="E5SideBar.isTabEnabled"></a> +<h4>E5SideBar.isTabEnabled</h4> +<b>isTabEnabled</b>(<i>index</i>) +<p> + Public method to check, if a tab is enabled. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab to check (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating the enabled state (boolean) +</dd> +</dl><a NAME="E5SideBar.leaveEvent" ID="E5SideBar.leaveEvent"></a> +<h4>E5SideBar.leaveEvent</h4> +<b>leaveEvent</b>(<i>event</i>) +<p> + Protected method to handle the mouse leaving this widget. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the event (QEvent) +</dd> +</dl><a NAME="E5SideBar.nextTab" ID="E5SideBar.nextTab"></a> +<h4>E5SideBar.nextTab</h4> +<b>nextTab</b>(<i></i>) +<p> + Public slot used to show the next tab. +</p><a NAME="E5SideBar.orientation" ID="E5SideBar.orientation"></a> +<h4>E5SideBar.orientation</h4> +<b>orientation</b>(<i></i>) +<p> + Public method to get the orientation of the sidebar. +</p><dl> +<dt>Returns:</dt> +<dd> +orientation of the sidebar (North, East, South, West) +</dd> +</dl><a NAME="E5SideBar.prevTab" ID="E5SideBar.prevTab"></a> +<h4>E5SideBar.prevTab</h4> +<b>prevTab</b>(<i></i>) +<p> + Public slot used to show the previous tab. +</p><a NAME="E5SideBar.removeTab" ID="E5SideBar.removeTab"></a> +<h4>E5SideBar.removeTab</h4> +<b>removeTab</b>(<i>index</i>) +<p> + Public method to remove a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +the index of the tab to remove (integer) +</dd> +</dl><a NAME="E5SideBar.restoreState" ID="E5SideBar.restoreState"></a> +<h4>E5SideBar.restoreState</h4> +<b>restoreState</b>(<i>state</i>) +<p> + Public method to restore the state of the sidebar. +</p><dl> +<dt><i>state</i></dt> +<dd> +byte array containing the saved state (QByteArray) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating success (boolean) +</dd> +</dl><a NAME="E5SideBar.saveState" ID="E5SideBar.saveState"></a> +<h4>E5SideBar.saveState</h4> +<b>saveState</b>(<i></i>) +<p> + Public method to save the state of the sidebar. +</p><dl> +<dt>Returns:</dt> +<dd> +saved state as a byte array (QByteArray) +</dd> +</dl><a NAME="E5SideBar.setCurrentIndex" ID="E5SideBar.setCurrentIndex"></a> +<h4>E5SideBar.setCurrentIndex</h4> +<b>setCurrentIndex</b>(<i>index</i>) +<p> + Public slot to set the current index. +</p><dl> +<dt><i>index</i></dt> +<dd> +the index to set as the current index (integer) +</dd> +</dl><a NAME="E5SideBar.setCurrentWidget" ID="E5SideBar.setCurrentWidget"></a> +<h4>E5SideBar.setCurrentWidget</h4> +<b>setCurrentWidget</b>(<i>widget</i>) +<p> + Public slot to set the current widget. +</p><dl> +<dt><i>widget</i></dt> +<dd> +reference to the widget to become the current widget (QWidget) +</dd> +</dl><a NAME="E5SideBar.setOrientation" ID="E5SideBar.setOrientation"></a> +<h4>E5SideBar.setOrientation</h4> +<b>setOrientation</b>(<i>orient</i>) +<p> + Public method to set the orientation of the sidebar. +</p><dl> +<dt><i>orient</i></dt> +<dd> +orientation of the sidebar (North, East, South, West) +</dd> +</dl><a NAME="E5SideBar.setSplitter" ID="E5SideBar.setSplitter"></a> +<h4>E5SideBar.setSplitter</h4> +<b>setSplitter</b>(<i>splitter</i>) +<p> + Public method to set the splitter managing the sidebar. +</p><dl> +<dt><i>splitter</i></dt> +<dd> +reference to the splitter (QSplitter) +</dd> +</dl><a NAME="E5SideBar.setTabEnabled" ID="E5SideBar.setTabEnabled"></a> +<h4>E5SideBar.setTabEnabled</h4> +<b>setTabEnabled</b>(<i>index, enabled</i>) +<p> + Public method to set the enabled state of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab to set (integer) +</dd><dt><i>enabled</i></dt> +<dd> +enabled state to set (boolean) +</dd> +</dl><a NAME="E5SideBar.setTabIcon" ID="E5SideBar.setTabIcon"></a> +<h4>E5SideBar.setTabIcon</h4> +<b>setTabIcon</b>(<i>index, icon</i>) +<p> + Public method to set the icon of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd><dt><i>icon</i></dt> +<dd> +icon to be set (QIcon) +</dd> +</dl><a NAME="E5SideBar.setTabText" ID="E5SideBar.setTabText"></a> +<h4>E5SideBar.setTabText</h4> +<b>setTabText</b>(<i>index, text</i>) +<p> + Public method to set the text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd><dt><i>text</i></dt> +<dd> +text to set (string) +</dd> +</dl><a NAME="E5SideBar.setTabToolTip" ID="E5SideBar.setTabToolTip"></a> +<h4>E5SideBar.setTabToolTip</h4> +<b>setTabToolTip</b>(<i>index, tip</i>) +<p> + Public method to set the tooltip text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd><dt><i>tooltip</i></dt> +<dd> +text text to set (string) +</dd> +</dl><a NAME="E5SideBar.setTabWhatsThis" ID="E5SideBar.setTabWhatsThis"></a> +<h4>E5SideBar.setTabWhatsThis</h4> +<b>setTabWhatsThis</b>(<i>index, text</i>) +<p> + Public method to set the WhatsThis text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd><dt><i>WhatsThis</i></dt> +<dd> +text text to set (string) +</dd> +</dl><a NAME="E5SideBar.shrink" ID="E5SideBar.shrink"></a> +<h4>E5SideBar.shrink</h4> +<b>shrink</b>(<i></i>) +<p> + Public method to shrink the sidebar. +</p><a NAME="E5SideBar.tabIcon" ID="E5SideBar.tabIcon"></a> +<h4>E5SideBar.tabIcon</h4> +<b>tabIcon</b>(<i>index</i>) +<p> + Public method to get the icon of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +icon of the tab (QIcon) +</dd> +</dl><a NAME="E5SideBar.tabText" ID="E5SideBar.tabText"></a> +<h4>E5SideBar.tabText</h4> +<b>tabText</b>(<i>index</i>) +<p> + Public method to get the text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +text of the tab (string) +</dd> +</dl><a NAME="E5SideBar.tabToolTip" ID="E5SideBar.tabToolTip"></a> +<h4>E5SideBar.tabToolTip</h4> +<b>tabToolTip</b>(<i>index</i>) +<p> + Public method to get the tooltip text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +tooltip text of the tab (string) +</dd> +</dl><a NAME="E5SideBar.tabWhatsThis" ID="E5SideBar.tabWhatsThis"></a> +<h4>E5SideBar.tabWhatsThis</h4> +<b>tabWhatsThis</b>(<i>index</i>) +<p> + Public method to get the WhatsThis text of a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +WhatsThis text of the tab (string) +</dd> +</dl><a NAME="E5SideBar.widget" ID="E5SideBar.widget"></a> +<h4>E5SideBar.widget</h4> +<b>widget</b>(<i>index</i>) +<p> + Public method to get a reference to the widget associated with a tab. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the tab (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the widget (QWidget) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5SingleApplication.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5SingleApplication</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5SingleApplication</h1> +<p> +Module implementing the single application server and client. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>SAArguments</td></tr><tr><td>SAFile</td></tr><tr><td>SAOpenFile</td></tr><tr><td>SAOpenProject</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5SingleApplicationClient">E5SingleApplicationClient</a></td> +<td>Class implementing the single application client of the IDE.</td> +</tr><tr> +<td><a href="#E5SingleApplicationServer">E5SingleApplicationServer</a></td> +<td>Class implementing the single application server embedded within the IDE.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5SingleApplicationClient" ID="E5SingleApplicationClient"></a> +<h2>E5SingleApplicationClient</h2> +<p> + Class implementing the single application client of the IDE. +</p> +<h3>Derived from</h3> +SingleApplicationClient +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5SingleApplicationClient.__init__">E5SingleApplicationClient</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5SingleApplicationClient.__openFile">__openFile</a></td> +<td>Private method to open a file in the application server.</td> +</tr><tr> +<td><a href="#E5SingleApplicationClient.__openProject">__openProject</a></td> +<td>Private method to open a project in the application server.</td> +</tr><tr> +<td><a href="#E5SingleApplicationClient.__sendArguments">__sendArguments</a></td> +<td>Private method to set the command arguments in the application server.</td> +</tr><tr> +<td><a href="#E5SingleApplicationClient.processArgs">processArgs</a></td> +<td>Public method to process the command line args passed to the UI.</td> +</tr> +</table> +<a NAME="E5SingleApplicationClient.__init__" ID="E5SingleApplicationClient.__init__"></a> +<h4>E5SingleApplicationClient (Constructor)</h4> +<b>E5SingleApplicationClient</b>(<i></i>) +<p> + Constructor +</p><a NAME="E5SingleApplicationClient.__openFile" ID="E5SingleApplicationClient.__openFile"></a> +<h4>E5SingleApplicationClient.__openFile</h4> +<b>__openFile</b>(<i>fname</i>) +<p> + Private method to open a file in the application server. +</p><dl> +<dt><i>fname</i></dt> +<dd> +name of file to be opened (string) +</dd> +</dl><a NAME="E5SingleApplicationClient.__openProject" ID="E5SingleApplicationClient.__openProject"></a> +<h4>E5SingleApplicationClient.__openProject</h4> +<b>__openProject</b>(<i>pfname</i>) +<p> + Private method to open a project in the application server. +</p><dl> +<dt><i>pfname</i></dt> +<dd> +name of the projectfile to be opened (string) +</dd> +</dl><a NAME="E5SingleApplicationClient.__sendArguments" ID="E5SingleApplicationClient.__sendArguments"></a> +<h4>E5SingleApplicationClient.__sendArguments</h4> +<b>__sendArguments</b>(<i>argsStr</i>) +<p> + Private method to set the command arguments in the application server. +</p><dl> +<dt><i>argsStr</i></dt> +<dd> +space delimited list of command args (string) +</dd> +</dl><a NAME="E5SingleApplicationClient.processArgs" ID="E5SingleApplicationClient.processArgs"></a> +<h4>E5SingleApplicationClient.processArgs</h4> +<b>processArgs</b>(<i>args</i>) +<p> + Public method to process the command line args passed to the UI. +</p><dl> +<dt><i>args</i></dt> +<dd> +list of files to open +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5SingleApplicationServer" ID="E5SingleApplicationServer"></a> +<h2>E5SingleApplicationServer</h2> +<p> + Class implementing the single application server embedded within the IDE. +</p> +<h3>Derived from</h3> +SingleApplicationServer +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5SingleApplicationServer.__init__">E5SingleApplicationServer</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5SingleApplicationServer.__saArguments">__saArguments</a></td> +<td>Private method used to handle the "Arguments" command.</td> +</tr><tr> +<td><a href="#E5SingleApplicationServer.__saOpenFile">__saOpenFile</a></td> +<td>Private method used to handle the "Open File" command.</td> +</tr><tr> +<td><a href="#E5SingleApplicationServer.__saOpenProject">__saOpenProject</a></td> +<td>Private method used to handle the "Open Project" command.</td> +</tr><tr> +<td><a href="#E5SingleApplicationServer.handleCommand">handleCommand</a></td> +<td>Public slot to handle the command sent by the client.</td> +</tr> +</table> +<a NAME="E5SingleApplicationServer.__init__" ID="E5SingleApplicationServer.__init__"></a> +<h4>E5SingleApplicationServer (Constructor)</h4> +<b>E5SingleApplicationServer</b>(<i></i>) +<p> + Constructor +</p><a NAME="E5SingleApplicationServer.__saArguments" ID="E5SingleApplicationServer.__saArguments"></a> +<h4>E5SingleApplicationServer.__saArguments</h4> +<b>__saArguments</b>(<i>argsStr</i>) +<p> + Private method used to handle the "Arguments" command. +</p><dl> +<dt><i>argsStr</i></dt> +<dd> +space delimited list of command args(string) +</dd> +</dl><a NAME="E5SingleApplicationServer.__saOpenFile" ID="E5SingleApplicationServer.__saOpenFile"></a> +<h4>E5SingleApplicationServer.__saOpenFile</h4> +<b>__saOpenFile</b>(<i>fname</i>) +<p> + Private method used to handle the "Open File" command. +</p><dl> +<dt><i>fname</i></dt> +<dd> +filename to be opened (string) +</dd> +</dl><a NAME="E5SingleApplicationServer.__saOpenProject" ID="E5SingleApplicationServer.__saOpenProject"></a> +<h4>E5SingleApplicationServer.__saOpenProject</h4> +<b>__saOpenProject</b>(<i>pfname</i>) +<p> + Private method used to handle the "Open Project" command. +</p><dl> +<dt><i>pfname</i></dt> +<dd> +filename of the project to be opened (string) +</dd> +</dl><a NAME="E5SingleApplicationServer.handleCommand" ID="E5SingleApplicationServer.handleCommand"></a> +<h4>E5SingleApplicationServer.handleCommand</h4> +<b>handleCommand</b>(<i>cmd, params</i>) +<p> + Public slot to handle the command sent by the client. +</p><dl> +<dt><i>cmd</i></dt> +<dd> +commandstring (string) +</dd><dt><i>params</i></dt> +<dd> +parameterstring (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5SqueezeLabels.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,207 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5SqueezeLabels</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5SqueezeLabels</h1> +<p> +Module implementing labels that squeeze their contents to fit the size of the label. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5SqueezeLabel">E5SqueezeLabel</a></td> +<td>Class implementing a label that squeezes its contents to fit it's size.</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath">E5SqueezeLabelPath</a></td> +<td>Class implementing a label showing a file path compacted to fit it's size.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5SqueezeLabel" ID="E5SqueezeLabel"></a> +<h2>E5SqueezeLabel</h2> +<p> + Class implementing a label that squeezes its contents to fit it's size. +</p> +<h3>Derived from</h3> +QLabel +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5SqueezeLabel.__init__">E5SqueezeLabel</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5SqueezeLabel.paintEvent">paintEvent</a></td> +<td>Protected method called when some painting is required.</td> +</tr><tr> +<td><a href="#E5SqueezeLabel.setText">setText</a></td> +<td>Public method to set the label's text.</td> +</tr> +</table> +<a NAME="E5SqueezeLabel.__init__" ID="E5SqueezeLabel.__init__"></a> +<h4>E5SqueezeLabel (Constructor)</h4> +<b>E5SqueezeLabel</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent Widget (QWidget) +</dd> +</dl><a NAME="E5SqueezeLabel.paintEvent" ID="E5SqueezeLabel.paintEvent"></a> +<h4>E5SqueezeLabel.paintEvent</h4> +<b>paintEvent</b>(<i>event</i>) +<p> + Protected method called when some painting is required. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the paint event (QPaintEvent) +</dd> +</dl><a NAME="E5SqueezeLabel.setText" ID="E5SqueezeLabel.setText"></a> +<h4>E5SqueezeLabel.setText</h4> +<b>setText</b>(<i>txt</i>) +<p> + Public method to set the label's text. +</p><dl> +<dt><i>txt</i></dt> +<dd> +the text to be shown (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5SqueezeLabelPath" ID="E5SqueezeLabelPath"></a> +<h2>E5SqueezeLabelPath</h2> +<p> + Class implementing a label showing a file path compacted to fit it's size. +</p> +<h3>Derived from</h3> +QLabel +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5SqueezeLabelPath.__init__">E5SqueezeLabelPath</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath.length">length</a></td> +<td>Public method to return the length of a text in pixels.</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath.paintEvent">paintEvent</a></td> +<td>Protected method called when some painting is required.</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath.setPath">setPath</a></td> +<td>Public method to set the path of the label.</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath.setSurrounding">setSurrounding</a></td> +<td>Public method to set the surrounding of the path string.</td> +</tr><tr> +<td><a href="#E5SqueezeLabelPath.setTextPath">setTextPath</a></td> +<td>Public method to set the surrounding and the path of the label.</td> +</tr> +</table> +<a NAME="E5SqueezeLabelPath.__init__" ID="E5SqueezeLabelPath.__init__"></a> +<h4>E5SqueezeLabelPath (Constructor)</h4> +<b>E5SqueezeLabelPath</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent Widget (QWidget) +</dd> +</dl><a NAME="E5SqueezeLabelPath.length" ID="E5SqueezeLabelPath.length"></a> +<h4>E5SqueezeLabelPath.length</h4> +<b>length</b>(<i>txt</i>) +<p> + Public method to return the length of a text in pixels. +</p><dl> +<dt><i>txt</i></dt> +<dd> +text to calculate the length for after wrapped (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +length of the wrapped text in pixels (integer) +</dd> +</dl><a NAME="E5SqueezeLabelPath.paintEvent" ID="E5SqueezeLabelPath.paintEvent"></a> +<h4>E5SqueezeLabelPath.paintEvent</h4> +<b>paintEvent</b>(<i>event</i>) +<p> + Protected method called when some painting is required. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the paint event (QPaintEvent) +</dd> +</dl><a NAME="E5SqueezeLabelPath.setPath" ID="E5SqueezeLabelPath.setPath"></a> +<h4>E5SqueezeLabelPath.setPath</h4> +<b>setPath</b>(<i>path</i>) +<p> + Public method to set the path of the label. +</p><dl> +<dt><i>path</i></dt> +<dd> +path to be shown (string) +</dd> +</dl><a NAME="E5SqueezeLabelPath.setSurrounding" ID="E5SqueezeLabelPath.setSurrounding"></a> +<h4>E5SqueezeLabelPath.setSurrounding</h4> +<b>setSurrounding</b>(<i>surrounding</i>) +<p> + Public method to set the surrounding of the path string. +</p><dl> +<dt><i>surrounding</i></dt> +<dd> +the a string containg placeholders for the path (string) +</dd> +</dl><a NAME="E5SqueezeLabelPath.setTextPath" ID="E5SqueezeLabelPath.setTextPath"></a> +<h4>E5SqueezeLabelPath.setTextPath</h4> +<b>setTextPath</b>(<i>surrounding, path</i>) +<p> + Public method to set the surrounding and the path of the label. +</p><dl> +<dt><i>surrounding</i></dt> +<dd> +the a string containg placeholders for the path (string) +</dd><dt><i>path</i></dt> +<dd> +path to be shown (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5TabWidget.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,371 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5TabWidget</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5TabWidget</h1> +<p> +Module implementing a TabWidget class substituting QTabWidget. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5DnDTabBar">E5DnDTabBar</a></td> +<td>Class implementing a tab bar class substituting QTabBar.</td> +</tr><tr> +<td><a href="#E5TabWidget">E5TabWidget</a></td> +<td>Class implementing a tab widget class substituting QTabWidget.</td> +</tr><tr> +<td><a href="#E5WheelTabBar">E5WheelTabBar</a></td> +<td>Class implementing a tab bar class substituting QTabBar to support wheel events.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5DnDTabBar" ID="E5DnDTabBar"></a> +<h2>E5DnDTabBar</h2> +<p> + Class implementing a tab bar class substituting QTabBar. +</p><h4>Signals</h4> +<dl> +<dt>tabMoveRequested(int, int)</dt> +<dd> +emitted to signal a tab move request giving + the old and new index position +</dd> +</dl> +<h3>Derived from</h3> +E5WheelTabBar +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5DnDTabBar.__init__">E5DnDTabBar</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5DnDTabBar.dragEnterEvent">dragEnterEvent</a></td> +<td>Protected method to handle drag enter events.</td> +</tr><tr> +<td><a href="#E5DnDTabBar.dropEvent">dropEvent</a></td> +<td>Protected method to handle drop events.</td> +</tr><tr> +<td><a href="#E5DnDTabBar.mouseMoveEvent">mouseMoveEvent</a></td> +<td>Protected method to handle mouse move events.</td> +</tr><tr> +<td><a href="#E5DnDTabBar.mousePressEvent">mousePressEvent</a></td> +<td>Protected method to handle mouse press events.</td> +</tr> +</table> +<a NAME="E5DnDTabBar.__init__" ID="E5DnDTabBar.__init__"></a> +<h4>E5DnDTabBar (Constructor)</h4> +<b>E5DnDTabBar</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5DnDTabBar.dragEnterEvent" ID="E5DnDTabBar.dragEnterEvent"></a> +<h4>E5DnDTabBar.dragEnterEvent</h4> +<b>dragEnterEvent</b>(<i>event</i>) +<p> + Protected method to handle drag enter events. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the drag enter event (QDragEnterEvent) +</dd> +</dl><a NAME="E5DnDTabBar.dropEvent" ID="E5DnDTabBar.dropEvent"></a> +<h4>E5DnDTabBar.dropEvent</h4> +<b>dropEvent</b>(<i>event</i>) +<p> + Protected method to handle drop events. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the drop event (QDropEvent) +</dd> +</dl><a NAME="E5DnDTabBar.mouseMoveEvent" ID="E5DnDTabBar.mouseMoveEvent"></a> +<h4>E5DnDTabBar.mouseMoveEvent</h4> +<b>mouseMoveEvent</b>(<i>event</i>) +<p> + Protected method to handle mouse move events. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the mouse move event (QMouseEvent) +</dd> +</dl><a NAME="E5DnDTabBar.mousePressEvent" ID="E5DnDTabBar.mousePressEvent"></a> +<h4>E5DnDTabBar.mousePressEvent</h4> +<b>mousePressEvent</b>(<i>event</i>) +<p> + Protected method to handle mouse press events. +</p><dl> +<dt><i>event</i></dt> +<dd> +reference to the mouse press event (QMouseEvent) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5TabWidget" ID="E5TabWidget"></a> +<h2>E5TabWidget</h2> +<p> + Class implementing a tab widget class substituting QTabWidget. +</p><p> + It provides slots to show the previous and next tab and give + them the input focus and it allows to have a context menu for the tabs. +</p><h4>Signals</h4> +<dl> +<dt>customTabContextMenuRequested(const QPoint & point, int index)</dt> +<dd> +emitted when + a context menu for a tab is requested +</dd> +</dl> +<h3>Derived from</h3> +QTabWidget +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5TabWidget.__init__">E5TabWidget</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5TabWidget.__currentChanged">__currentChanged</a></td> +<td>Private slot to handle the currentChanged signal.</td> +</tr><tr> +<td><a href="#E5TabWidget.__freeSide">__freeSide</a></td> +<td>Private method to determine the free side of a tab.</td> +</tr><tr> +<td><a href="#E5TabWidget.__handleTabCustomContextMenuRequested">__handleTabCustomContextMenuRequested</a></td> +<td>Private slot to handle the context menu request for the tabbar.</td> +</tr><tr> +<td><a href="#E5TabWidget.animationLabel">animationLabel</a></td> +<td>Public slot to set an animated icon.</td> +</tr><tr> +<td><a href="#E5TabWidget.moveTab">moveTab</a></td> +<td>Public method to move a tab to a new index.</td> +</tr><tr> +<td><a href="#E5TabWidget.nextTab">nextTab</a></td> +<td>Public slot used to show the next tab.</td> +</tr><tr> +<td><a href="#E5TabWidget.prevTab">prevTab</a></td> +<td>Public slot used to show the previous tab.</td> +</tr><tr> +<td><a href="#E5TabWidget.resetAnimation">resetAnimation</a></td> +<td>Public slot to reset an animated icon.</td> +</tr><tr> +<td><a href="#E5TabWidget.selectTab">selectTab</a></td> +<td>Public method to get the index of a tab given a position.</td> +</tr><tr> +<td><a href="#E5TabWidget.setTabContextMenuPolicy">setTabContextMenuPolicy</a></td> +<td>Public method to set the context menu policy of the tab.</td> +</tr><tr> +<td><a href="#E5TabWidget.switchTab">switchTab</a></td> +<td>Public slot used to switch between the current and the previous current tab.</td> +</tr> +</table> +<a NAME="E5TabWidget.__init__" ID="E5TabWidget.__init__"></a> +<h4>E5TabWidget (Constructor)</h4> +<b>E5TabWidget</b>(<i>parent = None, dnd = False</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd><dt><i>dnd=</i></dt> +<dd> +flag indicating the support for Drag & Drop (boolean) +</dd> +</dl><a NAME="E5TabWidget.__currentChanged" ID="E5TabWidget.__currentChanged"></a> +<h4>E5TabWidget.__currentChanged</h4> +<b>__currentChanged</b>(<i>index</i>) +<p> + Private slot to handle the currentChanged signal. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the current tab +</dd> +</dl><a NAME="E5TabWidget.__freeSide" ID="E5TabWidget.__freeSide"></a> +<h4>E5TabWidget.__freeSide</h4> +<b>__freeSide</b>(<i></i>) +<p> + Private method to determine the free side of a tab. +</p><dl> +<dt>Returns:</dt> +<dd> +free side (QTabBar.ButtonPosition) +</dd> +</dl><a NAME="E5TabWidget.__handleTabCustomContextMenuRequested" ID="E5TabWidget.__handleTabCustomContextMenuRequested"></a> +<h4>E5TabWidget.__handleTabCustomContextMenuRequested</h4> +<b>__handleTabCustomContextMenuRequested</b>(<i>point</i>) +<p> + Private slot to handle the context menu request for the tabbar. +</p><dl> +<dt><i>point</i></dt> +<dd> +point the context menu was requested (QPoint) +</dd> +</dl><a NAME="E5TabWidget.animationLabel" ID="E5TabWidget.animationLabel"></a> +<h4>E5TabWidget.animationLabel</h4> +<b>animationLabel</b>(<i>index, animationFile</i>) +<p> + Public slot to set an animated icon. +</p><dl> +<dt><i>index</i></dt> +<dd> +tab index (integer) +</dd><dt><i>animationFile</i></dt> +<dd> +name of the file containing the animation (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the created label (QLabel) +</dd> +</dl><a NAME="E5TabWidget.moveTab" ID="E5TabWidget.moveTab"></a> +<h4>E5TabWidget.moveTab</h4> +<b>moveTab</b>(<i>curIndex, newIndex</i>) +<p> + Public method to move a tab to a new index. +</p><dl> +<dt><i>curIndex</i></dt> +<dd> +index of tab to be moved (integer) +</dd><dt><i>newIndex</i></dt> +<dd> +index the tab should be moved to (integer) +</dd> +</dl><a NAME="E5TabWidget.nextTab" ID="E5TabWidget.nextTab"></a> +<h4>E5TabWidget.nextTab</h4> +<b>nextTab</b>(<i></i>) +<p> + Public slot used to show the next tab. +</p><a NAME="E5TabWidget.prevTab" ID="E5TabWidget.prevTab"></a> +<h4>E5TabWidget.prevTab</h4> +<b>prevTab</b>(<i></i>) +<p> + Public slot used to show the previous tab. +</p><a NAME="E5TabWidget.resetAnimation" ID="E5TabWidget.resetAnimation"></a> +<h4>E5TabWidget.resetAnimation</h4> +<b>resetAnimation</b>(<i>index</i>) +<p> + Public slot to reset an animated icon. +</p><dl> +<dt><i>index</i></dt> +<dd> +tab index (integer) +</dd> +</dl><a NAME="E5TabWidget.selectTab" ID="E5TabWidget.selectTab"></a> +<h4>E5TabWidget.selectTab</h4> +<b>selectTab</b>(<i>pos</i>) +<p> + Public method to get the index of a tab given a position. +</p><dl> +<dt><i>pos</i></dt> +<dd> +position determining the tab index (QPoint) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the tab (integer) +</dd> +</dl><a NAME="E5TabWidget.setTabContextMenuPolicy" ID="E5TabWidget.setTabContextMenuPolicy"></a> +<h4>E5TabWidget.setTabContextMenuPolicy</h4> +<b>setTabContextMenuPolicy</b>(<i>policy</i>) +<p> + Public method to set the context menu policy of the tab. +</p><dl> +<dt><i>policy</i></dt> +<dd> +context menu policy to set (Qt.ContextMenuPolicy) +</dd> +</dl><a NAME="E5TabWidget.switchTab" ID="E5TabWidget.switchTab"></a> +<h4>E5TabWidget.switchTab</h4> +<b>switchTab</b>(<i></i>) +<p> + Public slot used to switch between the current and the previous current tab. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5WheelTabBar" ID="E5WheelTabBar"></a> +<h2>E5WheelTabBar</h2> +<p> + Class implementing a tab bar class substituting QTabBar to support wheel events. +</p> +<h3>Derived from</h3> +QTabBar +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5WheelTabBar.__init__">E5WheelTabBar</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5WheelTabBar.wheelEvent">wheelEvent</a></td> +<td>Protected slot to support wheel events.</td> +</tr> +</table> +<a NAME="E5WheelTabBar.__init__" ID="E5WheelTabBar.__init__"></a> +<h4>E5WheelTabBar (Constructor)</h4> +<b>E5WheelTabBar</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5WheelTabBar.wheelEvent" ID="E5WheelTabBar.wheelEvent"></a> +<h4>E5WheelTabBar.wheelEvent</h4> +<b>wheelEvent</b>(<i>event</i>) +<p> + Protected slot to support wheel events. +</p><dl> +<dt><i>reference</i></dt> +<dd> +to the wheel event (QWheelEvent) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5TableView.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5TableView</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5TableView</h1> +<p> +Module implementing specialized table views. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5TableView">E5TableView</a></td> +<td>Class implementing a table view supporting removal of entries.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5TableView" ID="E5TableView"></a> +<h2>E5TableView</h2> +<p> + Class implementing a table view supporting removal of entries. +</p> +<h3>Derived from</h3> +QTableView +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5TableView.keyPressEvent">keyPressEvent</a></td> +<td>Protected method implementing special key handling.</td> +</tr><tr> +<td><a href="#E5TableView.removeAll">removeAll</a></td> +<td>Public method to clear the view.</td> +</tr><tr> +<td><a href="#E5TableView.removeSelected">removeSelected</a></td> +<td>Public method to remove the selected entries.</td> +</tr> +</table> +<a NAME="E5TableView.keyPressEvent" ID="E5TableView.keyPressEvent"></a> +<h4>E5TableView.keyPressEvent</h4> +<b>keyPressEvent</b>(<i>evt</i>) +<p> + Protected method implementing special key handling. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QKeyEvent) +</dd> +</dl><a NAME="E5TableView.removeAll" ID="E5TableView.removeAll"></a> +<h4>E5TableView.removeAll</h4> +<b>removeAll</b>(<i></i>) +<p> + Public method to clear the view. +</p><a NAME="E5TableView.removeSelected" ID="E5TableView.removeSelected"></a> +<h4>E5TableView.removeSelected</h4> +<b>removeSelected</b>(<i></i>) +<p> + Public method to remove the selected entries. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ToolBarDialog.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,255 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ToolBarDialog</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ToolBarDialog</h1> +<p> +Module implementing a toolbar configuration dialog. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5ToolBarDialog">E5ToolBarDialog</a></td> +<td>Class implementing a toolbar configuration dialog.</td> +</tr><tr> +<td><a href="#E5ToolBarItem">E5ToolBarItem</a></td> +<td>Class storing data belonging to a toolbar entry of the toolbar dialog.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5ToolBarDialog" ID="E5ToolBarDialog"></a> +<h2>E5ToolBarDialog</h2> +<p> + Class implementing a toolbar configuration dialog. +</p> +<h3>Derived from</h3> +QDialog, Ui_E5ToolBarDialog +<h3>Class Attributes</h3> +<table> +<tr><td>ActionIdRole</td></tr><tr><td>WidgetActionRole</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ToolBarDialog.__init__">E5ToolBarDialog</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__resetCurrentToolbar">__resetCurrentToolbar</a></td> +<td>Private method to revert all changes made to the current toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__restoreCurrentToolbar">__restoreCurrentToolbar</a></td> +<td>Private methdo to restore the current toolbar to the given list of actions.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__restoreCurrentToolbarToDefault">__restoreCurrentToolbarToDefault</a></td> +<td>Private method to set the current toolbar to it's default configuration.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__saveToolBars">__saveToolBars</a></td> +<td>Private method to save the configured toolbars.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__setupButtons">__setupButtons</a></td> +<td>Private slot to set the buttons state.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.__toolbarComboBox_currentIndexChanged">__toolbarComboBox_currentIndexChanged</a></td> +<td>Private slot called upon a selection of the current toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_actionsTree_currentItemChanged">on_actionsTree_currentItemChanged</a></td> +<td>Private slot called, when the currently selected action changes.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> +<td>Private slot called, when a button of the button box was clicked.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_downButton_clicked">on_downButton_clicked</a></td> +<td>Private slot used to move an action down in the list.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_leftButton_clicked">on_leftButton_clicked</a></td> +<td>Private slot to delete an action from the list.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_newButton_clicked">on_newButton_clicked</a></td> +<td>Private slot to create a new toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_removeButton_clicked">on_removeButton_clicked</a></td> +<td>Private slot to remove a custom toolbar</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_renameButton_clicked">on_renameButton_clicked</a></td> +<td>Private slot to rename a custom toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_rightButton_clicked">on_rightButton_clicked</a></td> +<td>Private slot to add an action to the list.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_toolbarActionsList_currentItemChanged">on_toolbarActionsList_currentItemChanged</a></td> +<td>Slot documentation goes here.</td> +</tr><tr> +<td><a href="#E5ToolBarDialog.on_upButton_clicked">on_upButton_clicked</a></td> +<td>Private slot used to move an action up in the list.</td> +</tr> +</table> +<a NAME="E5ToolBarDialog.__init__" ID="E5ToolBarDialog.__init__"></a> +<h4>E5ToolBarDialog (Constructor)</h4> +<b>E5ToolBarDialog</b>(<i>toolBarManager, parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>toolBarManager</i></dt> +<dd> +reference to a toolbar manager object (E5ToolBarManager) +</dd><dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5ToolBarDialog.__resetCurrentToolbar" ID="E5ToolBarDialog.__resetCurrentToolbar"></a> +<h4>E5ToolBarDialog.__resetCurrentToolbar</h4> +<b>__resetCurrentToolbar</b>(<i></i>) +<p> + Private method to revert all changes made to the current toolbar. +</p><a NAME="E5ToolBarDialog.__restoreCurrentToolbar" ID="E5ToolBarDialog.__restoreCurrentToolbar"></a> +<h4>E5ToolBarDialog.__restoreCurrentToolbar</h4> +<b>__restoreCurrentToolbar</b>(<i>actions</i>) +<p> + Private methdo to restore the current toolbar to the given list of actions. +</p><dl> +<dt><i>actions</i></dt> +<dd> +list of actions to set for the current toolbar (list of QAction) +</dd> +</dl><a NAME="E5ToolBarDialog.__restoreCurrentToolbarToDefault" ID="E5ToolBarDialog.__restoreCurrentToolbarToDefault"></a> +<h4>E5ToolBarDialog.__restoreCurrentToolbarToDefault</h4> +<b>__restoreCurrentToolbarToDefault</b>(<i></i>) +<p> + Private method to set the current toolbar to it's default configuration. +</p><a NAME="E5ToolBarDialog.__saveToolBars" ID="E5ToolBarDialog.__saveToolBars"></a> +<h4>E5ToolBarDialog.__saveToolBars</h4> +<b>__saveToolBars</b>(<i></i>) +<p> + Private method to save the configured toolbars. +</p><a NAME="E5ToolBarDialog.__setupButtons" ID="E5ToolBarDialog.__setupButtons"></a> +<h4>E5ToolBarDialog.__setupButtons</h4> +<b>__setupButtons</b>(<i></i>) +<p> + Private slot to set the buttons state. +</p><a NAME="E5ToolBarDialog.__toolbarComboBox_currentIndexChanged" ID="E5ToolBarDialog.__toolbarComboBox_currentIndexChanged"></a> +<h4>E5ToolBarDialog.__toolbarComboBox_currentIndexChanged</h4> +<b>__toolbarComboBox_currentIndexChanged</b>(<i>index</i>) +<p> + Private slot called upon a selection of the current toolbar. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the new current toolbar (integer) +</dd> +</dl><a NAME="E5ToolBarDialog.on_actionsTree_currentItemChanged" ID="E5ToolBarDialog.on_actionsTree_currentItemChanged"></a> +<h4>E5ToolBarDialog.on_actionsTree_currentItemChanged</h4> +<b>on_actionsTree_currentItemChanged</b>(<i>current, previous</i>) +<p> + Private slot called, when the currently selected action changes. +</p><a NAME="E5ToolBarDialog.on_buttonBox_clicked" ID="E5ToolBarDialog.on_buttonBox_clicked"></a> +<h4>E5ToolBarDialog.on_buttonBox_clicked</h4> +<b>on_buttonBox_clicked</b>(<i>button</i>) +<p> + Private slot called, when a button of the button box was clicked. +</p><a NAME="E5ToolBarDialog.on_downButton_clicked" ID="E5ToolBarDialog.on_downButton_clicked"></a> +<h4>E5ToolBarDialog.on_downButton_clicked</h4> +<b>on_downButton_clicked</b>(<i></i>) +<p> + Private slot used to move an action down in the list. +</p><a NAME="E5ToolBarDialog.on_leftButton_clicked" ID="E5ToolBarDialog.on_leftButton_clicked"></a> +<h4>E5ToolBarDialog.on_leftButton_clicked</h4> +<b>on_leftButton_clicked</b>(<i></i>) +<p> + Private slot to delete an action from the list. +</p><a NAME="E5ToolBarDialog.on_newButton_clicked" ID="E5ToolBarDialog.on_newButton_clicked"></a> +<h4>E5ToolBarDialog.on_newButton_clicked</h4> +<b>on_newButton_clicked</b>(<i></i>) +<p> + Private slot to create a new toolbar. +</p><a NAME="E5ToolBarDialog.on_removeButton_clicked" ID="E5ToolBarDialog.on_removeButton_clicked"></a> +<h4>E5ToolBarDialog.on_removeButton_clicked</h4> +<b>on_removeButton_clicked</b>(<i></i>) +<p> + Private slot to remove a custom toolbar +</p><a NAME="E5ToolBarDialog.on_renameButton_clicked" ID="E5ToolBarDialog.on_renameButton_clicked"></a> +<h4>E5ToolBarDialog.on_renameButton_clicked</h4> +<b>on_renameButton_clicked</b>(<i></i>) +<p> + Private slot to rename a custom toolbar. +</p><a NAME="E5ToolBarDialog.on_rightButton_clicked" ID="E5ToolBarDialog.on_rightButton_clicked"></a> +<h4>E5ToolBarDialog.on_rightButton_clicked</h4> +<b>on_rightButton_clicked</b>(<i></i>) +<p> + Private slot to add an action to the list. +</p><a NAME="E5ToolBarDialog.on_toolbarActionsList_currentItemChanged" ID="E5ToolBarDialog.on_toolbarActionsList_currentItemChanged"></a> +<h4>E5ToolBarDialog.on_toolbarActionsList_currentItemChanged</h4> +<b>on_toolbarActionsList_currentItemChanged</b>(<i>current, previous</i>) +<p> + Slot documentation goes here. +</p><a NAME="E5ToolBarDialog.on_upButton_clicked" ID="E5ToolBarDialog.on_upButton_clicked"></a> +<h4>E5ToolBarDialog.on_upButton_clicked</h4> +<b>on_upButton_clicked</b>(<i></i>) +<p> + Private slot used to move an action up in the list. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5ToolBarItem" ID="E5ToolBarItem"></a> +<h2>E5ToolBarItem</h2> +<p> + Class storing data belonging to a toolbar entry of the toolbar dialog. +</p> +<h3>Derived from</h3> +object +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ToolBarItem.__init__">E5ToolBarItem</a></td> +<td>Constructor</td> +</tr> +</table> +<a NAME="E5ToolBarItem.__init__" ID="E5ToolBarItem.__init__"></a> +<h4>E5ToolBarItem (Constructor)</h4> +<b>E5ToolBarItem</b>(<i>toolBarId, actionIDs, default</i>) +<p> + Constructor +</p><dl> +<dt><i>toolBarId</i></dt> +<dd> +id of the toolbar object (integer) +</dd><dt><i>actionIDs</i></dt> +<dd> +list of action IDs belonging to the toolbar (list of integer) +</dd><dt><i>default</i></dt> +<dd> +flag indicating a default toolbar (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ToolBarManager.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,558 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ToolBarManager</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ToolBarManager</h1> +<p> +Module implementing a toolbar manager class. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5ToolBarManager">E5ToolBarManager</a></td> +<td>Class implementing a toolbar manager.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5ToolBarManager" ID="E5ToolBarManager"></a> +<h2>E5ToolBarManager</h2> +<p> + Class implementing a toolbar manager. +</p> +<h3>Derived from</h3> +QObject +<h3>Class Attributes</h3> +<table> +<tr><td>CustomToolBarMarker</td></tr><tr><td>ToolBarMarker</td></tr><tr><td>VersionMarker</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5ToolBarManager.__init__">E5ToolBarManager</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5ToolBarManager.__findAction">__findAction</a></td> +<td>Private method to find an action by name.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.__findDefaultToolBar">__findDefaultToolBar</a></td> +<td>Private method to find a default toolbar by name.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.__toolBarByName">__toolBarByName</a></td> +<td>Private slot to get a toolbar by it's object name.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.actionById">actionById</a></td> +<td>Public method to get an action given it's id.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.addAction">addAction</a></td> +<td>Public method to add an action to be managed.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.addToolBar">addToolBar</a></td> +<td>Public method to add a toolbar to be managed.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.categories">categories</a></td> +<td>Public method to get the list of categories.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.categoryActions">categoryActions</a></td> +<td>Public method to get the actions belonging to a category.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.createToolBar">createToolBar</a></td> +<td>Public method to create a custom toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.defaultToolBarActions">defaultToolBarActions</a></td> +<td>Public method to get a default toolbar's actions given it's id.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.defaultToolBars">defaultToolBars</a></td> +<td>Public method to get all toolbars added with addToolBar().</td> +</tr><tr> +<td><a href="#E5ToolBarManager.deleteToolBar">deleteToolBar</a></td> +<td>Public method to remove a custom toolbar created with createToolBar().</td> +</tr><tr> +<td><a href="#E5ToolBarManager.isDefaultToolBar">isDefaultToolBar</a></td> +<td>Public method to check, if a toolbar was added with addToolBar().</td> +</tr><tr> +<td><a href="#E5ToolBarManager.isWidgetAction">isWidgetAction</a></td> +<td>Public method to check, if action is a widget action.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.mainWindow">mainWindow</a></td> +<td>Public method to get the reference to the main window.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.removeAction">removeAction</a></td> +<td>Public method to remove an action from the manager.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.removeToolBar">removeToolBar</a></td> +<td>Public method to remove a toolbar added with addToolBar().</td> +</tr><tr> +<td><a href="#E5ToolBarManager.removeWidgetActions">removeWidgetActions</a></td> +<td>Public method to remove widget actions.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.renameToolBar">renameToolBar</a></td> +<td>Public method to give a toolbar a new title.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.resetAllToolBars">resetAllToolBars</a></td> +<td>Public method to reset all toolbars to their default state.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.resetToolBar">resetToolBar</a></td> +<td>Public method to reset a toolbar to it's default state.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.restoreState">restoreState</a></td> +<td>Public method to restore the state of the toolbar manager.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.saveState">saveState</a></td> +<td>Public method to save the state of the toolbar manager.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.setMainWindow">setMainWindow</a></td> +<td>Public method to set the reference to the main window.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.setToolBar">setToolBar</a></td> +<td>Public method to set the actions of a toolbar.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.setToolBars">setToolBars</a></td> +<td>Public method to set the actions of several toolbars.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.toolBarActions">toolBarActions</a></td> +<td>Public method to get a toolbar's actions given it's id.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.toolBarById">toolBarById</a></td> +<td>Public method to get a toolbar given it's id.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.toolBarWidgetAction">toolBarWidgetAction</a></td> +<td>Public method to get the toolbar for a widget action.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.toolBars">toolBars</a></td> +<td>Public method to get all toolbars.</td> +</tr><tr> +<td><a href="#E5ToolBarManager.toolBarsActions">toolBarsActions</a></td> +<td>Public method to get all toolbars and their actions.</td> +</tr> +</table> +<a NAME="E5ToolBarManager.__init__" ID="E5ToolBarManager.__init__"></a> +<h4>E5ToolBarManager (Constructor)</h4> +<b>E5ToolBarManager</b>(<i>ui = None, parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>ui</i></dt> +<dd> +reference to the user interface object (UI.UserInterface) +</dd><dt><i>parent</i></dt> +<dd> +reference to the parent object (QObject) +</dd> +</dl><a NAME="E5ToolBarManager.__findAction" ID="E5ToolBarManager.__findAction"></a> +<h4>E5ToolBarManager.__findAction</h4> +<b>__findAction</b>(<i>name</i>) +<p> + Private method to find an action by name. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the action to search for (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the action (QAction) +</dd> +</dl><a NAME="E5ToolBarManager.__findDefaultToolBar" ID="E5ToolBarManager.__findDefaultToolBar"></a> +<h4>E5ToolBarManager.__findDefaultToolBar</h4> +<b>__findDefaultToolBar</b>(<i>name</i>) +<p> + Private method to find a default toolbar by name. +</p><dl> +<dt><i>name</i></dt> +<dd> +name of the default toolbar to search for (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the default toolbar (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.__toolBarByName" ID="E5ToolBarManager.__toolBarByName"></a> +<h4>E5ToolBarManager.__toolBarByName</h4> +<b>__toolBarByName</b>(<i>name</i>) +<p> + Private slot to get a toolbar by it's object name. +</p><dl> +<dt><i>name</i></dt> +<dd> +object name of the toolbar (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the toolbar (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.actionById" ID="E5ToolBarManager.actionById"></a> +<h4>E5ToolBarManager.actionById</h4> +<b>actionById</b>(<i>aID</i>) +<p> + Public method to get an action given it's id. +</p><dl> +<dt><i>aID</i></dt> +<dd> +id of the action object (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the action (QAction) +</dd> +</dl><a NAME="E5ToolBarManager.addAction" ID="E5ToolBarManager.addAction"></a> +<h4>E5ToolBarManager.addAction</h4> +<b>addAction</b>(<i>action, category</i>) +<p> + Public method to add an action to be managed. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action to be managed (QAction) +</dd><dt><i>category</i></dt> +<dd> +category for the toolbar (string) +</dd> +</dl><a NAME="E5ToolBarManager.addToolBar" ID="E5ToolBarManager.addToolBar"></a> +<h4>E5ToolBarManager.addToolBar</h4> +<b>addToolBar</b>(<i>toolBar, category</i>) +<p> + Public method to add a toolbar to be managed. +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to be managed (QToolBar) +</dd><dt><i>category</i></dt> +<dd> +category for the toolbar (string) +</dd> +</dl><a NAME="E5ToolBarManager.categories" ID="E5ToolBarManager.categories"></a> +<h4>E5ToolBarManager.categories</h4> +<b>categories</b>(<i></i>) +<p> + Public method to get the list of categories. +</p><dl> +<dt>Returns:</dt> +<dd> +list of categories (list of string) +</dd> +</dl><a NAME="E5ToolBarManager.categoryActions" ID="E5ToolBarManager.categoryActions"></a> +<h4>E5ToolBarManager.categoryActions</h4> +<b>categoryActions</b>(<i>category</i>) +<p> + Public method to get the actions belonging to a category. +</p><dl> +<dt><i>category</i></dt> +<dd> +category for the toolbar (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +list of actions (list of QAction) +</dd> +</dl><a NAME="E5ToolBarManager.createToolBar" ID="E5ToolBarManager.createToolBar"></a> +<h4>E5ToolBarManager.createToolBar</h4> +<b>createToolBar</b>(<i>title</i>) +<p> + Public method to create a custom toolbar. +</p><dl> +<dt><i>title</i></dt> +<dd> +title to be used for the toolbar (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the created toolbar (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.defaultToolBarActions" ID="E5ToolBarManager.defaultToolBarActions"></a> +<h4>E5ToolBarManager.defaultToolBarActions</h4> +<b>defaultToolBarActions</b>(<i>tbID</i>) +<p> + Public method to get a default toolbar's actions given it's id. +</p><dl> +<dt><i>tbID</i></dt> +<dd> +id of the default toolbar object (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +list of actions (list of QAction) +</dd> +</dl><a NAME="E5ToolBarManager.defaultToolBars" ID="E5ToolBarManager.defaultToolBars"></a> +<h4>E5ToolBarManager.defaultToolBars</h4> +<b>defaultToolBars</b>(<i></i>) +<p> + Public method to get all toolbars added with addToolBar(). +</p><dl> +<dt>Returns:</dt> +<dd> +list of all default toolbars (list of QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.deleteToolBar" ID="E5ToolBarManager.deleteToolBar"></a> +<h4>E5ToolBarManager.deleteToolBar</h4> +<b>deleteToolBar</b>(<i>toolBar</i>) +<p> + Public method to remove a custom toolbar created with createToolBar(). +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to be managed (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.isDefaultToolBar" ID="E5ToolBarManager.isDefaultToolBar"></a> +<h4>E5ToolBarManager.isDefaultToolBar</h4> +<b>isDefaultToolBar</b>(<i>toolBar</i>) +<p> + Public method to check, if a toolbar was added with addToolBar(). +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to be checked (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.isWidgetAction" ID="E5ToolBarManager.isWidgetAction"></a> +<h4>E5ToolBarManager.isWidgetAction</h4> +<b>isWidgetAction</b>(<i>action</i>) +<p> + Public method to check, if action is a widget action. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action to be checked (QAction) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating a widget action (boolean) +</dd> +</dl><a NAME="E5ToolBarManager.mainWindow" ID="E5ToolBarManager.mainWindow"></a> +<h4>E5ToolBarManager.mainWindow</h4> +<b>mainWindow</b>(<i></i>) +<p> + Public method to get the reference to the main window. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to the main window (QMainWindow) +</dd> +</dl><a NAME="E5ToolBarManager.removeAction" ID="E5ToolBarManager.removeAction"></a> +<h4>E5ToolBarManager.removeAction</h4> +<b>removeAction</b>(<i>action</i>) +<p> + Public method to remove an action from the manager. +</p><dl> +<dt><i>action</i></dt> +<dd> +reference to the action to be removed (QAction) +</dd> +</dl><a NAME="E5ToolBarManager.removeToolBar" ID="E5ToolBarManager.removeToolBar"></a> +<h4>E5ToolBarManager.removeToolBar</h4> +<b>removeToolBar</b>(<i>toolBar</i>) +<p> + Public method to remove a toolbar added with addToolBar(). +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to be removed (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.removeWidgetActions" ID="E5ToolBarManager.removeWidgetActions"></a> +<h4>E5ToolBarManager.removeWidgetActions</h4> +<b>removeWidgetActions</b>(<i>actions</i>) +<p> + Public method to remove widget actions. +</p><dl> +<dt><i>actions</i></dt> +<dd> +dictionary with toolbar id as key and + a list of widget actions as value +</dd> +</dl><a NAME="E5ToolBarManager.renameToolBar" ID="E5ToolBarManager.renameToolBar"></a> +<h4>E5ToolBarManager.renameToolBar</h4> +<b>renameToolBar</b>(<i>toolBar, title</i>) +<p> + Public method to give a toolbar a new title. +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to be managed (QToolBar) +</dd><dt><i>title</i></dt> +<dd> +title to be used for the toolbar (string) +</dd> +</dl><a NAME="E5ToolBarManager.resetAllToolBars" ID="E5ToolBarManager.resetAllToolBars"></a> +<h4>E5ToolBarManager.resetAllToolBars</h4> +<b>resetAllToolBars</b>(<i></i>) +<p> + Public method to reset all toolbars to their default state. +</p><a NAME="E5ToolBarManager.resetToolBar" ID="E5ToolBarManager.resetToolBar"></a> +<h4>E5ToolBarManager.resetToolBar</h4> +<b>resetToolBar</b>(<i>toolBar</i>) +<p> + Public method to reset a toolbar to it's default state. +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to configure (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.restoreState" ID="E5ToolBarManager.restoreState"></a> +<h4>E5ToolBarManager.restoreState</h4> +<b>restoreState</b>(<i>state, version = 0</i>) +<p> + Public method to restore the state of the toolbar manager. +</p><dl> +<dt><i>state</i></dt> +<dd> +byte array containing the saved state (QByteArray) +</dd><dt><i>version</i></dt> +<dd> +version number stored with the data (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating success (boolean) +</dd> +</dl><a NAME="E5ToolBarManager.saveState" ID="E5ToolBarManager.saveState"></a> +<h4>E5ToolBarManager.saveState</h4> +<b>saveState</b>(<i>version = 0</i>) +<p> + Public method to save the state of the toolbar manager. +</p><dl> +<dt><i>version</i></dt> +<dd> +version number stored with the data (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +saved state as a byte array (QByteArray) +</dd> +</dl><a NAME="E5ToolBarManager.setMainWindow" ID="E5ToolBarManager.setMainWindow"></a> +<h4>E5ToolBarManager.setMainWindow</h4> +<b>setMainWindow</b>(<i>mainWindow</i>) +<p> + Public method to set the reference to the main window. +</p><dl> +<dt><i>mainWindow</i></dt> +<dd> +reference to the main window (QMainWindow) +</dd> +</dl><a NAME="E5ToolBarManager.setToolBar" ID="E5ToolBarManager.setToolBar"></a> +<h4>E5ToolBarManager.setToolBar</h4> +<b>setToolBar</b>(<i>toolBar, actions</i>) +<p> + Public method to set the actions of a toolbar. +</p><dl> +<dt><i>toolBar</i></dt> +<dd> +reference to the toolbar to configure (QToolBar) +</dd><dt><i>actions</i></dt> +<dd> +list of actions to be set (list of QAction) +</dd> +</dl><a NAME="E5ToolBarManager.setToolBars" ID="E5ToolBarManager.setToolBars"></a> +<h4>E5ToolBarManager.setToolBars</h4> +<b>setToolBars</b>(<i>toolBars</i>) +<p> + Public method to set the actions of several toolbars. +</p><dl> +<dt><i>toolBars</i></dt> +<dd> +dictionary with toolbar id as key and + a list of actions as value +</dd> +</dl><a NAME="E5ToolBarManager.toolBarActions" ID="E5ToolBarManager.toolBarActions"></a> +<h4>E5ToolBarManager.toolBarActions</h4> +<b>toolBarActions</b>(<i>tbID</i>) +<p> + Public method to get a toolbar's actions given it's id. +</p><dl> +<dt><i>tbID</i></dt> +<dd> +id of the toolbar object (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +list of actions (list of QAction) +</dd> +</dl><a NAME="E5ToolBarManager.toolBarById" ID="E5ToolBarManager.toolBarById"></a> +<h4>E5ToolBarManager.toolBarById</h4> +<b>toolBarById</b>(<i>tbID</i>) +<p> + Public method to get a toolbar given it's id. +</p><dl> +<dt><i>tbID</i></dt> +<dd> +id of the toolbar object (integer) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the toolbar (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.toolBarWidgetAction" ID="E5ToolBarManager.toolBarWidgetAction"></a> +<h4>E5ToolBarManager.toolBarWidgetAction</h4> +<b>toolBarWidgetAction</b>(<i>action</i>) +<p> + Public method to get the toolbar for a widget action. +</p><dl> +<dt><i>action</i></dt> +<dd> +widget action to check for (QAction) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +reference to the toolbar containing action (QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.toolBars" ID="E5ToolBarManager.toolBars"></a> +<h4>E5ToolBarManager.toolBars</h4> +<b>toolBars</b>(<i></i>) +<p> + Public method to get all toolbars. +</p><dl> +<dt>Returns:</dt> +<dd> +list of all toolbars (list of QToolBar) +</dd> +</dl><a NAME="E5ToolBarManager.toolBarsActions" ID="E5ToolBarManager.toolBarsActions"></a> +<h4>E5ToolBarManager.toolBarsActions</h4> +<b>toolBarsActions</b>(<i></i>) +<p> + Public method to get all toolbars and their actions. +</p><dl> +<dt>Returns:</dt> +<dd> +reference to dictionary of toolbar IDs as key and list + of actions as values +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5ToolBox.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,204 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5ToolBox</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5ToolBox</h1> +<p> +Module implementing a horizontal and a vertical toolbox class. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5HorizontalToolBox">E5HorizontalToolBox</a></td> +<td>Class implementing a vertical QToolBox like widget.</td> +</tr><tr> +<td><a href="#E5VerticalToolBox">E5VerticalToolBox</a></td> +<td>Class implementing a ToolBox class substituting QToolBox to support wheel events.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5HorizontalToolBox" ID="E5HorizontalToolBox"></a> +<h2>E5HorizontalToolBox</h2> +<p> + Class implementing a vertical QToolBox like widget. +</p> +<h3>Derived from</h3> +E5TabWidget +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5HorizontalToolBox.__init__">E5HorizontalToolBox</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5HorizontalToolBox.addItem">addItem</a></td> +<td>Public method to add a widget to the toolbox.</td> +</tr><tr> +<td><a href="#E5HorizontalToolBox.insertItem">insertItem</a></td> +<td>Public method to add a widget to the toolbox.</td> +</tr><tr> +<td><a href="#E5HorizontalToolBox.setItemEnabled">setItemEnabled</a></td> +<td>Public method to set the enabled state of an item.</td> +</tr><tr> +<td><a href="#E5HorizontalToolBox.setItemToolTip">setItemToolTip</a></td> +<td>Public method to set the tooltip of an item.</td> +</tr> +</table> +<a NAME="E5HorizontalToolBox.__init__" ID="E5HorizontalToolBox.__init__"></a> +<h4>E5HorizontalToolBox (Constructor)</h4> +<b>E5HorizontalToolBox</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5HorizontalToolBox.addItem" ID="E5HorizontalToolBox.addItem"></a> +<h4>E5HorizontalToolBox.addItem</h4> +<b>addItem</b>(<i>widget, icon, text</i>) +<p> + Public method to add a widget to the toolbox. +</p><dl> +<dt><i>widget</i></dt> +<dd> +reference to the widget to be added (QWidget) +</dd><dt><i>icon</i></dt> +<dd> +the icon to be shown (QIcon) +</dd><dt><i>text</i></dt> +<dd> +the text to be shown (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the added widget (integer) +</dd> +</dl><a NAME="E5HorizontalToolBox.insertItem" ID="E5HorizontalToolBox.insertItem"></a> +<h4>E5HorizontalToolBox.insertItem</h4> +<b>insertItem</b>(<i>index, widget, icon, text</i>) +<p> + Public method to add a widget to the toolbox. +</p><dl> +<dt><i>index</i></dt> +<dd> +position at which the widget should be inserted (integer) +</dd><dt><i>widget</i></dt> +<dd> +reference to the widget to be added (QWidget) +</dd><dt><i>icon</i></dt> +<dd> +the icon to be shown (QIcon) +</dd><dt><i>text</i></dt> +<dd> +the text to be shown (string) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +index of the added widget (integer) +</dd> +</dl><a NAME="E5HorizontalToolBox.setItemEnabled" ID="E5HorizontalToolBox.setItemEnabled"></a> +<h4>E5HorizontalToolBox.setItemEnabled</h4> +<b>setItemEnabled</b>(<i>index, enabled</i>) +<p> + Public method to set the enabled state of an item. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the item (integer) +</dd><dt><i>enabled</i></dt> +<dd> +flag indicating the enabled state (boolean) +</dd> +</dl><a NAME="E5HorizontalToolBox.setItemToolTip" ID="E5HorizontalToolBox.setItemToolTip"></a> +<h4>E5HorizontalToolBox.setItemToolTip</h4> +<b>setItemToolTip</b>(<i>index, toolTip</i>) +<p> + Public method to set the tooltip of an item. +</p><dl> +<dt><i>index</i></dt> +<dd> +index of the item (integer) +</dd><dt><i>toolTip</i></dt> +<dd> +tooltip text to be set (string) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /><hr /> +<a NAME="E5VerticalToolBox" ID="E5VerticalToolBox"></a> +<h2>E5VerticalToolBox</h2> +<p> + Class implementing a ToolBox class substituting QToolBox to support wheel events. +</p> +<h3>Derived from</h3> +QToolBox +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5VerticalToolBox.__init__">E5VerticalToolBox</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5VerticalToolBox.wheelEvent">wheelEvent</a></td> +<td>Protected slot to support wheel events.</td> +</tr> +</table> +<a NAME="E5VerticalToolBox.__init__" ID="E5VerticalToolBox.__init__"></a> +<h4>E5VerticalToolBox (Constructor)</h4> +<b>E5VerticalToolBox</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent widget (QWidget) +</dd> +</dl><a NAME="E5VerticalToolBox.wheelEvent" ID="E5VerticalToolBox.wheelEvent"></a> +<h4>E5VerticalToolBox.wheelEvent</h4> +<b>wheelEvent</b>(<i>event</i>) +<p> + Protected slot to support wheel events. +</p><dl> +<dt><i>reference</i></dt> +<dd> +to the wheel event (QWheelEvent) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5TreeSortFilterProxyModel.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5TreeSortFilterProxyModel</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5TreeSortFilterProxyModel</h1> +<p> +Module implementing a modified QSortFilterProxyModel. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5TreeSortFilterProxyModel">E5TreeSortFilterProxyModel</a></td> +<td>Class implementing a modified QSortFilterProxyModel.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5TreeSortFilterProxyModel" ID="E5TreeSortFilterProxyModel"></a> +<h2>E5TreeSortFilterProxyModel</h2> +<p> + Class implementing a modified QSortFilterProxyModel. +</p><p> + It always accepts the root nodes in the tree so filtering is only done + on the children. +</p> +<h3>Derived from</h3> +QSortFilterProxyModel +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5TreeSortFilterProxyModel.__init__">E5TreeSortFilterProxyModel</a></td> +<td>Constructor</td> +</tr><tr> +<td><a href="#E5TreeSortFilterProxyModel.filterAcceptsRow">filterAcceptsRow</a></td> +<td>Protected method to determine, if the row is acceptable.</td> +</tr><tr> +<td><a href="#E5TreeSortFilterProxyModel.hasChildren">hasChildren</a></td> +<td>Public method to check, if a parent node has some children.</td> +</tr> +</table> +<a NAME="E5TreeSortFilterProxyModel.__init__" ID="E5TreeSortFilterProxyModel.__init__"></a> +<h4>E5TreeSortFilterProxyModel (Constructor)</h4> +<b>E5TreeSortFilterProxyModel</b>(<i>parent = None</i>) +<p> + Constructor +</p><dl> +<dt><i>parent</i></dt> +<dd> +reference to the parent object (QObject) +</dd> +</dl><a NAME="E5TreeSortFilterProxyModel.filterAcceptsRow" ID="E5TreeSortFilterProxyModel.filterAcceptsRow"></a> +<h4>E5TreeSortFilterProxyModel.filterAcceptsRow</h4> +<b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) +<p> + Protected method to determine, if the row is acceptable. +</p><dl> +<dt><i>sourceRow</i></dt> +<dd> +row number in the source model (integer) +</dd><dt><i>sourceParent</i></dt> +<dd> +index of the source item (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating acceptance (boolean) +</dd> +</dl><a NAME="E5TreeSortFilterProxyModel.hasChildren" ID="E5TreeSortFilterProxyModel.hasChildren"></a> +<h4>E5TreeSortFilterProxyModel.hasChildren</h4> +<b>hasChildren</b>(<i>parent = QModelIndex()</i>) +<p> + Public method to check, if a parent node has some children. +</p><dl> +<dt><i>parent</i></dt> +<dd> +index of the parent node (QModelIndex) +</dd> +</dl><dl> +<dt>Returns:</dt> +<dd> +flag indicating the presence of children (boolean) +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/eric5.E5Gui.E5TreeView.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui.E5TreeView</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body><a NAME="top" ID="top"></a> +<h1>eric5.E5Gui.E5TreeView</h1> +<p> +Module implementing specialized tree views. +</p> +<h3>Global Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Classes</h3> +<table> +<tr> +<td><a href="#E5TreeView">E5TreeView</a></td> +<td>Class implementing a tree view supporting removal of entries.</td> +</tr> +</table> +<h3>Functions</h3> +<table> +<tr><td>None</td></tr> +</table> +<hr /><hr /> +<a NAME="E5TreeView" ID="E5TreeView"></a> +<h2>E5TreeView</h2> +<p> + Class implementing a tree view supporting removal of entries. +</p> +<h3>Derived from</h3> +QTreeView +<h3>Class Attributes</h3> +<table> +<tr><td>None</td></tr> +</table> +<h3>Methods</h3> +<table> +<tr> +<td><a href="#E5TreeView.keyPressEvent">keyPressEvent</a></td> +<td>Protected method implementing special key handling.</td> +</tr><tr> +<td><a href="#E5TreeView.removeAll">removeAll</a></td> +<td>Public method to clear the view.</td> +</tr><tr> +<td><a href="#E5TreeView.removeSelected">removeSelected</a></td> +<td>Public method to remove the selected entries.</td> +</tr> +</table> +<a NAME="E5TreeView.keyPressEvent" ID="E5TreeView.keyPressEvent"></a> +<h4>E5TreeView.keyPressEvent</h4> +<b>keyPressEvent</b>(<i>evt</i>) +<p> + Protected method implementing special key handling. +</p><dl> +<dt><i>evt</i></dt> +<dd> +reference to the event (QKeyEvent) +</dd> +</dl><a NAME="E5TreeView.removeAll" ID="E5TreeView.removeAll"></a> +<h4>E5TreeView.removeAll</h4> +<b>removeAll</b>(<i></i>) +<p> + Public method to clear the view. +</p><a NAME="E5TreeView.removeSelected" ID="E5TreeView.removeSelected"></a> +<h4>E5TreeView.removeSelected</h4> +<b>removeSelected</b>(<i></i>) +<p> + Public method to remove the selected entries. +</p> +<div align="right"><a href="#top">Up</a></div> +<hr /> +</body></html> \ No newline at end of file
--- a/Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarksMenu.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarksMenu.html Wed Jan 13 18:53:58 2010 +0000 @@ -59,7 +59,7 @@ </dd> </dl> <h3>Derived from</h3> -E4ModelMenu +E5ModelMenu <h3>Class Attributes</h3> <table> <tr><td>None</td></tr>
--- a/Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarksToolBar.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarksToolBar.html Wed Jan 13 18:53:58 2010 +0000 @@ -56,7 +56,7 @@ </dd> </dl> <h3>Derived from</h3> -E4ModelToolBar +E5ModelToolBar <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> @@ -166,7 +166,7 @@ </p><dl> <dt>Returns:</dt> <dd> -menu for a tool bar action (E4ModelMenu) +menu for a tool bar action (E5ModelMenu) </dd> </dl> <div align="right"><a href="#top">Up</a></div>
--- a/Documentation/Source/eric5.Helpviewer.HelpWindow.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Helpviewer.HelpWindow.html Wed Jan 13 18:53:58 2010 +0000 @@ -1250,7 +1250,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="HelpWindow.getSourceFileList" ID="HelpWindow.getSourceFileList"></a> <h4>HelpWindow.getSourceFileList</h4>
--- a/Documentation/Source/eric5.Helpviewer.History.HistoryMenu.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Helpviewer.History.HistoryMenu.html Wed Jan 13 18:53:58 2010 +0000 @@ -59,7 +59,7 @@ </dd> </dl> <h3>Derived from</h3> -E4ModelMenu +E5ModelMenu <h3>Class Attributes</h3> <table> <tr><td>None</td></tr>
--- a/Documentation/Source/eric5.MultiProject.MultiProject.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.MultiProject.MultiProject.html Wed Jan 13 18:53:58 2010 +0000 @@ -140,7 +140,7 @@ <td><a href="#MultiProject.__writeXMLMultiProject">__writeXMLMultiProject</a></td> <td>Private method to write the multi project data to an XML file.</td> </tr><tr> -<td><a href="#MultiProject.addE4Actions">addE4Actions</a></td> +<td><a href="#MultiProject.addE5Actions">addE5Actions</a></td> <td>Public method to add actions to the list of actions.</td> </tr><tr> <td><a href="#MultiProject.addProject">addProject</a></td> @@ -206,7 +206,7 @@ <td><a href="#MultiProject.openProject">openProject</a></td> <td>Public slot to open a project.</td> </tr><tr> -<td><a href="#MultiProject.removeE4Actions">removeE4Actions</a></td> +<td><a href="#MultiProject.removeE5Actions">removeE5Actions</a></td> <td>Public method to remove actions from the list of actions.</td> </tr><tr> <td><a href="#MultiProject.removeProject">removeProject</a></td> @@ -373,15 +373,15 @@ <dd> the filename of the multi project file (string) </dd> -</dl><a NAME="MultiProject.addE4Actions" ID="MultiProject.addE4Actions"></a> -<h4>MultiProject.addE4Actions</h4> -<b>addE4Actions</b>(<i>actions</i>) +</dl><a NAME="MultiProject.addE5Actions" ID="MultiProject.addE5Actions"></a> +<h4>MultiProject.addE5Actions</h4> +<b>addE5Actions</b>(<i>actions</i>) <p> Public method to add actions to the list of actions. </p><dl> <dt><i>actions</i></dt> <dd> -list of actions (list of E4Action) +list of actions (list of E5Action) </dd> </dl><a NAME="MultiProject.addProject" ID="MultiProject.addProject"></a> <h4>MultiProject.addProject</h4> @@ -431,7 +431,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="MultiProject.getDependantProjectFiles" ID="MultiProject.getDependantProjectFiles"></a> <h4>MultiProject.getDependantProjectFiles</h4> @@ -546,7 +546,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -605,15 +605,15 @@ <dd> filename of the project file (string) </dd> -</dl><a NAME="MultiProject.removeE4Actions" ID="MultiProject.removeE4Actions"></a> -<h4>MultiProject.removeE4Actions</h4> -<b>removeE4Actions</b>(<i>actions</i>) +</dl><a NAME="MultiProject.removeE5Actions" ID="MultiProject.removeE5Actions"></a> +<h4>MultiProject.removeE5Actions</h4> +<b>removeE5Actions</b>(<i>actions</i>) <p> Public method to remove actions from the list of actions. </p><dl> <dt><i>actions</i></dt> <dd> -list of actions (list of E4Action) +list of actions (list of E5Action) </dd> </dl><a NAME="MultiProject.removeProject" ID="MultiProject.removeProject"></a> <h4>MultiProject.removeProject</h4>
--- a/Documentation/Source/eric5.Plugins.VcsPlugins.vcsPySvn.ProjectHelper.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Plugins.VcsPlugins.vcsPySvn.ProjectHelper.html Wed Jan 13 18:53:58 2010 +0000 @@ -206,7 +206,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="SvnProjectHelper.initActions" ID="SvnProjectHelper.initActions"></a> <h4>SvnProjectHelper.initActions</h4>
--- a/Documentation/Source/eric5.Plugins.VcsPlugins.vcsSubversion.ProjectHelper.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Plugins.VcsPlugins.vcsSubversion.ProjectHelper.html Wed Jan 13 18:53:58 2010 +0000 @@ -198,7 +198,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="SvnProjectHelper.initActions" ID="SvnProjectHelper.initActions"></a> <h4>SvnProjectHelper.initActions</h4>
--- a/Documentation/Source/eric5.Plugins.ViewManagerPlugins.Tabview.Tabview.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Plugins.ViewManagerPlugins.Tabview.Tabview.html Wed Jan 13 18:53:58 2010 +0000 @@ -73,7 +73,7 @@ </dd> </dl> <h3>Derived from</h3> -E4WheelTabBar +E5WheelTabBar <h3>Class Attributes</h3> <table> <tr><td>None</td></tr> @@ -156,7 +156,7 @@ Class implementing a custimized tab widget. </p> <h3>Derived from</h3> -E4TabWidget +E5TabWidget <h3>Class Attributes</h3> <table> <tr><td>None</td></tr>
--- a/Documentation/Source/eric5.Preferences.Shortcuts.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Preferences.Shortcuts.html Wed Jan 13 18:53:58 2010 +0000 @@ -48,7 +48,7 @@ <td>Module function to export the keyboard shortcuts for the defined QActions.</td> </tr><tr> <td><a href="#importShortcuts">importShortcuts</a></td> -<td>Module function to import the keyboard shortcuts for the defined E4Actions.</td> +<td>Module function to import the keyboard shortcuts for the defined E5Actions.</td> </tr><tr> <td><a href="#readShortcuts">readShortcuts</a></td> <td>Module function to read the keyboard shortcuts for the defined QActions.</td> @@ -69,7 +69,7 @@ </p><dl> <dt><i>act</i></dt> <dd> -reference to the action object (E4Action) +reference to the action object (E5Action) </dd><dt><i>category</i></dt> <dd> category the action belongs to (string) @@ -88,7 +88,7 @@ </p><dl> <dt><i>act</i></dt> <dd> -reference to the action object (E4Action) +reference to the action object (E5Action) </dd><dt><i>category</i></dt> <dd> category the action belongs to (string) @@ -107,7 +107,7 @@ </p><dl> <dt><i>actions</i></dt> <dd> -list of actions to set (list of E4Action) +list of actions to set (list of E5Action) </dd><dt><i>sdict</i></dt> <dd> dictionary containg accelerator information for one category @@ -137,7 +137,7 @@ <h2>importShortcuts</h2> <b>importShortcuts</b>(<i>fn</i>) <p> - Module function to import the keyboard shortcuts for the defined E4Actions. + Module function to import the keyboard shortcuts for the defined E5Actions. </p><dl> <dt><i>fn</i></dt> <dd>
--- a/Documentation/Source/eric5.Preferences.ShortcutsDialog.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Preferences.ShortcutsDialog.html Wed Jan 13 18:53:58 2010 +0000 @@ -171,7 +171,7 @@ reference to the category item (QTreeWidgetItem) </dd><dt><i>action</i></dt> <dd> -reference to the keyboard action (E4Action) +reference to the keyboard action (E5Action) </dd><dt><i>noCheck=</i></dt> <dd> flag indicating that no uniqueness check should @@ -202,7 +202,7 @@ reference to the category item (QTreeWidgetItem) </dd><dt><i>actions</i></dt> <dd> -list of actions for the category (list of E4Action) +list of actions for the category (list of E5Action) </dd> </dl><a NAME="ShortcutsDialog.__shortcutChanged" ID="ShortcutsDialog.__shortcutChanged"></a> <h4>ShortcutsDialog.__shortcutChanged</h4>
--- a/Documentation/Source/eric5.Project.Project.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Project.Project.html Wed Jan 13 18:53:58 2010 +0000 @@ -322,7 +322,7 @@ <td><a href="#Project.addDirectory">addDirectory</a></td> <td>Public method used to add all files of a directory to the project.</td> </tr><tr> -<td><a href="#Project.addE4Actions">addE4Actions</a></td> +<td><a href="#Project.addE5Actions">addE5Actions</a></td> <td>Public method to add actions to the list of actions.</td> </tr><tr> <td><a href="#Project.addFiles">addFiles</a></td> @@ -529,7 +529,7 @@ <td><a href="#Project.removeDirectory">removeDirectory</a></td> <td>Public slot to remove a directory from the project.</td> </tr><tr> -<td><a href="#Project.removeE4Actions">removeE4Actions</a></td> +<td><a href="#Project.removeE5Actions">removeE5Actions</a></td> <td>Public method to remove actions from the list of actions.</td> </tr><tr> <td><a href="#Project.removeFile">removeFile</a></td> @@ -1156,15 +1156,15 @@ <dd> start directory for the selection dialog (string) </dd> -</dl><a NAME="Project.addE4Actions" ID="Project.addE4Actions"></a> -<h4>Project.addE4Actions</h4> -<b>addE4Actions</b>(<i>actions</i>) +</dl><a NAME="Project.addE5Actions" ID="Project.addE5Actions"></a> +<h4>Project.addE5Actions</h4> +<b>addE5Actions</b>(<i>actions</i>) <p> Public method to add actions to the list of actions. </p><dl> <dt><i>actions</i></dt> <dd> -list of actions (list of E4Action) +list of actions (list of E5Action) </dd> </dl><a NAME="Project.addFiles" ID="Project.addFiles"></a> <h4>Project.addFiles</h4> @@ -1358,7 +1358,7 @@ </p><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="Project.getData" ID="Project.getData"></a> <h4>Project.getData</h4> @@ -1670,7 +1670,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -1904,15 +1904,15 @@ <dd> directory name to be removed from the project </dd> -</dl><a NAME="Project.removeE4Actions" ID="Project.removeE4Actions"></a> -<h4>Project.removeE4Actions</h4> -<b>removeE4Actions</b>(<i>actions</i>) +</dl><a NAME="Project.removeE5Actions" ID="Project.removeE5Actions"></a> +<h4>Project.removeE5Actions</h4> +<b>removeE5Actions</b>(<i>actions</i>) <p> Public method to remove actions from the list of actions. </p><dl> <dt><i>actions</i></dt> <dd> -list of actions (list of E4Action) +list of actions (list of E5Action) </dd> </dl><a NAME="Project.removeFile" ID="Project.removeFile"></a> <h4>Project.removeFile</h4>
--- a/Documentation/Source/eric5.Project.ProjectBrowser.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.Project.ProjectBrowser.html Wed Jan 13 18:53:58 2010 +0000 @@ -53,7 +53,7 @@ tab with the file system browser. </p> <h3>Derived from</h3> -E4TabWidget +E5TabWidget <h3>Class Attributes</h3> <table> <tr><td>None</td></tr>
--- a/Documentation/Source/eric5.QScintilla.MiniEditor.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.QScintilla.MiniEditor.html Wed Jan 13 18:53:58 2010 +0000 @@ -535,7 +535,7 @@ </p><dl> <dt><i>act</i></dt> <dd> -reference to the action object (E4Action) +reference to the action object (E5Action) </dd><dt><i>category</i></dt> <dd> category the action belongs to (string)
--- a/Documentation/Source/eric5.UI.UserInterface.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.UI.UserInterface.html Wed Jan 13 18:53:58 2010 +0000 @@ -592,7 +592,7 @@ <td><a href="#UserInterface.__writeTasks">__writeTasks</a></td> <td>Private slot to write the tasks data to an XML file (.e4t).</td> </tr><tr> -<td><a href="#UserInterface.addE4Actions">addE4Actions</a></td> +<td><a href="#UserInterface.addE5Actions">addE5Actions</a></td> <td>Public method to add actions to the list of actions.</td> </tr><tr> <td><a href="#UserInterface.appendToStderr">appendToStderr</a></td> @@ -658,7 +658,7 @@ <td><a href="#UserInterface.registerToolbar">registerToolbar</a></td> <td>Public method to register a toolbar.</td> </tr><tr> -<td><a href="#UserInterface.removeE4Actions">removeE4Actions</a></td> +<td><a href="#UserInterface.removeE5Actions">removeE5Actions</a></td> <td>Public method to remove actions from the list of actions.</td> </tr><tr> <td><a href="#UserInterface.reregisterToolbar">reregisterToolbar</a></td> @@ -1712,9 +1712,9 @@ <b>__writeTasks</b>(<i></i>) <p> Private slot to write the tasks data to an XML file (.e4t). -</p><a NAME="UserInterface.addE4Actions" ID="UserInterface.addE4Actions"></a> -<h4>UserInterface.addE4Actions</h4> -<b>addE4Actions</b>(<i>actions, type</i>) +</p><a NAME="UserInterface.addE5Actions" ID="UserInterface.addE5Actions"></a> +<h4>UserInterface.addE5Actions</h4> +<b>addE5Actions</b>(<i>actions, type</i>) <p> Public method to add actions to the list of actions. </p><dl> @@ -1724,7 +1724,7 @@ It must be one of "ui" or "wizards". </dd><dt><i>actions</i></dt> <dd> -list of actions to be added (list of E4Action) +list of actions to be added (list of E5Action) </dd> </dl><a NAME="UserInterface.appendToStderr" ID="UserInterface.appendToStderr"></a> <h4>UserInterface.appendToStderr</h4> @@ -1824,7 +1824,7 @@ </dl><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="UserInterface.getLocale" ID="UserInterface.getLocale"></a> <h4>UserInterface.getLocale</h4> @@ -1981,9 +1981,9 @@ raised, if a toolbar with the given name was already registered </dd> -</dl><a NAME="UserInterface.removeE4Actions" ID="UserInterface.removeE4Actions"></a> -<h4>UserInterface.removeE4Actions</h4> -<b>removeE4Actions</b>(<i>actions, type = 'ui'</i>) +</dl><a NAME="UserInterface.removeE5Actions" ID="UserInterface.removeE5Actions"></a> +<h4>UserInterface.removeE5Actions</h4> +<b>removeE5Actions</b>(<i>actions, type = 'ui'</i>) <p> Public method to remove actions from the list of actions. </p><dl> @@ -1993,7 +1993,7 @@ It must be one of "ui" or "wizards". </dd><dt><i>actions</i></dt> <dd> -list of actions (list of E4Action) +list of actions (list of E5Action) </dd> </dl><a NAME="UserInterface.reregisterToolbar" ID="UserInterface.reregisterToolbar"></a> <h4>UserInterface.reregisterToolbar</h4>
--- a/Documentation/Source/eric5.VCS.StatusMonitorLed.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.VCS.StatusMonitorLed.html Wed Jan 13 18:53:58 2010 +0000 @@ -46,7 +46,7 @@ Class implementing a LED to indicate the status of the VCS status monitor thread. </p> <h3>Derived from</h3> -E4Led +E5Led <h3>Class Attributes</h3> <table> <tr><td>None</td></tr>
--- a/Documentation/Source/eric5.ViewManager.ViewManager.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/eric5.ViewManager.ViewManager.html Wed Jan 13 18:53:58 2010 +0000 @@ -1819,7 +1819,7 @@ </dl><dl> <dt>Returns:</dt> <dd> -list of all actions (list of E4Action) +list of all actions (list of E5Action) </dd> </dl><a NAME="ViewManager.getActiveName" ID="ViewManager.getActiveName"></a> <h4>ViewManager.getActiveName</h4> @@ -1967,7 +1967,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -1992,7 +1992,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -2017,7 +2017,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -2042,7 +2042,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -2057,7 +2057,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -2082,7 +2082,7 @@ </p><dl> <dt><i>toolbarManager</i></dt> <dd> -reference to a toolbar manager object (E4ToolBarManager) +reference to a toolbar manager object (E5ToolBarManager) </dd> </dl><dl> <dt>Returns:</dt> @@ -2365,7 +2365,7 @@ </p><dl> <dt><i>sbFile</i></dt> <dd> -reference to the file part of the statusbar (E4SqueezeLabelPath) +reference to the file part of the statusbar (E5SqueezeLabelPath) </dd><dt><i>sbLine</i></dt> <dd> reference to the line number part of the statusbar (QLabel)
--- a/Documentation/Source/index-eric5.E4Gui.html Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' -'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> -<html><head> -<title>eric5.E4Gui</title> -<style> -body { - background:white; - margin: 0em 1em 10em 1em; - color: black; -} - -h1 { color: white; background: #4FA4FF; } -h2 { color: white; background: #4FA4FF; } -h3 { color: white; background: #00557F; } -h4 { color: white; background: #00557F; } - -a { color: #AA5500; } - -</style> -</head> -<body> -<h1>eric5.E4Gui</h1> -<p> -Package implementing some special GUI elements. -</p><p> -They extend or ammend the standard elements as found in QtGui. -</p> - - -<h3>Modules</h3> -<table> -<tr> -<td><a href="eric5.E4Gui.E4Action.html">E4Action</a></td> -<td>Module implementing an Action class extending QAction.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4Application.html">E4Application</a></td> -<td>Class implementing a specialized application class.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4Completers.html">E4Completers</a></td> -<td>Module implementing various kinds of completers.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4Led.html">E4Led</a></td> -<td>Module implementing a LED widget.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4LineEdit.html">E4LineEdit</a></td> -<td>Module implementing specialized line edits.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ListView.html">E4ListView</a></td> -<td>Module implementing specialized list views.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ModelMenu.html">E4ModelMenu</a></td> -<td>Module implementing a menu populated from a QAbstractItemModel.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ModelToolBar.html">E4ModelToolBar</a></td> -<td>Module implementing a tool bar populated from a QAbstractItemModel.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4SideBar.html">E4SideBar</a></td> -<td>Module implementing a sidebar class.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4SingleApplication.html">E4SingleApplication</a></td> -<td>Module implementing the single application server and client.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4SqueezeLabels.html">E4SqueezeLabels</a></td> -<td>Module implementing labels that squeeze their contents to fit the size of the label.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4TabWidget.html">E4TabWidget</a></td> -<td>Module implementing a TabWidget class substituting QTabWidget.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4TableView.html">E4TableView</a></td> -<td>Module implementing specialized table views.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ToolBarDialog.html">E4ToolBarDialog</a></td> -<td>Module implementing a toolbar configuration dialog.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ToolBarManager.html">E4ToolBarManager</a></td> -<td>Module implementing a toolbar manager class.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4ToolBox.html">E4ToolBox</a></td> -<td>Module implementing a horizontal and a vertical toolbox class.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4TreeSortFilterProxyModel.html">E4TreeSortFilterProxyModel</a></td> -<td>Module implementing a modified QSortFilterProxyModel.</td> -</tr><tr> -<td><a href="eric5.E4Gui.E4TreeView.html">E4TreeView</a></td> -<td>Module implementing specialized tree views.</td> -</tr> -</table> -</body></html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Documentation/Source/index-eric5.E5Gui.html Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' +'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> +<html><head> +<title>eric5.E5Gui</title> +<style> +body { + background:white; + margin: 0em 1em 10em 1em; + color: black; +} + +h1 { color: white; background: #4FA4FF; } +h2 { color: white; background: #4FA4FF; } +h3 { color: white; background: #00557F; } +h4 { color: white; background: #00557F; } + +a { color: #AA5500; } + +</style> +</head> +<body> +<h1>eric5.E5Gui</h1> +<p> +Package implementing some special GUI elements. +</p><p> +They extend or ammend the standard elements as found in QtGui. +</p> + + +<h3>Modules</h3> +<table> +<tr> +<td><a href="eric5.E5Gui.E5Action.html">E5Action</a></td> +<td>Module implementing an Action class extending QAction.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5Application.html">E5Application</a></td> +<td>Class implementing a specialized application class.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5Completers.html">E5Completers</a></td> +<td>Module implementing various kinds of completers.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5Led.html">E5Led</a></td> +<td>Module implementing a LED widget.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5LineEdit.html">E5LineEdit</a></td> +<td>Module implementing specialized line edits.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ListView.html">E5ListView</a></td> +<td>Module implementing specialized list views.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ModelMenu.html">E5ModelMenu</a></td> +<td>Module implementing a menu populated from a QAbstractItemModel.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ModelToolBar.html">E5ModelToolBar</a></td> +<td>Module implementing a tool bar populated from a QAbstractItemModel.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5SideBar.html">E5SideBar</a></td> +<td>Module implementing a sidebar class.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5SingleApplication.html">E5SingleApplication</a></td> +<td>Module implementing the single application server and client.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5SqueezeLabels.html">E5SqueezeLabels</a></td> +<td>Module implementing labels that squeeze their contents to fit the size of the label.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5TabWidget.html">E5TabWidget</a></td> +<td>Module implementing a TabWidget class substituting QTabWidget.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5TableView.html">E5TableView</a></td> +<td>Module implementing specialized table views.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ToolBarDialog.html">E5ToolBarDialog</a></td> +<td>Module implementing a toolbar configuration dialog.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ToolBarManager.html">E5ToolBarManager</a></td> +<td>Module implementing a toolbar manager class.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5ToolBox.html">E5ToolBox</a></td> +<td>Module implementing a horizontal and a vertical toolbox class.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5TreeSortFilterProxyModel.html">E5TreeSortFilterProxyModel</a></td> +<td>Module implementing a modified QSortFilterProxyModel.</td> +</tr><tr> +<td><a href="eric5.E5Gui.E5TreeView.html">E5TreeView</a></td> +<td>Module implementing specialized tree views.</td> +</tr> +</table> +</body></html> \ No newline at end of file
--- a/Documentation/Source/index-eric5.html Tue Jan 12 18:39:15 2010 +0000 +++ b/Documentation/Source/index-eric5.html Wed Jan 13 18:53:58 2010 +0000 @@ -43,12 +43,12 @@ <td><a href="index-eric5.DocumentationTools.html">DocumentationTools</a></td> <td>Package implementing the source code documentation tools.</td> </tr><tr> -<td><a href="index-eric5.E4Gui.html">E4Gui</a></td> -<td>Package implementing some special GUI elements.</td> -</tr><tr> <td><a href="index-eric5.E5Graphics.html">E5Graphics</a></td> <td>Package implementing some QGraphicsView related general purpoe classes.</td> </tr><tr> +<td><a href="index-eric5.E5Gui.html">E5Gui</a></td> +<td>Package implementing some special GUI elements.</td> +</tr><tr> <td><a href="index-eric5.E5Network.html">E5Network</a></td> <td>Package implementing some special network related objects.</td> </tr><tr>
--- a/E4Gui/E4Action.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,160 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing an Action class extending QAction. - -This extension is necessary in order to support alternate keyboard -shortcuts. -""" - -from PyQt4.QtGui import QAction, QActionGroup, QIcon, QKeySequence -from PyQt4.QtCore import QObject - -class ArgumentsError(RuntimeError): - """ - Class implementing an exception, which is raised, if the wrong number of arguments - are given. - """ - def __init__(self, error): - """ - Constructor - """ - self.errorMessage = str(error) - - def __repr__(self): - """ - Private method returning a representation of the exception. - - @return string representing the error message - """ - return str(self.errorMessage) - - def __str__(self): - """ - Private method returning a string representation of the exception. - - @return string representing the error message - """ - return str(self.errorMessage) - -class E4Action(QAction): - """ - Class implementing an Action class extending QAction. - """ - def __init__(self, *args): - """ - Constructor - - @param args argument list of the constructor. This list is one of - <ul> - <li>text (string), icon (QIcon), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string), toggle (boolean)</li> - <li>text (string), icon (QIcon), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string)</li> - <li>text (string), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string), toggle (boolean)</li> - <li>text (string), menu text (string), - accelarator (QKeySequence), alternative accelerator (QKeySequence), - parent (QObject), name (string)</li> - </ul> - """ - if isinstance(args[1], QIcon): - icon = args[1] - incr = 1 - else: - icon = None - incr = 0 - if len(args) < 6+incr: - raise ArgumentsError("Not enough arguments, %d expected, got %d" % \ - (6+incr, len(args))) - elif len(args) > 7+incr: - raise ArgumentsError("Too many arguments, max. %d expected, got %d" % \ - (7+incr, len(args))) - - parent = args[4+incr] - QAction.__init__(self, parent) - name = args[5+incr] - if name: - self.setObjectName(name) - - if args[1+incr]: - self.setText(args[1+incr]) - - if args[0]: - self.setIconText(args[0]) - if args[2+incr]: - self.setShortcut(QKeySequence(args[2+incr])) - - if args[3+incr]: - self.setAlternateShortcut(QKeySequence(args[3+incr])) - - if icon: - self.setIcon(icon) - - if len(args) == 7+incr: - self.setCheckable(args[6+incr]) - - def setAlternateShortcut(self, shortcut): - """ - Public slot to set the alternative keyboard shortcut. - - @param shortcut the alternative accelerator (QKeySequence) - """ - if not shortcut.isEmpty(): - shortcuts = self.shortcuts() - if len(shortcuts) > 0: - if len(shortcuts) == 1: - shortcuts.append(shortcut) - else: - shortcuts[1] = shortcut - self.setShortcuts(shortcuts) - - def alternateShortcut(self): - """ - Public method to retrieve the alternative keyboard shortcut. - - @return the alternative accelerator (QKeySequence) - """ - shortcuts = self.shortcuts() - if len(shortcuts) < 2: - return QKeySequence() - else: - return shortcuts[1] - -def addActions(target, actions): - """ - Module function to add a list of actions to a widget. - - @param target reference to the target widget (QWidget) - @param actions list of actions to be added to the target. A - None indicates a separator (list of QActions) - """ - if target is None: - return - - for action in actions: - if action is None: - target.addSeparator() - else: - target.addAction(action) - -def createActionGroup(parent, name = None, exclusive = False): - """ - Module function to create an action group. - - @param parent parent object of the action group (QObject) - @param name name of the action group object (string) - @param exclusive flag indicating an exclusive action group (boolean) - @return reference to the created action group (QActionGroup) - """ - actGrp = QActionGroup(parent) - if name: - actGrp.setObjectName(name) - actGrp.setExclusive(exclusive) - return actGrp
--- a/E4Gui/E4Application.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Class implementing a specialized application class. -""" - -from PyQt4.QtCore import QCoreApplication -from PyQt4.QtGui import QApplication - -class E4Application(QApplication): - """ - Eric application class with an object registry. - """ - def __init__(self, argv): - """ - Constructor - - @param argv command line arguments - """ - QApplication.__init__(self, argv) - - self.__objectRegistry = {} - self.__pluginObjectRegistry = {} - - def registerObject(self, name, object): - """ - Public method to register an object in the object registry. - - @param name name of the object (string) - @param object reference to the object - @exception KeyError raised when the given name is already in use - """ - if name in self.__objectRegistry: - raise KeyError('Object "%s" already registered.' % name) - else: - self.__objectRegistry[name] = object - - def getObject(self, name): - """ - Public method to get a reference to a registered object. - - @param name name of the object (string) - @return reference to the registered object - @exception KeyError raised when the given name is not known - """ - if name in self.__objectRegistry: - return self.__objectRegistry[name] - else: - raise KeyError('Object "%s" is not registered.' % name) - - def registerPluginObject(self, name, object, pluginType = None): - """ - Public method to register a plugin object in the object registry. - - @param name name of the plugin object (string) - @param object reference to the plugin object - @keyparam pluginType type of the plugin object (string) - @exception KeyError raised when the given name is already in use - """ - if name in self.__pluginObjectRegistry: - raise KeyError('Pluginobject "%s" already registered.' % name) - else: - self.__pluginObjectRegistry[name] = (object, pluginType) - - def unregisterPluginObject(self, name): - """ - Public method to unregister a plugin object in the object registry. - - @param name name of the plugin object (string) - """ - if name in self.__pluginObjectRegistry: - del self.__pluginObjectRegistry[name] - - def getPluginObject(self, name): - """ - Public method to get a reference to a registered plugin object. - - @param name name of the plugin object (string) - @return reference to the registered plugin object - @exception KeyError raised when the given name is not known - """ - if name in self.__pluginObjectRegistry: - return self.__pluginObjectRegistry[name][0] - else: - raise KeyError('Pluginobject "%s" is not registered.' % name) - - def getPluginObjects(self): - """ - Public method to get a list of (name, reference) pairs of all - registered plugin objects. - - @return list of (name, reference) pairs - """ - objects = [] - for name in self.__pluginObjectRegistry: - objects.append((name, self.__pluginObjectRegistry[name][0])) - return objects - - def getPluginObjectType(self, name): - """ - Public method to get the type of a registered plugin object. - - @param name name of the plugin object (string) - @return type of the plugin object (string) - @exception KeyError raised when the given name is not known - """ - if name in self.__pluginObjectRegistry: - return self.__pluginObjectRegistry[name][1] - else: - raise KeyError('Pluginobject "%s" is not registered.' % name) - -e5App = QCoreApplication.instance \ No newline at end of file
--- a/E4Gui/E4Completers.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,89 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2007 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing various kinds of completers. -""" - -from PyQt4.QtCore import QDir -from PyQt4.QtGui import QCompleter, QDirModel, QStringListModel - -class E4FileCompleter(QCompleter): - """ - Class implementing a completer for file names. - """ - def __init__(self, parent = None, - completionMode = QCompleter.PopupCompletion, - showHidden = False): - """ - Constructor - - @param parent parent widget of the completer (QWidget) - @keyparam completionMode completion mode of the - completer (QCompleter.CompletionMode) - @keyparam showHidden flag indicating to show hidden entries as well (boolean) - """ - QCompleter.__init__(self, parent) - self.__model = QDirModel(self) - if showHidden: - self.__model.setFilter(\ - QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | \ - QDir.AllDirs | QDir.Hidden)) - else: - self.__model.setFilter(\ - QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | QDir.AllDirs)) - self.setModel(self.__model) - self.setCompletionMode(completionMode) - if parent: - parent.setCompleter(self) - -class E4DirCompleter(QCompleter): - """ - Class implementing a completer for directory names. - """ - def __init__(self, parent = None, - completionMode = QCompleter.PopupCompletion, - showHidden = False): - """ - Constructor - - @param parent parent widget of the completer (QWidget) - @keyparam completionMode completion mode of the - completer (QCompleter.CompletionMode) - @keyparam showHidden flag indicating to show hidden entries as well (boolean) - """ - QCompleter.__init__(self, parent) - self.__model = QDirModel(self) - if showHidden: - self.__model.setFilter(\ - QDir.Filters(QDir.Drives | QDir.AllDirs | QDir.Hidden)) - else: - self.__model.setFilter(\ - QDir.Filters(QDir.Drives | QDir.AllDirs)) - self.setModel(self.__model) - self.setCompletionMode(completionMode) - if parent: - parent.setCompleter(self) - -class E4StringListCompleter(QCompleter): - """ - Class implementing a completer for strings lists. - """ - def __init__(self, parent = None, strings = [], - completionMode = QCompleter.PopupCompletion): - """ - Constructor - - @param parent parent widget of the completer (QWidget) - @param strings list of string to load into the completer (list of strings) - @keyparam completionMode completion mode of the - completer (QCompleter.CompletionMode) - """ - QCompleter.__init__(self, parent) - self.__model = QStringListModel(strings, parent) - self.setModel(self.__model) - self.setCompletionMode(completionMode) - if parent: - parent.setCompleter(self)
--- a/E4Gui/E4Led.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,268 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a LED widget. - -It was inspired by KLed. -""" - -from PyQt4.QtGui import * -from PyQt4.QtCore import * - -E4LedRectangular = 0 -E4LedCircular = 1 - -class E4Led(QWidget): - """ - Class implementing a LED widget. - """ - def __init__(self, parent = None, color = None, shape = E4LedCircular, rectRatio = 1): - """ - Constructor - - @param parent reference to parent widget (QWidget) - @param color color of the LED (QColor) - @param shape shape of the LED (E4LedCircular, E4LedRectangular) - @param rectRation ratio width to height, if shape is rectangular (float) - """ - QWidget.__init__(self, parent) - - if color is None: - color = QColor("green") - - self.__led_on = True - self.__dark_factor = 300 - self.__offcolor = color.dark(self.__dark_factor) - self.__led_color = color - self.__framedLed = True - self.__shape = shape - self.__rectRatio = rectRatio - - self.setColor(color) - - def paintEvent(self, evt): - """ - Protected slot handling the paint event. - - @param evt paint event object (QPaintEvent) - @exception TypeError The E4Led has an unsupported shape type. - """ - if self.__shape == E4LedCircular: - self.__paintRound() - elif self.__shape == E4LedRectangular: - self.__paintRectangular() - else: - raise TypeError("Unsupported shape type for E4Led.") - - def __getBestRoundSize(self): - """ - Private method to calculate the width of the LED. - - @return new width of the LED (integer) - """ - width = min(self.width(), self.height()) - width -= 2 # leave one pixel border - return width > -1 and width or 0 - - def __paintRound(self): - """ - Private method to paint a round raised LED. - """ - # Initialize coordinates, width and height of the LED - width = self.__getBestRoundSize() - - # Calculate the gradient for the LED - wh = width / 2 - color = self.__led_on and self.__led_color or self.__offcolor - gradient = QRadialGradient(wh, wh, wh, 0.8 * wh, 0.8 * wh) - gradient.setColorAt(0.0, color.light(200)) - gradient.setColorAt(0.6, color) - if self.__framedLed: - gradient.setColorAt(0.9, color.dark()) - gradient.setColorAt(1.0, self.palette().color(QPalette.Dark)) - else: - gradient.setColorAt(1.0, color.dark()) - - # now do the drawing - paint = QPainter(self) - paint.setRenderHint(QPainter.Antialiasing, True) - paint.setBrush(QBrush(gradient)) - paint.setPen(Qt.NoPen) - paint.drawEllipse(1, 1, width, width) - paint.end() - - def __paintRectangular(self): - """ - Private method to paint a rectangular raised LED. - """ - # Initialize coordinates, width and height of the LED - width = self.height() * self.__rectRatio - left = max(0, int((self.width() - width) / 2) - 1) - right = min(int((self.width() + width) / 2), self.width()) - height = self.height() - - # now do the drawing - painter = QPainter(self) - painter.setRenderHint(QPainter.Antialiasing, True) - color = self.__led_on and self.__led_color or self.__offcolor - - painter.setPen(color.light(200)) - painter.drawLine(left, 0, left, height - 1) - painter.drawLine(left + 1, 0, right - 1, 0) - if self.__framedLed: - painter.setPen(self.palette().color(QPalette.Dark)) - else: - painter.setPen(color.dark()) - painter.drawLine(left + 1, height - 1, right - 1, height - 1) - painter.drawLine(right - 1, 1, right - 1, height - 1) - painter.fillRect(left + 1, 1, right - 2, height - 2, QBrush(color)) - painter.end() - - def isOn(self): - """ - Public method to return the LED state. - - @return flag indicating the light state (boolean) - """ - return self.__led_on - - def shape(self): - """ - Public method to return the LED shape. - - @return LED shape (E4LedCircular, E4LedRectangular) - """ - return self.__shape - - def ratio(self): - """ - Public method to return the LED rectangular ratio (width / height). - - @return LED rectangular ratio (float) - """ - return self.__rectRatio - - def color(self): - """ - Public method to return the LED color. - - @return color of the LED (QColor) - """ - return self.__led_color - - def setOn(self, state): - """ - Public method to set the LED to on. - - @param state new state of the LED (boolean) - """ - if self.__led_on != state: - self.__led_on = state - self.update() - - def setShape(self, shape): - """ - Public method to set the LED shape. - - @param shape new LED shape (E4LedCircular, E4LedRectangular) - """ - if self.__shape != shape: - self.__shape = shape - self.update() - - def setRatio(self, ratio): - """ - Public method to set the LED rectangular ratio (width / height). - - @param ratio new LED rectangular ratio (float) - """ - if self.__rectRatio != ratio: - self.__rectRatio = ratio - self.update() - - def setColor(self, color): - """ - Public method to set the LED color. - - @param color color for the LED (QColor) - """ - if self.__led_color != color: - self.__led_color = color - self.__offcolor = color.dark(self.__dark_factor) - self.update() - - def setDarkFactor(self, darkfactor): - """ - Public method to set the dark factor. - - @param darkfactor value to set for the dark factor (integer) - """ - if self.__dark_factor != darkfactor: - self.__dark_factor = darkfactor - self.__offcolor = self.__led_color.dark(darkfactor) - self.update() - - def darkFactor(self): - """ - Public method to return the dark factor. - - @return the current dark factor (integer) - """ - return self.__dark_factor - - def toggle(self): - """ - Public slot to toggle the LED state. - """ - self.setOn(not self.__led_on) - - def on(self): - """ - Public slot to set the LED to on. - """ - self.setOn(True) - - def off(self): - """ - Public slot to set the LED to off. - """ - self.setOn(False) - - def setFramed(self, framed): - """ - Public slot to set the __framedLed attribute. - - @param framed flag indicating the framed state (boolean) - """ - if self.__framedLed != framed: - self.__framedLed = framed - self.__off_map = None - self.__on_map = None - self.update() - - def isFramed(self): - """ - Public method to return the framed state. - - @return flag indicating the current framed state (boolean) - """ - return self.__framedLed - - def sizeHint(self): - """ - Public method to give a hint about our desired size. - - @return size hint (QSize) - """ - return QSize(18, 18) - - def minimumSizeHint(self): - """ - Public method to give a hint about our minimum size. - - @return size hint (QSize) - """ - return QSize(18, 18)
--- a/E4Gui/E4LineEdit.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing specialized line edits. -""" - -from PyQt4.QtCore import Qt -from PyQt4.QtGui import QLineEdit, QStyleOptionFrameV2, QStyle, QPainter, QPalette - -class E4LineEdit(QLineEdit): - """ - Class implementing a line edit widget showing some inactive text. - """ - def __init__(self, parent = None, inactiveText = ""): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - @param inactiveText text to be shown on inactivity (string) - """ - QLineEdit.__init__(self, parent) - - self.__inactiveText = inactiveText - - def inactiveText(self): - """ - Public method to get the inactive text. - - return inactive text (string) - """ - return self.__inactiveText - - def setInactiveText(self, inactiveText): - """ - Public method to set the inactive text. - - @param inactiveText text to be shown on inactivity (string) - """ - self.__inactiveText = inactiveText - self.update() - - def paintEvent(self, evt): - """ - Protected method handling a paint event. - - @param evt reference to the paint event (QPaintEvent) - """ - QLineEdit.paintEvent(self, evt) - if not self.text() and \ - self.__inactiveText and \ - not self.hasFocus(): - panel = QStyleOptionFrameV2() - self.initStyleOption(panel) - textRect = \ - self.style().subElementRect(QStyle.SE_LineEditContents, panel, self) - textRect.adjust(2, 0, 0, 0) - painter = QPainter(self) - painter.setPen(self.palette().brush(QPalette.Disabled, QPalette.Text).color()) - painter.drawText(textRect, Qt.AlignLeft | Qt.AlignVCenter, self.__inactiveText)
--- a/E4Gui/E4ListView.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing specialized list views. -""" - -from PyQt4.QtCore import Qt -from PyQt4.QtGui import QListView, QItemSelectionModel - -class E4ListView(QListView): - """ - Class implementing a list view supporting removal of entries. - """ - def keyPressEvent(self, evt): - """ - Protected method implementing special key handling. - - @param evt reference to the event (QKeyEvent) - """ - if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ - self.model() is not None: - self.removeSelected() - evt.setAccepted(True) - else: - QListView.keyPressEvent(self, evt) - - def removeSelected(self): - """ - Public method to remove the selected entries. - """ - if self.model() is None or self.selectionModel() is None: - # no models available - return - - row = 0 - selectedRows = self.selectionModel().selectedRows() - for selectedRow in reversed(selectedRows): - row = selectedRow.row() - self.model().removeRow(row, self.rootIndex()) - - idx = self.model().index(row, 0, self.rootIndex()) - if not idx.isValid(): - idx = self.model().index(row - 1, 0, self.rootIndex()) - self.selectionModel().select(idx, - QItemSelectionModel.SelectCurrent | QItemSelectionModel.Rows) - self.setCurrentIndex(idx) - - def removeAll(self): - """ - Public method to clear the view. - """ - if self.model() is not None: - self.model().removeRows(0, self.model().rowCount(self.rootIndex()), - self.rootIndex())
--- a/E4Gui/E4ModelMenu.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,417 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a menu populated from a QAbstractItemModel. -""" - -from PyQt4.QtCore import * -from PyQt4.QtGui import * - -import UI.PixmapCache - -class E4ModelMenu(QMenu): - """ - Class implementing a menu populated from a QAbstractItemModel. - - @signal activated(const QModelIndex&) emitted when an action has been triggered - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - """ - QMenu.__init__(self, parent) - - self.__maxRows = -1 - self.__firstSeparator = -1 - self.__maxWidth = -1 - self.__statusBarTextRole = 0 - self.__separatorRole = 0 - self.__model = None - self.__root = QModelIndex() - self.__dragStartPosition = QPoint() - - self.setAcceptDrops(True) - - self._mouseButton = Qt.NoButton - self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) - self.__dropRow = -1 - self.__dropIndex = None - - self.connect(self, SIGNAL("aboutToShow()"), self.__aboutToShow) - self.connect(self, SIGNAL("triggered(QAction*)"), self.__actionTriggered) - - def prePopulated(self): - """ - Public method to add any actions before the tree. - - @return flag indicating if any actions were added - """ - return False - - def postPopulated(self): - """ - Public method to add any actions after the tree. - """ - pass - - def setModel(self, model): - """ - Public method to set the model for the menu. - - @param model reference to the model (QAbstractItemModel) - """ - self.__model = model - - def model(self): - """ - Public method to get a reference to the model. - - @return reference to the model (QAbstractItemModel) - """ - return self.__model - - def setMaxRows(self, rows): - """ - Public method to set the maximum number of entries to show. - - @param rows maximum number of entries to show (integer) - """ - self.__maxRows = rows - - def maxRows(self): - """ - Public method to get the maximum number of entries to show. - - @return maximum number of entries to show (integer) - """ - return self.__maxRows - - def setFirstSeparator(self, offset): - """ - Public method to set the first separator. - - @param offset row number of the first separator (integer) - """ - self.__firstSeparator = offset - - def firstSeparator(self): - """ - Public method to get the first separator. - - @return row number of the first separator (integer) - """ - return self.__firstSeparator - - def setRootIndex(self, index): - """ - Public method to set the index of the root item. - - @param index index of the root item (QModelIndex) - """ - self.__root = index - - def rootIndex(self): - """ - Public method to get the index of the root item. - - @return index of the root item (QModelIndex) - """ - return self.__root - - def setStatusBarTextRole(self, role): - """ - Public method to set the role of the status bar text. - - @param role role of the status bar text (integer) - """ - self.__statusBarTextRole = role - - def statusBarTextRole(self): - """ - Public method to get the role of the status bar text. - - @return role of the status bar text (integer) - """ - return self.__statusBarTextRole - - def setSeparatorRole(self, role): - """ - Public method to set the role of the separator. - - @param role role of the separator (integer) - """ - self.__separatorRole = role - - def separatorRole(self): - """ - Public method to get the role of the separator. - - @return role of the separator (integer) - """ - return self.__separatorRole - - def __aboutToShow(self): - """ - Private slot to show the menu. - """ - self.clear() - - if self.prePopulated(): - self.addSeparator() - max_ = self.__maxRows - if max_ != -1: - max_ += self.__firstSeparator - self.createMenu(self.__root, max_, self, self) - self.postPopulated() - - def createBaseMenu(self): - """ - Public method to get the menu that is used to populate sub menu's. - - @return reference to the menu (E4ModelMenu) - """ - return E4ModelMenu(self) - - def createMenu(self, parent, max_, parentMenu = None, menu = None): - """ - Public method to put all the children of a parent into a menu of a given length. - - @param parent index of the parent item (QModelIndex) - @param max_ maximum number of entries (integer) - @param parentMenu reference to the parent menu (QMenu) - @param menu reference to the menu to be populated (QMenu) - """ - if menu is None: - v = parent - - title = parent.data() - modelMenu = self.createBaseMenu() - # triggered goes all the way up the menu structure - self.disconnect(modelMenu, SIGNAL("triggered(QAction*)"), - modelMenu.__actionTriggered) - modelMenu.setTitle(title) - - icon = parent.data(Qt.DecorationRole) - if icon == NotImplemented or icon is None: - icon = UI.PixmapCache.getIcon("defaultIcon.png") - modelMenu.setIcon(icon) - if parentMenu is not None: - parentMenu.addMenu(modelMenu).setData(v) - modelMenu.setRootIndex(parent) - modelMenu.setModel(self.__model) - return - - if self.__model is None: - return - - end = self.__model.rowCount(parent) - if max_ != -1: - end = min(max_, end) - - for i in range(end): - idx = self.__model.index(i, 0, parent) - if self.__model.hasChildren(idx): - self.createMenu(idx, -1, menu) - else: - if self.__separatorRole != 0 and idx.data(self.__separatorRole): - self.addSeparator() - else: - menu.addAction(self.__makeAction(idx)) - - if menu == self and i == self.__firstSeparator - 1: - self.addSeparator() - - def __makeAction(self, idx): - """ - Private method to create an action. - - @param idx index of the item to create an action for (QModelIndex) - @return reference to the created action (QAction) - """ - icon = idx.data(Qt.DecorationRole) - if icon == NotImplemented or icon is None: - icon = UI.PixmapCache.getIcon("defaultIcon.png") - action = self.makeAction(icon, idx.data(), self) - action.setStatusTip(idx.data(self.__statusBarTextRole)) - - v = idx - action.setData(v) - - return action - - def makeAction(self, icon, text, parent): - """ - Public method to create an action. - - @param icon icon of the action (QIcon) - @param text text of the action (string) - @param reference to the parent object (QObject) - @return reference to the created action (QAction) - """ - fm = QFontMetrics(self.font()) - if self.__maxWidth == -1: - self.__maxWidth = fm.width('m') * 30 - smallText = fm.elidedText(text, Qt.ElideMiddle, self.__maxWidth) - - return QAction(icon, smallText, parent) - - def __actionTriggered(self, action): - """ - Private slot to handle the triggering of an action. - - @param action reference to the action that was triggered (QAction) - """ - idx = self.index(action) - if idx.isValid(): - self.emit(SIGNAL("activated(const QModelIndex&)"), idx) - - def index(self, action): - """ - Public method to get the index of an action. - - @param action reference to the action to get the index for (QAction) - @return index of the action (QModelIndex) - """ - if action is None: - return QModelIndex() - - idx = action.data() - if idx is None: - return QModelIndex() - - if not isinstance(idx, QModelIndex): - return QModelIndex() - - return idx - - def dragEnterEvent(self, evt): - """ - Protected method to handle drag enter events. - - @param evt reference to the event (QDragEnterEvent) - """ - if self.__model is not None: - mimeTypes = self.__model.mimeTypes() - for mimeType in mimeTypes: - if evt.mimeData().hasFormat(mimeType): - evt.acceptProposedAction() - - QMenu.dragEnterEvent(self, evt) - - def dropEvent(self, evt): - """ - Protected method to handle drop events. - - @param evt reference to the event (QDropEvent) - """ - if self.__model is not None: - act = self.actionAt(evt.pos()) - parentIndex = self.__root - if act is None: - row = self.__model.rowCount(self.__root) - else: - idx = self.index(act) - if not idx.isValid(): - QMenu.dropEvent(self, evt) - return - - row = idx.row() - if self.__model.hasChildren(idx): - parentIndex = idx - row = self.__model.rowCount(idx) - - self.__dropRow = row - self.__dropIndex = parentIndex - evt.acceptProposedAction() - self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), - row, 0, parentIndex) - self.close() - - QMenu.dropEvent(self, evt) - - def mousePressEvent(self, evt): - """ - Protected method handling mouse press events. - - @param evt reference to the event object (QMouseEvent) - """ - if evt.button() == Qt.LeftButton: - self.__dragStartPosition = evt.pos() - QMenu.mousePressEvent(self, evt) - - def mouseMoveEvent(self, evt): - """ - Protected method to handle mouse move events. - - @param evt reference to the event (QMouseEvent) - """ - if self.__model is None: - QMenu.mouseMoveEvent(self, evt) - return - - if not (evt.buttons() & Qt.LeftButton): - QMenu.mouseMoveEvent(self, evt) - return - - manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() - if manhattanLength <= QApplication.startDragDistance(): - QMenu.mouseMoveEvent(self, evt) - return - - act = self.actionAt(self.__dragStartPosition) - if act is None: - QMenu.mouseMoveEvent(self, evt) - return - - idx = self.index(act) - if not idx.isValid(): - QMenu.mouseMoveEvent(self, evt) - return - - drag = QDrag(self) - drag.setMimeData(self.__model.mimeData([idx])) - actionRect = self.actionGeometry(act) - drag.setPixmap(QPixmap.grabWidget(self, actionRect)) - - if drag.exec_() == Qt.MoveAction: - row = idx.row() - if self.__dropIndex == idx.parent() and self.__dropRow <= row: - row += 1 - self.__model.removeRow(row, self.__root) - - if not self.isAncestorOf(drag.target()): - self.close() - else: - self.emit(SIGNAL("aboutToShow()")) - - def mouseReleaseEvent(self, evt): - """ - Protected method handling mouse release events. - - @param evt reference to the event object (QMouseEvent) - """ - self._mouseButton = evt.button() - self._keyboardModifiers = evt.modifiers() - QMenu.mouseReleaseEvent(self, evt) - - def resetFlags(self): - """ - Public method to reset the saved internal state. - """ - self._mouseButton = Qt.NoButton - self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) - - def removeEntry(self, idx): - """ - Public method to remove a menu entry. - - @param idx index of the entry to be removed (QModelIndex) - """ - row = idx.row() - self.__model.removeRow(row, self.__root) - self.emit(SIGNAL("aboutToShow()"))
--- a/E4Gui/E4ModelToolBar.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,289 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a tool bar populated from a QAbstractItemModel. -""" - -from PyQt4.QtCore import * -from PyQt4.QtGui import * - -from .E4ModelMenu import E4ModelMenu - -class E4ModelToolBar(QToolBar): - """ - Class implementing a tool bar populated from a QAbstractItemModel. - """ - def __init__(self, title = None, parent = None): - """ - Constructor - - @param title title for the tool bar (string) - @param parent reference to the parent widget (QWidget) - """ - if title is not None: - QToolBar.__init__(self, title, parent) - else: - QToolBar.__init__(self, parent) - - self.__model = None - - self.__root = QModelIndex() - self.__dragStartPosition = QPoint() - - if self.isVisible(): - self._build() - - self.setAcceptDrops(True) - - self._mouseButton = Qt.NoButton - self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) - self.__dropRow = -1 - self.__dropIndex = None - - def setModel(self, model): - """ - Public method to set the model for the tool bar. - - @param model reference to the model (QAbstractItemModel) - """ - if self.__model is not None: - self.disconnect(self.__model, - SIGNAL("modelReset()"), - self._build) - self.disconnect(self.__model, - SIGNAL("rowsInserted(const QModelIndex&, int, int)"), - self._build) - self.disconnect(self.__model, - SIGNAL("rowsRemoved(const QModelIndex&, int, int)"), - self._build) - self.disconnect(self.__model, - SIGNAL("dataChanged(const QModelIndex&, const QModelIndex&)"), - self._build) - - self.__model = model - - if self.__model is not None: - self.connect(self.__model, - SIGNAL("modelReset()"), - self._build) - self.connect(self.__model, - SIGNAL("rowsInserted(const QModelIndex&, int, int)"), - self._build) - self.connect(self.__model, - SIGNAL("rowsRemoved(const QModelIndex&, int, int)"), - self._build) - self.connect(self.__model, - SIGNAL("dataChanged(const QModelIndex&, const QModelIndex&)"), - self._build) - - def model(self): - """ - Public method to get a reference to the model. - - @return reference to the model (QAbstractItemModel) - """ - return self.__model - - def setRootIndex(self, idx): - """ - Public method to set the root index. - - @param idx index to be set as the root index (QModelIndex) - """ - self.__root = idx - - def rootIndex(self): - """ - Public method to get the root index. - - @return root index (QModelIndex) - """ - return self.__root - - def _build(self): - """ - Protected slot to build the tool bar. - """ - assert self.__model is not None - - self.clear() - - for i in range(self.__model.rowCount(self.__root)): - idx = self.__model.index(i, 0, self.__root) - v = idx - - title = idx.data(Qt.DisplayRole) - icon = idx.data(Qt.DecorationRole) - if icon == NotImplemented or icon is None: - icon = QIcon() - folder = self.__model.hasChildren(idx) - - act = self.addAction(icon, title) - act.setData(v) - - button = self.widgetForAction(act) - button.installEventFilter(self) - - if folder: - menu = self._createMenu() - menu.setModel(self.__model) - menu.setRootIndex(idx) - act.setMenu(menu) - button.setPopupMode(QToolButton.InstantPopup) - button.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) - - def index(self, action): - """ - Public method to get the index of an action. - - @param action reference to the action to get the index for (QAction) - @return index of the action (QModelIndex) - """ - if action is None: - return QModelIndex() - - idx = action.data() - if idx is None: - return QModelIndex() - - if not isinstance(idx, QModelIndex): - return QModelIndex() - - return idx - - def _createMenu(self): - """ - Protected method to create the menu for a tool bar action. - - @return menu for a tool bar action (E4ModelMenu) - """ - return E4ModelMenu(self) - - def eventFilter(self, obj, evt): - """ - Public method to handle event for other objects. - - @param obj reference to the object (QObject) - @param evt reference to the event (QEvent) - @return flag indicating that the event should be filtered out (boolean) - """ - if evt.type() == QEvent.MouseButtonRelease: - self._mouseButton = evt.button() - self._keyboardModifiers = evt.modifiers() - act = obj.defaultAction() - idx = self.index(act) - if idx.isValid(): - self.emit(SIGNAL("activated(const QModelIndex&)"), idx) - elif evt.type() == QEvent.MouseButtonPress: - if evt.buttons() & Qt.LeftButton: - self.__dragStartPosition = self.mapFromGlobal(evt.globalPos()) - - return False - - def dragEnterEvent(self, evt): - """ - Protected method to handle drag enter events. - - @param evt reference to the event (QDragEnterEvent) - """ - if self.__model is not None: - mimeTypes = self.__model.mimeTypes() - for mimeType in mimeTypes: - if evt.mimeData().hasFormat(mimeType): - evt.acceptProposedAction() - - QToolBar.dragEnterEvent(self, evt) - - def dropEvent(self, evt): - """ - Protected method to handle drop events. - - @param evt reference to the event (QDropEvent) - """ - if self.__model is not None: - act = self.actionAt(evt.pos()) - parentIndex = self.__root - if act is None: - row = self.__model.rowCount(self.__root) - else: - idx = self.index(act) - assert idx.isValid() - row = idx.row() - if self.__model.hasChildren(idx): - parentIndex = idx - row = self.__model.rowCount(idx) - - self.__dropRow = row - self.__dropIndex = parentIndex - evt.acceptProposedAction() - self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), - row, 0, parentIndex) - - QToolBar.dropEvent(self, evt) - - def mouseMoveEvent(self, evt): - """ - Protected method to handle mouse move events. - - @param evt reference to the event (QMouseEvent) - """ - if self.__model is None: - QToolBar.mouseMoveEvent(self, evt) - return - - if not (evt.buttons() & Qt.LeftButton): - QToolBar.mouseMoveEvent(self, evt) - return - - manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() - if manhattanLength <= QApplication.startDragDistance(): - QToolBar.mouseMoveEvent(self, evt) - return - - act = self.actionAt(self.__dragStartPosition) - if act is None: - QToolBar.mouseMoveEvent(self, evt) - return - - idx = self.index(act) - assert idx.isValid() - - drag = QDrag(self) - drag.setMimeData(self.__model.mimeData([idx])) - actionRect = self.actionGeometry(act) - drag.setPixmap(QPixmap.grabWidget(self, actionRect)) - - if drag.exec_() == Qt.MoveAction: - row = idx.row() - if self.__dropIndex == idx.parent() and self.__dropRow <= row: - row += 1 - self.__model.removeRow(row, self.__root) - - def hideEvent(self, evt): - """ - Protected method to handle hide events. - - @param evt reference to the hide event (QHideEvent) - """ - self.clear() - QToolBar.hideEvent(self, evt) - - def showEvent(self, evt): - """ - Protected method to handle show events. - - @param evt reference to the hide event (QHideEvent) - """ - if len(self.actions()) == 0: - self._build() - QToolBar.showEvent(self, evt) - - def resetFlags(self): - """ - Public method to reset the saved internal state. - """ - self._mouseButton = Qt.NoButton - self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier)
--- a/E4Gui/E4SideBar.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,550 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a sidebar class. -""" - -from PyQt4.QtCore import SIGNAL, SLOT, QEvent, QSize, Qt, QByteArray, \ - QDataStream, QIODevice -from PyQt4.QtGui import QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton - -from E4Gui.E4Application import e5App - -import UI.PixmapCache - -class E4SideBar(QWidget): - """ - Class implementing a sidebar with a widget area, that is hidden or shown, if the - current tab is clicked again. - """ - Version = 1 - - North = 0 - East = 1 - South = 2 - West = 3 - - def __init__(self, orientation = None, parent = None): - """ - Constructor - - @param orientation orientation of the sidebar widget (North, East, South, West) - @param parent parent widget (QWidget) - """ - QWidget.__init__(self, parent) - - self.__tabBar = QTabBar() - self.__tabBar.setDrawBase(True) - self.__tabBar.setShape(QTabBar.RoundedNorth) - self.__stackedWidget = QStackedWidget(self) - self.__stackedWidget.setContentsMargins(0, 0, 0, 0) - self.__autoHideButton = QToolButton() - self.__autoHideButton.setCheckable(True) - self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOff.png")) - self.__autoHideButton.setChecked(True) - self.__autoHideButton.setToolTip( - self.trUtf8("Deselect to activate automatic collapsing")) - self.barLayout = QBoxLayout(QBoxLayout.LeftToRight) - self.barLayout.setMargin(0) - self.layout = QBoxLayout(QBoxLayout.TopToBottom) - self.layout.setMargin(0) - self.layout.setSpacing(0) - self.barLayout.addWidget(self.__autoHideButton) - self.barLayout.addWidget(self.__tabBar) - self.layout.addLayout(self.barLayout) - self.layout.addWidget(self.__stackedWidget) - self.setLayout(self.layout) - - self.__minimized = False - self.__minSize = 0 - self.__maxSize = 0 - self.__bigSize = QSize() - - self.splitter = None - self.splitterSizes = [] - - self.__hasFocus = False # flag storing if this widget or any child has the focus - self.__autoHide = False - - self.__tabBar.installEventFilter(self) - - self.__orientation = E4SideBar.North - if orientation is None: - orientation = E4SideBar.North - self.setOrientation(orientation) - - self.connect(self.__tabBar, SIGNAL("currentChanged(int)"), - self.__stackedWidget, SLOT("setCurrentIndex(int)")) - self.connect(e5App(), SIGNAL("focusChanged(QWidget*, QWidget*)"), - self.__appFocusChanged) - self.connect(self.__autoHideButton, SIGNAL("toggled(bool)"), - self.__autoHideToggled) - - def setSplitter(self, splitter): - """ - Public method to set the splitter managing the sidebar. - - @param splitter reference to the splitter (QSplitter) - """ - self.splitter = splitter - - def shrink(self): - """ - Public method to shrink the sidebar. - """ - self.__minimized = True - self.__bigSize = self.size() - if self.__orientation in [E4SideBar.North, E4SideBar.South]: - self.__minSize = self.minimumHeight() - self.__maxSize = self.maximumHeight() - else: - self.__minSize = self.minimumWidth() - self.__maxSize = self.maximumWidth() - self.splitterSizes = self.splitter.sizes() - - self.__stackedWidget.hide() - - if self.__orientation in [E4SideBar.North, E4SideBar.South]: - self.setFixedHeight(self.__tabBar.minimumSizeHint().height()) - else: - self.setFixedWidth(self.__tabBar.minimumSizeHint().width()) - - def expand(self): - """ - Public method to expand the sidebar. - """ - self.__minimized = False - self.__stackedWidget.show() - self.resize(self.__bigSize) - if self.__orientation in [E4SideBar.North, E4SideBar.South]: - self.setMinimumHeight(self.__minSize) - self.setMaximumHeight(self.__maxSize) - else: - self.setMinimumWidth(self.__minSize) - self.setMaximumWidth(self.__maxSize) - self.splitter.setSizes(self.splitterSizes) - - def isMinimized(self): - """ - Public method to check the minimized state. - - @return flag indicating the minimized state (boolean) - """ - return self.__minimized - - def isAutoHiding(self): - """ - Public method to check, if the auto hide function is active. - - @return flag indicating the state of auto hiding (boolean) - """ - return self.__autoHide - - def eventFilter(self, obj, evt): - """ - Protected method to handle some events for the tabbar. - - @param obj reference to the object (QObject) - @param evt reference to the event object (QEvent) - @return flag indicating, if the event was handled (boolean) - """ - if obj == self.__tabBar: - if evt.type() == QEvent.MouseButtonPress: - pos = evt.pos() - index = -1 - for i in range(self.__tabBar.count()): - if self.__tabBar.tabRect(i).contains(pos): - index = i - break - - if i == self.__tabBar.currentIndex(): - if self.isMinimized(): - self.expand() - else: - self.shrink() - return True - elif self.isMinimized(): - self.expand() - elif evt.type() == QEvent.Wheel and not self.__stackedWidget.isHidden(): - if evt.delta() > 0: - self.prevTab() - else: - self.nextTab() - return True - - return QWidget.eventFilter(self, obj, evt) - - def addTab(self, widget, iconOrLabel, label = None): - """ - Public method to add a tab to the sidebar. - - @param widget reference to the widget to add (QWidget) - @param iconOrLabel reference to the icon or the labeltext of the tab - (QIcon, string) - @param label the labeltext of the tab (string) (only to be - used, if the second parameter is a QIcon) - """ - if label: - self.__tabBar.addTab(iconOrLabel, label) - else: - self.__tabBar.addTab(iconOrLabel) - self.__stackedWidget.addWidget(widget) - - def insertTab(self, index, widget, iconOrLabel, label = None): - """ - Public method to insert a tab into the sidebar. - - @param index the index to insert the tab at (integer) - @param widget reference to the widget to insert (QWidget) - @param iconOrLabel reference to the icon or the labeltext of the tab - (QIcon, string) - @param label the labeltext of the tab (string) (only to be - used, if the second parameter is a QIcon) - """ - if label: - self.__tabBar.insertTab(index, iconOrLabel, label) - else: - self.__tabBar.insertTab(index, iconOrLabel) - self.__stackedWidget.insertWidget(index, widget) - - def removeTab(self, index): - """ - Public method to remove a tab. - - @param index the index of the tab to remove (integer) - """ - self.__stackedWidget.removeWidget(self.__stackedWidget.widget(index)) - self.__tabBar.removeTab(index) - - def clear(self): - """ - Public method to remove all tabs. - """ - while self.count() > 0: - self.removeTab(0) - - def prevTab(self): - """ - Public slot used to show the previous tab. - """ - ind = self.currentIndex() - 1 - if ind == -1: - ind = self.count() - 1 - - self.setCurrentIndex(ind) - self.currentWidget().setFocus() - - def nextTab(self): - """ - Public slot used to show the next tab. - """ - ind = self.currentIndex() + 1 - if ind == self.count(): - ind = 0 - - self.setCurrentIndex(ind) - self.currentWidget().setFocus() - - def count(self): - """ - Public method to get the number of tabs. - - @return number of tabs in the sidebar (integer) - """ - return self.__tabBar.count() - - def currentIndex(self): - """ - Public method to get the index of the current tab. - - @return index of the current tab (integer) - """ - return self.__stackedWidget.currentIndex() - - def setCurrentIndex(self, index): - """ - Public slot to set the current index. - - @param index the index to set as the current index (integer) - """ - self.__tabBar.setCurrentIndex(index) - self.__stackedWidget.setCurrentIndex(index) - if self.isMinimized(): - self.expand() - - def currentWidget(self): - """ - Public method to get a reference to the current widget. - - @return reference to the current widget (QWidget) - """ - return self.__stackedWidget.currentWidget() - - def setCurrentWidget(self, widget): - """ - Public slot to set the current widget. - - @param widget reference to the widget to become the current widget (QWidget) - """ - self.__stackedWidget.setCurrentWidget(widget) - self.__tabBar.setCurrentIndex(self.__stackedWidget.currentIndex()) - if self.isMinimized(): - self.expand() - - def indexOf(self, widget): - """ - Public method to get the index of the given widget. - - @param widget reference to the widget to get the index of (QWidget) - @return index of the given widget (integer) - """ - return self.__stackedWidget.indexOf(widget) - - def isTabEnabled(self, index): - """ - Public method to check, if a tab is enabled. - - @param index index of the tab to check (integer) - @return flag indicating the enabled state (boolean) - """ - return self.__tabBar.isTabEnabled(index) - - def setTabEnabled(self, index, enabled): - """ - Public method to set the enabled state of a tab. - - @param index index of the tab to set (integer) - @param enabled enabled state to set (boolean) - """ - self.__tabBar.setTabEnabled(index, enabled) - - def orientation(self): - """ - Public method to get the orientation of the sidebar. - - @return orientation of the sidebar (North, East, South, West) - """ - return self.__orientation - - def setOrientation(self, orient): - """ - Public method to set the orientation of the sidebar. - @param orient orientation of the sidebar (North, East, South, West) - """ - if orient == E4SideBar.North: - self.__tabBar.setShape(QTabBar.RoundedNorth) - self.barLayout.setDirection(QBoxLayout.LeftToRight) - self.layout.setDirection(QBoxLayout.TopToBottom) - self.layout.setAlignment(self.barLayout, Qt.AlignLeft) - elif orient == E4SideBar.East: - self.__tabBar.setShape(QTabBar.RoundedEast) - self.barLayout.setDirection(QBoxLayout.TopToBottom) - self.layout.setDirection(QBoxLayout.RightToLeft) - self.layout.setAlignment(self.barLayout, Qt.AlignTop) - elif orient == E4SideBar.South: - self.__tabBar.setShape(QTabBar.RoundedSouth) - self.barLayout.setDirection(QBoxLayout.LeftToRight) - self.layout.setDirection(QBoxLayout.BottomToTop) - self.layout.setAlignment(self.barLayout, Qt.AlignLeft) - elif orient == E4SideBar.West: - self.__tabBar.setShape(QTabBar.RoundedWest) - self.barLayout.setDirection(QBoxLayout.TopToBottom) - self.layout.setDirection(QBoxLayout.LeftToRight) - self.layout.setAlignment(self.barLayout, Qt.AlignTop) - self.__orientation = orient - - def tabIcon(self, index): - """ - Public method to get the icon of a tab. - - @param index index of the tab (integer) - @return icon of the tab (QIcon) - """ - return self.__tabBar.tabIcon(index) - - def setTabIcon(self, index, icon): - """ - Public method to set the icon of a tab. - - @param index index of the tab (integer) - @param icon icon to be set (QIcon) - """ - self.__tabBar.setTabIcon(index, icon) - - def tabText(self, index): - """ - Public method to get the text of a tab. - - @param index index of the tab (integer) - @return text of the tab (string) - """ - return self.__tabBar.tabText(index) - - def setTabText(self, index, text): - """ - Public method to set the text of a tab. - - @param index index of the tab (integer) - @param text text to set (string) - """ - self.__tabBar.setTabText(index, text) - - def tabToolTip(self, index): - """ - Public method to get the tooltip text of a tab. - - @param index index of the tab (integer) - @return tooltip text of the tab (string) - """ - return self.__tabBar.tabToolTip(index) - - def setTabToolTip(self, index, tip): - """ - Public method to set the tooltip text of a tab. - - @param index index of the tab (integer) - @param tooltip text text to set (string) - """ - self.__tabBar.setTabToolTip(index, tip) - - def tabWhatsThis(self, index): - """ - Public method to get the WhatsThis text of a tab. - - @param index index of the tab (integer) - @return WhatsThis text of the tab (string) - """ - return self.__tabBar.tabWhatsThis(index) - - def setTabWhatsThis(self, index, text): - """ - Public method to set the WhatsThis text of a tab. - - @param index index of the tab (integer) - @param WhatsThis text text to set (string) - """ - self.__tabBar.setTabWhatsThis(index, text) - - def widget(self, index): - """ - Public method to get a reference to the widget associated with a tab. - - @param index index of the tab (integer) - @return reference to the widget (QWidget) - """ - return self.__stackedWidget.widget(index) - - def saveState(self): - """ - Public method to save the state of the sidebar. - - @return saved state as a byte array (QByteArray) - """ - if len(self.splitterSizes) == 0: - self.splitterSizes = self.splitter.sizes() - self.__bigSize = self.size() - if self.__orientation in [E4SideBar.North, E4SideBar.South]: - self.__minSize = self.minimumHeight() - self.__maxSize = self.maximumHeight() - else: - self.__minSize = self.minimumWidth() - self.__maxSize = self.maximumWidth() - - data = QByteArray() - stream = QDataStream(data, QIODevice.WriteOnly) - - stream.writeUInt16(self.Version) - stream.writeBool(self.__minimized) - stream << self.__bigSize - stream.writeUInt16(self.__minSize) - stream.writeUInt16(self.__maxSize) - stream.writeUInt16(len(self.splitterSizes)) - for size in self.splitterSizes: - stream.writeUInt16(size) - stream.writeBool(self.__autoHide) - - return data - - def restoreState(self, state): - """ - Public method to restore the state of the sidebar. - - @param state byte array containing the saved state (QByteArray) - @return flag indicating success (boolean) - """ - if state.isEmpty(): - return False - - data = QByteArray(state) - stream = QDataStream(data, QIODevice.ReadOnly) - version = stream.readUInt16() - minimized = stream.readBool() - - if minimized: - self.shrink() - - stream >> self.__bigSize - self.__minSize = stream.readUInt16() - self.__maxSize = stream.readUInt16() - count = stream.readUInt16() - self.splitterSizes = [] - for i in range(count): - self.splitterSizes.append(stream.readUInt16()) - - self.__autoHide = stream.readBool() - self.__autoHideButton.setChecked(not self.__autoHide) - - if not minimized: - self.expand() - - return True - - ####################################################################### - ## methods below implement the autohide functionality - ####################################################################### - - def __autoHideToggled(self, checked): - """ - Private slot to handle the toggling of the autohide button. - - @param checked flag indicating the checked state of the button (boolean) - """ - self.__autoHide = not checked - if self.__autoHide: - self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOn")) - else: - self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOff")) - - def __appFocusChanged(self, old, now): - """ - Private slot to handle a change of the focus. - - @param old reference to the widget, that lost focus (QWidget or None) - @param now reference to the widget having the focus (QWidget or None) - """ - self.__hasFocus = self.isAncestorOf(now) - if self.__autoHide and not self.__hasFocus and not self.isMinimized(): - self.shrink() - elif self.__autoHide and self.__hasFocus and self.isMinimized(): - self.expand() - - def enterEvent(self, event): - """ - Protected method to handle the mouse entering this widget. - - @param event reference to the event (QEvent) - """ - if self.__autoHide and self.isMinimized(): - self.expand() - - def leaveEvent(self, event): - """ - Protected method to handle the mouse leaving this widget. - - @param event reference to the event (QEvent) - """ - if self.__autoHide and not self.__hasFocus and not self.isMinimized(): - self.shrink() \ No newline at end of file
--- a/E4Gui/E4SingleApplication.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,164 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2004 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing the single application server and client. -""" - -import sys -import os - -from E4Gui.E4Application import e5App - -from Utilities.SingleApplication import SingleApplicationClient, SingleApplicationServer - -import Utilities - -########################################################################### -# define some module global stuff -########################################################################### - -SAFile = "eric5" - -# define the protocol tokens -SAOpenFile = '>OpenFile<' -SAOpenProject = '>OpenProject<' -SAArguments = '>Arguments<' - -class E4SingleApplicationServer(SingleApplicationServer): - """ - Class implementing the single application server embedded within the IDE. - """ - def __init__(self): - """ - Constructor - """ - SingleApplicationServer.__init__(self, SAFile) - - def handleCommand(self, cmd, params): - """ - Public slot to handle the command sent by the client. - - @param cmd commandstring (string) - @param params parameterstring (string) - """ - if cmd == SAOpenFile: - self.__saOpenFile(params) - return - - if cmd == SAOpenProject: - self.__saOpenProject(params) - return - - if cmd == SAArguments: - self.__saArguments(params) - return - - def __saOpenFile(self, fname): - """ - Private method used to handle the "Open File" command. - - @param fname filename to be opened (string) - """ - e5App().getObject("ViewManager").openSourceFile(fname) - - def __saOpenProject(self, pfname): - """ - Private method used to handle the "Open Project" command. - - @param pfname filename of the project to be opened (string) - """ - e5App().getObject("Project").openProject(pfname) - - def __saArguments(self, argsStr): - """ - Private method used to handle the "Arguments" command. - - @param argsStr space delimited list of command args(string) - """ - e5App().getObject("DebugUI").setArgvHistory(argsStr) - -class E4SingleApplicationClient(SingleApplicationClient): - """ - Class implementing the single application client of the IDE. - """ - def __init__(self): - """ - Constructor - """ - SingleApplicationClient.__init__(self, SAFile) - - def processArgs(self, args): - """ - Public method to process the command line args passed to the UI. - - @param args list of files to open - """ - # no args, return - if args is None: - return - - # holds space delimited list of command args, if any - argsStr = None - # flag indicating '--' options was found - ddseen = False - - if Utilities.isWindowsPlatform(): - argChars = ['-', '/'] - else: - argChars = ['-'] - - for arg in args: - if arg == '--' and not ddseen: - ddseen = True - continue - - if arg[0] in argChars or ddseen: - if argsStr is None: - argsStr = arg - else: - argsStr = "%s %s" % (argsStr, arg) - continue - - ext = os.path.splitext(arg)[1] - ext = os.path.normcase(ext) - - if ext in ['.e4p', '.e4pz']: - self.__openProject(arg) - else: - self.__openFile(arg) - - # send any args we had - if argsStr is not None: - self.__sendArguments(argsStr) - - self.disconnect() - - def __openFile(self, fname): - """ - Private method to open a file in the application server. - - @param fname name of file to be opened (string) - """ - cmd = "%s%s\n" % (SAOpenFile, Utilities.normabspath(fname)) - self.sendCommand(cmd) - - def __openProject(self, pfname): - """ - Private method to open a project in the application server. - - @param pfname name of the projectfile to be opened (string) - """ - cmd = "%s%s\n" % (SAOpenProject, Utilities.normabspath(pfname)) - self.sendCommand(cmd) - - def __sendArguments(self, argsStr): - """ - Private method to set the command arguments in the application server. - - @param argsStr space delimited list of command args (string) - """ - cmd = "%s%s\n" % (SAArguments, argsStr) - self.sendCommand(cmd) \ No newline at end of file
--- a/E4Gui/E4SqueezeLabels.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,121 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing labels that squeeze their contents to fit the size of the label. -""" - -from PyQt4.QtCore import Qt -from PyQt4.QtGui import QLabel - -from Utilities import compactPath - -class E4SqueezeLabel(QLabel): - """ - Class implementing a label that squeezes its contents to fit it's size. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent Widget (QWidget) - """ - QLabel.__init__(self, parent) - - self.__text = '' - self.__elided = '' - - def paintEvent(self, event): - """ - Protected method called when some painting is required. - - @param event reference to the paint event (QPaintEvent) - """ - fm = self.fontMetrics() - if fm.width(self.__text) > self.contentsRect().width(): - self.__elided = fm.elidedText(self.text(), Qt.ElideMiddle, self.width()) - QLabel.setText(self, self.__elided) - else: - QLabel.setText(self, self.__text) - QLabel.paintEvent(self, event) - - def setText(self, txt): - """ - Public method to set the label's text. - - @param txt the text to be shown (string) - """ - self.__text = txt - QLabel.setText(self, self.__text) - -class E4SqueezeLabelPath(QLabel): - """ - Class implementing a label showing a file path compacted to fit it's size. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent Widget (QWidget) - """ - QLabel.__init__(self, parent) - - self.__path = '' - self.__surrounding = "{0}" - - def setSurrounding(self, surrounding): - """ - Public method to set the surrounding of the path string. - - @param surrounding the a string containg placeholders for the path (string) - """ - self.__surrounding = surrounding - QLabel.setText(self, self.__surrounding.format(self.__path)) - - def setPath(self, path): - """ - Public method to set the path of the label. - - @param path path to be shown (string) - """ - self.__path = path - QLabel.setText(self, self.__surrounding.format(self.__path)) - - def setTextPath(self, surrounding, path): - """ - Public method to set the surrounding and the path of the label. - - @param surrounding the a string containg placeholders for the path (string) - @param path path to be shown (string) - """ - self.__surrounding = surrounding - self.__path = path - QLabel.setText(self, self.__surrounding.format(self.__path)) - - def paintEvent(self, event): - """ - Protected method called when some painting is required. - - @param event reference to the paint event (QPaintEvent) - """ - fm = self.fontMetrics() - if fm.width(self.__surrounding.format(self.__path)) > self.contentsRect().width(): - QLabel.setText(self, - self.__surrounding.format(compactPath(self.__path, - self.contentsRect().width(), - self.length)) - ) - else: - QLabel.setText(self, self.__surrounding.format(self.__path)) - QLabel.paintEvent(self, event) - - def length(self, txt): - """ - Public method to return the length of a text in pixels. - - @param txt text to calculate the length for after wrapped (string) - @return length of the wrapped text in pixels (integer) - """ - return self.fontMetrics().width(self.__surrounding.format(txt))
--- a/E4Gui/E4TabWidget.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,322 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2005 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a TabWidget class substituting QTabWidget. -""" - -from PyQt4.QtGui import QTabWidget, QTabBar, QApplication, QDrag, QStyle, QLabel, QMovie -from PyQt4.QtCore import Qt, SIGNAL, QPoint, QMimeData, QByteArray - -class E4WheelTabBar(QTabBar): - """ - Class implementing a tab bar class substituting QTabBar to support wheel events. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - """ - QTabBar.__init__(self, parent) - self._tabWidget = parent - - def wheelEvent(self, event): - """ - Protected slot to support wheel events. - - @param reference to the wheel event (QWheelEvent) - """ - try: - if event.delta() > 0: - self._tabWidget.prevTab() - else: - self._tabWidget.nextTab() - - event.accept() - except AttributeError: - pass - -class E4DnDTabBar(E4WheelTabBar): - """ - Class implementing a tab bar class substituting QTabBar. - - @signal tabMoveRequested(int, int) emitted to signal a tab move request giving - the old and new index position - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - """ - E4WheelTabBar.__init__(self, parent) - self.setAcceptDrops(True) - - self.__dragStartPos = QPoint() - - def mousePressEvent(self, event): - """ - Protected method to handle mouse press events. - - @param event reference to the mouse press event (QMouseEvent) - """ - if event.button() == Qt.LeftButton: - self.__dragStartPos = QPoint(event.pos()) - E4WheelTabBar.mousePressEvent(self, event) - - def mouseMoveEvent(self, event): - """ - Protected method to handle mouse move events. - - @param event reference to the mouse move event (QMouseEvent) - """ - if event.buttons() == Qt.MouseButtons(Qt.LeftButton) and \ - (event.pos() - self.__dragStartPos).manhattanLength() > \ - QApplication.startDragDistance(): - drag = QDrag(self) - mimeData = QMimeData() - index = self.tabAt(event.pos()) - mimeData.setText(self.tabText(index)) - mimeData.setData("action", "tab-reordering") - mimeData.setData("tabbar-id", QByteArray.number(id(self))) - drag.setMimeData(mimeData) - drag.exec_() - E4WheelTabBar.mouseMoveEvent(self, event) - - def dragEnterEvent(self, event): - """ - Protected method to handle drag enter events. - - @param event reference to the drag enter event (QDragEnterEvent) - """ - mimeData = event.mimeData() - formats = mimeData.formats() - if "action" in formats and \ - mimeData.data("action") == "tab-reordering" and \ - "tabbar-id" in formats and \ - mimeData.data("tabbar-id") == id(self): - event.acceptProposedAction() - E4WheelTabBar.dragEnterEvent(self, event) - - def dropEvent(self, event): - """ - Protected method to handle drop events. - - @param event reference to the drop event (QDropEvent) - """ - fromIndex = self.tabAt(self.__dragStartPos) - toIndex = self.tabAt(event.pos()) - if fromIndex != toIndex: - self.emit(SIGNAL("tabMoveRequested(int, int)"), fromIndex, toIndex) - event.acceptProposedAction() - E4WheelTabBar.dropEvent(self, event) - -class E4TabWidget(QTabWidget): - """ - Class implementing a tab widget class substituting QTabWidget. - - It provides slots to show the previous and next tab and give - them the input focus and it allows to have a context menu for the tabs. - - @signal customTabContextMenuRequested(const QPoint & point, int index) emitted when - a context menu for a tab is requested - """ - def __init__(self, parent = None, dnd = False): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - @keyparam dnd flag indicating the support for Drag & Drop (boolean) - """ - QTabWidget.__init__(self, parent) - - if dnd: - if not hasattr(self, 'setMovable'): - self.__tabBar = E4DnDTabBar(self) - self.connect(self.__tabBar, SIGNAL("tabMoveRequested(int, int)"), - self.moveTab) - self.setTabBar(self.__tabBar) - else: - self.__tabBar = E4WheelTabBar(self) - self.setTabBar(self.__tabBar) - self.setMovable(True) - else: - self.__tabBar = E4WheelTabBar(self) - self.setTabBar(self.__tabBar) - - self.__lastCurrentIndex = -1 - self.__currentIndex = -1 - self.connect(self, SIGNAL("currentChanged(int)"), self.__currentChanged) - - def __currentChanged(self, index): - """ - Private slot to handle the currentChanged signal. - - @param index index of the current tab - """ - if index == -1: - self.__lastCurrentIndex = -1 - else: - self.__lastCurrentIndex = self.__currentIndex - self.__currentIndex = index - - def switchTab(self): - """ - Public slot used to switch between the current and the previous current tab. - """ - if self.__lastCurrentIndex == -1 or self.__currentIndex == -1: - return - - self.setCurrentIndex(self.__lastCurrentIndex) - self.currentWidget().setFocus() - - def nextTab(self): - """ - Public slot used to show the next tab. - """ - ind = self.currentIndex() + 1 - if ind == self.count(): - ind = 0 - - self.setCurrentIndex(ind) - self.currentWidget().setFocus() - - def prevTab(self): - """ - Public slot used to show the previous tab. - """ - ind = self.currentIndex() - 1 - if ind == -1: - ind = self.count() - 1 - - self.setCurrentIndex(ind) - self.currentWidget().setFocus() - - def setTabContextMenuPolicy(self, policy): - """ - Public method to set the context menu policy of the tab. - - @param policy context menu policy to set (Qt.ContextMenuPolicy) - """ - self.tabBar().setContextMenuPolicy(policy) - if policy == Qt.CustomContextMenu: - self.connect(self.tabBar(), - SIGNAL("customContextMenuRequested(const QPoint &)"), - self.__handleTabCustomContextMenuRequested) - else: - self.disconnect(self.tabBar(), - SIGNAL("customContextMenuRequested(const QPoint &)"), - self.__handleTabCustomContextMenuRequested) - - def __handleTabCustomContextMenuRequested(self, point): - """ - Private slot to handle the context menu request for the tabbar. - - @param point point the context menu was requested (QPoint) - """ - _tabbar = self.tabBar() - for index in range(_tabbar.count()): - rect = _tabbar.tabRect(index) - if rect.contains(point): - self.emit(SIGNAL("customTabContextMenuRequested(const QPoint &, int)"), - _tabbar.mapToParent(point), index) - break - - def selectTab(self, pos): - """ - Public method to get the index of a tab given a position. - - @param pos position determining the tab index (QPoint) - @return index of the tab (integer) - """ - _tabbar = self.tabBar() - for index in range(_tabbar.count()): - rect = _tabbar.tabRect(index) - if rect.contains(pos): - return index - - return -1 - - def moveTab(self, curIndex, newIndex): - """ - Public method to move a tab to a new index. - - @param curIndex index of tab to be moved (integer) - @param newIndex index the tab should be moved to (integer) - """ - # step 1: save the tab data of tab to be moved - toolTip = self.tabToolTip(curIndex) - text = self.tabText(curIndex) - icon = self.tabIcon(curIndex) - whatsThis = self.tabWhatsThis(curIndex) - widget = self.widget(curIndex) - curWidget = self.currentWidget() - - # step 2: move the tab - self.removeTab(curIndex) - self.insertTab(newIndex, widget, icon, text) - - # step 3: set the tab data again - self.setTabToolTip(newIndex, toolTip) - self.setTabWhatsThis(newIndex, whatsThis) - - # step 4: set current widget - self.setCurrentWidget(curWidget) - - def __freeSide(self): - """ - Private method to determine the free side of a tab. - - @return free side (QTabBar.ButtonPosition) - """ - side = self.__tabBar.style().styleHint(QStyle.SH_TabBar_CloseButtonPosition) - if side == QTabBar.LeftSide: - side = QTabBar.RightSide - else: - side = QTabBar.LeftSide - return side - - def animationLabel(self, index, animationFile): - """ - Public slot to set an animated icon. - - @param index tab index (integer) - @param animationFile name of the file containing the animation (string) - @return reference to the created label (QLabel) - """ - if index == -1: - return None - - if hasattr(self.__tabBar, 'setTabButton'): - side = self.__freeSide() - animation = QLabel(self) - if animationFile and not animation.movie(): - movie = QMovie(animationFile, QByteArray(), animation) - movie.setSpeed(50) - animation.setMovie(movie) - movie.start() - self.__tabBar.setTabButton(index, side, None) - self.__tabBar.setTabButton(index, side, animation) - return animation - else: - return None - - def resetAnimation(self, index): - """ - Public slot to reset an animated icon. - - @param index tab index (integer) - """ - if index == -1: - return None - - if hasattr(self.__tabBar, 'tabButton'): - side = self.__freeSide() - animation = self.__tabBar.tabButton(index, side) - if animation is not None: - animation.movie().stop() - self.__tabBar.setTabButton(index, side, None) - del animation
--- a/E4Gui/E4TableView.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing specialized table views. -""" - -from PyQt4.QtCore import Qt -from PyQt4.QtGui import QTableView, QItemSelectionModel - -class E4TableView(QTableView): - """ - Class implementing a table view supporting removal of entries. - """ - def keyPressEvent(self, evt): - """ - Protected method implementing special key handling. - - @param evt reference to the event (QKeyEvent) - """ - if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ - self.model() is not None: - self.removeSelected() - evt.setAccepted(True) - else: - QTableView.keyPressEvent(self, evt) - - def removeSelected(self): - """ - Public method to remove the selected entries. - """ - if self.model() is None or self.selectionModel() is None: - # no models available - return - - row = 0 - selectedRows = self.selectionModel().selectedRows() - for selectedRow in reversed(selectedRows): - row = selectedRow.row() - self.model().removeRow(row, self.rootIndex()) - - idx = self.model().index(row, 0, self.rootIndex()) - if not idx.isValid(): - idx = self.model().index(row - 1, 0, self.rootIndex()) - self.selectionModel().select(idx, - QItemSelectionModel.SelectCurrent | QItemSelectionModel.Rows) - self.setCurrentIndex(idx) - - def removeAll(self): - """ - Public method to clear the view. - """ - if self.model() is not None: - self.model().removeRows(0, self.model().rowCount(self.rootIndex()), - self.rootIndex())
--- a/E4Gui/E4ToolBarDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,461 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a toolbar configuration dialog. -""" - -from PyQt4.QtGui import * -from PyQt4.QtCore import * - -from .Ui_E4ToolBarDialog import Ui_E4ToolBarDialog - -import UI.PixmapCache - -class E4ToolBarItem(object): - """ - Class storing data belonging to a toolbar entry of the toolbar dialog. - """ - def __init__(self, toolBarId, actionIDs, default): - """ - Constructor - - @param toolBarId id of the toolbar object (integer) - @param actionIDs list of action IDs belonging to the toolbar (list of integer) - @param default flag indicating a default toolbar (boolean) - """ - self.toolBarId = toolBarId - self.actionIDs = actionIDs[:] - self.isDefault = default - self.title = "" - self.isChanged = False - -class E4ToolBarDialog(QDialog, Ui_E4ToolBarDialog): - """ - Class implementing a toolbar configuration dialog. - """ - ActionIdRole = Qt.UserRole - WidgetActionRole = Qt.UserRole + 1 - - def __init__(self, toolBarManager, parent = None): - """ - Constructor - - @param toolBarManager reference to a toolbar manager object (E4ToolBarManager) - @param parent reference to the parent widget (QWidget) - """ - QDialog.__init__(self, parent) - self.setupUi(self) - - self.__manager = toolBarManager - self.__toolbarItems = {} # maps toolbar item IDs to toolbar items - self.__currentToolBarItem = None - self.__removedToolBarIDs = [] # remember custom toolbars to be deleted - - self.__widgetActionToToolBarItemID = {} # maps widget action IDs to toolbar item IDs - self.__toolBarItemToWidgetActionID = {} # maps toolbar item IDs to widget action IDs - - self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) - self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) - self.leftButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png")) - self.rightButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png")) - - self.__restoreDefaultsButton = \ - self.buttonBox.button(QDialogButtonBox.RestoreDefaults) - self.__resetButton = self.buttonBox.button(QDialogButtonBox.Reset) - - self.actionsTree.header().hide() - self.__separatorText = self.trUtf8("--Separator--") - itm = QTreeWidgetItem(self.actionsTree, [self.__separatorText]) - self.actionsTree.setCurrentItem(itm) - - for category in sorted(self.__manager.categories()): - categoryItem = QTreeWidgetItem(self.actionsTree, [category]) - for action in self.__manager.categoryActions(category): - item = QTreeWidgetItem(categoryItem) - item.setText(0, action.text()) - item.setIcon(0, action.icon()) - item.setTextAlignment(0, Qt.AlignLeft | Qt.AlignVCenter) - item.setData(0, E4ToolBarDialog.ActionIdRole, int(id(action))) - item.setData(0, E4ToolBarDialog.WidgetActionRole, False) - if self.__manager.isWidgetAction(action): - item.setData(0, E4ToolBarDialog.WidgetActionRole, True) - item.setData(0, Qt.TextColorRole, QColor(Qt.blue)) - self.__widgetActionToToolBarItemID[id(action)] = None - categoryItem.setExpanded(True) - - for tbID, actions in list(self.__manager.toolBarsActions().items()): - tb = self.__manager.toolBarById(tbID) - default = self.__manager.isDefaultToolBar(tb) - tbItem = E4ToolBarItem(tbID, [], default) - self.__toolbarItems[id(tbItem)] = tbItem - self.__toolBarItemToWidgetActionID[id(tbItem)] = [] - actionIDs = [] - for action in actions: - if action is None: - actionIDs.append(None) - else: - aID = id(action) - actionIDs.append(aID) - if aID in self.__widgetActionToToolBarItemID: - self.__widgetActionToToolBarItemID[aID] = id(tbItem) - self.__toolBarItemToWidgetActionID[id(tbItem)].append(aID) - tbItem.actionIDs = actionIDs - self.toolbarComboBox.addItem(tb.windowTitle(), int(id(tbItem))) - if default: - self.toolbarComboBox.setItemData(self.toolbarComboBox.count() - 1, - QColor(Qt.darkGreen), Qt.ForegroundRole) - self.toolbarComboBox.model().sort(0) - - self.connect(self.toolbarComboBox, SIGNAL("currentIndexChanged(int)"), - self.__toolbarComboBox_currentIndexChanged) - self.toolbarComboBox.setCurrentIndex(0) - - @pyqtSlot() - def on_newButton_clicked(self): - """ - Private slot to create a new toolbar. - """ - name, ok = QInputDialog.getText(\ - self, - self.trUtf8("New Toolbar"), - self.trUtf8("Toolbar Name:"), - QLineEdit.Normal) - if ok and name: - if self.toolbarComboBox.findText(name) != -1: - # toolbar with this name already exists - QMessageBox.critical(self, - self.trUtf8("New Toolbar"), - self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\ - .format(name), - QMessageBox.StandardButtons(\ - QMessageBox.Abort)) - return - - tbItem = E4ToolBarItem(None, [], False) - tbItem.title = name - tbItem.isChanged = True - self.__toolbarItems[id(tbItem)] = tbItem - self.__toolBarItemToWidgetActionID[id(tbItem)] = [] - self.toolbarComboBox.addItem(name, int(id(tbItem))) - self.toolbarComboBox.model().sort(0) - self.toolbarComboBox.setCurrentIndex(self.toolbarComboBox.findText(name)) - - @pyqtSlot() - def on_removeButton_clicked(self): - """ - Private slot to remove a custom toolbar - """ - name = self.toolbarComboBox.currentText() - res = QMessageBox.question(self, - self.trUtf8("Remove Toolbar"), - self.trUtf8("""Should the toolbar <b>{0}</b> really be removed?""")\ - .format(name), - QMessageBox.StandardButtons(\ - QMessageBox.No | \ - QMessageBox.Yes), - QMessageBox.No) - if res == QMessageBox.Yes: - index = self.toolbarComboBox.currentIndex() - tbItemID = self.toolbarComboBox.itemData(index) - tbItem = self.__toolbarItems[tbItemID] - if tbItem.toolBarId is not None and \ - tbItem.toolBarId not in self.__removedToolBarIDs: - self.__removedToolBarIDs.append(tbItem.toolBarId) - del self.__toolbarItems[tbItemID] - for widgetActionID in self.__toolBarItemToWidgetActionID[tbItemID]: - self.__widgetActionToToolBarItemID[widgetActionID] = None - del self.__toolBarItemToWidgetActionID[tbItemID] - self.toolbarComboBox.removeItem(index) - - @pyqtSlot() - def on_renameButton_clicked(self): - """ - Private slot to rename a custom toolbar. - """ - oldName = self.toolbarComboBox.currentText() - newName, ok = QInputDialog.getText(\ - self, - self.trUtf8("Rename Toolbar"), - self.trUtf8("New Toolbar Name:"), - QLineEdit.Normal, - oldName) - if ok and newName: - if oldName == newName: - return - if self.toolbarComboBox.findText(newName) != -1: - # toolbar with this name already exists - QMessageBox.critical(self, - self.trUtf8("Rename Toolbar"), - self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\ - .format(newName), - QMessageBox.StandardButtons(\ - QMessageBox.Abort)) - return - index = self.toolbarComboBox.currentIndex() - self.toolbarComboBox.setItemText(index, newName) - tbItem = \ - self.__toolbarItems[self.toolbarComboBox.itemData(index)] - tbItem.title = newName - tbItem.isChanged = True - - def __setupButtons(self): - """ - Private slot to set the buttons state. - """ - index = self.toolbarComboBox.currentIndex() - if index > -1: - itemID = self.toolbarComboBox.itemData(index) - self.__currentToolBarItem = self.__toolbarItems[itemID] - self.renameButton.setEnabled(not self.__currentToolBarItem.isDefault) - self.removeButton.setEnabled(not self.__currentToolBarItem.isDefault) - self.__restoreDefaultsButton.setEnabled(self.__currentToolBarItem.isDefault) - self.__resetButton.setEnabled(self.__currentToolBarItem.toolBarId is not None) - - row = self.toolbarActionsList.currentRow() - self.upButton.setEnabled(row > 0) - self.downButton.setEnabled(row < self.toolbarActionsList.count() - 1) - self.leftButton.setEnabled(self.toolbarActionsList.count() > 0) - rightEnable = self.actionsTree.currentItem().parent() is not None or \ - self.actionsTree.currentItem().text(0) == self.__separatorText - self.rightButton.setEnabled(rightEnable) - - @pyqtSlot(int) - def __toolbarComboBox_currentIndexChanged(self, index): - """ - Private slot called upon a selection of the current toolbar. - - @param index index of the new current toolbar (integer) - """ - itemID = self.toolbarComboBox.itemData(index) - self.__currentToolBarItem = self.__toolbarItems[itemID] - self.toolbarActionsList.clear() - for actionID in self.__currentToolBarItem.actionIDs: - item = QListWidgetItem(self.toolbarActionsList) - if actionID is None: - item.setText(self.__separatorText) - else: - action = self.__manager.actionById(actionID) - item.setText(action.text()) - item.setIcon(action.icon()) - item.setTextAlignment(Qt.AlignLeft | Qt.AlignVCenter) - item.setData(E4ToolBarDialog.ActionIdRole, int(id(action))) - item.setData(E4ToolBarDialog.WidgetActionRole, False) - if self.__manager.isWidgetAction(action): - item.setData(E4ToolBarDialog.WidgetActionRole, True) - item.setData(Qt.TextColorRole, QColor(Qt.blue)) - self.toolbarActionsList.setCurrentRow(0) - - self.__setupButtons() - - @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) - def on_actionsTree_currentItemChanged(self, current, previous): - """ - Private slot called, when the currently selected action changes. - """ - self.__setupButtons() - - @pyqtSlot(QListWidgetItem, QListWidgetItem) - def on_toolbarActionsList_currentItemChanged(self, current, previous): - """ - Slot documentation goes here. - """ - self.__setupButtons() - - @pyqtSlot() - def on_upButton_clicked(self): - """ - Private slot used to move an action up in the list. - """ - row = self.toolbarActionsList.currentRow() - if row == 0: - # we're already at the top - return - - actionID = self.__currentToolBarItem.actionIDs.pop(row) - self.__currentToolBarItem.actionIDs.insert(row - 1, actionID) - self.__currentToolBarItem.isChanged = True - itm = self.toolbarActionsList.takeItem(row) - self.toolbarActionsList.insertItem(row - 1, itm) - self.toolbarActionsList.setCurrentItem(itm) - self.__setupButtons() - - @pyqtSlot() - def on_downButton_clicked(self): - """ - Private slot used to move an action down in the list. - """ - row = self.toolbarActionsList.currentRow() - if row == self.toolbarActionsList.count() - 1: - # we're already at the end - return - - actionID = self.__currentToolBarItem.actionIDs.pop(row) - self.__currentToolBarItem.actionIDs.insert(row + 1, actionID) - self.__currentToolBarItem.isChanged = True - itm = self.toolbarActionsList.takeItem(row) - self.toolbarActionsList.insertItem(row + 1, itm) - self.toolbarActionsList.setCurrentItem(itm) - self.__setupButtons() - - @pyqtSlot() - def on_leftButton_clicked(self): - """ - Private slot to delete an action from the list. - """ - row = self.toolbarActionsList.currentRow() - actionID = self.__currentToolBarItem.actionIDs.pop(row) - self.__currentToolBarItem.isChanged = True - if actionID in self.__widgetActionToToolBarItemID: - self.__widgetActionToToolBarItemID[actionID] = None - self.__toolBarItemToWidgetActionID[id(self.__currentToolBarItem)]\ - .remove(actionID) - itm = self.toolbarActionsList.takeItem(row) - del itm - self.toolbarActionsList.setCurrentRow(row) - self.__setupButtons() - - @pyqtSlot() - def on_rightButton_clicked(self): - """ - Private slot to add an action to the list. - """ - row = self.toolbarActionsList.currentRow() + 1 - - item = QListWidgetItem() - if self.actionsTree.currentItem().text(0) == self.__separatorText: - item.setText(self.__separatorText) - actionID = None - else: - actionID = self.actionsTree.currentItem()\ - .data(0, E4ToolBarDialog.ActionIdRole) - action = self.__manager.actionById(actionID) - item.setText(action.text()) - item.setIcon(action.icon()) - item.setTextAlignment(Qt.AlignLeft | Qt.AlignVCenter) - item.setData(E4ToolBarDialog.ActionIdRole, int(id(action))) - item.setData(E4ToolBarDialog.WidgetActionRole, False) - if self.__manager.isWidgetAction(action): - item.setData(E4ToolBarDialog.WidgetActionRole, True) - item.setData(Qt.TextColorRole, QColor(Qt.blue)) - oldTbItemID = self.__widgetActionToToolBarItemID[actionID] - if oldTbItemID is not None: - self.__toolbarItems[oldTbItemID].actionIDs.remove(actionID) - self.__toolbarItems[oldTbItemID].isChanged = True - self.__toolBarItemToWidgetActionID[oldTbItemID].remove(actionID) - self.__widgetActionToToolBarItemID[actionID] = \ - id(self.__currentToolBarItem) - self.__toolBarItemToWidgetActionID[id(self.__currentToolBarItem)]\ - .append(actionID) - self.toolbarActionsList.insertItem(row, item) - self.__currentToolBarItem.actionIDs.insert(row, actionID) - self.__currentToolBarItem.isChanged = True - self.toolbarActionsList.setCurrentRow(row) - self.__setupButtons() - - @pyqtSlot(QAbstractButton) - def on_buttonBox_clicked(self, button): - """ - Private slot called, when a button of the button box was clicked. - """ - if button == self.buttonBox.button(QDialogButtonBox.Cancel): - self.reject() - elif button == self.buttonBox.button(QDialogButtonBox.Apply): - self.__saveToolBars() - self.__setupButtons() - elif button == self.buttonBox.button(QDialogButtonBox.Ok): - self.__saveToolBars() - self.accept() - elif button == self.buttonBox.button(QDialogButtonBox.Reset): - self.__resetCurrentToolbar() - self.__setupButtons() - elif button == self.buttonBox.button(QDialogButtonBox.RestoreDefaults): - self.__restoreCurrentToolbarToDefault() - self.__setupButtons() - - def __saveToolBars(self): - """ - Private method to save the configured toolbars. - """ - # step 1: remove toolbars marked for deletion - for tbID in self.__removedToolBarIDs: - tb = self.__manager.toolBarById(tbID) - self.__manager.deleteToolBar(tb) - self.__removedToolBarIDs = [] - - # step 2: save configured toolbars - for tbItem in list(self.__toolbarItems.values()): - if not tbItem.isChanged: - continue - - if tbItem.toolBarId is None: - # new custom toolbar - tb = self.__manager.createToolBar(tbItem.title) - tbItem.toolBarId = id(tb) - else: - tb = self.__manager.toolBarById(tbItem.toolBarId) - if not tbItem.isDefault and tbItem.title: - self.__manager.renameToolBar(tb, tbItem.title) - - actions = [] - for actionID in tbItem.actionIDs: - if actionID is None: - actions.append(None) - else: - action = self.__manager.actionById(actionID) - if action is None: - raise RuntimeError("No such action, id: 0x%x" % actionID) - actions.append(action) - self.__manager.setToolBar(tb, actions) - tbItem.isChanged = False - - def __restoreCurrentToolbar(self, actions): - """ - Private methdo to restore the current toolbar to the given list of actions. - - @param actions list of actions to set for the current toolbar (list of QAction) - """ - tbItemID = id(self.__currentToolBarItem) - for widgetActionID in self.__toolBarItemToWidgetActionID[tbItemID]: - self.__widgetActionToToolBarItemID[widgetActionID] = None - self.__toolBarItemToWidgetActionID[tbItemID] = [] - self.__currentToolBarItem.actionIDs = [] - - for action in actions: - if action is None: - self.__currentToolBarItem.actionIDs.append(None) - else: - actionID = id(action) - self.__currentToolBarItem.actionIDs.append(actionID) - if actionID in self.__widgetActionToToolBarItemID: - oldTbItemID = self.__widgetActionToToolBarItemID[actionID] - if oldTbItemID is not None: - self.__toolbarItems[oldTbItemID].actionIDs.remove(actionID) - self.__toolbarItems[oldTbItemID].isChanged = True - self.__toolBarItemToWidgetActionID[oldTbItemID].remove(actionID) - self.__widgetActionToToolBarItemID[actionID] = tbItemID - self.__toolBarItemToWidgetActionID[tbItemID].append(actionID) - self.__toolbarComboBox_currentIndexChanged(self.toolbarComboBox.currentIndex()) - - def __resetCurrentToolbar(self): - """ - Private method to revert all changes made to the current toolbar. - """ - tbID = self.__currentToolBarItem.toolBarId - actions = self.__manager.toolBarActions(tbID) - self.__restoreCurrentToolbar(actions) - self.__currentToolBarItem.isChanged = False - - def __restoreCurrentToolbarToDefault(self): - """ - Private method to set the current toolbar to it's default configuration. - """ - if not self.__currentToolBarItem.isDefault: - return - - tbID = self.__currentToolBarItem.toolBarId - actions = self.__manager.defaultToolBarActions(tbID) - self.__restoreCurrentToolbar(actions) - self.__currentToolBarItem.isChanged = True
--- a/E4Gui/E4ToolBarDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,229 +0,0 @@ -<ui version="4.0" > - <class>E4ToolBarDialog</class> - <widget class="QDialog" name="E4ToolBarDialog" > - <property name="geometry" > - <rect> - <x>0</x> - <y>0</y> - <width>600</width> - <height>500</height> - </rect> - </property> - <property name="windowTitle" > - <string>Configure Toolbars</string> - </property> - <property name="sizeGripEnabled" > - <bool>true</bool> - </property> - <layout class="QVBoxLayout" > - <item> - <layout class="QHBoxLayout" > - <item> - <widget class="QLabel" name="label" > - <property name="text" > - <string>&Toolbar:</string> - </property> - <property name="buddy" > - <cstring>toolbarComboBox</cstring> - </property> - </widget> - </item> - <item> - <widget class="QComboBox" name="toolbarComboBox" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Fixed" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="toolTip" > - <string>Select the toolbar to configure</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="newButton" > - <property name="toolTip" > - <string>Press to create a new toolbar</string> - </property> - <property name="text" > - <string>&New</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="removeButton" > - <property name="toolTip" > - <string>Press to remove the selected toolbar</string> - </property> - <property name="text" > - <string>&Remove</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="renameButton" > - <property name="toolTip" > - <string>Press to rename the selected toolbar</string> - </property> - <property name="text" > - <string>R&ename</string> - </property> - </widget> - </item> - </layout> - </item> - <item> - <widget class="Line" name="line" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item> - <layout class="QGridLayout" > - <item row="0" column="0" > - <widget class="QLabel" name="label_2" > - <property name="text" > - <string>Actions:</string> - </property> - </widget> - </item> - <item row="0" column="2" > - <widget class="QLabel" name="label_3" > - <property name="text" > - <string>Current Toolbar Actions:</string> - </property> - </widget> - </item> - <item rowspan="3" row="1" column="0" > - <widget class="QTreeWidget" name="actionsTree" > - <property name="toolTip" > - <string>Select the action to add to the current toolbar</string> - </property> - <property name="alternatingRowColors" > - <bool>true</bool> - </property> - <property name="rootIsDecorated" > - <bool>false</bool> - </property> - <column> - <property name="text" > - <string/> - </property> - </column> - </widget> - </item> - <item row="1" column="1" > - <spacer> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0" > - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - <item rowspan="3" row="1" column="2" > - <widget class="QListWidget" name="toolbarActionsList" > - <property name="toolTip" > - <string>Select the action to work on</string> - </property> - <property name="whatsThis" > - <string><b>Current Toolbar Actions</b><p>This list shows the actions of the selected toolbar. Select an action and use the up or down button to change the order of actions or the left button to delete it. To add an action to the toolbar, select it in the list of available actions and press the right button.</p></string> - </property> - </widget> - </item> - <item row="2" column="1" > - <layout class="QGridLayout" > - <property name="spacing" > - <number>0</number> - </property> - <item row="0" column="1" > - <widget class="QToolButton" name="upButton" > - <property name="toolTip" > - <string>Press to move the selected action up.</string> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="1" column="0" > - <widget class="QToolButton" name="leftButton" > - <property name="toolTip" > - <string>Press to delete the selected action from the toolbar</string> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="1" column="2" > - <widget class="QToolButton" name="rightButton" > - <property name="toolTip" > - <string>Press to add the selected action to the toolbar</string> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - <item row="2" column="1" > - <widget class="QToolButton" name="downButton" > - <property name="toolTip" > - <string>Press to move the selected action down.</string> - </property> - <property name="text" > - <string/> - </property> - </widget> - </item> - </layout> - </item> - <item row="3" column="1" > - <spacer> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0" > - <size> - <width>20</width> - <height>40</height> - </size> - </property> - </spacer> - </item> - </layout> - </item> - <item> - <widget class="QDialogButtonBox" name="buttonBox" > - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons" > - <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset|QDialogButtonBox::RestoreDefaults</set> - </property> - </widget> - </item> - </layout> - </widget> - <tabstops> - <tabstop>toolbarComboBox</tabstop> - <tabstop>newButton</tabstop> - <tabstop>removeButton</tabstop> - <tabstop>renameButton</tabstop> - <tabstop>actionsTree</tabstop> - <tabstop>toolbarActionsList</tabstop> - <tabstop>upButton</tabstop> - <tabstop>downButton</tabstop> - <tabstop>rightButton</tabstop> - <tabstop>leftButton</tabstop> - <tabstop>buttonBox</tabstop> - </tabstops> - <resources/> - <connections/> -</ui>
--- a/E4Gui/E4ToolBarManager.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,679 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a toolbar manager class. -""" - -from PyQt4.QtCore import * -from PyQt4.QtGui import * - -class E4ToolBarManager(QObject): - """ - Class implementing a toolbar manager. - """ - VersionMarker = 0xffff - ToolBarMarker = 0xfefe - CustomToolBarMarker = 0xfdfd - - def __init__(self, ui = None, parent = None): - """ - Constructor - - @param ui reference to the user interface object (UI.UserInterface) - @param parent reference to the parent object (QObject) - """ - QObject.__init__(self, parent) - - self.__mainWindow = None - self.__ui = ui - - self.__toolBars = {} # maps toolbar IDs to actions - self.__toolBarsWithSeparators = {} # maps toolbar IDs to actions incl. separators - self.__defaultToolBars = {} # maps default toolbar IDs to actions - self.__customToolBars = [] # list of custom toolbars - self.__allToolBars = {} # maps toolbar IDs to toolbars - - self.__categoryToActions = {} # maps categories to actions - self.__actionToCategory = {} # maps action IDs to categories - self.__allActions = {} # maps action IDs to actions - self.__actionToToolBars = {} # maps action IDs to toolbars - - self.__widgetActions = {} # maps widget action IDs to toolbars - self.__allWidgetActions = {} # maps widget action IDs to widget actions - - ###################################################### - ## Private methods - ###################################################### - - def __toolBarByName(self, name): - """ - Private slot to get a toolbar by it's object name. - - @param name object name of the toolbar (string) - @return reference to the toolbar (QToolBar) - """ - for toolBar in list(self.__allToolBars.values()): - if toolBar.objectName() == name: - return toolBar - return None - - def __findAction(self, name): - """ - Private method to find an action by name. - - @param name name of the action to search for (string) - @return reference to the action (QAction) - """ - # check objectName() first - for action in list(self.__allActions.values()): - if action.objectName() == name: - return action - - # check text() next - for action in list(self.__allActions.values()): - if action.text() == name: - return action - - return None - - def __findDefaultToolBar(self, name): - """ - Private method to find a default toolbar by name. - - @param name name of the default toolbar to search for (string) - @return reference to the default toolbar (QToolBar) - """ - # check objectName() first - for tbID in self.__defaultToolBars: - tb = self.__allToolBars[tbID] - if tb.objectName() == name: - return tb - - # check windowTitle() next - for tbID in self.__defaultToolBars: - tb = self.__allToolBars[tbID] - if tb.windowTitle() == name: - return tb - - return None - - ###################################################### - ## Public methods - ###################################################### - - def setMainWindow(self, mainWindow): - """ - Public method to set the reference to the main window. - - @param mainWindow reference to the main window (QMainWindow) - """ - self.__mainWindow = mainWindow - - def mainWindow(self): - """ - Public method to get the reference to the main window. - - @return reference to the main window (QMainWindow) - """ - return self.__mainWindow - - def addToolBar(self, toolBar, category): - """ - Public method to add a toolbar to be managed. - - @param toolBar reference to the toolbar to be managed (QToolBar) - @param category category for the toolbar (string) - """ - if toolBar is None: - return - if toolBar in self.__toolBars: - return - - newActions = [] - newActionsWithSeparators = [] - actions = toolBar.actions() - for action in actions: - self.addAction(action, category) - if id(action) in self.__widgetActions: - self.__widgetActions[id(action)] = toolBar - newActionsWithSeparators.append(action) - if action.isSeparator(): - action = None - else: - self.__actionToToolBars[id(action)].append(toolBar) - newActions.append(action) - tbID = id(toolBar) - self.__defaultToolBars[tbID] = newActions - self.__toolBars[tbID] = newActions - self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators - self.__allToolBars[tbID] = toolBar - - def removeToolBar(self, toolBar): - """ - Public method to remove a toolbar added with addToolBar(). - - @param toolBar reference to the toolbar to be removed (QToolBar) - """ - if toolBar is None: - return - - tbID = id(toolBar) - - if tbID not in self.__defaultToolBars: - return - - defaultActions = self.__defaultToolBars[tbID][:] - self.setToolBar(toolBar, []) - for action in defaultActions: - self.removeAction(action) - - del self.__defaultToolBars[tbID] - del self.__toolBars[tbID] - del self.__toolBarsWithSeparators[tbID] - del self.__allToolBars[tbID] - - for action in defaultActions: - if action is None: - toolBar.addSeparator() - else: - toolBar.addAction(action) - - def setToolBars(self, toolBars): - """ - Public method to set the actions of several toolbars. - - @param toolBars dictionary with toolbar id as key and - a list of actions as value - """ - for key, actions in list(toolBars.items()): - tb = self.__allToolBars[key] - self.setToolBar(tb, actions) - - def setToolBar(self, toolBar, actions): - """ - Public method to set the actions of a toolbar. - - @param toolBar reference to the toolbar to configure (QToolBar) - @param actions list of actions to be set (list of QAction) - """ - if toolBar is None: - return - - tbID = id(toolBar) - if tbID not in self.__toolBars: - return - if self.__toolBars[tbID] == actions: - return - - # step 1: check list of actions - toRemove = {} - newActions = [] - for action in actions: - if action is None or \ - (action not in newActions and id(action) in self.__allActions): - newActions.append(action) - oldTB = self.toolBarWidgetAction(action) - if oldTB is not None and oldTB != toolBar: - if id(oldTB) not in toRemove: - toRemove[id(oldTB)] = [] - toRemove[id(oldTB)].append(action) - self.removeWidgetActions(toRemove) - - # step 2: remove all toolbar actions - for action in self.__toolBarsWithSeparators[tbID]: - if self.toolBarWidgetAction(action) == tbID: - self.__widgetActions[id(action)] = None - toolBar.removeAction(action) - if action.isSeparator(): - del action - else: - self.__actionToToolBars[id(action)].remove(toolBar) - - # step 3: set the actions as requested - newActionsWithSeparators = [] - for action in newActions: - newAction = None - if action is None: - newAction = toolBar.addSeparator() - elif id(action) in self.__allActions: - toolBar.addAction(action) - newAction = action - self.__actionToToolBars[id(action)].append(toolBar) - if id(action) in self.__widgetActions: - self.__widgetActions[id(action)] = toolBar - else: - continue - newActionsWithSeparators.append(newAction) - - if toolBar.isVisible(): - toolBar.hide() - toolBar.show() - self.__toolBars[tbID] = newActions - self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators - - def resetToolBar(self, toolBar): - """ - Public method to reset a toolbar to it's default state. - - @param toolBar reference to the toolbar to configure (QToolBar) - """ - if not isDefaultToolBar(): - return - self.setToolBar(toolBar, self.__defaultToolBars[id(toolBar)]) - - def resetAllToolBars(self): - """ - Public method to reset all toolbars to their default state. - """ - self.setToolBars(self.__defaultToolBars) - for toolBar in self.__customToolBars[:]: - self.deleteToolBar(toolBar) - - def defaultToolBars(self): - """ - Public method to get all toolbars added with addToolBar(). - - @return list of all default toolbars (list of QToolBar) - """ - return list(self.__defaultToolBars.values()) - - def isDefaultToolBar(self, toolBar): - """ - Public method to check, if a toolbar was added with addToolBar(). - - @param toolBar reference to the toolbar to be checked (QToolBar) - """ - return toolBar is not None and \ - id(toolBar) in self.__defaultToolBars - - def createToolBar(self, title): - """ - Public method to create a custom toolbar. - - @param title title to be used for the toolbar (string) - @return reference to the created toolbar (QToolBar) - """ - if self.__mainWindow is None: - return None - - toolBar = QToolBar(title, self.__mainWindow) - toolBar.setToolTip(title) - index = 1 - customPrefix = "__CustomPrefix__" - name = "%s%d" % (customPrefix, index) - while self.__toolBarByName(name) is not None: - index += 1 - name = "%s%d" % (customPrefix, index) - toolBar.setObjectName(name) - self.__mainWindow.addToolBar(toolBar) - - tbID = id(toolBar) - self.__customToolBars.append(toolBar) - self.__allToolBars[tbID] = toolBar - self.__toolBars[tbID] = [] - self.__toolBarsWithSeparators[tbID] = [] - - if self.__ui is not None: - toolBar.setIconSize(self.__ui.getToolBarIconSize()) - self.__ui.registerToolbar(name, title, toolBar) - - return toolBar - - def deleteToolBar(self, toolBar): - """ - Public method to remove a custom toolbar created with createToolBar(). - - @param toolBar reference to the toolbar to be managed (QToolBar) - """ - if toolBar is None: - return - - tbID = id(toolBar) - if tbID not in self.__toolBars: - return - if tbID in self.__defaultToolBars: - return - - if self.__ui is not None: - self.__ui.unregisterToolbar(toolBar.objectName()) - - self.setToolBar(toolBar, []) - - del self.__allToolBars[tbID] - del self.__toolBars[tbID] - del self.__toolBarsWithSeparators[tbID] - self.__customToolBars.remove(toolBar) - self.__mainWindow.removeToolBar(toolBar) - del toolBar - - def renameToolBar(self, toolBar, title): - """ - Public method to give a toolbar a new title. - - @param toolBar reference to the toolbar to be managed (QToolBar) - @param title title to be used for the toolbar (string) - """ - if toolBar is None: - return - - toolBar.setWindowTitle(title) - - if self.__ui is not None: - self.__ui.reregisterToolbar(toolBar.objectName(), title) - - def toolBars(self): - """ - Public method to get all toolbars. - - @return list of all toolbars (list of QToolBar) - """ - return list(self.__allToolBars.values()) - - def addAction(self, action, category): - """ - Public method to add an action to be managed. - - @param action reference to the action to be managed (QAction) - @param category category for the toolbar (string) - """ - if action is None: - return - if action.isSeparator(): - return - if action in self.__allActions: - return - - if action.metaObject().className() == "QWidgetAction": - self.__widgetActions[id(action)] = None - self.__allWidgetActions[id(action)] = action - self.__allActions[id(action)] = action - if category not in self.__categoryToActions: - self.__categoryToActions[category] = [] - self.__categoryToActions[category].append(action) - self.__actionToCategory[id(action)] = category - self.__actionToToolBars[id(action)] = [] - - def removeAction(self, action): - """ - Public method to remove an action from the manager. - - @param action reference to the action to be removed (QAction) - """ - aID = id(action) - - if aID not in self.__allActions: - return - - toolBars = self.__actionToToolBars[aID] - for toolBar in toolBars: - tbID = id(toolBar) - self.__toolBars[tbID].remove(action) - self.__toolBarsWithSeparators[tbID].remove(action) - toolBar.removeAction(action) - if toolBar.isVisible(): - toolBar.hide() - toolBar.show() - - for tbID in self.__defaultToolBars: - if action in self.__defaultToolBars[tbID]: - self.__defaultToolBars[tbID].remove(action) - - del self.__allActions[aID] - if aID in self.__widgetActions: - del self.__widgetActions[aID] - del self.__allWidgetActions[aID] - del self.__actionToCategory[aID] - del self.__actionToToolBars[aID] - - for category in self.__categoryToActions: - if action in self.__categoryToActions[category]: - self.__categoryToActions[category].remove(action) - - def saveState(self, version = 0): - """ - Public method to save the state of the toolbar manager. - - @param version version number stored with the data (integer) - @return saved state as a byte array (QByteArray) - """ - data = QByteArray() - stream = QDataStream(data, QIODevice.WriteOnly) - stream.writeUInt16(E4ToolBarManager.VersionMarker) - stream.writeUInt16(version) - - # save default toolbars - stream.writeUInt16(E4ToolBarManager.ToolBarMarker) - stream.writeUInt16(len(self.__defaultToolBars)) - for tbID in self.__defaultToolBars: - tb = self.__allToolBars[tbID] - if tb.objectName(): - stream.writeString(tb.objectName().encode()) - else: - stream.writeString(tb.windowTitle().encode()) - stream.writeUInt16(len(self.__toolBars[tbID])) - for action in self.__toolBars[tbID]: - if action is not None: - if action.objectName(): - stream.writeString(action.objectName().encode()) - else: - stream.writeString(action.text().encode()) - else: - stream.writeString("".encode()) - - # save the custom toolbars - stream.writeUInt16(E4ToolBarManager.CustomToolBarMarker) - stream.writeUInt16(len(self.__toolBars) - len(self.__defaultToolBars)) - for tbID in self.__toolBars: - if tbID not in self.__defaultToolBars: - tb = self.__allToolBars[tbID] - stream.writeString(tb.objectName().encode()) - stream.writeString(tb.windowTitle().encode()) - stream.writeUInt16(len(self.__toolBars[tbID])) - for action in self.__toolBars[tbID]: - if action is not None: - if action.objectName(): - stream.writeString(action.objectName().encode()) - else: - stream.writeString(action.text().encode()) - else: - stream.writeString("".encode()) - - return data - - def restoreState(self, state, version = 0): - """ - Public method to restore the state of the toolbar manager. - - @param state byte array containing the saved state (QByteArray) - @param version version number stored with the data (integer) - @return flag indicating success (boolean) - """ - if state.isEmpty(): - return False - - data = QByteArray(state) - stream = QDataStream(data, QIODevice.ReadOnly) - marker = stream.readUInt16() - vers = stream.readUInt16() - if marker != E4ToolBarManager.VersionMarker or vers != version: - return False - - tmarker = stream.readUInt16() - if tmarker != E4ToolBarManager.ToolBarMarker: - return False - - toolBarCount = stream.readUInt16() - for i in range(toolBarCount): - objectName = stream.readString().decode() - actionCount = stream.readUInt16() - actions = [] - for j in range(actionCount): - actionName = stream.readString().decode() - if actionName: - action = self.__findAction(actionName) - if action is not None: - actions.append(action) - else: - actions.append(None) - toolBar = self.__findDefaultToolBar(objectName) - if toolBar is not None: - self.setToolBar(toolBar, actions) - - cmarker = stream.readUInt16() - if cmarker != E4ToolBarManager.CustomToolBarMarker: - return False - - oldCustomToolBars = self.__customToolBars[:] - - toolBarCount = stream.readUInt16() - for i in range(toolBarCount): - objectName = stream.readString().decode() - toolBarTitle = stream.readString().decode() - actionCount = stream.readUInt16() - actions = [] - for j in range(actionCount): - actionName = stream.readString().decode() - if actionName: - action = self.__findAction(actionName) - if action is not None: - actions.append(action) - else: - actions.append(None) - toolBar = self.__toolBarByName(objectName) - if toolBar is not None: - toolBar.setWindowTitle(toolBarTitle) - oldCustomToolBars.remove(toolBar) - else: - toolBar = self.createToolBar(toolBarTitle) - if toolBar is not None: - toolBar.setObjectName(objectName) - self.setToolBar(toolBar, actions) - - for tb in oldCustomToolBars: - self.deleteToolBar(tb) - - return True - - def toolBarWidgetAction(self, action): - """ - Public method to get the toolbar for a widget action. - - @param action widget action to check for (QAction) - @return reference to the toolbar containing action (QToolBar) - """ - aID = id(action) - if aID in self.__widgetActions: - return self.__widgetActions[aID] - return None - - def removeWidgetActions(self, actions): - """ - Public method to remove widget actions. - - @param actions dictionary with toolbar id as key and - a list of widget actions as value - """ - for tbID in list(actions.keys())[:]: - toolBar = self.__allToolBars[tbID] - newActions = self.__toolBars[tbID][:] - newActionsWithSeparators = self.__toolBarsWithSeparators[tbID][:] - - removedActions = [] - for action in actions[tbID]: - if action in newActions and self.toolBarWidgetAction(action) == toolBar: - newActions.remove(action) - newActionsWithSeparators.remove(action) - removedActions.append(action) - - self.__toolBars[tbID] = newActions - self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators - - for action in removedActions: - self.__widgetActions[id(action)] = None - self.__actionToToolBars[id(action)].remove(toolBar) - toolBar.removeAction(action) - - def isWidgetAction(self, action): - """ - Public method to check, if action is a widget action. - - @param action reference to the action to be checked (QAction) - @return flag indicating a widget action (boolean) - """ - return id(action) in self.__allWidgetActions - - def categories(self): - """ - Public method to get the list of categories. - - @return list of categories (list of string) - """ - return list(self.__categoryToActions.keys()) - - def categoryActions(self, category): - """ - Public method to get the actions belonging to a category. - - @param category category for the toolbar (string) - @return list of actions (list of QAction) - """ - if category not in self.__categoryToActions: - return [] - - return self.__categoryToActions[category][:] - - def actionById(self, aID): - """ - Public method to get an action given it's id. - - @param aID id of the action object (integer) - @return reference to the action (QAction) - """ - if aID not in self.__allActions: - return None - return self.__allActions[aID] - - def toolBarById(self, tbID): - """ - Public method to get a toolbar given it's id. - - @param tbID id of the toolbar object (integer) - @return reference to the toolbar (QToolBar) - """ - if tbID not in self.__allToolBars: - return None - return self.__allToolBars[tbID] - - def toolBarActions(self, tbID): - """ - Public method to get a toolbar's actions given it's id. - - @param tbID id of the toolbar object (integer) - @return list of actions (list of QAction) - """ - if tbID not in self.__toolBars: - return [] - return self.__toolBars[tbID][:] - - def toolBarsActions(self): - """ - Public method to get all toolbars and their actions. - - @return reference to dictionary of toolbar IDs as key and list - of actions as values - """ - return self.__toolBars - - def defaultToolBarActions(self, tbID): - """ - Public method to get a default toolbar's actions given it's id. - - @param tbID id of the default toolbar object (integer) - @return list of actions (list of QAction) - """ - if tbID not in self.__defaultToolBars: - return [] - return self.__defaultToolBars[tbID][:]
--- a/E4Gui/E4ToolBox.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,102 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a horizontal and a vertical toolbox class. -""" - -from PyQt4.QtGui import QToolBox, QTabWidget - -from .E4TabWidget import E4TabWidget - -class E4VerticalToolBox(QToolBox): - """ - Class implementing a ToolBox class substituting QToolBox to support wheel events. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - """ - QToolBox.__init__(self, parent) - - def wheelEvent(self, event): - """ - Protected slot to support wheel events. - - @param reference to the wheel event (QWheelEvent) - """ - index = self.currentIndex() - if event.delta() > 0: - index -= 1 - else: - index += 1 - if index < 0: - index = self.count() - 1 - elif index == self.count(): - index = 0 - - self.setCurrentIndex(index) - - event.accept() - -class E4HorizontalToolBox(E4TabWidget): - """ - Class implementing a vertical QToolBox like widget. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent widget (QWidget) - """ - E4TabWidget.__init__(self, parent) - self.setTabPosition(QTabWidget.West) - - def addItem(self, widget, icon, text): - """ - Public method to add a widget to the toolbox. - - @param widget reference to the widget to be added (QWidget) - @param icon the icon to be shown (QIcon) - @param text the text to be shown (string) - @return index of the added widget (integer) - """ - index = self.addTab(widget, icon, "") - self.setTabToolTip(index, text) - return index - - def insertItem(self, index, widget, icon, text): - """ - Public method to add a widget to the toolbox. - - @param index position at which the widget should be inserted (integer) - @param widget reference to the widget to be added (QWidget) - @param icon the icon to be shown (QIcon) - @param text the text to be shown (string) - @return index of the added widget (integer) - """ - index = self.insertTab(index, widget, icon, "") - self.setTabToolTip(index, text) - return index - - def setItemToolTip(self, index, toolTip): - """ - Public method to set the tooltip of an item. - - @param index index of the item (integer) - @param toolTip tooltip text to be set (string) - """ - self.setTabToolTip(index, toolTip) - - def setItemEnabled(self, index, enabled): - """ - Public method to set the enabled state of an item. - - @param index index of the item (integer) - @param enabled flag indicating the enabled state (boolean) - """ - self.setTabEnabled(index, enabled)
--- a/E4Gui/E4TreeSortFilterProxyModel.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing a modified QSortFilterProxyModel. -""" - -from PyQt4.QtCore import Qt, QModelIndex -from PyQt4.QtGui import QSortFilterProxyModel - -class E4TreeSortFilterProxyModel(QSortFilterProxyModel): - """ - Class implementing a modified QSortFilterProxyModel. - - It always accepts the root nodes in the tree so filtering is only done - on the children. - """ - def __init__(self, parent = None): - """ - Constructor - - @param parent reference to the parent object (QObject) - """ - QSortFilterProxyModel.__init__(self, parent) - - self.setFilterCaseSensitivity(Qt.CaseInsensitive) - - def filterAcceptsRow(self, sourceRow, sourceParent): - """ - Protected method to determine, if the row is acceptable. - - @param sourceRow row number in the source model (integer) - @param sourceParent index of the source item (QModelIndex) - @return flag indicating acceptance (boolean) - """ - idx = self.sourceModel().index(sourceRow, 0, sourceParent) - if self.sourceModel().hasChildren(idx): - return True - - return QSortFilterProxyModel.filterAcceptsRow(self, sourceRow, sourceParent) - - def hasChildren(self, parent = QModelIndex()): - """ - Public method to check, if a parent node has some children. - - @param parent index of the parent node (QModelIndex) - @return flag indicating the presence of children (boolean) - """ - sindex = self.mapToSource(parent) - return self.sourceModel().hasChildren(sindex)
--- a/E4Gui/E4TreeView.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Module implementing specialized tree views. -""" - -from PyQt4.QtCore import Qt -from PyQt4.QtGui import QTreeView, QItemSelectionModel - -class E4TreeView(QTreeView): - """ - Class implementing a tree view supporting removal of entries. - """ - def keyPressEvent(self, evt): - """ - Protected method implementing special key handling. - - @param evt reference to the event (QKeyEvent) - """ - if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ - self.model() is not None: - self.removeSelected() - evt.setAccepted(True) - else: - QTreeView.keyPressEvent(self, evt) - - def removeSelected(self): - """ - Public method to remove the selected entries. - """ - if self.model() is None or \ - self.selectionModel() is None or \ - not self.selectionModel().hasSelection(): - # no models available or nothing selected - return - - selectedRows = self.selectionModel().selectedRows() - for idx in reversed(sorted(selectedRows)): - self.model().removeRow(idx.row(), idx.parent()) - - def removeAll(self): - """ - Public method to clear the view. - """ - if self.model() is not None: - self.model().removeRows(0, self.model().rowCount(self.rootIndex()), - self.rootIndex())
--- a/E4Gui/__init__.py Tue Jan 12 18:39:15 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- - -# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> -# - -""" -Package implementing some special GUI elements. - -They extend or ammend the standard elements as found in QtGui. -"""
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5Action.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,160 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing an Action class extending QAction. + +This extension is necessary in order to support alternate keyboard +shortcuts. +""" + +from PyQt4.QtGui import QAction, QActionGroup, QIcon, QKeySequence +from PyQt4.QtCore import QObject + +class ArgumentsError(RuntimeError): + """ + Class implementing an exception, which is raised, if the wrong number of arguments + are given. + """ + def __init__(self, error): + """ + Constructor + """ + self.errorMessage = str(error) + + def __repr__(self): + """ + Private method returning a representation of the exception. + + @return string representing the error message + """ + return str(self.errorMessage) + + def __str__(self): + """ + Private method returning a string representation of the exception. + + @return string representing the error message + """ + return str(self.errorMessage) + +class E5Action(QAction): + """ + Class implementing an Action class extending QAction. + """ + def __init__(self, *args): + """ + Constructor + + @param args argument list of the constructor. This list is one of + <ul> + <li>text (string), icon (QIcon), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string), toggle (boolean)</li> + <li>text (string), icon (QIcon), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string)</li> + <li>text (string), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string), toggle (boolean)</li> + <li>text (string), menu text (string), + accelarator (QKeySequence), alternative accelerator (QKeySequence), + parent (QObject), name (string)</li> + </ul> + """ + if isinstance(args[1], QIcon): + icon = args[1] + incr = 1 + else: + icon = None + incr = 0 + if len(args) < 6+incr: + raise ArgumentsError("Not enough arguments, %d expected, got %d" % \ + (6+incr, len(args))) + elif len(args) > 7+incr: + raise ArgumentsError("Too many arguments, max. %d expected, got %d" % \ + (7+incr, len(args))) + + parent = args[4+incr] + QAction.__init__(self, parent) + name = args[5+incr] + if name: + self.setObjectName(name) + + if args[1+incr]: + self.setText(args[1+incr]) + + if args[0]: + self.setIconText(args[0]) + if args[2+incr]: + self.setShortcut(QKeySequence(args[2+incr])) + + if args[3+incr]: + self.setAlternateShortcut(QKeySequence(args[3+incr])) + + if icon: + self.setIcon(icon) + + if len(args) == 7+incr: + self.setCheckable(args[6+incr]) + + def setAlternateShortcut(self, shortcut): + """ + Public slot to set the alternative keyboard shortcut. + + @param shortcut the alternative accelerator (QKeySequence) + """ + if not shortcut.isEmpty(): + shortcuts = self.shortcuts() + if len(shortcuts) > 0: + if len(shortcuts) == 1: + shortcuts.append(shortcut) + else: + shortcuts[1] = shortcut + self.setShortcuts(shortcuts) + + def alternateShortcut(self): + """ + Public method to retrieve the alternative keyboard shortcut. + + @return the alternative accelerator (QKeySequence) + """ + shortcuts = self.shortcuts() + if len(shortcuts) < 2: + return QKeySequence() + else: + return shortcuts[1] + +def addActions(target, actions): + """ + Module function to add a list of actions to a widget. + + @param target reference to the target widget (QWidget) + @param actions list of actions to be added to the target. A + None indicates a separator (list of QActions) + """ + if target is None: + return + + for action in actions: + if action is None: + target.addSeparator() + else: + target.addAction(action) + +def createActionGroup(parent, name = None, exclusive = False): + """ + Module function to create an action group. + + @param parent parent object of the action group (QObject) + @param name name of the action group object (string) + @param exclusive flag indicating an exclusive action group (boolean) + @return reference to the created action group (QActionGroup) + """ + actGrp = QActionGroup(parent) + if name: + actGrp.setObjectName(name) + actGrp.setExclusive(exclusive) + return actGrp \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5Application.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Class implementing a specialized application class. +""" + +from PyQt4.QtCore import QCoreApplication +from PyQt4.QtGui import QApplication + +class E5Application(QApplication): + """ + Eric application class with an object registry. + """ + def __init__(self, argv): + """ + Constructor + + @param argv command line arguments + """ + QApplication.__init__(self, argv) + + self.__objectRegistry = {} + self.__pluginObjectRegistry = {} + + def registerObject(self, name, object): + """ + Public method to register an object in the object registry. + + @param name name of the object (string) + @param object reference to the object + @exception KeyError raised when the given name is already in use + """ + if name in self.__objectRegistry: + raise KeyError('Object "%s" already registered.' % name) + else: + self.__objectRegistry[name] = object + + def getObject(self, name): + """ + Public method to get a reference to a registered object. + + @param name name of the object (string) + @return reference to the registered object + @exception KeyError raised when the given name is not known + """ + if name in self.__objectRegistry: + return self.__objectRegistry[name] + else: + raise KeyError('Object "%s" is not registered.' % name) + + def registerPluginObject(self, name, object, pluginType = None): + """ + Public method to register a plugin object in the object registry. + + @param name name of the plugin object (string) + @param object reference to the plugin object + @keyparam pluginType type of the plugin object (string) + @exception KeyError raised when the given name is already in use + """ + if name in self.__pluginObjectRegistry: + raise KeyError('Pluginobject "%s" already registered.' % name) + else: + self.__pluginObjectRegistry[name] = (object, pluginType) + + def unregisterPluginObject(self, name): + """ + Public method to unregister a plugin object in the object registry. + + @param name name of the plugin object (string) + """ + if name in self.__pluginObjectRegistry: + del self.__pluginObjectRegistry[name] + + def getPluginObject(self, name): + """ + Public method to get a reference to a registered plugin object. + + @param name name of the plugin object (string) + @return reference to the registered plugin object + @exception KeyError raised when the given name is not known + """ + if name in self.__pluginObjectRegistry: + return self.__pluginObjectRegistry[name][0] + else: + raise KeyError('Pluginobject "%s" is not registered.' % name) + + def getPluginObjects(self): + """ + Public method to get a list of (name, reference) pairs of all + registered plugin objects. + + @return list of (name, reference) pairs + """ + objects = [] + for name in self.__pluginObjectRegistry: + objects.append((name, self.__pluginObjectRegistry[name][0])) + return objects + + def getPluginObjectType(self, name): + """ + Public method to get the type of a registered plugin object. + + @param name name of the plugin object (string) + @return type of the plugin object (string) + @exception KeyError raised when the given name is not known + """ + if name in self.__pluginObjectRegistry: + return self.__pluginObjectRegistry[name][1] + else: + raise KeyError('Pluginobject "%s" is not registered.' % name) + +e5App = QCoreApplication.instance \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5Completers.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2007 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing various kinds of completers. +""" + +from PyQt4.QtCore import QDir +from PyQt4.QtGui import QCompleter, QDirModel, QStringListModel + +class E5FileCompleter(QCompleter): + """ + Class implementing a completer for file names. + """ + def __init__(self, parent = None, + completionMode = QCompleter.PopupCompletion, + showHidden = False): + """ + Constructor + + @param parent parent widget of the completer (QWidget) + @keyparam completionMode completion mode of the + completer (QCompleter.CompletionMode) + @keyparam showHidden flag indicating to show hidden entries as well (boolean) + """ + QCompleter.__init__(self, parent) + self.__model = QDirModel(self) + if showHidden: + self.__model.setFilter(\ + QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | \ + QDir.AllDirs | QDir.Hidden)) + else: + self.__model.setFilter(\ + QDir.Filters(QDir.Dirs | QDir.Files | QDir.Drives | QDir.AllDirs)) + self.setModel(self.__model) + self.setCompletionMode(completionMode) + if parent: + parent.setCompleter(self) + +class E5DirCompleter(QCompleter): + """ + Class implementing a completer for directory names. + """ + def __init__(self, parent = None, + completionMode = QCompleter.PopupCompletion, + showHidden = False): + """ + Constructor + + @param parent parent widget of the completer (QWidget) + @keyparam completionMode completion mode of the + completer (QCompleter.CompletionMode) + @keyparam showHidden flag indicating to show hidden entries as well (boolean) + """ + QCompleter.__init__(self, parent) + self.__model = QDirModel(self) + if showHidden: + self.__model.setFilter(\ + QDir.Filters(QDir.Drives | QDir.AllDirs | QDir.Hidden)) + else: + self.__model.setFilter(\ + QDir.Filters(QDir.Drives | QDir.AllDirs)) + self.setModel(self.__model) + self.setCompletionMode(completionMode) + if parent: + parent.setCompleter(self) + +class E5StringListCompleter(QCompleter): + """ + Class implementing a completer for strings lists. + """ + def __init__(self, parent = None, strings = [], + completionMode = QCompleter.PopupCompletion): + """ + Constructor + + @param parent parent widget of the completer (QWidget) + @param strings list of string to load into the completer (list of strings) + @keyparam completionMode completion mode of the + completer (QCompleter.CompletionMode) + """ + QCompleter.__init__(self, parent) + self.__model = QStringListModel(strings, parent) + self.setModel(self.__model) + self.setCompletionMode(completionMode) + if parent: + parent.setCompleter(self) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5Led.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,268 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a LED widget. + +It was inspired by KLed. +""" + +from PyQt4.QtGui import * +from PyQt4.QtCore import * + +E5LedRectangular = 0 +E5LedCircular = 1 + +class E5Led(QWidget): + """ + Class implementing a LED widget. + """ + def __init__(self, parent = None, color = None, shape = E5LedCircular, rectRatio = 1): + """ + Constructor + + @param parent reference to parent widget (QWidget) + @param color color of the LED (QColor) + @param shape shape of the LED (E5LedCircular, E5LedRectangular) + @param rectRation ratio width to height, if shape is rectangular (float) + """ + QWidget.__init__(self, parent) + + if color is None: + color = QColor("green") + + self.__led_on = True + self.__dark_factor = 300 + self.__offcolor = color.dark(self.__dark_factor) + self.__led_color = color + self.__framedLed = True + self.__shape = shape + self.__rectRatio = rectRatio + + self.setColor(color) + + def paintEvent(self, evt): + """ + Protected slot handling the paint event. + + @param evt paint event object (QPaintEvent) + @exception TypeError The E5Led has an unsupported shape type. + """ + if self.__shape == E5LedCircular: + self.__paintRound() + elif self.__shape == E5LedRectangular: + self.__paintRectangular() + else: + raise TypeError("Unsupported shape type for E5Led.") + + def __getBestRoundSize(self): + """ + Private method to calculate the width of the LED. + + @return new width of the LED (integer) + """ + width = min(self.width(), self.height()) + width -= 2 # leave one pixel border + return width > -1 and width or 0 + + def __paintRound(self): + """ + Private method to paint a round raised LED. + """ + # Initialize coordinates, width and height of the LED + width = self.__getBestRoundSize() + + # Calculate the gradient for the LED + wh = width / 2 + color = self.__led_on and self.__led_color or self.__offcolor + gradient = QRadialGradient(wh, wh, wh, 0.8 * wh, 0.8 * wh) + gradient.setColorAt(0.0, color.light(200)) + gradient.setColorAt(0.6, color) + if self.__framedLed: + gradient.setColorAt(0.9, color.dark()) + gradient.setColorAt(1.0, self.palette().color(QPalette.Dark)) + else: + gradient.setColorAt(1.0, color.dark()) + + # now do the drawing + paint = QPainter(self) + paint.setRenderHint(QPainter.Antialiasing, True) + paint.setBrush(QBrush(gradient)) + paint.setPen(Qt.NoPen) + paint.drawEllipse(1, 1, width, width) + paint.end() + + def __paintRectangular(self): + """ + Private method to paint a rectangular raised LED. + """ + # Initialize coordinates, width and height of the LED + width = self.height() * self.__rectRatio + left = max(0, int((self.width() - width) / 2) - 1) + right = min(int((self.width() + width) / 2), self.width()) + height = self.height() + + # now do the drawing + painter = QPainter(self) + painter.setRenderHint(QPainter.Antialiasing, True) + color = self.__led_on and self.__led_color or self.__offcolor + + painter.setPen(color.light(200)) + painter.drawLine(left, 0, left, height - 1) + painter.drawLine(left + 1, 0, right - 1, 0) + if self.__framedLed: + painter.setPen(self.palette().color(QPalette.Dark)) + else: + painter.setPen(color.dark()) + painter.drawLine(left + 1, height - 1, right - 1, height - 1) + painter.drawLine(right - 1, 1, right - 1, height - 1) + painter.fillRect(left + 1, 1, right - 2, height - 2, QBrush(color)) + painter.end() + + def isOn(self): + """ + Public method to return the LED state. + + @return flag indicating the light state (boolean) + """ + return self.__led_on + + def shape(self): + """ + Public method to return the LED shape. + + @return LED shape (E5LedCircular, E5LedRectangular) + """ + return self.__shape + + def ratio(self): + """ + Public method to return the LED rectangular ratio (width / height). + + @return LED rectangular ratio (float) + """ + return self.__rectRatio + + def color(self): + """ + Public method to return the LED color. + + @return color of the LED (QColor) + """ + return self.__led_color + + def setOn(self, state): + """ + Public method to set the LED to on. + + @param state new state of the LED (boolean) + """ + if self.__led_on != state: + self.__led_on = state + self.update() + + def setShape(self, shape): + """ + Public method to set the LED shape. + + @param shape new LED shape (E5LedCircular, E5LedRectangular) + """ + if self.__shape != shape: + self.__shape = shape + self.update() + + def setRatio(self, ratio): + """ + Public method to set the LED rectangular ratio (width / height). + + @param ratio new LED rectangular ratio (float) + """ + if self.__rectRatio != ratio: + self.__rectRatio = ratio + self.update() + + def setColor(self, color): + """ + Public method to set the LED color. + + @param color color for the LED (QColor) + """ + if self.__led_color != color: + self.__led_color = color + self.__offcolor = color.dark(self.__dark_factor) + self.update() + + def setDarkFactor(self, darkfactor): + """ + Public method to set the dark factor. + + @param darkfactor value to set for the dark factor (integer) + """ + if self.__dark_factor != darkfactor: + self.__dark_factor = darkfactor + self.__offcolor = self.__led_color.dark(darkfactor) + self.update() + + def darkFactor(self): + """ + Public method to return the dark factor. + + @return the current dark factor (integer) + """ + return self.__dark_factor + + def toggle(self): + """ + Public slot to toggle the LED state. + """ + self.setOn(not self.__led_on) + + def on(self): + """ + Public slot to set the LED to on. + """ + self.setOn(True) + + def off(self): + """ + Public slot to set the LED to off. + """ + self.setOn(False) + + def setFramed(self, framed): + """ + Public slot to set the __framedLed attribute. + + @param framed flag indicating the framed state (boolean) + """ + if self.__framedLed != framed: + self.__framedLed = framed + self.__off_map = None + self.__on_map = None + self.update() + + def isFramed(self): + """ + Public method to return the framed state. + + @return flag indicating the current framed state (boolean) + """ + return self.__framedLed + + def sizeHint(self): + """ + Public method to give a hint about our desired size. + + @return size hint (QSize) + """ + return QSize(18, 18) + + def minimumSizeHint(self): + """ + Public method to give a hint about our minimum size. + + @return size hint (QSize) + """ + return QSize(18, 18) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5LineEdit.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing specialized line edits. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QLineEdit, QStyleOptionFrameV2, QStyle, QPainter, QPalette + +class E5LineEdit(QLineEdit): + """ + Class implementing a line edit widget showing some inactive text. + """ + def __init__(self, parent = None, inactiveText = ""): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + @param inactiveText text to be shown on inactivity (string) + """ + QLineEdit.__init__(self, parent) + + self.__inactiveText = inactiveText + + def inactiveText(self): + """ + Public method to get the inactive text. + + return inactive text (string) + """ + return self.__inactiveText + + def setInactiveText(self, inactiveText): + """ + Public method to set the inactive text. + + @param inactiveText text to be shown on inactivity (string) + """ + self.__inactiveText = inactiveText + self.update() + + def paintEvent(self, evt): + """ + Protected method handling a paint event. + + @param evt reference to the paint event (QPaintEvent) + """ + QLineEdit.paintEvent(self, evt) + if not self.text() and \ + self.__inactiveText and \ + not self.hasFocus(): + panel = QStyleOptionFrameV2() + self.initStyleOption(panel) + textRect = \ + self.style().subElementRect(QStyle.SE_LineEditContents, panel, self) + textRect.adjust(2, 0, 0, 0) + painter = QPainter(self) + painter.setPen(self.palette().brush(QPalette.Disabled, QPalette.Text).color()) + painter.drawText(textRect, Qt.AlignLeft | Qt.AlignVCenter, self.__inactiveText) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ListView.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing specialized list views. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QListView, QItemSelectionModel + +class E5ListView(QListView): + """ + Class implementing a list view supporting removal of entries. + """ + def keyPressEvent(self, evt): + """ + Protected method implementing special key handling. + + @param evt reference to the event (QKeyEvent) + """ + if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ + self.model() is not None: + self.removeSelected() + evt.setAccepted(True) + else: + QListView.keyPressEvent(self, evt) + + def removeSelected(self): + """ + Public method to remove the selected entries. + """ + if self.model() is None or self.selectionModel() is None: + # no models available + return + + row = 0 + selectedRows = self.selectionModel().selectedRows() + for selectedRow in reversed(selectedRows): + row = selectedRow.row() + self.model().removeRow(row, self.rootIndex()) + + idx = self.model().index(row, 0, self.rootIndex()) + if not idx.isValid(): + idx = self.model().index(row - 1, 0, self.rootIndex()) + self.selectionModel().select(idx, + QItemSelectionModel.SelectCurrent | QItemSelectionModel.Rows) + self.setCurrentIndex(idx) + + def removeAll(self): + """ + Public method to clear the view. + """ + if self.model() is not None: + self.model().removeRows(0, self.model().rowCount(self.rootIndex()), + self.rootIndex()) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ModelMenu.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,417 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a menu populated from a QAbstractItemModel. +""" + +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +import UI.PixmapCache + +class E5ModelMenu(QMenu): + """ + Class implementing a menu populated from a QAbstractItemModel. + + @signal activated(const QModelIndex&) emitted when an action has been triggered + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + QMenu.__init__(self, parent) + + self.__maxRows = -1 + self.__firstSeparator = -1 + self.__maxWidth = -1 + self.__statusBarTextRole = 0 + self.__separatorRole = 0 + self.__model = None + self.__root = QModelIndex() + self.__dragStartPosition = QPoint() + + self.setAcceptDrops(True) + + self._mouseButton = Qt.NoButton + self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) + self.__dropRow = -1 + self.__dropIndex = None + + self.connect(self, SIGNAL("aboutToShow()"), self.__aboutToShow) + self.connect(self, SIGNAL("triggered(QAction*)"), self.__actionTriggered) + + def prePopulated(self): + """ + Public method to add any actions before the tree. + + @return flag indicating if any actions were added + """ + return False + + def postPopulated(self): + """ + Public method to add any actions after the tree. + """ + pass + + def setModel(self, model): + """ + Public method to set the model for the menu. + + @param model reference to the model (QAbstractItemModel) + """ + self.__model = model + + def model(self): + """ + Public method to get a reference to the model. + + @return reference to the model (QAbstractItemModel) + """ + return self.__model + + def setMaxRows(self, rows): + """ + Public method to set the maximum number of entries to show. + + @param rows maximum number of entries to show (integer) + """ + self.__maxRows = rows + + def maxRows(self): + """ + Public method to get the maximum number of entries to show. + + @return maximum number of entries to show (integer) + """ + return self.__maxRows + + def setFirstSeparator(self, offset): + """ + Public method to set the first separator. + + @param offset row number of the first separator (integer) + """ + self.__firstSeparator = offset + + def firstSeparator(self): + """ + Public method to get the first separator. + + @return row number of the first separator (integer) + """ + return self.__firstSeparator + + def setRootIndex(self, index): + """ + Public method to set the index of the root item. + + @param index index of the root item (QModelIndex) + """ + self.__root = index + + def rootIndex(self): + """ + Public method to get the index of the root item. + + @return index of the root item (QModelIndex) + """ + return self.__root + + def setStatusBarTextRole(self, role): + """ + Public method to set the role of the status bar text. + + @param role role of the status bar text (integer) + """ + self.__statusBarTextRole = role + + def statusBarTextRole(self): + """ + Public method to get the role of the status bar text. + + @return role of the status bar text (integer) + """ + return self.__statusBarTextRole + + def setSeparatorRole(self, role): + """ + Public method to set the role of the separator. + + @param role role of the separator (integer) + """ + self.__separatorRole = role + + def separatorRole(self): + """ + Public method to get the role of the separator. + + @return role of the separator (integer) + """ + return self.__separatorRole + + def __aboutToShow(self): + """ + Private slot to show the menu. + """ + self.clear() + + if self.prePopulated(): + self.addSeparator() + max_ = self.__maxRows + if max_ != -1: + max_ += self.__firstSeparator + self.createMenu(self.__root, max_, self, self) + self.postPopulated() + + def createBaseMenu(self): + """ + Public method to get the menu that is used to populate sub menu's. + + @return reference to the menu (E5ModelMenu) + """ + return E5ModelMenu(self) + + def createMenu(self, parent, max_, parentMenu = None, menu = None): + """ + Public method to put all the children of a parent into a menu of a given length. + + @param parent index of the parent item (QModelIndex) + @param max_ maximum number of entries (integer) + @param parentMenu reference to the parent menu (QMenu) + @param menu reference to the menu to be populated (QMenu) + """ + if menu is None: + v = parent + + title = parent.data() + modelMenu = self.createBaseMenu() + # triggered goes all the way up the menu structure + self.disconnect(modelMenu, SIGNAL("triggered(QAction*)"), + modelMenu.__actionTriggered) + modelMenu.setTitle(title) + + icon = parent.data(Qt.DecorationRole) + if icon == NotImplemented or icon is None: + icon = UI.PixmapCache.getIcon("defaultIcon.png") + modelMenu.setIcon(icon) + if parentMenu is not None: + parentMenu.addMenu(modelMenu).setData(v) + modelMenu.setRootIndex(parent) + modelMenu.setModel(self.__model) + return + + if self.__model is None: + return + + end = self.__model.rowCount(parent) + if max_ != -1: + end = min(max_, end) + + for i in range(end): + idx = self.__model.index(i, 0, parent) + if self.__model.hasChildren(idx): + self.createMenu(idx, -1, menu) + else: + if self.__separatorRole != 0 and idx.data(self.__separatorRole): + self.addSeparator() + else: + menu.addAction(self.__makeAction(idx)) + + if menu == self and i == self.__firstSeparator - 1: + self.addSeparator() + + def __makeAction(self, idx): + """ + Private method to create an action. + + @param idx index of the item to create an action for (QModelIndex) + @return reference to the created action (QAction) + """ + icon = idx.data(Qt.DecorationRole) + if icon == NotImplemented or icon is None: + icon = UI.PixmapCache.getIcon("defaultIcon.png") + action = self.makeAction(icon, idx.data(), self) + action.setStatusTip(idx.data(self.__statusBarTextRole)) + + v = idx + action.setData(v) + + return action + + def makeAction(self, icon, text, parent): + """ + Public method to create an action. + + @param icon icon of the action (QIcon) + @param text text of the action (string) + @param reference to the parent object (QObject) + @return reference to the created action (QAction) + """ + fm = QFontMetrics(self.font()) + if self.__maxWidth == -1: + self.__maxWidth = fm.width('m') * 30 + smallText = fm.elidedText(text, Qt.ElideMiddle, self.__maxWidth) + + return QAction(icon, smallText, parent) + + def __actionTriggered(self, action): + """ + Private slot to handle the triggering of an action. + + @param action reference to the action that was triggered (QAction) + """ + idx = self.index(action) + if idx.isValid(): + self.emit(SIGNAL("activated(const QModelIndex&)"), idx) + + def index(self, action): + """ + Public method to get the index of an action. + + @param action reference to the action to get the index for (QAction) + @return index of the action (QModelIndex) + """ + if action is None: + return QModelIndex() + + idx = action.data() + if idx is None: + return QModelIndex() + + if not isinstance(idx, QModelIndex): + return QModelIndex() + + return idx + + def dragEnterEvent(self, evt): + """ + Protected method to handle drag enter events. + + @param evt reference to the event (QDragEnterEvent) + """ + if self.__model is not None: + mimeTypes = self.__model.mimeTypes() + for mimeType in mimeTypes: + if evt.mimeData().hasFormat(mimeType): + evt.acceptProposedAction() + + QMenu.dragEnterEvent(self, evt) + + def dropEvent(self, evt): + """ + Protected method to handle drop events. + + @param evt reference to the event (QDropEvent) + """ + if self.__model is not None: + act = self.actionAt(evt.pos()) + parentIndex = self.__root + if act is None: + row = self.__model.rowCount(self.__root) + else: + idx = self.index(act) + if not idx.isValid(): + QMenu.dropEvent(self, evt) + return + + row = idx.row() + if self.__model.hasChildren(idx): + parentIndex = idx + row = self.__model.rowCount(idx) + + self.__dropRow = row + self.__dropIndex = parentIndex + evt.acceptProposedAction() + self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), + row, 0, parentIndex) + self.close() + + QMenu.dropEvent(self, evt) + + def mousePressEvent(self, evt): + """ + Protected method handling mouse press events. + + @param evt reference to the event object (QMouseEvent) + """ + if evt.button() == Qt.LeftButton: + self.__dragStartPosition = evt.pos() + QMenu.mousePressEvent(self, evt) + + def mouseMoveEvent(self, evt): + """ + Protected method to handle mouse move events. + + @param evt reference to the event (QMouseEvent) + """ + if self.__model is None: + QMenu.mouseMoveEvent(self, evt) + return + + if not (evt.buttons() & Qt.LeftButton): + QMenu.mouseMoveEvent(self, evt) + return + + manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() + if manhattanLength <= QApplication.startDragDistance(): + QMenu.mouseMoveEvent(self, evt) + return + + act = self.actionAt(self.__dragStartPosition) + if act is None: + QMenu.mouseMoveEvent(self, evt) + return + + idx = self.index(act) + if not idx.isValid(): + QMenu.mouseMoveEvent(self, evt) + return + + drag = QDrag(self) + drag.setMimeData(self.__model.mimeData([idx])) + actionRect = self.actionGeometry(act) + drag.setPixmap(QPixmap.grabWidget(self, actionRect)) + + if drag.exec_() == Qt.MoveAction: + row = idx.row() + if self.__dropIndex == idx.parent() and self.__dropRow <= row: + row += 1 + self.__model.removeRow(row, self.__root) + + if not self.isAncestorOf(drag.target()): + self.close() + else: + self.emit(SIGNAL("aboutToShow()")) + + def mouseReleaseEvent(self, evt): + """ + Protected method handling mouse release events. + + @param evt reference to the event object (QMouseEvent) + """ + self._mouseButton = evt.button() + self._keyboardModifiers = evt.modifiers() + QMenu.mouseReleaseEvent(self, evt) + + def resetFlags(self): + """ + Public method to reset the saved internal state. + """ + self._mouseButton = Qt.NoButton + self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) + + def removeEntry(self, idx): + """ + Public method to remove a menu entry. + + @param idx index of the entry to be removed (QModelIndex) + """ + row = idx.row() + self.__model.removeRow(row, self.__root) + self.emit(SIGNAL("aboutToShow()")) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ModelToolBar.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,289 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a tool bar populated from a QAbstractItemModel. +""" + +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +from .E5ModelMenu import E5ModelMenu + +class E5ModelToolBar(QToolBar): + """ + Class implementing a tool bar populated from a QAbstractItemModel. + """ + def __init__(self, title = None, parent = None): + """ + Constructor + + @param title title for the tool bar (string) + @param parent reference to the parent widget (QWidget) + """ + if title is not None: + QToolBar.__init__(self, title, parent) + else: + QToolBar.__init__(self, parent) + + self.__model = None + + self.__root = QModelIndex() + self.__dragStartPosition = QPoint() + + if self.isVisible(): + self._build() + + self.setAcceptDrops(True) + + self._mouseButton = Qt.NoButton + self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) + self.__dropRow = -1 + self.__dropIndex = None + + def setModel(self, model): + """ + Public method to set the model for the tool bar. + + @param model reference to the model (QAbstractItemModel) + """ + if self.__model is not None: + self.disconnect(self.__model, + SIGNAL("modelReset()"), + self._build) + self.disconnect(self.__model, + SIGNAL("rowsInserted(const QModelIndex&, int, int)"), + self._build) + self.disconnect(self.__model, + SIGNAL("rowsRemoved(const QModelIndex&, int, int)"), + self._build) + self.disconnect(self.__model, + SIGNAL("dataChanged(const QModelIndex&, const QModelIndex&)"), + self._build) + + self.__model = model + + if self.__model is not None: + self.connect(self.__model, + SIGNAL("modelReset()"), + self._build) + self.connect(self.__model, + SIGNAL("rowsInserted(const QModelIndex&, int, int)"), + self._build) + self.connect(self.__model, + SIGNAL("rowsRemoved(const QModelIndex&, int, int)"), + self._build) + self.connect(self.__model, + SIGNAL("dataChanged(const QModelIndex&, const QModelIndex&)"), + self._build) + + def model(self): + """ + Public method to get a reference to the model. + + @return reference to the model (QAbstractItemModel) + """ + return self.__model + + def setRootIndex(self, idx): + """ + Public method to set the root index. + + @param idx index to be set as the root index (QModelIndex) + """ + self.__root = idx + + def rootIndex(self): + """ + Public method to get the root index. + + @return root index (QModelIndex) + """ + return self.__root + + def _build(self): + """ + Protected slot to build the tool bar. + """ + assert self.__model is not None + + self.clear() + + for i in range(self.__model.rowCount(self.__root)): + idx = self.__model.index(i, 0, self.__root) + v = idx + + title = idx.data(Qt.DisplayRole) + icon = idx.data(Qt.DecorationRole) + if icon == NotImplemented or icon is None: + icon = QIcon() + folder = self.__model.hasChildren(idx) + + act = self.addAction(icon, title) + act.setData(v) + + button = self.widgetForAction(act) + button.installEventFilter(self) + + if folder: + menu = self._createMenu() + menu.setModel(self.__model) + menu.setRootIndex(idx) + act.setMenu(menu) + button.setPopupMode(QToolButton.InstantPopup) + button.setToolButtonStyle(Qt.ToolButtonTextBesideIcon) + + def index(self, action): + """ + Public method to get the index of an action. + + @param action reference to the action to get the index for (QAction) + @return index of the action (QModelIndex) + """ + if action is None: + return QModelIndex() + + idx = action.data() + if idx is None: + return QModelIndex() + + if not isinstance(idx, QModelIndex): + return QModelIndex() + + return idx + + def _createMenu(self): + """ + Protected method to create the menu for a tool bar action. + + @return menu for a tool bar action (E5ModelMenu) + """ + return E5ModelMenu(self) + + def eventFilter(self, obj, evt): + """ + Public method to handle event for other objects. + + @param obj reference to the object (QObject) + @param evt reference to the event (QEvent) + @return flag indicating that the event should be filtered out (boolean) + """ + if evt.type() == QEvent.MouseButtonRelease: + self._mouseButton = evt.button() + self._keyboardModifiers = evt.modifiers() + act = obj.defaultAction() + idx = self.index(act) + if idx.isValid(): + self.emit(SIGNAL("activated(const QModelIndex&)"), idx) + elif evt.type() == QEvent.MouseButtonPress: + if evt.buttons() & Qt.LeftButton: + self.__dragStartPosition = self.mapFromGlobal(evt.globalPos()) + + return False + + def dragEnterEvent(self, evt): + """ + Protected method to handle drag enter events. + + @param evt reference to the event (QDragEnterEvent) + """ + if self.__model is not None: + mimeTypes = self.__model.mimeTypes() + for mimeType in mimeTypes: + if evt.mimeData().hasFormat(mimeType): + evt.acceptProposedAction() + + QToolBar.dragEnterEvent(self, evt) + + def dropEvent(self, evt): + """ + Protected method to handle drop events. + + @param evt reference to the event (QDropEvent) + """ + if self.__model is not None: + act = self.actionAt(evt.pos()) + parentIndex = self.__root + if act is None: + row = self.__model.rowCount(self.__root) + else: + idx = self.index(act) + assert idx.isValid() + row = idx.row() + if self.__model.hasChildren(idx): + parentIndex = idx + row = self.__model.rowCount(idx) + + self.__dropRow = row + self.__dropIndex = parentIndex + evt.acceptProposedAction() + self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), + row, 0, parentIndex) + + QToolBar.dropEvent(self, evt) + + def mouseMoveEvent(self, evt): + """ + Protected method to handle mouse move events. + + @param evt reference to the event (QMouseEvent) + """ + if self.__model is None: + QToolBar.mouseMoveEvent(self, evt) + return + + if not (evt.buttons() & Qt.LeftButton): + QToolBar.mouseMoveEvent(self, evt) + return + + manhattanLength = (evt.pos() - self.__dragStartPosition).manhattanLength() + if manhattanLength <= QApplication.startDragDistance(): + QToolBar.mouseMoveEvent(self, evt) + return + + act = self.actionAt(self.__dragStartPosition) + if act is None: + QToolBar.mouseMoveEvent(self, evt) + return + + idx = self.index(act) + assert idx.isValid() + + drag = QDrag(self) + drag.setMimeData(self.__model.mimeData([idx])) + actionRect = self.actionGeometry(act) + drag.setPixmap(QPixmap.grabWidget(self, actionRect)) + + if drag.exec_() == Qt.MoveAction: + row = idx.row() + if self.__dropIndex == idx.parent() and self.__dropRow <= row: + row += 1 + self.__model.removeRow(row, self.__root) + + def hideEvent(self, evt): + """ + Protected method to handle hide events. + + @param evt reference to the hide event (QHideEvent) + """ + self.clear() + QToolBar.hideEvent(self, evt) + + def showEvent(self, evt): + """ + Protected method to handle show events. + + @param evt reference to the hide event (QHideEvent) + """ + if len(self.actions()) == 0: + self._build() + QToolBar.showEvent(self, evt) + + def resetFlags(self): + """ + Public method to reset the saved internal state. + """ + self._mouseButton = Qt.NoButton + self._keyboardModifiers = Qt.KeyboardModifiers(Qt.NoModifier) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5SideBar.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,550 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a sidebar class. +""" + +from PyQt4.QtCore import SIGNAL, SLOT, QEvent, QSize, Qt, QByteArray, \ + QDataStream, QIODevice +from PyQt4.QtGui import QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton + +from E5Gui.E5Application import e5App + +import UI.PixmapCache + +class E5SideBar(QWidget): + """ + Class implementing a sidebar with a widget area, that is hidden or shown, if the + current tab is clicked again. + """ + Version = 1 + + North = 0 + East = 1 + South = 2 + West = 3 + + def __init__(self, orientation = None, parent = None): + """ + Constructor + + @param orientation orientation of the sidebar widget (North, East, South, West) + @param parent parent widget (QWidget) + """ + QWidget.__init__(self, parent) + + self.__tabBar = QTabBar() + self.__tabBar.setDrawBase(True) + self.__tabBar.setShape(QTabBar.RoundedNorth) + self.__stackedWidget = QStackedWidget(self) + self.__stackedWidget.setContentsMargins(0, 0, 0, 0) + self.__autoHideButton = QToolButton() + self.__autoHideButton.setCheckable(True) + self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOff.png")) + self.__autoHideButton.setChecked(True) + self.__autoHideButton.setToolTip( + self.trUtf8("Deselect to activate automatic collapsing")) + self.barLayout = QBoxLayout(QBoxLayout.LeftToRight) + self.barLayout.setMargin(0) + self.layout = QBoxLayout(QBoxLayout.TopToBottom) + self.layout.setMargin(0) + self.layout.setSpacing(0) + self.barLayout.addWidget(self.__autoHideButton) + self.barLayout.addWidget(self.__tabBar) + self.layout.addLayout(self.barLayout) + self.layout.addWidget(self.__stackedWidget) + self.setLayout(self.layout) + + self.__minimized = False + self.__minSize = 0 + self.__maxSize = 0 + self.__bigSize = QSize() + + self.splitter = None + self.splitterSizes = [] + + self.__hasFocus = False # flag storing if this widget or any child has the focus + self.__autoHide = False + + self.__tabBar.installEventFilter(self) + + self.__orientation = E5SideBar.North + if orientation is None: + orientation = E5SideBar.North + self.setOrientation(orientation) + + self.connect(self.__tabBar, SIGNAL("currentChanged(int)"), + self.__stackedWidget, SLOT("setCurrentIndex(int)")) + self.connect(e5App(), SIGNAL("focusChanged(QWidget*, QWidget*)"), + self.__appFocusChanged) + self.connect(self.__autoHideButton, SIGNAL("toggled(bool)"), + self.__autoHideToggled) + + def setSplitter(self, splitter): + """ + Public method to set the splitter managing the sidebar. + + @param splitter reference to the splitter (QSplitter) + """ + self.splitter = splitter + + def shrink(self): + """ + Public method to shrink the sidebar. + """ + self.__minimized = True + self.__bigSize = self.size() + if self.__orientation in [E5SideBar.North, E5SideBar.South]: + self.__minSize = self.minimumHeight() + self.__maxSize = self.maximumHeight() + else: + self.__minSize = self.minimumWidth() + self.__maxSize = self.maximumWidth() + self.splitterSizes = self.splitter.sizes() + + self.__stackedWidget.hide() + + if self.__orientation in [E5SideBar.North, E5SideBar.South]: + self.setFixedHeight(self.__tabBar.minimumSizeHint().height()) + else: + self.setFixedWidth(self.__tabBar.minimumSizeHint().width()) + + def expand(self): + """ + Public method to expand the sidebar. + """ + self.__minimized = False + self.__stackedWidget.show() + self.resize(self.__bigSize) + if self.__orientation in [E5SideBar.North, E5SideBar.South]: + self.setMinimumHeight(self.__minSize) + self.setMaximumHeight(self.__maxSize) + else: + self.setMinimumWidth(self.__minSize) + self.setMaximumWidth(self.__maxSize) + self.splitter.setSizes(self.splitterSizes) + + def isMinimized(self): + """ + Public method to check the minimized state. + + @return flag indicating the minimized state (boolean) + """ + return self.__minimized + + def isAutoHiding(self): + """ + Public method to check, if the auto hide function is active. + + @return flag indicating the state of auto hiding (boolean) + """ + return self.__autoHide + + def eventFilter(self, obj, evt): + """ + Protected method to handle some events for the tabbar. + + @param obj reference to the object (QObject) + @param evt reference to the event object (QEvent) + @return flag indicating, if the event was handled (boolean) + """ + if obj == self.__tabBar: + if evt.type() == QEvent.MouseButtonPress: + pos = evt.pos() + index = -1 + for i in range(self.__tabBar.count()): + if self.__tabBar.tabRect(i).contains(pos): + index = i + break + + if i == self.__tabBar.currentIndex(): + if self.isMinimized(): + self.expand() + else: + self.shrink() + return True + elif self.isMinimized(): + self.expand() + elif evt.type() == QEvent.Wheel and not self.__stackedWidget.isHidden(): + if evt.delta() > 0: + self.prevTab() + else: + self.nextTab() + return True + + return QWidget.eventFilter(self, obj, evt) + + def addTab(self, widget, iconOrLabel, label = None): + """ + Public method to add a tab to the sidebar. + + @param widget reference to the widget to add (QWidget) + @param iconOrLabel reference to the icon or the labeltext of the tab + (QIcon, string) + @param label the labeltext of the tab (string) (only to be + used, if the second parameter is a QIcon) + """ + if label: + self.__tabBar.addTab(iconOrLabel, label) + else: + self.__tabBar.addTab(iconOrLabel) + self.__stackedWidget.addWidget(widget) + + def insertTab(self, index, widget, iconOrLabel, label = None): + """ + Public method to insert a tab into the sidebar. + + @param index the index to insert the tab at (integer) + @param widget reference to the widget to insert (QWidget) + @param iconOrLabel reference to the icon or the labeltext of the tab + (QIcon, string) + @param label the labeltext of the tab (string) (only to be + used, if the second parameter is a QIcon) + """ + if label: + self.__tabBar.insertTab(index, iconOrLabel, label) + else: + self.__tabBar.insertTab(index, iconOrLabel) + self.__stackedWidget.insertWidget(index, widget) + + def removeTab(self, index): + """ + Public method to remove a tab. + + @param index the index of the tab to remove (integer) + """ + self.__stackedWidget.removeWidget(self.__stackedWidget.widget(index)) + self.__tabBar.removeTab(index) + + def clear(self): + """ + Public method to remove all tabs. + """ + while self.count() > 0: + self.removeTab(0) + + def prevTab(self): + """ + Public slot used to show the previous tab. + """ + ind = self.currentIndex() - 1 + if ind == -1: + ind = self.count() - 1 + + self.setCurrentIndex(ind) + self.currentWidget().setFocus() + + def nextTab(self): + """ + Public slot used to show the next tab. + """ + ind = self.currentIndex() + 1 + if ind == self.count(): + ind = 0 + + self.setCurrentIndex(ind) + self.currentWidget().setFocus() + + def count(self): + """ + Public method to get the number of tabs. + + @return number of tabs in the sidebar (integer) + """ + return self.__tabBar.count() + + def currentIndex(self): + """ + Public method to get the index of the current tab. + + @return index of the current tab (integer) + """ + return self.__stackedWidget.currentIndex() + + def setCurrentIndex(self, index): + """ + Public slot to set the current index. + + @param index the index to set as the current index (integer) + """ + self.__tabBar.setCurrentIndex(index) + self.__stackedWidget.setCurrentIndex(index) + if self.isMinimized(): + self.expand() + + def currentWidget(self): + """ + Public method to get a reference to the current widget. + + @return reference to the current widget (QWidget) + """ + return self.__stackedWidget.currentWidget() + + def setCurrentWidget(self, widget): + """ + Public slot to set the current widget. + + @param widget reference to the widget to become the current widget (QWidget) + """ + self.__stackedWidget.setCurrentWidget(widget) + self.__tabBar.setCurrentIndex(self.__stackedWidget.currentIndex()) + if self.isMinimized(): + self.expand() + + def indexOf(self, widget): + """ + Public method to get the index of the given widget. + + @param widget reference to the widget to get the index of (QWidget) + @return index of the given widget (integer) + """ + return self.__stackedWidget.indexOf(widget) + + def isTabEnabled(self, index): + """ + Public method to check, if a tab is enabled. + + @param index index of the tab to check (integer) + @return flag indicating the enabled state (boolean) + """ + return self.__tabBar.isTabEnabled(index) + + def setTabEnabled(self, index, enabled): + """ + Public method to set the enabled state of a tab. + + @param index index of the tab to set (integer) + @param enabled enabled state to set (boolean) + """ + self.__tabBar.setTabEnabled(index, enabled) + + def orientation(self): + """ + Public method to get the orientation of the sidebar. + + @return orientation of the sidebar (North, East, South, West) + """ + return self.__orientation + + def setOrientation(self, orient): + """ + Public method to set the orientation of the sidebar. + @param orient orientation of the sidebar (North, East, South, West) + """ + if orient == E5SideBar.North: + self.__tabBar.setShape(QTabBar.RoundedNorth) + self.barLayout.setDirection(QBoxLayout.LeftToRight) + self.layout.setDirection(QBoxLayout.TopToBottom) + self.layout.setAlignment(self.barLayout, Qt.AlignLeft) + elif orient == E5SideBar.East: + self.__tabBar.setShape(QTabBar.RoundedEast) + self.barLayout.setDirection(QBoxLayout.TopToBottom) + self.layout.setDirection(QBoxLayout.RightToLeft) + self.layout.setAlignment(self.barLayout, Qt.AlignTop) + elif orient == E5SideBar.South: + self.__tabBar.setShape(QTabBar.RoundedSouth) + self.barLayout.setDirection(QBoxLayout.LeftToRight) + self.layout.setDirection(QBoxLayout.BottomToTop) + self.layout.setAlignment(self.barLayout, Qt.AlignLeft) + elif orient == E5SideBar.West: + self.__tabBar.setShape(QTabBar.RoundedWest) + self.barLayout.setDirection(QBoxLayout.TopToBottom) + self.layout.setDirection(QBoxLayout.LeftToRight) + self.layout.setAlignment(self.barLayout, Qt.AlignTop) + self.__orientation = orient + + def tabIcon(self, index): + """ + Public method to get the icon of a tab. + + @param index index of the tab (integer) + @return icon of the tab (QIcon) + """ + return self.__tabBar.tabIcon(index) + + def setTabIcon(self, index, icon): + """ + Public method to set the icon of a tab. + + @param index index of the tab (integer) + @param icon icon to be set (QIcon) + """ + self.__tabBar.setTabIcon(index, icon) + + def tabText(self, index): + """ + Public method to get the text of a tab. + + @param index index of the tab (integer) + @return text of the tab (string) + """ + return self.__tabBar.tabText(index) + + def setTabText(self, index, text): + """ + Public method to set the text of a tab. + + @param index index of the tab (integer) + @param text text to set (string) + """ + self.__tabBar.setTabText(index, text) + + def tabToolTip(self, index): + """ + Public method to get the tooltip text of a tab. + + @param index index of the tab (integer) + @return tooltip text of the tab (string) + """ + return self.__tabBar.tabToolTip(index) + + def setTabToolTip(self, index, tip): + """ + Public method to set the tooltip text of a tab. + + @param index index of the tab (integer) + @param tooltip text text to set (string) + """ + self.__tabBar.setTabToolTip(index, tip) + + def tabWhatsThis(self, index): + """ + Public method to get the WhatsThis text of a tab. + + @param index index of the tab (integer) + @return WhatsThis text of the tab (string) + """ + return self.__tabBar.tabWhatsThis(index) + + def setTabWhatsThis(self, index, text): + """ + Public method to set the WhatsThis text of a tab. + + @param index index of the tab (integer) + @param WhatsThis text text to set (string) + """ + self.__tabBar.setTabWhatsThis(index, text) + + def widget(self, index): + """ + Public method to get a reference to the widget associated with a tab. + + @param index index of the tab (integer) + @return reference to the widget (QWidget) + """ + return self.__stackedWidget.widget(index) + + def saveState(self): + """ + Public method to save the state of the sidebar. + + @return saved state as a byte array (QByteArray) + """ + if len(self.splitterSizes) == 0: + self.splitterSizes = self.splitter.sizes() + self.__bigSize = self.size() + if self.__orientation in [E5SideBar.North, E5SideBar.South]: + self.__minSize = self.minimumHeight() + self.__maxSize = self.maximumHeight() + else: + self.__minSize = self.minimumWidth() + self.__maxSize = self.maximumWidth() + + data = QByteArray() + stream = QDataStream(data, QIODevice.WriteOnly) + + stream.writeUInt16(self.Version) + stream.writeBool(self.__minimized) + stream << self.__bigSize + stream.writeUInt16(self.__minSize) + stream.writeUInt16(self.__maxSize) + stream.writeUInt16(len(self.splitterSizes)) + for size in self.splitterSizes: + stream.writeUInt16(size) + stream.writeBool(self.__autoHide) + + return data + + def restoreState(self, state): + """ + Public method to restore the state of the sidebar. + + @param state byte array containing the saved state (QByteArray) + @return flag indicating success (boolean) + """ + if state.isEmpty(): + return False + + data = QByteArray(state) + stream = QDataStream(data, QIODevice.ReadOnly) + version = stream.readUInt16() + minimized = stream.readBool() + + if minimized: + self.shrink() + + stream >> self.__bigSize + self.__minSize = stream.readUInt16() + self.__maxSize = stream.readUInt16() + count = stream.readUInt16() + self.splitterSizes = [] + for i in range(count): + self.splitterSizes.append(stream.readUInt16()) + + self.__autoHide = stream.readBool() + self.__autoHideButton.setChecked(not self.__autoHide) + + if not minimized: + self.expand() + + return True + + ####################################################################### + ## methods below implement the autohide functionality + ####################################################################### + + def __autoHideToggled(self, checked): + """ + Private slot to handle the toggling of the autohide button. + + @param checked flag indicating the checked state of the button (boolean) + """ + self.__autoHide = not checked + if self.__autoHide: + self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOn")) + else: + self.__autoHideButton.setIcon(UI.PixmapCache.getIcon("autoHideOff")) + + def __appFocusChanged(self, old, now): + """ + Private slot to handle a change of the focus. + + @param old reference to the widget, that lost focus (QWidget or None) + @param now reference to the widget having the focus (QWidget or None) + """ + self.__hasFocus = self.isAncestorOf(now) + if self.__autoHide and not self.__hasFocus and not self.isMinimized(): + self.shrink() + elif self.__autoHide and self.__hasFocus and self.isMinimized(): + self.expand() + + def enterEvent(self, event): + """ + Protected method to handle the mouse entering this widget. + + @param event reference to the event (QEvent) + """ + if self.__autoHide and self.isMinimized(): + self.expand() + + def leaveEvent(self, event): + """ + Protected method to handle the mouse leaving this widget. + + @param event reference to the event (QEvent) + """ + if self.__autoHide and not self.__hasFocus and not self.isMinimized(): + self.shrink() \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5SingleApplication.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,164 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2004 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing the single application server and client. +""" + +import sys +import os + +from E5Gui.E5Application import e5App + +from Utilities.SingleApplication import SingleApplicationClient, SingleApplicationServer + +import Utilities + +########################################################################### +# define some module global stuff +########################################################################### + +SAFile = "eric5" + +# define the protocol tokens +SAOpenFile = '>OpenFile<' +SAOpenProject = '>OpenProject<' +SAArguments = '>Arguments<' + +class E5SingleApplicationServer(SingleApplicationServer): + """ + Class implementing the single application server embedded within the IDE. + """ + def __init__(self): + """ + Constructor + """ + SingleApplicationServer.__init__(self, SAFile) + + def handleCommand(self, cmd, params): + """ + Public slot to handle the command sent by the client. + + @param cmd commandstring (string) + @param params parameterstring (string) + """ + if cmd == SAOpenFile: + self.__saOpenFile(params) + return + + if cmd == SAOpenProject: + self.__saOpenProject(params) + return + + if cmd == SAArguments: + self.__saArguments(params) + return + + def __saOpenFile(self, fname): + """ + Private method used to handle the "Open File" command. + + @param fname filename to be opened (string) + """ + e5App().getObject("ViewManager").openSourceFile(fname) + + def __saOpenProject(self, pfname): + """ + Private method used to handle the "Open Project" command. + + @param pfname filename of the project to be opened (string) + """ + e5App().getObject("Project").openProject(pfname) + + def __saArguments(self, argsStr): + """ + Private method used to handle the "Arguments" command. + + @param argsStr space delimited list of command args(string) + """ + e5App().getObject("DebugUI").setArgvHistory(argsStr) + +class E5SingleApplicationClient(SingleApplicationClient): + """ + Class implementing the single application client of the IDE. + """ + def __init__(self): + """ + Constructor + """ + SingleApplicationClient.__init__(self, SAFile) + + def processArgs(self, args): + """ + Public method to process the command line args passed to the UI. + + @param args list of files to open + """ + # no args, return + if args is None: + return + + # holds space delimited list of command args, if any + argsStr = None + # flag indicating '--' options was found + ddseen = False + + if Utilities.isWindowsPlatform(): + argChars = ['-', '/'] + else: + argChars = ['-'] + + for arg in args: + if arg == '--' and not ddseen: + ddseen = True + continue + + if arg[0] in argChars or ddseen: + if argsStr is None: + argsStr = arg + else: + argsStr = "%s %s" % (argsStr, arg) + continue + + ext = os.path.splitext(arg)[1] + ext = os.path.normcase(ext) + + if ext in ['.e4p', '.e4pz']: + self.__openProject(arg) + else: + self.__openFile(arg) + + # send any args we had + if argsStr is not None: + self.__sendArguments(argsStr) + + self.disconnect() + + def __openFile(self, fname): + """ + Private method to open a file in the application server. + + @param fname name of file to be opened (string) + """ + cmd = "%s%s\n" % (SAOpenFile, Utilities.normabspath(fname)) + self.sendCommand(cmd) + + def __openProject(self, pfname): + """ + Private method to open a project in the application server. + + @param pfname name of the projectfile to be opened (string) + """ + cmd = "%s%s\n" % (SAOpenProject, Utilities.normabspath(pfname)) + self.sendCommand(cmd) + + def __sendArguments(self, argsStr): + """ + Private method to set the command arguments in the application server. + + @param argsStr space delimited list of command args (string) + """ + cmd = "%s%s\n" % (SAArguments, argsStr) + self.sendCommand(cmd) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5SqueezeLabels.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing labels that squeeze their contents to fit the size of the label. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QLabel + +from Utilities import compactPath + +class E5SqueezeLabel(QLabel): + """ + Class implementing a label that squeezes its contents to fit it's size. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent Widget (QWidget) + """ + QLabel.__init__(self, parent) + + self.__text = '' + self.__elided = '' + + def paintEvent(self, event): + """ + Protected method called when some painting is required. + + @param event reference to the paint event (QPaintEvent) + """ + fm = self.fontMetrics() + if fm.width(self.__text) > self.contentsRect().width(): + self.__elided = fm.elidedText(self.text(), Qt.ElideMiddle, self.width()) + QLabel.setText(self, self.__elided) + else: + QLabel.setText(self, self.__text) + QLabel.paintEvent(self, event) + + def setText(self, txt): + """ + Public method to set the label's text. + + @param txt the text to be shown (string) + """ + self.__text = txt + QLabel.setText(self, self.__text) + +class E5SqueezeLabelPath(QLabel): + """ + Class implementing a label showing a file path compacted to fit it's size. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent Widget (QWidget) + """ + QLabel.__init__(self, parent) + + self.__path = '' + self.__surrounding = "{0}" + + def setSurrounding(self, surrounding): + """ + Public method to set the surrounding of the path string. + + @param surrounding the a string containg placeholders for the path (string) + """ + self.__surrounding = surrounding + QLabel.setText(self, self.__surrounding.format(self.__path)) + + def setPath(self, path): + """ + Public method to set the path of the label. + + @param path path to be shown (string) + """ + self.__path = path + QLabel.setText(self, self.__surrounding.format(self.__path)) + + def setTextPath(self, surrounding, path): + """ + Public method to set the surrounding and the path of the label. + + @param surrounding the a string containg placeholders for the path (string) + @param path path to be shown (string) + """ + self.__surrounding = surrounding + self.__path = path + QLabel.setText(self, self.__surrounding.format(self.__path)) + + def paintEvent(self, event): + """ + Protected method called when some painting is required. + + @param event reference to the paint event (QPaintEvent) + """ + fm = self.fontMetrics() + if fm.width(self.__surrounding.format(self.__path)) > self.contentsRect().width(): + QLabel.setText(self, + self.__surrounding.format(compactPath(self.__path, + self.contentsRect().width(), + self.length)) + ) + else: + QLabel.setText(self, self.__surrounding.format(self.__path)) + QLabel.paintEvent(self, event) + + def length(self, txt): + """ + Public method to return the length of a text in pixels. + + @param txt text to calculate the length for after wrapped (string) + @return length of the wrapped text in pixels (integer) + """ + return self.fontMetrics().width(self.__surrounding.format(txt)) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5TabWidget.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,322 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2005 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a TabWidget class substituting QTabWidget. +""" + +from PyQt4.QtGui import QTabWidget, QTabBar, QApplication, QDrag, QStyle, QLabel, QMovie +from PyQt4.QtCore import Qt, SIGNAL, QPoint, QMimeData, QByteArray + +class E5WheelTabBar(QTabBar): + """ + Class implementing a tab bar class substituting QTabBar to support wheel events. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + QTabBar.__init__(self, parent) + self._tabWidget = parent + + def wheelEvent(self, event): + """ + Protected slot to support wheel events. + + @param reference to the wheel event (QWheelEvent) + """ + try: + if event.delta() > 0: + self._tabWidget.prevTab() + else: + self._tabWidget.nextTab() + + event.accept() + except AttributeError: + pass + +class E5DnDTabBar(E5WheelTabBar): + """ + Class implementing a tab bar class substituting QTabBar. + + @signal tabMoveRequested(int, int) emitted to signal a tab move request giving + the old and new index position + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + E5WheelTabBar.__init__(self, parent) + self.setAcceptDrops(True) + + self.__dragStartPos = QPoint() + + def mousePressEvent(self, event): + """ + Protected method to handle mouse press events. + + @param event reference to the mouse press event (QMouseEvent) + """ + if event.button() == Qt.LeftButton: + self.__dragStartPos = QPoint(event.pos()) + E5WheelTabBar.mousePressEvent(self, event) + + def mouseMoveEvent(self, event): + """ + Protected method to handle mouse move events. + + @param event reference to the mouse move event (QMouseEvent) + """ + if event.buttons() == Qt.MouseButtons(Qt.LeftButton) and \ + (event.pos() - self.__dragStartPos).manhattanLength() > \ + QApplication.startDragDistance(): + drag = QDrag(self) + mimeData = QMimeData() + index = self.tabAt(event.pos()) + mimeData.setText(self.tabText(index)) + mimeData.setData("action", "tab-reordering") + mimeData.setData("tabbar-id", QByteArray.number(id(self))) + drag.setMimeData(mimeData) + drag.exec_() + E5WheelTabBar.mouseMoveEvent(self, event) + + def dragEnterEvent(self, event): + """ + Protected method to handle drag enter events. + + @param event reference to the drag enter event (QDragEnterEvent) + """ + mimeData = event.mimeData() + formats = mimeData.formats() + if "action" in formats and \ + mimeData.data("action") == "tab-reordering" and \ + "tabbar-id" in formats and \ + mimeData.data("tabbar-id") == id(self): + event.acceptProposedAction() + E5WheelTabBar.dragEnterEvent(self, event) + + def dropEvent(self, event): + """ + Protected method to handle drop events. + + @param event reference to the drop event (QDropEvent) + """ + fromIndex = self.tabAt(self.__dragStartPos) + toIndex = self.tabAt(event.pos()) + if fromIndex != toIndex: + self.emit(SIGNAL("tabMoveRequested(int, int)"), fromIndex, toIndex) + event.acceptProposedAction() + E5WheelTabBar.dropEvent(self, event) + +class E5TabWidget(QTabWidget): + """ + Class implementing a tab widget class substituting QTabWidget. + + It provides slots to show the previous and next tab and give + them the input focus and it allows to have a context menu for the tabs. + + @signal customTabContextMenuRequested(const QPoint & point, int index) emitted when + a context menu for a tab is requested + """ + def __init__(self, parent = None, dnd = False): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + @keyparam dnd flag indicating the support for Drag & Drop (boolean) + """ + QTabWidget.__init__(self, parent) + + if dnd: + if not hasattr(self, 'setMovable'): + self.__tabBar = E5DnDTabBar(self) + self.connect(self.__tabBar, SIGNAL("tabMoveRequested(int, int)"), + self.moveTab) + self.setTabBar(self.__tabBar) + else: + self.__tabBar = E5WheelTabBar(self) + self.setTabBar(self.__tabBar) + self.setMovable(True) + else: + self.__tabBar = E5WheelTabBar(self) + self.setTabBar(self.__tabBar) + + self.__lastCurrentIndex = -1 + self.__currentIndex = -1 + self.connect(self, SIGNAL("currentChanged(int)"), self.__currentChanged) + + def __currentChanged(self, index): + """ + Private slot to handle the currentChanged signal. + + @param index index of the current tab + """ + if index == -1: + self.__lastCurrentIndex = -1 + else: + self.__lastCurrentIndex = self.__currentIndex + self.__currentIndex = index + + def switchTab(self): + """ + Public slot used to switch between the current and the previous current tab. + """ + if self.__lastCurrentIndex == -1 or self.__currentIndex == -1: + return + + self.setCurrentIndex(self.__lastCurrentIndex) + self.currentWidget().setFocus() + + def nextTab(self): + """ + Public slot used to show the next tab. + """ + ind = self.currentIndex() + 1 + if ind == self.count(): + ind = 0 + + self.setCurrentIndex(ind) + self.currentWidget().setFocus() + + def prevTab(self): + """ + Public slot used to show the previous tab. + """ + ind = self.currentIndex() - 1 + if ind == -1: + ind = self.count() - 1 + + self.setCurrentIndex(ind) + self.currentWidget().setFocus() + + def setTabContextMenuPolicy(self, policy): + """ + Public method to set the context menu policy of the tab. + + @param policy context menu policy to set (Qt.ContextMenuPolicy) + """ + self.tabBar().setContextMenuPolicy(policy) + if policy == Qt.CustomContextMenu: + self.connect(self.tabBar(), + SIGNAL("customContextMenuRequested(const QPoint &)"), + self.__handleTabCustomContextMenuRequested) + else: + self.disconnect(self.tabBar(), + SIGNAL("customContextMenuRequested(const QPoint &)"), + self.__handleTabCustomContextMenuRequested) + + def __handleTabCustomContextMenuRequested(self, point): + """ + Private slot to handle the context menu request for the tabbar. + + @param point point the context menu was requested (QPoint) + """ + _tabbar = self.tabBar() + for index in range(_tabbar.count()): + rect = _tabbar.tabRect(index) + if rect.contains(point): + self.emit(SIGNAL("customTabContextMenuRequested(const QPoint &, int)"), + _tabbar.mapToParent(point), index) + break + + def selectTab(self, pos): + """ + Public method to get the index of a tab given a position. + + @param pos position determining the tab index (QPoint) + @return index of the tab (integer) + """ + _tabbar = self.tabBar() + for index in range(_tabbar.count()): + rect = _tabbar.tabRect(index) + if rect.contains(pos): + return index + + return -1 + + def moveTab(self, curIndex, newIndex): + """ + Public method to move a tab to a new index. + + @param curIndex index of tab to be moved (integer) + @param newIndex index the tab should be moved to (integer) + """ + # step 1: save the tab data of tab to be moved + toolTip = self.tabToolTip(curIndex) + text = self.tabText(curIndex) + icon = self.tabIcon(curIndex) + whatsThis = self.tabWhatsThis(curIndex) + widget = self.widget(curIndex) + curWidget = self.currentWidget() + + # step 2: move the tab + self.removeTab(curIndex) + self.insertTab(newIndex, widget, icon, text) + + # step 3: set the tab data again + self.setTabToolTip(newIndex, toolTip) + self.setTabWhatsThis(newIndex, whatsThis) + + # step 4: set current widget + self.setCurrentWidget(curWidget) + + def __freeSide(self): + """ + Private method to determine the free side of a tab. + + @return free side (QTabBar.ButtonPosition) + """ + side = self.__tabBar.style().styleHint(QStyle.SH_TabBar_CloseButtonPosition) + if side == QTabBar.LeftSide: + side = QTabBar.RightSide + else: + side = QTabBar.LeftSide + return side + + def animationLabel(self, index, animationFile): + """ + Public slot to set an animated icon. + + @param index tab index (integer) + @param animationFile name of the file containing the animation (string) + @return reference to the created label (QLabel) + """ + if index == -1: + return None + + if hasattr(self.__tabBar, 'setTabButton'): + side = self.__freeSide() + animation = QLabel(self) + if animationFile and not animation.movie(): + movie = QMovie(animationFile, QByteArray(), animation) + movie.setSpeed(50) + animation.setMovie(movie) + movie.start() + self.__tabBar.setTabButton(index, side, None) + self.__tabBar.setTabButton(index, side, animation) + return animation + else: + return None + + def resetAnimation(self, index): + """ + Public slot to reset an animated icon. + + @param index tab index (integer) + """ + if index == -1: + return None + + if hasattr(self.__tabBar, 'tabButton'): + side = self.__freeSide() + animation = self.__tabBar.tabButton(index, side) + if animation is not None: + animation.movie().stop() + self.__tabBar.setTabButton(index, side, None) + del animation \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5TableView.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing specialized table views. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QTableView, QItemSelectionModel + +class E5TableView(QTableView): + """ + Class implementing a table view supporting removal of entries. + """ + def keyPressEvent(self, evt): + """ + Protected method implementing special key handling. + + @param evt reference to the event (QKeyEvent) + """ + if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ + self.model() is not None: + self.removeSelected() + evt.setAccepted(True) + else: + QTableView.keyPressEvent(self, evt) + + def removeSelected(self): + """ + Public method to remove the selected entries. + """ + if self.model() is None or self.selectionModel() is None: + # no models available + return + + row = 0 + selectedRows = self.selectionModel().selectedRows() + for selectedRow in reversed(selectedRows): + row = selectedRow.row() + self.model().removeRow(row, self.rootIndex()) + + idx = self.model().index(row, 0, self.rootIndex()) + if not idx.isValid(): + idx = self.model().index(row - 1, 0, self.rootIndex()) + self.selectionModel().select(idx, + QItemSelectionModel.SelectCurrent | QItemSelectionModel.Rows) + self.setCurrentIndex(idx) + + def removeAll(self): + """ + Public method to clear the view. + """ + if self.model() is not None: + self.model().removeRows(0, self.model().rowCount(self.rootIndex()), + self.rootIndex()) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ToolBarDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,461 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a toolbar configuration dialog. +""" + +from PyQt4.QtGui import * +from PyQt4.QtCore import * + +from .Ui_E5ToolBarDialog import Ui_E5ToolBarDialog + +import UI.PixmapCache + +class E5ToolBarItem(object): + """ + Class storing data belonging to a toolbar entry of the toolbar dialog. + """ + def __init__(self, toolBarId, actionIDs, default): + """ + Constructor + + @param toolBarId id of the toolbar object (integer) + @param actionIDs list of action IDs belonging to the toolbar (list of integer) + @param default flag indicating a default toolbar (boolean) + """ + self.toolBarId = toolBarId + self.actionIDs = actionIDs[:] + self.isDefault = default + self.title = "" + self.isChanged = False + +class E5ToolBarDialog(QDialog, Ui_E5ToolBarDialog): + """ + Class implementing a toolbar configuration dialog. + """ + ActionIdRole = Qt.UserRole + WidgetActionRole = Qt.UserRole + 1 + + def __init__(self, toolBarManager, parent = None): + """ + Constructor + + @param toolBarManager reference to a toolbar manager object (E5ToolBarManager) + @param parent reference to the parent widget (QWidget) + """ + QDialog.__init__(self, parent) + self.setupUi(self) + + self.__manager = toolBarManager + self.__toolbarItems = {} # maps toolbar item IDs to toolbar items + self.__currentToolBarItem = None + self.__removedToolBarIDs = [] # remember custom toolbars to be deleted + + self.__widgetActionToToolBarItemID = {} # maps widget action IDs to toolbar item IDs + self.__toolBarItemToWidgetActionID = {} # maps toolbar item IDs to widget action IDs + + self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow.png")) + self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow.png")) + self.leftButton.setIcon(UI.PixmapCache.getIcon("1leftarrow.png")) + self.rightButton.setIcon(UI.PixmapCache.getIcon("1rightarrow.png")) + + self.__restoreDefaultsButton = \ + self.buttonBox.button(QDialogButtonBox.RestoreDefaults) + self.__resetButton = self.buttonBox.button(QDialogButtonBox.Reset) + + self.actionsTree.header().hide() + self.__separatorText = self.trUtf8("--Separator--") + itm = QTreeWidgetItem(self.actionsTree, [self.__separatorText]) + self.actionsTree.setCurrentItem(itm) + + for category in sorted(self.__manager.categories()): + categoryItem = QTreeWidgetItem(self.actionsTree, [category]) + for action in self.__manager.categoryActions(category): + item = QTreeWidgetItem(categoryItem) + item.setText(0, action.text()) + item.setIcon(0, action.icon()) + item.setTextAlignment(0, Qt.AlignLeft | Qt.AlignVCenter) + item.setData(0, E5ToolBarDialog.ActionIdRole, int(id(action))) + item.setData(0, E5ToolBarDialog.WidgetActionRole, False) + if self.__manager.isWidgetAction(action): + item.setData(0, E5ToolBarDialog.WidgetActionRole, True) + item.setData(0, Qt.TextColorRole, QColor(Qt.blue)) + self.__widgetActionToToolBarItemID[id(action)] = None + categoryItem.setExpanded(True) + + for tbID, actions in list(self.__manager.toolBarsActions().items()): + tb = self.__manager.toolBarById(tbID) + default = self.__manager.isDefaultToolBar(tb) + tbItem = E5ToolBarItem(tbID, [], default) + self.__toolbarItems[id(tbItem)] = tbItem + self.__toolBarItemToWidgetActionID[id(tbItem)] = [] + actionIDs = [] + for action in actions: + if action is None: + actionIDs.append(None) + else: + aID = id(action) + actionIDs.append(aID) + if aID in self.__widgetActionToToolBarItemID: + self.__widgetActionToToolBarItemID[aID] = id(tbItem) + self.__toolBarItemToWidgetActionID[id(tbItem)].append(aID) + tbItem.actionIDs = actionIDs + self.toolbarComboBox.addItem(tb.windowTitle(), int(id(tbItem))) + if default: + self.toolbarComboBox.setItemData(self.toolbarComboBox.count() - 1, + QColor(Qt.darkGreen), Qt.ForegroundRole) + self.toolbarComboBox.model().sort(0) + + self.connect(self.toolbarComboBox, SIGNAL("currentIndexChanged(int)"), + self.__toolbarComboBox_currentIndexChanged) + self.toolbarComboBox.setCurrentIndex(0) + + @pyqtSlot() + def on_newButton_clicked(self): + """ + Private slot to create a new toolbar. + """ + name, ok = QInputDialog.getText(\ + self, + self.trUtf8("New Toolbar"), + self.trUtf8("Toolbar Name:"), + QLineEdit.Normal) + if ok and name: + if self.toolbarComboBox.findText(name) != -1: + # toolbar with this name already exists + QMessageBox.critical(self, + self.trUtf8("New Toolbar"), + self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\ + .format(name), + QMessageBox.StandardButtons(\ + QMessageBox.Abort)) + return + + tbItem = E5ToolBarItem(None, [], False) + tbItem.title = name + tbItem.isChanged = True + self.__toolbarItems[id(tbItem)] = tbItem + self.__toolBarItemToWidgetActionID[id(tbItem)] = [] + self.toolbarComboBox.addItem(name, int(id(tbItem))) + self.toolbarComboBox.model().sort(0) + self.toolbarComboBox.setCurrentIndex(self.toolbarComboBox.findText(name)) + + @pyqtSlot() + def on_removeButton_clicked(self): + """ + Private slot to remove a custom toolbar + """ + name = self.toolbarComboBox.currentText() + res = QMessageBox.question(self, + self.trUtf8("Remove Toolbar"), + self.trUtf8("""Should the toolbar <b>{0}</b> really be removed?""")\ + .format(name), + QMessageBox.StandardButtons(\ + QMessageBox.No | \ + QMessageBox.Yes), + QMessageBox.No) + if res == QMessageBox.Yes: + index = self.toolbarComboBox.currentIndex() + tbItemID = self.toolbarComboBox.itemData(index) + tbItem = self.__toolbarItems[tbItemID] + if tbItem.toolBarId is not None and \ + tbItem.toolBarId not in self.__removedToolBarIDs: + self.__removedToolBarIDs.append(tbItem.toolBarId) + del self.__toolbarItems[tbItemID] + for widgetActionID in self.__toolBarItemToWidgetActionID[tbItemID]: + self.__widgetActionToToolBarItemID[widgetActionID] = None + del self.__toolBarItemToWidgetActionID[tbItemID] + self.toolbarComboBox.removeItem(index) + + @pyqtSlot() + def on_renameButton_clicked(self): + """ + Private slot to rename a custom toolbar. + """ + oldName = self.toolbarComboBox.currentText() + newName, ok = QInputDialog.getText(\ + self, + self.trUtf8("Rename Toolbar"), + self.trUtf8("New Toolbar Name:"), + QLineEdit.Normal, + oldName) + if ok and newName: + if oldName == newName: + return + if self.toolbarComboBox.findText(newName) != -1: + # toolbar with this name already exists + QMessageBox.critical(self, + self.trUtf8("Rename Toolbar"), + self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\ + .format(newName), + QMessageBox.StandardButtons(\ + QMessageBox.Abort)) + return + index = self.toolbarComboBox.currentIndex() + self.toolbarComboBox.setItemText(index, newName) + tbItem = \ + self.__toolbarItems[self.toolbarComboBox.itemData(index)] + tbItem.title = newName + tbItem.isChanged = True + + def __setupButtons(self): + """ + Private slot to set the buttons state. + """ + index = self.toolbarComboBox.currentIndex() + if index > -1: + itemID = self.toolbarComboBox.itemData(index) + self.__currentToolBarItem = self.__toolbarItems[itemID] + self.renameButton.setEnabled(not self.__currentToolBarItem.isDefault) + self.removeButton.setEnabled(not self.__currentToolBarItem.isDefault) + self.__restoreDefaultsButton.setEnabled(self.__currentToolBarItem.isDefault) + self.__resetButton.setEnabled(self.__currentToolBarItem.toolBarId is not None) + + row = self.toolbarActionsList.currentRow() + self.upButton.setEnabled(row > 0) + self.downButton.setEnabled(row < self.toolbarActionsList.count() - 1) + self.leftButton.setEnabled(self.toolbarActionsList.count() > 0) + rightEnable = self.actionsTree.currentItem().parent() is not None or \ + self.actionsTree.currentItem().text(0) == self.__separatorText + self.rightButton.setEnabled(rightEnable) + + @pyqtSlot(int) + def __toolbarComboBox_currentIndexChanged(self, index): + """ + Private slot called upon a selection of the current toolbar. + + @param index index of the new current toolbar (integer) + """ + itemID = self.toolbarComboBox.itemData(index) + self.__currentToolBarItem = self.__toolbarItems[itemID] + self.toolbarActionsList.clear() + for actionID in self.__currentToolBarItem.actionIDs: + item = QListWidgetItem(self.toolbarActionsList) + if actionID is None: + item.setText(self.__separatorText) + else: + action = self.__manager.actionById(actionID) + item.setText(action.text()) + item.setIcon(action.icon()) + item.setTextAlignment(Qt.AlignLeft | Qt.AlignVCenter) + item.setData(E5ToolBarDialog.ActionIdRole, int(id(action))) + item.setData(E5ToolBarDialog.WidgetActionRole, False) + if self.__manager.isWidgetAction(action): + item.setData(E5ToolBarDialog.WidgetActionRole, True) + item.setData(Qt.TextColorRole, QColor(Qt.blue)) + self.toolbarActionsList.setCurrentRow(0) + + self.__setupButtons() + + @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) + def on_actionsTree_currentItemChanged(self, current, previous): + """ + Private slot called, when the currently selected action changes. + """ + self.__setupButtons() + + @pyqtSlot(QListWidgetItem, QListWidgetItem) + def on_toolbarActionsList_currentItemChanged(self, current, previous): + """ + Slot documentation goes here. + """ + self.__setupButtons() + + @pyqtSlot() + def on_upButton_clicked(self): + """ + Private slot used to move an action up in the list. + """ + row = self.toolbarActionsList.currentRow() + if row == 0: + # we're already at the top + return + + actionID = self.__currentToolBarItem.actionIDs.pop(row) + self.__currentToolBarItem.actionIDs.insert(row - 1, actionID) + self.__currentToolBarItem.isChanged = True + itm = self.toolbarActionsList.takeItem(row) + self.toolbarActionsList.insertItem(row - 1, itm) + self.toolbarActionsList.setCurrentItem(itm) + self.__setupButtons() + + @pyqtSlot() + def on_downButton_clicked(self): + """ + Private slot used to move an action down in the list. + """ + row = self.toolbarActionsList.currentRow() + if row == self.toolbarActionsList.count() - 1: + # we're already at the end + return + + actionID = self.__currentToolBarItem.actionIDs.pop(row) + self.__currentToolBarItem.actionIDs.insert(row + 1, actionID) + self.__currentToolBarItem.isChanged = True + itm = self.toolbarActionsList.takeItem(row) + self.toolbarActionsList.insertItem(row + 1, itm) + self.toolbarActionsList.setCurrentItem(itm) + self.__setupButtons() + + @pyqtSlot() + def on_leftButton_clicked(self): + """ + Private slot to delete an action from the list. + """ + row = self.toolbarActionsList.currentRow() + actionID = self.__currentToolBarItem.actionIDs.pop(row) + self.__currentToolBarItem.isChanged = True + if actionID in self.__widgetActionToToolBarItemID: + self.__widgetActionToToolBarItemID[actionID] = None + self.__toolBarItemToWidgetActionID[id(self.__currentToolBarItem)]\ + .remove(actionID) + itm = self.toolbarActionsList.takeItem(row) + del itm + self.toolbarActionsList.setCurrentRow(row) + self.__setupButtons() + + @pyqtSlot() + def on_rightButton_clicked(self): + """ + Private slot to add an action to the list. + """ + row = self.toolbarActionsList.currentRow() + 1 + + item = QListWidgetItem() + if self.actionsTree.currentItem().text(0) == self.__separatorText: + item.setText(self.__separatorText) + actionID = None + else: + actionID = self.actionsTree.currentItem()\ + .data(0, E5ToolBarDialog.ActionIdRole) + action = self.__manager.actionById(actionID) + item.setText(action.text()) + item.setIcon(action.icon()) + item.setTextAlignment(Qt.AlignLeft | Qt.AlignVCenter) + item.setData(E5ToolBarDialog.ActionIdRole, int(id(action))) + item.setData(E5ToolBarDialog.WidgetActionRole, False) + if self.__manager.isWidgetAction(action): + item.setData(E5ToolBarDialog.WidgetActionRole, True) + item.setData(Qt.TextColorRole, QColor(Qt.blue)) + oldTbItemID = self.__widgetActionToToolBarItemID[actionID] + if oldTbItemID is not None: + self.__toolbarItems[oldTbItemID].actionIDs.remove(actionID) + self.__toolbarItems[oldTbItemID].isChanged = True + self.__toolBarItemToWidgetActionID[oldTbItemID].remove(actionID) + self.__widgetActionToToolBarItemID[actionID] = \ + id(self.__currentToolBarItem) + self.__toolBarItemToWidgetActionID[id(self.__currentToolBarItem)]\ + .append(actionID) + self.toolbarActionsList.insertItem(row, item) + self.__currentToolBarItem.actionIDs.insert(row, actionID) + self.__currentToolBarItem.isChanged = True + self.toolbarActionsList.setCurrentRow(row) + self.__setupButtons() + + @pyqtSlot(QAbstractButton) + def on_buttonBox_clicked(self, button): + """ + Private slot called, when a button of the button box was clicked. + """ + if button == self.buttonBox.button(QDialogButtonBox.Cancel): + self.reject() + elif button == self.buttonBox.button(QDialogButtonBox.Apply): + self.__saveToolBars() + self.__setupButtons() + elif button == self.buttonBox.button(QDialogButtonBox.Ok): + self.__saveToolBars() + self.accept() + elif button == self.buttonBox.button(QDialogButtonBox.Reset): + self.__resetCurrentToolbar() + self.__setupButtons() + elif button == self.buttonBox.button(QDialogButtonBox.RestoreDefaults): + self.__restoreCurrentToolbarToDefault() + self.__setupButtons() + + def __saveToolBars(self): + """ + Private method to save the configured toolbars. + """ + # step 1: remove toolbars marked for deletion + for tbID in self.__removedToolBarIDs: + tb = self.__manager.toolBarById(tbID) + self.__manager.deleteToolBar(tb) + self.__removedToolBarIDs = [] + + # step 2: save configured toolbars + for tbItem in list(self.__toolbarItems.values()): + if not tbItem.isChanged: + continue + + if tbItem.toolBarId is None: + # new custom toolbar + tb = self.__manager.createToolBar(tbItem.title) + tbItem.toolBarId = id(tb) + else: + tb = self.__manager.toolBarById(tbItem.toolBarId) + if not tbItem.isDefault and tbItem.title: + self.__manager.renameToolBar(tb, tbItem.title) + + actions = [] + for actionID in tbItem.actionIDs: + if actionID is None: + actions.append(None) + else: + action = self.__manager.actionById(actionID) + if action is None: + raise RuntimeError("No such action, id: 0x%x" % actionID) + actions.append(action) + self.__manager.setToolBar(tb, actions) + tbItem.isChanged = False + + def __restoreCurrentToolbar(self, actions): + """ + Private methdo to restore the current toolbar to the given list of actions. + + @param actions list of actions to set for the current toolbar (list of QAction) + """ + tbItemID = id(self.__currentToolBarItem) + for widgetActionID in self.__toolBarItemToWidgetActionID[tbItemID]: + self.__widgetActionToToolBarItemID[widgetActionID] = None + self.__toolBarItemToWidgetActionID[tbItemID] = [] + self.__currentToolBarItem.actionIDs = [] + + for action in actions: + if action is None: + self.__currentToolBarItem.actionIDs.append(None) + else: + actionID = id(action) + self.__currentToolBarItem.actionIDs.append(actionID) + if actionID in self.__widgetActionToToolBarItemID: + oldTbItemID = self.__widgetActionToToolBarItemID[actionID] + if oldTbItemID is not None: + self.__toolbarItems[oldTbItemID].actionIDs.remove(actionID) + self.__toolbarItems[oldTbItemID].isChanged = True + self.__toolBarItemToWidgetActionID[oldTbItemID].remove(actionID) + self.__widgetActionToToolBarItemID[actionID] = tbItemID + self.__toolBarItemToWidgetActionID[tbItemID].append(actionID) + self.__toolbarComboBox_currentIndexChanged(self.toolbarComboBox.currentIndex()) + + def __resetCurrentToolbar(self): + """ + Private method to revert all changes made to the current toolbar. + """ + tbID = self.__currentToolBarItem.toolBarId + actions = self.__manager.toolBarActions(tbID) + self.__restoreCurrentToolbar(actions) + self.__currentToolBarItem.isChanged = False + + def __restoreCurrentToolbarToDefault(self): + """ + Private method to set the current toolbar to it's default configuration. + """ + if not self.__currentToolBarItem.isDefault: + return + + tbID = self.__currentToolBarItem.toolBarId + actions = self.__manager.defaultToolBarActions(tbID) + self.__restoreCurrentToolbar(actions) + self.__currentToolBarItem.isChanged = True \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ToolBarDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,230 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>E5ToolBarDialog</class> + <widget class="QDialog" name="E5ToolBarDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>600</width> + <height>500</height> + </rect> + </property> + <property name="windowTitle"> + <string>Configure Toolbars</string> + </property> + <property name="sizeGripEnabled"> + <bool>true</bool> + </property> + <layout class="QVBoxLayout"> + <item> + <layout class="QHBoxLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>&Toolbar:</string> + </property> + <property name="buddy"> + <cstring>toolbarComboBox</cstring> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="toolbarComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Select the toolbar to configure</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="newButton"> + <property name="toolTip"> + <string>Press to create a new toolbar</string> + </property> + <property name="text"> + <string>&New</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="removeButton"> + <property name="toolTip"> + <string>Press to remove the selected toolbar</string> + </property> + <property name="text"> + <string>&Remove</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="renameButton"> + <property name="toolTip"> + <string>Press to rename the selected toolbar</string> + </property> + <property name="text"> + <string>R&ename</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <layout class="QGridLayout"> + <item row="0" column="0"> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Actions:</string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Current Toolbar Actions:</string> + </property> + </widget> + </item> + <item row="1" column="0" rowspan="3"> + <widget class="QTreeWidget" name="actionsTree"> + <property name="toolTip"> + <string>Select the action to add to the current toolbar</string> + </property> + <property name="alternatingRowColors"> + <bool>true</bool> + </property> + <property name="rootIsDecorated"> + <bool>false</bool> + </property> + <column> + <property name="text"> + <string/> + </property> + </column> + </widget> + </item> + <item row="1" column="1"> + <spacer> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="2" rowspan="3"> + <widget class="QListWidget" name="toolbarActionsList"> + <property name="toolTip"> + <string>Select the action to work on</string> + </property> + <property name="whatsThis"> + <string><b>Current Toolbar Actions</b><p>This list shows the actions of the selected toolbar. Select an action and use the up or down button to change the order of actions or the left button to delete it. To add an action to the toolbar, select it in the list of available actions and press the right button.</p></string> + </property> + </widget> + </item> + <item row="2" column="1"> + <layout class="QGridLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item row="0" column="1"> + <widget class="QToolButton" name="upButton"> + <property name="toolTip"> + <string>Press to move the selected action up.</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QToolButton" name="leftButton"> + <property name="toolTip"> + <string>Press to delete the selected action from the toolbar</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QToolButton" name="rightButton"> + <property name="toolTip"> + <string>Press to add the selected action to the toolbar</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QToolButton" name="downButton"> + <property name="toolTip"> + <string>Press to move the selected action down.</string> + </property> + <property name="text"> + <string/> + </property> + </widget> + </item> + </layout> + </item> + <item row="3" column="1"> + <spacer> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + <item> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Reset|QDialogButtonBox::RestoreDefaults</set> + </property> + </widget> + </item> + </layout> + </widget> + <tabstops> + <tabstop>toolbarComboBox</tabstop> + <tabstop>newButton</tabstop> + <tabstop>removeButton</tabstop> + <tabstop>renameButton</tabstop> + <tabstop>actionsTree</tabstop> + <tabstop>toolbarActionsList</tabstop> + <tabstop>upButton</tabstop> + <tabstop>downButton</tabstop> + <tabstop>rightButton</tabstop> + <tabstop>leftButton</tabstop> + <tabstop>buttonBox</tabstop> + </tabstops> + <resources/> + <connections/> +</ui>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ToolBarManager.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,679 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a toolbar manager class. +""" + +from PyQt4.QtCore import * +from PyQt4.QtGui import * + +class E5ToolBarManager(QObject): + """ + Class implementing a toolbar manager. + """ + VersionMarker = 0xffff + ToolBarMarker = 0xfefe + CustomToolBarMarker = 0xfdfd + + def __init__(self, ui = None, parent = None): + """ + Constructor + + @param ui reference to the user interface object (UI.UserInterface) + @param parent reference to the parent object (QObject) + """ + QObject.__init__(self, parent) + + self.__mainWindow = None + self.__ui = ui + + self.__toolBars = {} # maps toolbar IDs to actions + self.__toolBarsWithSeparators = {} # maps toolbar IDs to actions incl. separators + self.__defaultToolBars = {} # maps default toolbar IDs to actions + self.__customToolBars = [] # list of custom toolbars + self.__allToolBars = {} # maps toolbar IDs to toolbars + + self.__categoryToActions = {} # maps categories to actions + self.__actionToCategory = {} # maps action IDs to categories + self.__allActions = {} # maps action IDs to actions + self.__actionToToolBars = {} # maps action IDs to toolbars + + self.__widgetActions = {} # maps widget action IDs to toolbars + self.__allWidgetActions = {} # maps widget action IDs to widget actions + + ###################################################### + ## Private methods + ###################################################### + + def __toolBarByName(self, name): + """ + Private slot to get a toolbar by it's object name. + + @param name object name of the toolbar (string) + @return reference to the toolbar (QToolBar) + """ + for toolBar in list(self.__allToolBars.values()): + if toolBar.objectName() == name: + return toolBar + return None + + def __findAction(self, name): + """ + Private method to find an action by name. + + @param name name of the action to search for (string) + @return reference to the action (QAction) + """ + # check objectName() first + for action in list(self.__allActions.values()): + if action.objectName() == name: + return action + + # check text() next + for action in list(self.__allActions.values()): + if action.text() == name: + return action + + return None + + def __findDefaultToolBar(self, name): + """ + Private method to find a default toolbar by name. + + @param name name of the default toolbar to search for (string) + @return reference to the default toolbar (QToolBar) + """ + # check objectName() first + for tbID in self.__defaultToolBars: + tb = self.__allToolBars[tbID] + if tb.objectName() == name: + return tb + + # check windowTitle() next + for tbID in self.__defaultToolBars: + tb = self.__allToolBars[tbID] + if tb.windowTitle() == name: + return tb + + return None + + ###################################################### + ## Public methods + ###################################################### + + def setMainWindow(self, mainWindow): + """ + Public method to set the reference to the main window. + + @param mainWindow reference to the main window (QMainWindow) + """ + self.__mainWindow = mainWindow + + def mainWindow(self): + """ + Public method to get the reference to the main window. + + @return reference to the main window (QMainWindow) + """ + return self.__mainWindow + + def addToolBar(self, toolBar, category): + """ + Public method to add a toolbar to be managed. + + @param toolBar reference to the toolbar to be managed (QToolBar) + @param category category for the toolbar (string) + """ + if toolBar is None: + return + if toolBar in self.__toolBars: + return + + newActions = [] + newActionsWithSeparators = [] + actions = toolBar.actions() + for action in actions: + self.addAction(action, category) + if id(action) in self.__widgetActions: + self.__widgetActions[id(action)] = toolBar + newActionsWithSeparators.append(action) + if action.isSeparator(): + action = None + else: + self.__actionToToolBars[id(action)].append(toolBar) + newActions.append(action) + tbID = id(toolBar) + self.__defaultToolBars[tbID] = newActions + self.__toolBars[tbID] = newActions + self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators + self.__allToolBars[tbID] = toolBar + + def removeToolBar(self, toolBar): + """ + Public method to remove a toolbar added with addToolBar(). + + @param toolBar reference to the toolbar to be removed (QToolBar) + """ + if toolBar is None: + return + + tbID = id(toolBar) + + if tbID not in self.__defaultToolBars: + return + + defaultActions = self.__defaultToolBars[tbID][:] + self.setToolBar(toolBar, []) + for action in defaultActions: + self.removeAction(action) + + del self.__defaultToolBars[tbID] + del self.__toolBars[tbID] + del self.__toolBarsWithSeparators[tbID] + del self.__allToolBars[tbID] + + for action in defaultActions: + if action is None: + toolBar.addSeparator() + else: + toolBar.addAction(action) + + def setToolBars(self, toolBars): + """ + Public method to set the actions of several toolbars. + + @param toolBars dictionary with toolbar id as key and + a list of actions as value + """ + for key, actions in list(toolBars.items()): + tb = self.__allToolBars[key] + self.setToolBar(tb, actions) + + def setToolBar(self, toolBar, actions): + """ + Public method to set the actions of a toolbar. + + @param toolBar reference to the toolbar to configure (QToolBar) + @param actions list of actions to be set (list of QAction) + """ + if toolBar is None: + return + + tbID = id(toolBar) + if tbID not in self.__toolBars: + return + if self.__toolBars[tbID] == actions: + return + + # step 1: check list of actions + toRemove = {} + newActions = [] + for action in actions: + if action is None or \ + (action not in newActions and id(action) in self.__allActions): + newActions.append(action) + oldTB = self.toolBarWidgetAction(action) + if oldTB is not None and oldTB != toolBar: + if id(oldTB) not in toRemove: + toRemove[id(oldTB)] = [] + toRemove[id(oldTB)].append(action) + self.removeWidgetActions(toRemove) + + # step 2: remove all toolbar actions + for action in self.__toolBarsWithSeparators[tbID]: + if self.toolBarWidgetAction(action) == tbID: + self.__widgetActions[id(action)] = None + toolBar.removeAction(action) + if action.isSeparator(): + del action + else: + self.__actionToToolBars[id(action)].remove(toolBar) + + # step 3: set the actions as requested + newActionsWithSeparators = [] + for action in newActions: + newAction = None + if action is None: + newAction = toolBar.addSeparator() + elif id(action) in self.__allActions: + toolBar.addAction(action) + newAction = action + self.__actionToToolBars[id(action)].append(toolBar) + if id(action) in self.__widgetActions: + self.__widgetActions[id(action)] = toolBar + else: + continue + newActionsWithSeparators.append(newAction) + + if toolBar.isVisible(): + toolBar.hide() + toolBar.show() + self.__toolBars[tbID] = newActions + self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators + + def resetToolBar(self, toolBar): + """ + Public method to reset a toolbar to it's default state. + + @param toolBar reference to the toolbar to configure (QToolBar) + """ + if not isDefaultToolBar(): + return + self.setToolBar(toolBar, self.__defaultToolBars[id(toolBar)]) + + def resetAllToolBars(self): + """ + Public method to reset all toolbars to their default state. + """ + self.setToolBars(self.__defaultToolBars) + for toolBar in self.__customToolBars[:]: + self.deleteToolBar(toolBar) + + def defaultToolBars(self): + """ + Public method to get all toolbars added with addToolBar(). + + @return list of all default toolbars (list of QToolBar) + """ + return list(self.__defaultToolBars.values()) + + def isDefaultToolBar(self, toolBar): + """ + Public method to check, if a toolbar was added with addToolBar(). + + @param toolBar reference to the toolbar to be checked (QToolBar) + """ + return toolBar is not None and \ + id(toolBar) in self.__defaultToolBars + + def createToolBar(self, title): + """ + Public method to create a custom toolbar. + + @param title title to be used for the toolbar (string) + @return reference to the created toolbar (QToolBar) + """ + if self.__mainWindow is None: + return None + + toolBar = QToolBar(title, self.__mainWindow) + toolBar.setToolTip(title) + index = 1 + customPrefix = "__CustomPrefix__" + name = "%s%d" % (customPrefix, index) + while self.__toolBarByName(name) is not None: + index += 1 + name = "%s%d" % (customPrefix, index) + toolBar.setObjectName(name) + self.__mainWindow.addToolBar(toolBar) + + tbID = id(toolBar) + self.__customToolBars.append(toolBar) + self.__allToolBars[tbID] = toolBar + self.__toolBars[tbID] = [] + self.__toolBarsWithSeparators[tbID] = [] + + if self.__ui is not None: + toolBar.setIconSize(self.__ui.getToolBarIconSize()) + self.__ui.registerToolbar(name, title, toolBar) + + return toolBar + + def deleteToolBar(self, toolBar): + """ + Public method to remove a custom toolbar created with createToolBar(). + + @param toolBar reference to the toolbar to be managed (QToolBar) + """ + if toolBar is None: + return + + tbID = id(toolBar) + if tbID not in self.__toolBars: + return + if tbID in self.__defaultToolBars: + return + + if self.__ui is not None: + self.__ui.unregisterToolbar(toolBar.objectName()) + + self.setToolBar(toolBar, []) + + del self.__allToolBars[tbID] + del self.__toolBars[tbID] + del self.__toolBarsWithSeparators[tbID] + self.__customToolBars.remove(toolBar) + self.__mainWindow.removeToolBar(toolBar) + del toolBar + + def renameToolBar(self, toolBar, title): + """ + Public method to give a toolbar a new title. + + @param toolBar reference to the toolbar to be managed (QToolBar) + @param title title to be used for the toolbar (string) + """ + if toolBar is None: + return + + toolBar.setWindowTitle(title) + + if self.__ui is not None: + self.__ui.reregisterToolbar(toolBar.objectName(), title) + + def toolBars(self): + """ + Public method to get all toolbars. + + @return list of all toolbars (list of QToolBar) + """ + return list(self.__allToolBars.values()) + + def addAction(self, action, category): + """ + Public method to add an action to be managed. + + @param action reference to the action to be managed (QAction) + @param category category for the toolbar (string) + """ + if action is None: + return + if action.isSeparator(): + return + if action in self.__allActions: + return + + if action.metaObject().className() == "QWidgetAction": + self.__widgetActions[id(action)] = None + self.__allWidgetActions[id(action)] = action + self.__allActions[id(action)] = action + if category not in self.__categoryToActions: + self.__categoryToActions[category] = [] + self.__categoryToActions[category].append(action) + self.__actionToCategory[id(action)] = category + self.__actionToToolBars[id(action)] = [] + + def removeAction(self, action): + """ + Public method to remove an action from the manager. + + @param action reference to the action to be removed (QAction) + """ + aID = id(action) + + if aID not in self.__allActions: + return + + toolBars = self.__actionToToolBars[aID] + for toolBar in toolBars: + tbID = id(toolBar) + self.__toolBars[tbID].remove(action) + self.__toolBarsWithSeparators[tbID].remove(action) + toolBar.removeAction(action) + if toolBar.isVisible(): + toolBar.hide() + toolBar.show() + + for tbID in self.__defaultToolBars: + if action in self.__defaultToolBars[tbID]: + self.__defaultToolBars[tbID].remove(action) + + del self.__allActions[aID] + if aID in self.__widgetActions: + del self.__widgetActions[aID] + del self.__allWidgetActions[aID] + del self.__actionToCategory[aID] + del self.__actionToToolBars[aID] + + for category in self.__categoryToActions: + if action in self.__categoryToActions[category]: + self.__categoryToActions[category].remove(action) + + def saveState(self, version = 0): + """ + Public method to save the state of the toolbar manager. + + @param version version number stored with the data (integer) + @return saved state as a byte array (QByteArray) + """ + data = QByteArray() + stream = QDataStream(data, QIODevice.WriteOnly) + stream.writeUInt16(E5ToolBarManager.VersionMarker) + stream.writeUInt16(version) + + # save default toolbars + stream.writeUInt16(E5ToolBarManager.ToolBarMarker) + stream.writeUInt16(len(self.__defaultToolBars)) + for tbID in self.__defaultToolBars: + tb = self.__allToolBars[tbID] + if tb.objectName(): + stream.writeString(tb.objectName().encode()) + else: + stream.writeString(tb.windowTitle().encode()) + stream.writeUInt16(len(self.__toolBars[tbID])) + for action in self.__toolBars[tbID]: + if action is not None: + if action.objectName(): + stream.writeString(action.objectName().encode()) + else: + stream.writeString(action.text().encode()) + else: + stream.writeString("".encode()) + + # save the custom toolbars + stream.writeUInt16(E5ToolBarManager.CustomToolBarMarker) + stream.writeUInt16(len(self.__toolBars) - len(self.__defaultToolBars)) + for tbID in self.__toolBars: + if tbID not in self.__defaultToolBars: + tb = self.__allToolBars[tbID] + stream.writeString(tb.objectName().encode()) + stream.writeString(tb.windowTitle().encode()) + stream.writeUInt16(len(self.__toolBars[tbID])) + for action in self.__toolBars[tbID]: + if action is not None: + if action.objectName(): + stream.writeString(action.objectName().encode()) + else: + stream.writeString(action.text().encode()) + else: + stream.writeString("".encode()) + + return data + + def restoreState(self, state, version = 0): + """ + Public method to restore the state of the toolbar manager. + + @param state byte array containing the saved state (QByteArray) + @param version version number stored with the data (integer) + @return flag indicating success (boolean) + """ + if state.isEmpty(): + return False + + data = QByteArray(state) + stream = QDataStream(data, QIODevice.ReadOnly) + marker = stream.readUInt16() + vers = stream.readUInt16() + if marker != E5ToolBarManager.VersionMarker or vers != version: + return False + + tmarker = stream.readUInt16() + if tmarker != E5ToolBarManager.ToolBarMarker: + return False + + toolBarCount = stream.readUInt16() + for i in range(toolBarCount): + objectName = stream.readString().decode() + actionCount = stream.readUInt16() + actions = [] + for j in range(actionCount): + actionName = stream.readString().decode() + if actionName: + action = self.__findAction(actionName) + if action is not None: + actions.append(action) + else: + actions.append(None) + toolBar = self.__findDefaultToolBar(objectName) + if toolBar is not None: + self.setToolBar(toolBar, actions) + + cmarker = stream.readUInt16() + if cmarker != E5ToolBarManager.CustomToolBarMarker: + return False + + oldCustomToolBars = self.__customToolBars[:] + + toolBarCount = stream.readUInt16() + for i in range(toolBarCount): + objectName = stream.readString().decode() + toolBarTitle = stream.readString().decode() + actionCount = stream.readUInt16() + actions = [] + for j in range(actionCount): + actionName = stream.readString().decode() + if actionName: + action = self.__findAction(actionName) + if action is not None: + actions.append(action) + else: + actions.append(None) + toolBar = self.__toolBarByName(objectName) + if toolBar is not None: + toolBar.setWindowTitle(toolBarTitle) + oldCustomToolBars.remove(toolBar) + else: + toolBar = self.createToolBar(toolBarTitle) + if toolBar is not None: + toolBar.setObjectName(objectName) + self.setToolBar(toolBar, actions) + + for tb in oldCustomToolBars: + self.deleteToolBar(tb) + + return True + + def toolBarWidgetAction(self, action): + """ + Public method to get the toolbar for a widget action. + + @param action widget action to check for (QAction) + @return reference to the toolbar containing action (QToolBar) + """ + aID = id(action) + if aID in self.__widgetActions: + return self.__widgetActions[aID] + return None + + def removeWidgetActions(self, actions): + """ + Public method to remove widget actions. + + @param actions dictionary with toolbar id as key and + a list of widget actions as value + """ + for tbID in list(actions.keys())[:]: + toolBar = self.__allToolBars[tbID] + newActions = self.__toolBars[tbID][:] + newActionsWithSeparators = self.__toolBarsWithSeparators[tbID][:] + + removedActions = [] + for action in actions[tbID]: + if action in newActions and self.toolBarWidgetAction(action) == toolBar: + newActions.remove(action) + newActionsWithSeparators.remove(action) + removedActions.append(action) + + self.__toolBars[tbID] = newActions + self.__toolBarsWithSeparators[tbID] = newActionsWithSeparators + + for action in removedActions: + self.__widgetActions[id(action)] = None + self.__actionToToolBars[id(action)].remove(toolBar) + toolBar.removeAction(action) + + def isWidgetAction(self, action): + """ + Public method to check, if action is a widget action. + + @param action reference to the action to be checked (QAction) + @return flag indicating a widget action (boolean) + """ + return id(action) in self.__allWidgetActions + + def categories(self): + """ + Public method to get the list of categories. + + @return list of categories (list of string) + """ + return list(self.__categoryToActions.keys()) + + def categoryActions(self, category): + """ + Public method to get the actions belonging to a category. + + @param category category for the toolbar (string) + @return list of actions (list of QAction) + """ + if category not in self.__categoryToActions: + return [] + + return self.__categoryToActions[category][:] + + def actionById(self, aID): + """ + Public method to get an action given it's id. + + @param aID id of the action object (integer) + @return reference to the action (QAction) + """ + if aID not in self.__allActions: + return None + return self.__allActions[aID] + + def toolBarById(self, tbID): + """ + Public method to get a toolbar given it's id. + + @param tbID id of the toolbar object (integer) + @return reference to the toolbar (QToolBar) + """ + if tbID not in self.__allToolBars: + return None + return self.__allToolBars[tbID] + + def toolBarActions(self, tbID): + """ + Public method to get a toolbar's actions given it's id. + + @param tbID id of the toolbar object (integer) + @return list of actions (list of QAction) + """ + if tbID not in self.__toolBars: + return [] + return self.__toolBars[tbID][:] + + def toolBarsActions(self): + """ + Public method to get all toolbars and their actions. + + @return reference to dictionary of toolbar IDs as key and list + of actions as values + """ + return self.__toolBars + + def defaultToolBarActions(self, tbID): + """ + Public method to get a default toolbar's actions given it's id. + + @param tbID id of the default toolbar object (integer) + @return list of actions (list of QAction) + """ + if tbID not in self.__defaultToolBars: + return [] + return self.__defaultToolBars[tbID][:] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5ToolBox.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,102 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2008 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a horizontal and a vertical toolbox class. +""" + +from PyQt4.QtGui import QToolBox, QTabWidget + +from .E5TabWidget import E5TabWidget + +class E5VerticalToolBox(QToolBox): + """ + Class implementing a ToolBox class substituting QToolBox to support wheel events. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + QToolBox.__init__(self, parent) + + def wheelEvent(self, event): + """ + Protected slot to support wheel events. + + @param reference to the wheel event (QWheelEvent) + """ + index = self.currentIndex() + if event.delta() > 0: + index -= 1 + else: + index += 1 + if index < 0: + index = self.count() - 1 + elif index == self.count(): + index = 0 + + self.setCurrentIndex(index) + + event.accept() + +class E5HorizontalToolBox(E5TabWidget): + """ + Class implementing a vertical QToolBox like widget. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent widget (QWidget) + """ + E5TabWidget.__init__(self, parent) + self.setTabPosition(QTabWidget.West) + + def addItem(self, widget, icon, text): + """ + Public method to add a widget to the toolbox. + + @param widget reference to the widget to be added (QWidget) + @param icon the icon to be shown (QIcon) + @param text the text to be shown (string) + @return index of the added widget (integer) + """ + index = self.addTab(widget, icon, "") + self.setTabToolTip(index, text) + return index + + def insertItem(self, index, widget, icon, text): + """ + Public method to add a widget to the toolbox. + + @param index position at which the widget should be inserted (integer) + @param widget reference to the widget to be added (QWidget) + @param icon the icon to be shown (QIcon) + @param text the text to be shown (string) + @return index of the added widget (integer) + """ + index = self.insertTab(index, widget, icon, "") + self.setTabToolTip(index, text) + return index + + def setItemToolTip(self, index, toolTip): + """ + Public method to set the tooltip of an item. + + @param index index of the item (integer) + @param toolTip tooltip text to be set (string) + """ + self.setTabToolTip(index, toolTip) + + def setItemEnabled(self, index, enabled): + """ + Public method to set the enabled state of an item. + + @param index index of the item (integer) + @param enabled flag indicating the enabled state (boolean) + """ + self.setTabEnabled(index, enabled) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5TreeSortFilterProxyModel.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing a modified QSortFilterProxyModel. +""" + +from PyQt4.QtCore import Qt, QModelIndex +from PyQt4.QtGui import QSortFilterProxyModel + +class E5TreeSortFilterProxyModel(QSortFilterProxyModel): + """ + Class implementing a modified QSortFilterProxyModel. + + It always accepts the root nodes in the tree so filtering is only done + on the children. + """ + def __init__(self, parent = None): + """ + Constructor + + @param parent reference to the parent object (QObject) + """ + QSortFilterProxyModel.__init__(self, parent) + + self.setFilterCaseSensitivity(Qt.CaseInsensitive) + + def filterAcceptsRow(self, sourceRow, sourceParent): + """ + Protected method to determine, if the row is acceptable. + + @param sourceRow row number in the source model (integer) + @param sourceParent index of the source item (QModelIndex) + @return flag indicating acceptance (boolean) + """ + idx = self.sourceModel().index(sourceRow, 0, sourceParent) + if self.sourceModel().hasChildren(idx): + return True + + return QSortFilterProxyModel.filterAcceptsRow(self, sourceRow, sourceParent) + + def hasChildren(self, parent = QModelIndex()): + """ + Public method to check, if a parent node has some children. + + @param parent index of the parent node (QModelIndex) + @return flag indicating the presence of children (boolean) + """ + sindex = self.mapToSource(parent) + return self.sourceModel().hasChildren(sindex) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/E5TreeView.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2009 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Module implementing specialized tree views. +""" + +from PyQt4.QtCore import Qt +from PyQt4.QtGui import QTreeView, QItemSelectionModel + +class E5TreeView(QTreeView): + """ + Class implementing a tree view supporting removal of entries. + """ + def keyPressEvent(self, evt): + """ + Protected method implementing special key handling. + + @param evt reference to the event (QKeyEvent) + """ + if evt.key() in [Qt.Key_Delete, Qt.Key_Backspace] and \ + self.model() is not None: + self.removeSelected() + evt.setAccepted(True) + else: + QTreeView.keyPressEvent(self, evt) + + def removeSelected(self): + """ + Public method to remove the selected entries. + """ + if self.model() is None or \ + self.selectionModel() is None or \ + not self.selectionModel().hasSelection(): + # no models available or nothing selected + return + + selectedRows = self.selectionModel().selectedRows() + for idx in reversed(sorted(selectedRows)): + self.model().removeRow(idx.row(), idx.parent()) + + def removeAll(self): + """ + Public method to clear the view. + """ + if self.model() is not None: + self.model().removeRows(0, self.model().rowCount(self.rootIndex()), + self.rootIndex()) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/E5Gui/__init__.py Wed Jan 13 18:53:58 2010 +0000 @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- + +# Copyright (c) 2006 - 2010 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Package implementing some special GUI elements. + +They extend or ammend the standard elements as found in QtGui. +"""
--- a/E5Network/E5NetworkMonitor.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/E5Network/E5NetworkMonitor.ui Wed Jan 13 18:53:58 2010 +0000 @@ -63,7 +63,7 @@ </layout> </item> <item> - <widget class="E4TableView" name="requestsList"> + <widget class="E5TableView" name="requestsList"> <property name="alternatingRowColors"> <bool>true</bool> </property> @@ -184,9 +184,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TableView</class> + <class>E5TableView</class> <extends>QTableView</extends> - <header>E4Gui/E4TableView.h</header> + <header>E5Gui/E5TableView.h</header> </customwidget> </customwidgets> <tabstops> @@ -250,4 +250,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/E5XML/DebuggerPropertiesWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/DebuggerPropertiesWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import debuggerPropertiesFileFormatVersion
--- a/E5XML/HighlightingStylesWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/HighlightingStylesWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import highlightingStylesFileFormatVersion
--- a/E5XML/MultiProjectWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/MultiProjectWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import multiProjectFileFormatVersion
--- a/E5XML/ProjectWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/ProjectWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import projectFileFormatVersion
--- a/E5XML/SessionHandler.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/SessionHandler.py Wed Jan 13 18:53:58 2010 +0000 @@ -7,7 +7,7 @@ Module implementing the handler class for reading an XML project session file. """ -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Config import sessionFileFormatVersion from .XMLHandlerBase import XMLHandlerBase
--- a/E5XML/SessionWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/SessionWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import sessionFileFormatVersion
--- a/E5XML/ShortcutsWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/ShortcutsWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -9,7 +9,7 @@ import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import shortcutsFileFormatVersion
--- a/E5XML/TasksHandler.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/TasksHandler.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Config import tasksFileFormatVersion from .XMLHandlerBase import XMLHandlerBase
--- a/E5XML/TasksWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/TasksWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import tasksFileFormatVersion
--- a/E5XML/TemplatesHandler.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/TemplatesHandler.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ import os import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Config import templatesFileFormatVersion from .XMLHandlerBase import XMLHandlerBase
--- a/E5XML/UserProjectWriter.py Tue Jan 12 18:39:15 2010 +0000 +++ b/E5XML/UserProjectWriter.py Wed Jan 13 18:53:58 2010 +0000 @@ -9,7 +9,7 @@ import time -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .XMLWriterBase import XMLWriterBase from .Config import userProjectFileFormatVersion
--- a/Helpviewer/AdBlock/AdBlockDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/AdBlock/AdBlockDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4TreeSortFilterProxyModel import E4TreeSortFilterProxyModel +from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel import Helpviewer.HelpWindow @@ -35,7 +35,7 @@ self.clearButton.setIcon(UI.PixmapCache.getIcon("clearLeft.png")) self.__adBlockModel = AdBlockModel(self) - self.__proxyModel = E4TreeSortFilterProxyModel(self) + self.__proxyModel = E5TreeSortFilterProxyModel(self) self.__proxyModel.setSourceModel(self.__adBlockModel) self.subscriptionsTree.setModel(self.__proxyModel) @@ -152,4 +152,4 @@ idx = idx.parent() subscription = self.__adBlockModel.subscription(idx) manager = Helpviewer.HelpWindow.HelpWindow.adblockManager() - manager.removeSubscription(subscription) + manager.removeSubscription(subscription) \ No newline at end of file
--- a/Helpviewer/AdBlock/AdBlockDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/AdBlock/AdBlockDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -68,7 +68,7 @@ </layout> </item> <item> - <widget class="E4TreeView" name="subscriptionsTree"> + <widget class="E5TreeView" name="subscriptionsTree"> <property name="dragDropMode"> <enum>QAbstractItemView::InternalMove</enum> </property> @@ -127,9 +127,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TreeView</class> + <class>E5TreeView</class> <extends>QTreeView</extends> - <header>E4Gui/E4TreeView</header> + <header>E5Gui/E5TreeView</header> </customwidget> </customwidgets> <tabstops> @@ -191,4 +191,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/Bookmarks/AddBookmarkDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Bookmarks/AddBookmarkDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -36,14 +36,14 @@ </widget> </item> <item> - <widget class="E4LineEdit" name="nameEdit" > + <widget class="E5LineEdit" name="nameEdit" > <property name="toolTip" > <string>Enter the name</string> </property> </widget> </item> <item> - <widget class="E4LineEdit" name="addressEdit" > + <widget class="E5LineEdit" name="addressEdit" > <property name="toolTip" > <string>Enter the address</string> </property> @@ -79,9 +79,9 @@ </widget> <customwidgets> <customwidget> - <class>E4LineEdit</class> + <class>E5LineEdit</class> <extends>QLineEdit</extends> - <header>E4Gui/E4LineEdit.h</header> + <header>E5Gui/E5LineEdit.h</header> </customwidget> </customwidgets> <tabstops> @@ -125,4 +125,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/Bookmarks/BookmarksDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Bookmarks/BookmarksDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4TreeSortFilterProxyModel import E4TreeSortFilterProxyModel +from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel import Helpviewer.HelpWindow from .BookmarkNode import BookmarkNode @@ -45,7 +45,7 @@ self.__bookmarksManager = Helpviewer.HelpWindow.HelpWindow.bookmarksManager() self.__bookmarksModel = self.__bookmarksManager.bookmarksModel() - self.__proxyModel = E4TreeSortFilterProxyModel(self) + self.__proxyModel = E5TreeSortFilterProxyModel(self) self.__proxyModel.setFilterKeyColumn(-1) self.__proxyModel.setSourceModel(self.__bookmarksModel) @@ -237,4 +237,4 @@ parent = self.__bookmarksModel.node(idx) node = BookmarkNode(BookmarkNode.Folder) node.title = self.trUtf8("New Folder") - self.__bookmarksManager.addBookmark(parent, node, row) + self.__bookmarksManager.addBookmark(parent, node, row) \ No newline at end of file
--- a/Helpviewer/Bookmarks/BookmarksDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Bookmarks/BookmarksDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -59,7 +59,7 @@ </layout> </item> <item> - <widget class="E4TreeView" name="bookmarksTree"> + <widget class="E5TreeView" name="bookmarksTree"> <property name="dragDropMode"> <enum>QAbstractItemView::InternalMove</enum> </property> @@ -128,9 +128,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TreeView</class> + <class>E5TreeView</class> <extends>QTreeView</extends> - <header>E4Gui/E4TreeView</header> + <header>E5Gui/E5TreeView</header> </customwidget> </customwidgets> <tabstops> @@ -192,4 +192,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/Bookmarks/BookmarksMenu.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Bookmarks/BookmarksMenu.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,14 +10,14 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4ModelMenu import E4ModelMenu +from E5Gui.E5ModelMenu import E5ModelMenu import Helpviewer.HelpWindow from .BookmarksModel import BookmarksModel from .BookmarkNode import BookmarkNode -class BookmarksMenu(E4ModelMenu): +class BookmarksMenu(E5ModelMenu): """ Class implementing the bookmarks menu base class. @@ -31,7 +31,7 @@ @param parent reference to the parent widget (QWidget) """ - E4ModelMenu.__init__(self, parent) + E5ModelMenu.__init__(self, parent) self.connect(self, SIGNAL("activated(const QModelIndex&)"), self.__activated) self.setStatusBarTextRole(BookmarksModel.UrlStringRole) @@ -229,4 +229,4 @@ """ self.__initialActions = actions[:] for act in self.__initialActions: - self.addAction(act) + self.addAction(act) \ No newline at end of file
--- a/Helpviewer/Bookmarks/BookmarksToolBar.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Bookmarks/BookmarksToolBar.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4ModelToolBar import E4ModelToolBar +from E5Gui.E5ModelToolBar import E5ModelToolBar import Helpviewer.HelpWindow @@ -21,7 +21,7 @@ import UI.PixmapCache -class BookmarksToolBar(E4ModelToolBar): +class BookmarksToolBar(E5ModelToolBar): """ Class implementing a tool bar showing bookmarks. @@ -36,7 +36,7 @@ @param model reference to the bookmarks model (BookmarksModel) @param parent reference to the parent widget (QWidget) """ - E4ModelToolBar.__init__(self, + E5ModelToolBar.__init__(self, QApplication.translate("BookmarksToolBar", "Bookmarks"), parent) self.__bookmarksModel = model @@ -170,11 +170,11 @@ """ Protected method to create the menu for a tool bar action. - @return menu for a tool bar action (E4ModelMenu) + @return menu for a tool bar action (E5ModelMenu) """ menu = BookmarksMenu(self) self.connect(menu, SIGNAL("openUrl(const QUrl&, const QString&)"), self, SIGNAL("openUrl(const QUrl&, const QString&)")) self.connect(menu, SIGNAL("newUrl(const QUrl&, const QString&)"), self, SIGNAL("newUrl(const QUrl&, const QString&)")) - return menu + return menu \ No newline at end of file
--- a/Helpviewer/CookieJar/CookiesDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/CookieJar/CookiesDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -58,7 +58,7 @@ </layout> </item> <item row="1" column="0" colspan="4" > - <widget class="E4TableView" name="cookiesTable" > + <widget class="E5TableView" name="cookiesTable" > <property name="alternatingRowColors" > <bool>true</bool> </property> @@ -133,9 +133,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TableView</class> + <class>E5TableView</class> <extends>QTableView</extends> - <header>E4Gui/E4TableView.h</header> + <header>E5Gui/E5TableView.h</header> </customwidget> </customwidgets> <tabstops> @@ -198,4 +198,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/CookieJar/CookiesExceptionsDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/CookieJar/CookiesExceptionsDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -151,7 +151,7 @@ </layout> </item> <item row="1" column="0" colspan="3"> - <widget class="E4TableView" name="exceptionsTable"> + <widget class="E5TableView" name="exceptionsTable"> <property name="alternatingRowColors"> <bool>true</bool> </property> @@ -222,9 +222,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TableView</class> + <class>E5TableView</class> <extends>QTableView</extends> - <header>E4Gui/E4TableView.h</header> + <header>E5Gui/E5TableView.h</header> </customwidget> </customwidgets> <tabstops> @@ -290,4 +290,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/HelpWebSearchWidget.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/HelpWebSearchWidget.py Wed Jan 13 18:53:58 2010 +0000 @@ -18,7 +18,7 @@ import Preferences -from E4Gui.E4LineEdit import E4LineEdit +from E5Gui.E5LineEdit import E5LineEdit from .OpenSearch.OpenSearchManager import OpenSearchManager from .OpenSearch.OpenSearchEngineAction import OpenSearchEngineAction @@ -63,7 +63,7 @@ self.__searchButton.setIcon(UI.PixmapCache.getIcon("webSearch.png")) self.__layout.addWidget(self.__searchButton) - self.__searchEdit = E4LineEdit(parent = self) + self.__searchEdit = E5LineEdit(parent = self) self.__layout.addWidget(self.__searchEdit) self.__clearButton = QToolButton(self) @@ -400,4 +400,4 @@ """ osm = HelpWebSearchWidget.openSearchManager() self.__engineButton.setIcon( - QIcon(QPixmap.fromImage(osm.currentEngine().image()))) + QIcon(QPixmap.fromImage(osm.currentEngine().image()))) \ No newline at end of file
--- a/Helpviewer/HelpWindow.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/HelpWindow.py Wed Jan 13 18:53:58 2010 +0000 @@ -42,8 +42,8 @@ from .Network.NetworkAccessManager import NetworkAccessManager from .AdBlock.AdBlockManager import AdBlockManager -from E4Gui.E4TabWidget import E4TabWidget -from E4Gui.E4Action import E4Action +from E5Gui.E5TabWidget import E5TabWidget +from E5Gui.E5Action import E5Action from E5Network.E5NetworkMonitor import E5NetworkMonitor @@ -118,7 +118,7 @@ self.__progressBar = None self.tabContextMenuIndex = -1 - self.tabWidget = E4TabWidget(self, dnd = True) + self.tabWidget = E5TabWidget(self, dnd = True) self.connect(self.tabWidget, SIGNAL('currentChanged(int)'), self.__currentChanged) self.tabWidget.setTabContextMenuPolicy(Qt.CustomContextMenu) @@ -323,7 +323,7 @@ # list of all actions self.__actions = [] - self.newTabAct = E4Action(self.trUtf8('New Tab'), + self.newTabAct = E5Action(self.trUtf8('New Tab'), UI.PixmapCache.getIcon("new.png"), self.trUtf8('&New Tab'), QKeySequence(self.trUtf8("Ctrl+T","File|New Tab")), @@ -336,7 +336,7 @@ self.connect(self.newTabAct, SIGNAL('triggered()'), self.newTab) self.__actions.append(self.newTabAct) - self.newAct = E4Action(self.trUtf8('New Window'), + self.newAct = E5Action(self.trUtf8('New Window'), UI.PixmapCache.getIcon("newWindow.png"), self.trUtf8('New &Window'), QKeySequence(self.trUtf8("Ctrl+N","File|New Window")), @@ -349,7 +349,7 @@ self.connect(self.newAct, SIGNAL('triggered()'), self.newWindow) self.__actions.append(self.newAct) - self.openAct = E4Action(self.trUtf8('Open File'), + self.openAct = E5Action(self.trUtf8('Open File'), UI.PixmapCache.getIcon("open.png"), self.trUtf8('&Open File'), QKeySequence(self.trUtf8("Ctrl+O","File|Open")), @@ -363,7 +363,7 @@ self.connect(self.openAct, SIGNAL('triggered()'), self.__openFile) self.__actions.append(self.openAct) - self.openTabAct = E4Action(self.trUtf8('Open File in New Tab'), + self.openTabAct = E5Action(self.trUtf8('Open File in New Tab'), UI.PixmapCache.getIcon("openNewTab.png"), self.trUtf8('Open File in New &Tab'), QKeySequence(self.trUtf8("Shift+Ctrl+O","File|Open in new tab")), @@ -378,7 +378,7 @@ self.connect(self.openTabAct, SIGNAL('triggered()'), self.__openFileNewTab) self.__actions.append(self.openTabAct) - self.saveAsAct = E4Action(self.trUtf8('Save As '), + self.saveAsAct = E5Action(self.trUtf8('Save As '), UI.PixmapCache.getIcon("fileSaveAs.png"), self.trUtf8('&Save As...'), QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), @@ -393,7 +393,7 @@ self.__actions.append(self.saveAsAct) bookmarksManager = self.bookmarksManager() - self.importBookmarksAct = E4Action(self.trUtf8('Import Bookmarks'), + self.importBookmarksAct = E5Action(self.trUtf8('Import Bookmarks'), self.trUtf8('&Import Bookmarks...'), 0, 0, self, 'help_file_import_bookmarks') self.importBookmarksAct.setStatusTip(\ @@ -406,7 +406,7 @@ bookmarksManager.importBookmarks) self.__actions.append(self.importBookmarksAct) - self.exportBookmarksAct = E4Action(self.trUtf8('Export Bookmarks'), + self.exportBookmarksAct = E5Action(self.trUtf8('Export Bookmarks'), self.trUtf8('&Export Bookmarks...'), 0, 0, self, 'help_file_export_bookmarks') self.exportBookmarksAct.setStatusTip(\ @@ -419,7 +419,7 @@ bookmarksManager.exportBookmarks) self.__actions.append(self.exportBookmarksAct) - self.printAct = E4Action(self.trUtf8('Print'), + self.printAct = E5Action(self.trUtf8('Print'), UI.PixmapCache.getIcon("print.png"), self.trUtf8('&Print'), QKeySequence(self.trUtf8("Ctrl+P","File|Print")), @@ -432,7 +432,7 @@ self.connect(self.printAct, SIGNAL('triggered()'), self.__printFile) self.__actions.append(self.printAct) - self.printPreviewAct = E4Action(self.trUtf8('Print Preview'), + self.printPreviewAct = E5Action(self.trUtf8('Print Preview'), UI.PixmapCache.getIcon("printPreview.png"), self.trUtf8('Print Preview'), 0, 0, self, 'help_file_print_preview') @@ -446,7 +446,7 @@ self.__printPreviewFile) self.__actions.append(self.printPreviewAct) - self.closeAct = E4Action(self.trUtf8('Close'), + self.closeAct = E5Action(self.trUtf8('Close'), UI.PixmapCache.getIcon("close.png"), self.trUtf8('&Close'), QKeySequence(self.trUtf8("Ctrl+W","File|Close")), @@ -459,7 +459,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.__close) self.__actions.append(self.closeAct) - self.closeAllAct = E4Action(self.trUtf8('Close All'), + self.closeAllAct = E5Action(self.trUtf8('Close All'), self.trUtf8('Close &All'), 0, 0, self, 'help_file_close_all') self.closeAllAct.setStatusTip(self.trUtf8('Close all help windows')) @@ -470,7 +470,7 @@ self.connect(self.closeAllAct, SIGNAL('triggered()'), self.__closeAll) self.__actions.append(self.closeAllAct) - self.privateBrowsingAct = E4Action(self.trUtf8('Private Browsing'), + self.privateBrowsingAct = E5Action(self.trUtf8('Private Browsing'), UI.PixmapCache.getIcon("privateBrowsing.png"), self.trUtf8('Private &Browsing'), 0, 0, self, 'help_file_private_browsing') @@ -485,7 +485,7 @@ self.privateBrowsingAct.setCheckable(True) self.__actions.append(self.privateBrowsingAct) - self.exitAct = E4Action(self.trUtf8('Quit'), + self.exitAct = E5Action(self.trUtf8('Quit'), UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), @@ -502,7 +502,7 @@ qApp, SLOT('closeAllWindows()')) self.__actions.append(self.exitAct) - self.backAct = E4Action(self.trUtf8('Backward'), + self.backAct = E5Action(self.trUtf8('Backward'), UI.PixmapCache.getIcon("back.png"), self.trUtf8('&Backward'), QKeySequence(self.trUtf8("Alt+Left","Go|Backward")), @@ -517,7 +517,7 @@ self.connect(self.backAct, SIGNAL('triggered()'), self.__backward) self.__actions.append(self.backAct) - self.forwardAct = E4Action(self.trUtf8('Forward'), + self.forwardAct = E5Action(self.trUtf8('Forward'), UI.PixmapCache.getIcon("forward.png"), self.trUtf8('&Forward'), QKeySequence(self.trUtf8("Alt+Right","Go|Forward")), @@ -532,7 +532,7 @@ self.connect(self.forwardAct, SIGNAL('triggered()'), self.__forward) self.__actions.append(self.forwardAct) - self.homeAct = E4Action(self.trUtf8('Home'), + self.homeAct = E5Action(self.trUtf8('Home'), UI.PixmapCache.getIcon("home.png"), self.trUtf8('&Home'), QKeySequence(self.trUtf8("Ctrl+Home","Go|Home")), @@ -545,7 +545,7 @@ self.connect(self.homeAct, SIGNAL('triggered()'), self.__home) self.__actions.append(self.homeAct) - self.reloadAct = E4Action(self.trUtf8('Reload'), + self.reloadAct = E5Action(self.trUtf8('Reload'), UI.PixmapCache.getIcon("reload.png"), self.trUtf8('&Reload'), QKeySequence(self.trUtf8("Ctrl+R","Go|Reload")), @@ -559,7 +559,7 @@ self.connect(self.reloadAct, SIGNAL('triggered()'), self.__reload) self.__actions.append(self.reloadAct) - self.stopAct = E4Action(self.trUtf8('Stop'), + self.stopAct = E5Action(self.trUtf8('Stop'), UI.PixmapCache.getIcon("stopLoading.png"), self.trUtf8('&Stop'), QKeySequence(self.trUtf8("Ctrl+.","Go|Stop")), @@ -573,7 +573,7 @@ self.connect(self.stopAct, SIGNAL('triggered()'), self.__stopLoading) self.__actions.append(self.stopAct) - self.copyAct = E4Action(self.trUtf8('Copy'), + self.copyAct = E5Action(self.trUtf8('Copy'), UI.PixmapCache.getIcon("editCopy.png"), self.trUtf8('&Copy'), QKeySequence(self.trUtf8("Ctrl+C","Edit|Copy")), @@ -586,7 +586,7 @@ self.connect(self.copyAct, SIGNAL('triggered()'), self.__copy) self.__actions.append(self.copyAct) - self.findAct = E4Action(self.trUtf8('Find...'), + self.findAct = E5Action(self.trUtf8('Find...'), UI.PixmapCache.getIcon("find.png"), self.trUtf8('&Find...'), QKeySequence(self.trUtf8("Ctrl+F","Edit|Find")), @@ -599,7 +599,7 @@ self.connect(self.findAct, SIGNAL('triggered()'), self.__find) self.__actions.append(self.findAct) - self.findNextAct = E4Action(self.trUtf8('Find next'), + self.findNextAct = E5Action(self.trUtf8('Find next'), UI.PixmapCache.getIcon("findNext.png"), self.trUtf8('Find &next'), QKeySequence(self.trUtf8("F3","Edit|Find next")), @@ -613,7 +613,7 @@ self.connect(self.findNextAct, SIGNAL('triggered()'), self.findDlg.findNext) self.__actions.append(self.findNextAct) - self.findPrevAct = E4Action(self.trUtf8('Find previous'), + self.findPrevAct = E5Action(self.trUtf8('Find previous'), UI.PixmapCache.getIcon("findPrev.png"), self.trUtf8('Find &previous'), QKeySequence(self.trUtf8("Shift+F3","Edit|Find previous")), @@ -629,7 +629,7 @@ self.findDlg.findPrevious) self.__actions.append(self.findPrevAct) - self.bookmarksManageAct = E4Action(self.trUtf8('Manage Bookmarks'), + self.bookmarksManageAct = E5Action(self.trUtf8('Manage Bookmarks'), self.trUtf8('&Manage Bookmarks...'), QKeySequence(self.trUtf8("Ctrl+Shift+B", "Help|Manage bookmarks")), 0, self, 'help_bookmarks_manage') @@ -643,7 +643,7 @@ self.__showBookmarksDialog) self.__actions.append(self.bookmarksManageAct) - self.bookmarksAddAct = E4Action(self.trUtf8('Add Bookmark'), + self.bookmarksAddAct = E5Action(self.trUtf8('Add Bookmark'), UI.PixmapCache.getIcon("addBookmark.png"), self.trUtf8('Add &Bookmark...'), QKeySequence(self.trUtf8("Ctrl+D", "Help|Add bookmark")), @@ -657,7 +657,7 @@ self.connect(self.bookmarksAddAct, SIGNAL('triggered()'), self.__addBookmark) self.__actions.append(self.bookmarksAddAct) - self.bookmarksAddFolderAct = E4Action(self.trUtf8('Add Folder'), + self.bookmarksAddFolderAct = E5Action(self.trUtf8('Add Folder'), self.trUtf8('Add &Folder...'), 0, 0, self, 'help_bookmark_show_all') self.bookmarksAddFolderAct.setStatusTip(self.trUtf8( @@ -670,7 +670,7 @@ self.__addBookmarkFolder) self.__actions.append(self.bookmarksAddFolderAct) - self.bookmarksAllTabsAct = E4Action(self.trUtf8('Bookmark All Tabs'), + self.bookmarksAllTabsAct = E5Action(self.trUtf8('Bookmark All Tabs'), self.trUtf8('Bookmark All Tabs...'), 0, 0, self, 'help_bookmark_all_tabs') self.bookmarksAllTabsAct.setStatusTip(self.trUtf8( @@ -684,7 +684,7 @@ self.__bookmarkAll) self.__actions.append(self.bookmarksAllTabsAct) - self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), + self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")), @@ -701,7 +701,7 @@ self.connect(self.whatsThisAct, SIGNAL('triggered()'), self.__whatsThis) self.__actions.append(self.whatsThisAct) - self.aboutAct = E4Action(self.trUtf8('About'), + self.aboutAct = E5Action(self.trUtf8('About'), self.trUtf8('&About'), 0, 0, self, 'help_help_about') self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -712,7 +712,7 @@ self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) self.__actions.append(self.aboutAct) - self.aboutQtAct = E4Action(self.trUtf8('About Qt'), + self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'help_help_about_qt') self.aboutQtAct.setStatusTip(\ @@ -724,7 +724,7 @@ self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) self.__actions.append(self.aboutQtAct) - self.zoomInAct = E4Action(self.trUtf8('Zoom in'), + self.zoomInAct = E5Action(self.trUtf8('Zoom in'), UI.PixmapCache.getIcon("zoomIn.png"), self.trUtf8('Zoom &in'), QKeySequence(self.trUtf8("Ctrl++","View|Zoom in")), @@ -737,7 +737,7 @@ self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) self.__actions.append(self.zoomInAct) - self.zoomOutAct = E4Action(self.trUtf8('Zoom out'), + self.zoomOutAct = E5Action(self.trUtf8('Zoom out'), UI.PixmapCache.getIcon("zoomOut.png"), self.trUtf8('Zoom &out'), QKeySequence(self.trUtf8("Ctrl+-","View|Zoom out")), @@ -750,7 +750,7 @@ self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) self.__actions.append(self.zoomOutAct) - self.zoomResetAct = E4Action(self.trUtf8('Zoom reset'), + self.zoomResetAct = E5Action(self.trUtf8('Zoom reset'), UI.PixmapCache.getIcon("zoomReset.png"), self.trUtf8('Zoom &reset'), QKeySequence(self.trUtf8("Ctrl+0","View|Zoom reset")), @@ -765,7 +765,7 @@ self.__actions.append(self.zoomResetAct) if hasattr(QWebSettings, 'ZoomTextOnly'): - self.zoomTextOnlyAct = E4Action(self.trUtf8('Zoom text only'), + self.zoomTextOnlyAct = E5Action(self.trUtf8('Zoom text only'), self.trUtf8('Zoom &text only'), 0, 0, self, 'help_view_zoom_text_only') self.zoomTextOnlyAct.setCheckable(True) @@ -781,7 +781,7 @@ else: self.zoomTextOnlyAct = None - self.pageSourceAct = E4Action(self.trUtf8('Show page source'), + self.pageSourceAct = E5Action(self.trUtf8('Show page source'), self.trUtf8('Show page source'), QKeySequence(self.trUtf8('Ctrl+U')), 0, self, 'help_show_page_source') @@ -794,7 +794,7 @@ self.__actions.append(self.pageSourceAct) self.addAction(self.pageSourceAct) - self.fullScreenAct = E4Action(self.trUtf8('Full Screen'), + self.fullScreenAct = E5Action(self.trUtf8('Full Screen'), UI.PixmapCache.getIcon("windowFullscreen.png"), self.trUtf8('&Full Screen'), QKeySequence(self.trUtf8('F11')), 0, @@ -803,7 +803,7 @@ self.__actions.append(self.fullScreenAct) self.addAction(self.fullScreenAct) - self.nextTabAct = E4Action(self.trUtf8('Show next tab'), + self.nextTabAct = E5Action(self.trUtf8('Show next tab'), self.trUtf8('Show next tab'), QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, self, 'help_view_next_tab') @@ -811,7 +811,7 @@ self.__actions.append(self.nextTabAct) self.addAction(self.nextTabAct) - self.prevTabAct = E4Action(self.trUtf8('Show previous tab'), + self.prevTabAct = E5Action(self.trUtf8('Show previous tab'), self.trUtf8('Show previous tab'), QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, self, 'help_view_previous_tab') @@ -819,7 +819,7 @@ self.__actions.append(self.prevTabAct) self.addAction(self.prevTabAct) - self.switchTabAct = E4Action(self.trUtf8('Switch between tabs'), + self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), self.trUtf8('Switch between tabs'), QKeySequence(self.trUtf8('Ctrl+1')), 0, self, 'help_switch_tabs') @@ -827,7 +827,7 @@ self.__actions.append(self.switchTabAct) self.addAction(self.switchTabAct) - self.prefAct = E4Action(self.trUtf8('Preferences'), + self.prefAct = E5Action(self.trUtf8('Preferences'), UI.PixmapCache.getIcon("configure.png"), self.trUtf8('&Preferences...'), 0, 0, self, 'help_preferences') self.prefAct.setStatusTip(self.trUtf8('Set the prefered configuration')) @@ -839,7 +839,7 @@ self.connect(self.prefAct, SIGNAL('triggered()'), self.__showPreferences) self.__actions.append(self.prefAct) - self.acceptedLanguagesAct = E4Action(self.trUtf8('Languages'), + self.acceptedLanguagesAct = E5Action(self.trUtf8('Languages'), UI.PixmapCache.getIcon("flag.png"), self.trUtf8('&Languages...'), 0, 0, self, 'help_accepted_languages') self.acceptedLanguagesAct.setStatusTip(self.trUtf8( @@ -852,7 +852,7 @@ self.__showAcceptedLanguages) self.__actions.append(self.acceptedLanguagesAct) - self.cookiesAct = E4Action(self.trUtf8('Cookies'), + self.cookiesAct = E5Action(self.trUtf8('Cookies'), UI.PixmapCache.getIcon("cookie.png"), self.trUtf8('C&ookies...'), 0, 0, self, 'help_cookies') self.cookiesAct.setStatusTip(self.trUtf8( @@ -865,7 +865,7 @@ self.__showCookiesConfiguration) self.__actions.append(self.cookiesAct) - self.syncTocAct = E4Action(self.trUtf8('Sync with Table of Contents'), + self.syncTocAct = E5Action(self.trUtf8('Sync with Table of Contents'), UI.PixmapCache.getIcon("syncToc.png"), self.trUtf8('Sync with Table of Contents'), 0, 0, self, 'help_sync_toc') @@ -878,7 +878,7 @@ self.connect(self.syncTocAct, SIGNAL('triggered()'), self.__syncTOC) self.__actions.append(self.syncTocAct) - self.showTocAct = E4Action(self.trUtf8('Table of Contents'), + self.showTocAct = E5Action(self.trUtf8('Table of Contents'), self.trUtf8('Table of Contents'), 0, 0, self, 'help_show_toc') self.showTocAct.setStatusTip(self.trUtf8( @@ -890,7 +890,7 @@ self.connect(self.showTocAct, SIGNAL('triggered()'), self.__showTocWindow) self.__actions.append(self.showTocAct) - self.showIndexAct = E4Action(self.trUtf8('Index'), + self.showIndexAct = E5Action(self.trUtf8('Index'), self.trUtf8('Index'), 0, 0, self, 'help_show_index') self.showIndexAct.setStatusTip(self.trUtf8( @@ -902,7 +902,7 @@ self.connect(self.showIndexAct, SIGNAL('triggered()'), self.__showIndexWindow) self.__actions.append(self.showIndexAct) - self.showSearchAct = E4Action(self.trUtf8('Search'), + self.showSearchAct = E5Action(self.trUtf8('Search'), self.trUtf8('Search'), 0, 0, self, 'help_show_search') self.showSearchAct.setStatusTip(self.trUtf8( @@ -914,7 +914,7 @@ self.connect(self.showSearchAct, SIGNAL('triggered()'), self.__showSearchWindow) self.__actions.append(self.showSearchAct) - self.manageQtHelpDocsAct = E4Action(self.trUtf8('Manage QtHelp Documents'), + self.manageQtHelpDocsAct = E5Action(self.trUtf8('Manage QtHelp Documents'), self.trUtf8('Manage QtHelp &Documents'), 0, 0, self, 'help_qthelp_documents') self.manageQtHelpDocsAct.setStatusTip(self.trUtf8( @@ -927,7 +927,7 @@ self.__manageQtHelpDocumentation) self.__actions.append(self.manageQtHelpDocsAct) - self.manageQtHelpFiltersAct = E4Action(self.trUtf8('Manage QtHelp Filters'), + self.manageQtHelpFiltersAct = E5Action(self.trUtf8('Manage QtHelp Filters'), self.trUtf8('Manage QtHelp &Filters'), 0, 0, self, 'help_qthelp_filters') self.manageQtHelpFiltersAct.setStatusTip(self.trUtf8( @@ -940,7 +940,7 @@ self.__manageQtHelpFilters) self.__actions.append(self.manageQtHelpFiltersAct) - self.reindexDocumentationAct = E4Action(self.trUtf8('Reindex Documentation'), + self.reindexDocumentationAct = E5Action(self.trUtf8('Reindex Documentation'), self.trUtf8('&Reindex Documentation'), 0, 0, self, 'help_qthelp_reindex') self.reindexDocumentationAct.setStatusTip(self.trUtf8( @@ -954,7 +954,7 @@ self.__searchEngine.reindexDocumentation) self.__actions.append(self.reindexDocumentationAct) - self.clearPrivateDataAct = E4Action(self.trUtf8('Clear private data'), + self.clearPrivateDataAct = E5Action(self.trUtf8('Clear private data'), self.trUtf8('&Clear private data'), 0, 0, self, 'help_clear_private_data') @@ -968,7 +968,7 @@ self.__clearPrivateData) self.__actions.append(self.clearPrivateDataAct) - self.clearIconsAct = E4Action(self.trUtf8('Clear icons database'), + self.clearIconsAct = E5Action(self.trUtf8('Clear icons database'), self.trUtf8('Clear &icons database'), 0, 0, self, 'help_clear_icons_db') @@ -980,7 +980,7 @@ self.connect(self.clearIconsAct, SIGNAL('triggered()'), self.__clearIconsDatabase) self.__actions.append(self.clearIconsAct) - self.searchEnginesAct = E4Action(self.trUtf8('Configure Search Engines'), + self.searchEnginesAct = E5Action(self.trUtf8('Configure Search Engines'), self.trUtf8('Configure &Search Engines...'), 0, 0, self, 'help_search_engines') @@ -994,7 +994,7 @@ self.__showEnginesConfigurationDialog) self.__actions.append(self.searchEnginesAct) - self.passwordsAct = E4Action(self.trUtf8('Manage Saved Passwords'), + self.passwordsAct = E5Action(self.trUtf8('Manage Saved Passwords'), self.trUtf8('Manage Saved Passwords...'), 0, 0, self, 'help_manage_passwords') @@ -1008,7 +1008,7 @@ self.__showPasswordsDialog) self.__actions.append(self.passwordsAct) - self.adblockAct = E4Action(self.trUtf8('Ad Block'), + self.adblockAct = E5Action(self.trUtf8('Ad Block'), self.trUtf8('&Ad Block...'), 0, 0, self, 'help_adblock') @@ -1022,7 +1022,7 @@ self.__showAdBlockDialog) self.__actions.append(self.adblockAct) - self.toolsMonitorAct = E4Action(self.trUtf8('Show Network Monitor'), + self.toolsMonitorAct = E5Action(self.trUtf8('Show Network Monitor'), self.trUtf8('Show &Network Monitor'), 0, 0, self, 'help_tools_network_monitor') @@ -1045,7 +1045,7 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.__actions[:] @@ -2820,4 +2820,4 @@ if cls._adblockManager is None: cls._adblockManager = AdBlockManager() - return cls._adblockManager + return cls._adblockManager \ No newline at end of file
--- a/Helpviewer/History/HistoryDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/History/HistoryDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4TreeSortFilterProxyModel import E4TreeSortFilterProxyModel +from E5Gui.E5TreeSortFilterProxyModel import E5TreeSortFilterProxyModel import Helpviewer.HelpWindow from .HistoryModel import HistoryModel @@ -44,7 +44,7 @@ self.__historyManager = Helpviewer.HelpWindow.HelpWindow.historyManager() self.__model = self.__historyManager.historyTreeModel() - self.__proxyModel = E4TreeSortFilterProxyModel(self) + self.__proxyModel = E5TreeSortFilterProxyModel(self) self.__proxyModel.setSortRole(HistoryModel.DateTimeRole) self.__proxyModel.setFilterKeyColumn(-1) self.__proxyModel.setSourceModel(self.__model) @@ -141,4 +141,4 @@ url = idx.data(HistoryModel.UrlStringRole) clipboard = QApplication.clipboard() - clipboard.setText(url) + clipboard.setText(url) \ No newline at end of file
--- a/Helpviewer/History/HistoryDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/History/HistoryDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -59,7 +59,7 @@ </layout> </item> <item> - <widget class="E4TreeView" name="historyTree"> + <widget class="E5TreeView" name="historyTree"> <property name="alternatingRowColors"> <bool>true</bool> </property> @@ -125,9 +125,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TreeView</class> + <class>E5TreeView</class> <extends>QTreeView</extends> - <header>E4Gui/E4TreeView</header> + <header>E5Gui/E5TreeView</header> </customwidget> </customwidgets> <tabstops> @@ -189,4 +189,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/History/HistoryMenu.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/History/HistoryMenu.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4ModelMenu import E4ModelMenu +from E5Gui.E5ModelMenu import E5ModelMenu import Helpviewer.HelpWindow @@ -199,7 +199,7 @@ mdata.setUrls(urls) return mdata -class HistoryMenu(E4ModelMenu): +class HistoryMenu(E5ModelMenu): """ Class implementing the history menu. @@ -213,7 +213,7 @@ @param parent reference to the parent widget (QWidget) """ - E4ModelMenu.__init__(self, parent) + E5ModelMenu.__init__(self, parent) self.__historyManager = None self.__historyMenuModel = None @@ -308,4 +308,4 @@ QMessageBox.No | \ QMessageBox.Yes), QMessageBox.No) == QMessageBox.Yes: - self.__historyManager.clear() + self.__historyManager.clear() \ No newline at end of file
--- a/Helpviewer/OpenSearch/OpenSearchDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/OpenSearch/OpenSearchDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtGui import QDialog, QFileDialog, QMessageBox from PyQt4.QtCore import pyqtSlot, SIGNAL -from E4Gui.E4ListView import E4ListView +from E5Gui.E5ListView import E5ListView from Helpviewer.HelpWebSearchWidget import HelpWebSearchWidget @@ -110,4 +110,4 @@ @param deselected item selection of deselected items (QItemSelection) """ self.editButton.setEnabled( - len(self.enginesTable.selectionModel().selectedRows()) <= 1) + len(self.enginesTable.selectionModel().selectedRows()) <= 1) \ No newline at end of file
--- a/Helpviewer/OpenSearch/OpenSearchDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/OpenSearch/OpenSearchDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -20,7 +20,7 @@ <item> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0" rowspan="5"> - <widget class="E4TableView" name="enginesTable"> + <widget class="E5TableView" name="enginesTable"> <property name="alternatingRowColors"> <bool>true</bool> </property> @@ -101,9 +101,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TableView</class> + <class>E5TableView</class> <extends>QTableView</extends> - <header>E4Gui/E4TableView.h</header> + <header>E5Gui/E5TableView.h</header> </customwidget> </customwidgets> <tabstops> @@ -149,4 +149,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/Helpviewer/Passwords/PasswordsDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/Helpviewer/Passwords/PasswordsDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -58,7 +58,7 @@ </layout> </item> <item> - <widget class="E4TableView" name="passwordsTable" > + <widget class="E5TableView" name="passwordsTable" > <property name="alternatingRowColors" > <bool>true</bool> </property> @@ -137,9 +137,9 @@ </widget> <customwidgets> <customwidget> - <class>E4TableView</class> + <class>E5TableView</class> <extends>QTableView</extends> - <header>E4Gui/E4TableView.h</header> + <header>E5Gui/E5TableView.h</header> </customwidget> </customwidgets> <tabstops> @@ -202,4 +202,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/IconEditor/IconEditorWindow.py Tue Jan 12 18:39:15 2010 +0000 +++ b/IconEditor/IconEditorWindow.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Action import E5Action, createActionGroup from .IconEditorGrid import IconEditorGrid from .IconZoomDialog import IconZoomDialog @@ -164,7 +164,7 @@ """ Private method to define the file related user interface actions. """ - self.newAct = E4Action(self.trUtf8('New'), + self.newAct = E5Action(self.trUtf8('New'), UI.PixmapCache.getIcon("new.png"), self.trUtf8('&New'), QKeySequence(self.trUtf8("Ctrl+N","File|New")), @@ -177,7 +177,7 @@ self.connect(self.newAct, SIGNAL('triggered()'), self.__newIcon) self.__actions.append(self.newAct) - self.newWindowAct = E4Action(self.trUtf8('New Window'), + self.newWindowAct = E5Action(self.trUtf8('New Window'), UI.PixmapCache.getIcon("newWindow.png"), self.trUtf8('New &Window'), 0, 0, self, 'iconEditor_file_new_window') @@ -189,7 +189,7 @@ self.connect(self.newWindowAct, SIGNAL('triggered()'), self.__newWindow) self.__actions.append(self.newWindowAct) - self.openAct = E4Action(self.trUtf8('Open'), + self.openAct = E5Action(self.trUtf8('Open'), UI.PixmapCache.getIcon("open.png"), self.trUtf8('&Open...'), QKeySequence(self.trUtf8("Ctrl+O","File|Open")), @@ -203,7 +203,7 @@ self.connect(self.openAct, SIGNAL('triggered()'), self.__openIcon) self.__actions.append(self.openAct) - self.saveAct = E4Action(self.trUtf8('Save'), + self.saveAct = E5Action(self.trUtf8('Save'), UI.PixmapCache.getIcon("fileSave.png"), self.trUtf8('&Save'), QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), @@ -216,7 +216,7 @@ self.connect(self.saveAct, SIGNAL('triggered()'), self.__saveIcon) self.__actions.append(self.saveAct) - self.saveAsAct = E4Action(self.trUtf8('Save As'), + self.saveAsAct = E5Action(self.trUtf8('Save As'), UI.PixmapCache.getIcon("fileSaveAs.png"), self.trUtf8('Save &As...'), QKeySequence(self.trUtf8("Shift+Ctrl+S","File|Save As")), @@ -230,7 +230,7 @@ self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__saveIconAs) self.__actions.append(self.saveAsAct) - self.closeAct = E4Action(self.trUtf8('Close'), + self.closeAct = E5Action(self.trUtf8('Close'), UI.PixmapCache.getIcon("close.png"), self.trUtf8('&Close'), QKeySequence(self.trUtf8("Ctrl+W","File|Close")), @@ -243,7 +243,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.close) self.__actions.append(self.closeAct) - self.closeAllAct = E4Action(self.trUtf8('Close All'), + self.closeAllAct = E5Action(self.trUtf8('Close All'), self.trUtf8('Close &All'), 0, 0, self, 'iconEditor_file_close_all') self.closeAllAct.setStatusTip(self.trUtf8('Close all icon editor windows')) @@ -254,7 +254,7 @@ self.connect(self.closeAllAct, SIGNAL('triggered()'), self.__closeAll) self.__actions.append(self.closeAllAct) - self.exitAct = E4Action(self.trUtf8('Quit'), + self.exitAct = E5Action(self.trUtf8('Quit'), UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), @@ -275,7 +275,7 @@ """ Private method to create the Edit actions. """ - self.undoAct = E4Action(self.trUtf8('Undo'), + self.undoAct = E5Action(self.trUtf8('Undo'), UI.PixmapCache.getIcon("editUndo.png"), self.trUtf8('&Undo'), QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")), @@ -289,7 +289,7 @@ self.connect(self.undoAct, SIGNAL('triggered()'), self.__editor.editUndo) self.__actions.append(self.undoAct) - self.redoAct = E4Action(self.trUtf8('Redo'), + self.redoAct = E5Action(self.trUtf8('Redo'), UI.PixmapCache.getIcon("editRedo.png"), self.trUtf8('&Redo'), QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), @@ -302,7 +302,7 @@ self.connect(self.redoAct, SIGNAL('triggered()'), self.__editor.editRedo) self.__actions.append(self.redoAct) - self.cutAct = E4Action(self.trUtf8('Cut'), + self.cutAct = E5Action(self.trUtf8('Cut'), UI.PixmapCache.getIcon("editCut.png"), self.trUtf8('Cu&t'), QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")), @@ -316,7 +316,7 @@ self.connect(self.cutAct, SIGNAL('triggered()'), self.__editor.editCut) self.__actions.append(self.cutAct) - self.copyAct = E4Action(self.trUtf8('Copy'), + self.copyAct = E5Action(self.trUtf8('Copy'), UI.PixmapCache.getIcon("editCopy.png"), self.trUtf8('&Copy'), QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), @@ -330,7 +330,7 @@ self.connect(self.copyAct, SIGNAL('triggered()'), self.__editor.editCopy) self.__actions.append(self.copyAct) - self.pasteAct = E4Action(self.trUtf8('Paste'), + self.pasteAct = E5Action(self.trUtf8('Paste'), UI.PixmapCache.getIcon("editPaste.png"), self.trUtf8('&Paste'), QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")), @@ -344,7 +344,7 @@ self.connect(self.pasteAct, SIGNAL('triggered()'), self.__editor.editPaste) self.__actions.append(self.pasteAct) - self.pasteNewAct = E4Action(self.trUtf8('Paste as New'), + self.pasteNewAct = E5Action(self.trUtf8('Paste as New'), self.trUtf8('Paste as &New'), 0, 0, self, 'iconEditor_edit_paste_as_new') self.pasteNewAct.setStatusTip(self.trUtf8( @@ -356,7 +356,7 @@ self.connect(self.pasteNewAct, SIGNAL('triggered()'), self.__editor.editPasteAsNew) self.__actions.append(self.pasteNewAct) - self.deleteAct = E4Action(self.trUtf8('Clear'), + self.deleteAct = E5Action(self.trUtf8('Clear'), UI.PixmapCache.getIcon("editDelete.png"), self.trUtf8('Cl&ear'), QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")), @@ -370,7 +370,7 @@ self.connect(self.deleteAct, SIGNAL('triggered()'), self.__editor.editClear) self.__actions.append(self.deleteAct) - self.selectAllAct = E4Action(self.trUtf8('Select All'), + self.selectAllAct = E5Action(self.trUtf8('Select All'), self.trUtf8('&Select All'), QKeySequence(self.trUtf8("Ctrl+A", "Edit|Select All")), 0, @@ -383,7 +383,7 @@ self.connect(self.selectAllAct, SIGNAL('triggered()'), self.__editor.editSelectAll) self.__actions.append(self.selectAllAct) - self.resizeAct = E4Action(self.trUtf8('Change Size'), + self.resizeAct = E5Action(self.trUtf8('Change Size'), UI.PixmapCache.getIcon("transformResize.png"), self.trUtf8('Change Si&ze...'), 0, 0, @@ -396,7 +396,7 @@ self.connect(self.resizeAct, SIGNAL('triggered()'), self.__editor.editResize) self.__actions.append(self.resizeAct) - self.grayscaleAct = E4Action(self.trUtf8('Grayscale'), + self.grayscaleAct = E5Action(self.trUtf8('Grayscale'), UI.PixmapCache.getIcon("grayscale.png"), self.trUtf8('&Grayscale'), 0, 0, @@ -435,7 +435,7 @@ """ Private method to create the View actions. """ - self.zoomInAct = E4Action(self.trUtf8('Zoom in'), + self.zoomInAct = E5Action(self.trUtf8('Zoom in'), UI.PixmapCache.getIcon("zoomIn.png"), self.trUtf8('Zoom &in'), QKeySequence(self.trUtf8("Ctrl++", "View|Zoom in")), @@ -448,7 +448,7 @@ self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) self.__actions.append(self.zoomInAct) - self.zoomOutAct = E4Action(self.trUtf8('Zoom out'), + self.zoomOutAct = E5Action(self.trUtf8('Zoom out'), UI.PixmapCache.getIcon("zoomOut.png"), self.trUtf8('Zoom &out'), QKeySequence(self.trUtf8("Ctrl+-", "View|Zoom out")), @@ -461,7 +461,7 @@ self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) self.__actions.append(self.zoomOutAct) - self.zoomResetAct = E4Action(self.trUtf8('Zoom reset'), + self.zoomResetAct = E5Action(self.trUtf8('Zoom reset'), UI.PixmapCache.getIcon("zoomReset.png"), self.trUtf8('Zoom &reset'), QKeySequence(self.trUtf8("Ctrl+0", "View|Zoom reset")), @@ -475,7 +475,7 @@ self.connect(self.zoomResetAct, SIGNAL('triggered()'), self.__zoomReset) self.__actions.append(self.zoomResetAct) - self.zoomToAct = E4Action(self.trUtf8('Zoom'), + self.zoomToAct = E5Action(self.trUtf8('Zoom'), UI.PixmapCache.getIcon("zoomTo.png"), self.trUtf8('&Zoom...'), QKeySequence(self.trUtf8("Ctrl+#", "View|Zoom")), @@ -490,7 +490,7 @@ self.connect(self.zoomToAct, SIGNAL('triggered()'), self.__zoom) self.__actions.append(self.zoomToAct) - self.showGridAct = E4Action(self.trUtf8('Show Grid'), + self.showGridAct = E5Action(self.trUtf8('Show Grid'), UI.PixmapCache.getIcon("grid.png"), self.trUtf8('Show &Grid'), 0, 0, @@ -516,7 +516,7 @@ self.drawingActGrp = createActionGroup(self) self.drawingActGrp.setExclusive(True) - self.drawPencilAct = E4Action(self.trUtf8('Freehand'), + self.drawPencilAct = E5Action(self.trUtf8('Freehand'), UI.PixmapCache.getIcon("drawBrush.png"), self.trUtf8('&Freehand'), 0, 0, @@ -531,7 +531,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawPencilAct) - self.drawColorPickerAct = E4Action(self.trUtf8('Color Picker'), + self.drawColorPickerAct = E5Action(self.trUtf8('Color Picker'), UI.PixmapCache.getIcon("colorPicker.png"), self.trUtf8('&Color Picker'), 0, 0, @@ -547,7 +547,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawColorPickerAct) - self.drawRectangleAct = E4Action(self.trUtf8('Rectangle'), + self.drawRectangleAct = E5Action(self.trUtf8('Rectangle'), UI.PixmapCache.getIcon("drawRectangle.png"), self.trUtf8('&Rectangle'), 0, 0, @@ -562,7 +562,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawRectangleAct) - self.drawFilledRectangleAct = E4Action(self.trUtf8('Filled Rectangle'), + self.drawFilledRectangleAct = E5Action(self.trUtf8('Filled Rectangle'), UI.PixmapCache.getIcon("drawRectangleFilled.png"), self.trUtf8('F&illed Rectangle'), 0, 0, @@ -577,7 +577,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawFilledRectangleAct) - self.drawCircleAct = E4Action(self.trUtf8('Circle'), + self.drawCircleAct = E5Action(self.trUtf8('Circle'), UI.PixmapCache.getIcon("drawCircle.png"), self.trUtf8('Circle'), 0, 0, @@ -592,7 +592,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawCircleAct) - self.drawFilledCircleAct = E4Action(self.trUtf8('Filled Circle'), + self.drawFilledCircleAct = E5Action(self.trUtf8('Filled Circle'), UI.PixmapCache.getIcon("drawCircleFilled.png"), self.trUtf8('Fille&d Circle'), 0, 0, @@ -607,7 +607,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawFilledCircleAct) - self.drawEllipseAct = E4Action(self.trUtf8('Ellipse'), + self.drawEllipseAct = E5Action(self.trUtf8('Ellipse'), UI.PixmapCache.getIcon("drawEllipse.png"), self.trUtf8('&Ellipse'), 0, 0, @@ -622,7 +622,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawEllipseAct) - self.drawFilledEllipseAct = E4Action(self.trUtf8('Filled Ellipse'), + self.drawFilledEllipseAct = E5Action(self.trUtf8('Filled Ellipse'), UI.PixmapCache.getIcon("drawEllipseFilled.png"), self.trUtf8('Fille&d Elli&pse'), 0, 0, @@ -637,7 +637,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawFilledEllipseAct) - self.drawFloodFillAct = E4Action(self.trUtf8('Flood Fill'), + self.drawFloodFillAct = E5Action(self.trUtf8('Flood Fill'), UI.PixmapCache.getIcon("drawFill.png"), self.trUtf8('Fl&ood Fill'), 0, 0, @@ -653,7 +653,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawFloodFillAct) - self.drawLineAct = E4Action(self.trUtf8('Line'), + self.drawLineAct = E5Action(self.trUtf8('Line'), UI.PixmapCache.getIcon("drawLine.png"), self.trUtf8('&Line'), 0, 0, @@ -668,7 +668,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawLineAct) - self.drawEraserAct = E4Action(self.trUtf8('Eraser (Transparent)'), + self.drawEraserAct = E5Action(self.trUtf8('Eraser (Transparent)'), UI.PixmapCache.getIcon("drawEraser.png"), self.trUtf8('Eraser (&Transparent)'), 0, 0, @@ -683,7 +683,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawEraserAct) - self.drawRectangleSelectionAct = E4Action(self.trUtf8('Rectangular Selection'), + self.drawRectangleSelectionAct = E5Action(self.trUtf8('Rectangular Selection'), UI.PixmapCache.getIcon("selectRectangle.png"), self.trUtf8('Rect&angular Selection'), 0, 0, @@ -699,7 +699,7 @@ self.esm, SLOT('map()')) self.__actions.append(self.drawRectangleSelectionAct) - self.drawCircleSelectionAct = E4Action(self.trUtf8('Circular Selection'), + self.drawCircleSelectionAct = E5Action(self.trUtf8('Circular Selection'), UI.PixmapCache.getIcon("selectCircle.png"), self.trUtf8('Rect&angular Selection'), 0, 0, @@ -721,7 +721,7 @@ """ Private method to create the Help actions. """ - self.aboutAct = E4Action(self.trUtf8('About'), + self.aboutAct = E5Action(self.trUtf8('About'), self.trUtf8('&About'), 0, 0, self, 'iconEditor_help_about') self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -731,7 +731,7 @@ self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) self.__actions.append(self.aboutAct) - self.aboutQtAct = E4Action(self.trUtf8('About Qt'), + self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'iconEditor_help_about_qt') self.aboutQtAct.setStatusTip(\ @@ -743,7 +743,7 @@ self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) self.__actions.append(self.aboutQtAct) - self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), + self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")), @@ -1246,4 +1246,4 @@ """ Private slot called in to enter Whats This mode. """ - QWhatsThis.enterWhatsThisMode() + QWhatsThis.enterWhatsThisMode() \ No newline at end of file
--- a/MultiProject/AddProjectDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/MultiProject/AddProjectDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_AddProjectDialog import Ui_AddProjectDialog @@ -31,7 +31,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.fileCompleter = E4FileCompleter(self.filenameEdit) + self.fileCompleter = E5FileCompleter(self.filenameEdit) self.startdir = startdir @@ -98,4 +98,4 @@ Private method to update the dialog. """ self.__okButton.setEnabled(self.nameEdit.text() != "" and \ - self.filenameEdit.text() != "") + self.filenameEdit.text() != "") \ No newline at end of file
--- a/MultiProject/MultiProject.py Tue Jan 12 18:39:15 2010 +0000 +++ b/MultiProject/MultiProject.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from Globals import recentNameMultiProject @@ -30,7 +30,7 @@ import UI.PixmapCache -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Action import E5Action, createActionGroup import Preferences import Utilities @@ -678,7 +678,7 @@ self.actGrp1 = createActionGroup(self) - act = E4Action(self.trUtf8('New multiproject'), + act = E5Action(self.trUtf8('New multiproject'), UI.PixmapCache.getIcon("multiProjectNew.png"), self.trUtf8('&New...'), 0, 0, self.actGrp1,'multi_project_new') @@ -691,7 +691,7 @@ self.connect(act, SIGNAL('triggered()'), self.newMultiProject) self.actions.append(act) - act = E4Action(self.trUtf8('Open multiproject'), + act = E5Action(self.trUtf8('Open multiproject'), UI.PixmapCache.getIcon("multiProjectOpen.png"), self.trUtf8('&Open...'), 0, 0, self.actGrp1,'multi_project_open') @@ -703,7 +703,7 @@ self.connect(act, SIGNAL('triggered()'), self.openMultiProject) self.actions.append(act) - self.closeAct = E4Action(self.trUtf8('Close multiproject'), + self.closeAct = E5Action(self.trUtf8('Close multiproject'), UI.PixmapCache.getIcon("multiProjectClose.png"), self.trUtf8('&Close'), 0, 0, self, 'multi_project_close') self.closeAct.setStatusTip(self.trUtf8('Close the current multiproject')) @@ -714,7 +714,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.closeMultiProject) self.actions.append(self.closeAct) - self.saveAct = E4Action(self.trUtf8('Save multiproject'), + self.saveAct = E5Action(self.trUtf8('Save multiproject'), UI.PixmapCache.getIcon("multiProjectSave.png"), self.trUtf8('&Save'), 0, 0, self, 'multi_project_save') self.saveAct.setStatusTip(self.trUtf8('Save the current multiproject')) @@ -725,7 +725,7 @@ self.connect(self.saveAct, SIGNAL('triggered()'), self.saveMultiProject) self.actions.append(self.saveAct) - self.saveasAct = E4Action(self.trUtf8('Save multiproject as'), + self.saveasAct = E5Action(self.trUtf8('Save multiproject as'), UI.PixmapCache.getIcon("multiProjectSaveAs.png"), self.trUtf8('Save &as...'), 0, 0, self, 'multi_project_save_as') self.saveasAct.setStatusTip(self.trUtf8( @@ -737,7 +737,7 @@ self.connect(self.saveasAct, SIGNAL('triggered()'), self.saveMultiProjectAs) self.actions.append(self.saveasAct) - self.addProjectAct = E4Action(self.trUtf8('Add project to multiproject'), + self.addProjectAct = E5Action(self.trUtf8('Add project to multiproject'), UI.PixmapCache.getIcon("fileProject.png"), self.trUtf8('Add &project...'), 0, 0, self,'multi_project_add_project') @@ -751,7 +751,7 @@ self.connect(self.addProjectAct, SIGNAL('triggered()'), self.addProject) self.actions.append(self.addProjectAct) - self.propsAct = E4Action(self.trUtf8('Multiproject properties'), + self.propsAct = E5Action(self.trUtf8('Multiproject properties'), UI.PixmapCache.getIcon("multiProjectProps.png"), self.trUtf8('&Properties...'), 0, 0, self, 'multi_project_properties') self.propsAct.setStatusTip(self.trUtf8('Show the multiproject properties')) @@ -810,7 +810,7 @@ """ Public slot to initialize the multi project toolbar. - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the toolbar generated (QToolBar) """ tb = QToolBar(self.trUtf8("Multiproject"), self.parent()) @@ -896,23 +896,23 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.actions[:] - def addE4Actions(self, actions): + def addE5Actions(self, actions): """ Public method to add actions to the list of actions. - @param actions list of actions (list of E4Action) + @param actions list of actions (list of E5Action) """ self.actions.extend(actions) - def removeE4Actions(self, actions): + def removeE5Actions(self, actions): """ Public method to remove actions from the list of actions. - @param actions list of actions (list of E4Action) + @param actions list of actions (list of E5Action) """ for act in actions: try:
--- a/MultiProject/MultiProjectBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/MultiProject/MultiProjectBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .AddProjectDialog import AddProjectDialog
--- a/PluginManager/PluginInstallDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/PluginManager/PluginInstallDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -17,7 +17,7 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .PluginManager import PluginManager from .Ui_PluginInstallDialog import Ui_PluginInstallDialog @@ -561,4 +561,4 @@ self.resize(size) self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.close) - self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.close) + self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.close) \ No newline at end of file
--- a/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_SyntaxCheckerDialog import Ui_SyntaxCheckerDialog
--- a/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_TabnannyDialog import Ui_TabnannyDialog
--- a/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/DocumentationPlugins/Ericapi/EricapiConfigDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_EricapiConfigDialog import Ui_EricapiConfigDialog import Utilities @@ -54,8 +54,8 @@ for key, value in list(parms.items()): self.parameters[key] = parms[key] - self.outputFileCompleter = E4FileCompleter(self.outputFileEdit) - self.ignoreDirCompleter = E4DirCompleter(self.ignoreDirEdit) + self.outputFileCompleter = E5FileCompleter(self.outputFileEdit) + self.ignoreDirCompleter = E5DirCompleter(self.ignoreDirEdit) self.recursionCheckBox.setChecked(self.parameters['useRecursion']) self.oldStyleCheckBox.setChecked(not self.parameters['newStyle'])
--- a/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/DocumentationPlugins/Ericdoc/EricdocConfigDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_EricdocConfigDialog import Ui_EricdocConfigDialog from DocumentationTools.Config import eric5docDefaultColors, eric5docColorParameterNames @@ -74,9 +74,9 @@ self.ppath = ppath - self.outputDirCompleter = E4DirCompleter(self.outputDirEdit) - self.ignoreDirCompleter = E4DirCompleter(self.ignoreDirEdit) - self.qtHelpDirCompleter = E4DirCompleter(self.qtHelpDirEdit) + self.outputDirCompleter = E5DirCompleter(self.outputDirEdit) + self.ignoreDirCompleter = E5DirCompleter(self.ignoreDirEdit) + self.qtHelpDirCompleter = E5DirCompleter(self.qtHelpDirEdit) self.recursionCheckBox.setChecked(self.parameters['useRecursion']) self.noindexCheckBox.setChecked(self.parameters['noindex'])
--- a/Plugins/PluginAbout.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginAbout.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from UI.Info import * import UI.PixmapCache -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from AboutPlugin.AboutDialog import AboutDialog @@ -65,7 +65,7 @@ menu.removeAction(self.aboutAct) menu.removeAction(self.aboutQtAct) acts = [self.aboutAct, self.aboutQtAct] - self.__ui.removeE4Actions(acts, 'ui') + self.__ui.removeE5Actions(acts, 'ui') def __initActions(self): """ @@ -73,7 +73,7 @@ """ acts = [] - self.aboutAct = E4Action(self.trUtf8('About {0}').format(Program), + self.aboutAct = E5Action(self.trUtf8('About {0}').format(Program), UI.PixmapCache.getIcon("helpAbout.png"), self.trUtf8('&About {0}').format(Program), 0, 0, self, 'about_eric') @@ -85,7 +85,7 @@ self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) acts.append(self.aboutAct) - self.aboutQtAct = E4Action(self.trUtf8('About Qt'), + self.aboutQtAct = E5Action(self.trUtf8('About Qt'), UI.PixmapCache.getIcon("helpAboutQt.png"), self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') self.aboutQtAct.setStatusTip(\ @@ -97,7 +97,7 @@ self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) acts.append(self.aboutQtAct) - self.__ui.addE4Actions(acts, 'ui') + self.__ui.addE5Actions(acts, 'ui') def __initMenu(self): """ @@ -124,4 +124,4 @@ """ Private slot to handle the About Qt dialog. """ - QMessageBox.aboutQt(self.__ui, Program) + QMessageBox.aboutQt(self.__ui, Program) \ No newline at end of file
--- a/Plugins/PluginEricapi.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginEricapi.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,9 +14,9 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QApplication -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from DocumentationPlugins.Ericapi.EricapiConfigDialog import EricapiConfigDialog from DocumentationPlugins.Ericapi.EricapiExecDialog import EricapiExecDialog @@ -92,7 +92,7 @@ """ menu = e5App().getObject("Project").getMenu("Apidoc") if menu: - self.__projectAct = E4Action(self.trUtf8('Generate API file (eric5-api)'), + self.__projectAct = E5Action(self.trUtf8('Generate API file (eric5-api)'), self.trUtf8('Generate &API file (eric5-api)'), 0, 0, self, 'doc_eric5_api') self.__projectAct.setStatusTip(\ @@ -102,7 +102,7 @@ """<p>Generate an API file using eric5-api.</p>""" )) self.connect(self.__projectAct, SIGNAL('triggered()'), self.__doEricapi) - e5App().getObject("Project").addE4Actions([self.__projectAct]) + e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) self.connect(e5App().getObject("Project"), SIGNAL("showMenu"), @@ -120,7 +120,7 @@ menu = e5App().getObject("Project").getMenu("Apidoc") if menu: menu.removeAction(self.__projectAct) - e5App().getObject("Project").removeE4Actions([self.__projectAct]) + e5App().getObject("Project").removeE5Actions([self.__projectAct]) self.__initialize() def __projectShowMenu(self, menuName, menu):
--- a/Plugins/PluginEricdoc.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginEricdoc.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,9 +14,9 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QApplication -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from DocumentationPlugins.Ericdoc.EricdocConfigDialog import EricdocConfigDialog from DocumentationPlugins.Ericdoc.EricdocExecDialog import EricdocExecDialog @@ -94,7 +94,7 @@ menu = e5App().getObject("Project").getMenu("Apidoc") if menu: self.__projectAct = \ - E4Action(self.trUtf8('Generate documentation (eric5-doc)'), + E5Action(self.trUtf8('Generate documentation (eric5-doc)'), self.trUtf8('Generate &documentation (eric5-doc)'), 0, 0, self, 'doc_eric5_doc') self.__projectAct.setStatusTip(\ @@ -104,7 +104,7 @@ """<p>Generate API documentation using eric5-doc.</p>""" )) self.connect(self.__projectAct, SIGNAL('triggered()'), self.__doEricdoc) - e5App().getObject("Project").addE4Actions([self.__projectAct]) + e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) self.connect(e5App().getObject("Project"), SIGNAL("showMenu"), @@ -122,7 +122,7 @@ menu = e5App().getObject("Project").getMenu("Apidoc") if menu: menu.removeAction(self.__projectAct) - e5App().getObject("Project").removeE4Actions([self.__projectAct]) + e5App().getObject("Project").removeE5Actions([self.__projectAct]) self.__initialize() def __projectShowMenu(self, menuName, menu):
--- a/Plugins/PluginSyntaxChecker.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginSyntaxChecker.py Wed Jan 13 18:53:58 2010 +0000 @@ -11,9 +11,9 @@ from PyQt4.QtCore import QObject, SIGNAL -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from CheckerPlugins.SyntaxChecker.SyntaxCheckerDialog import SyntaxCheckerDialog @@ -72,7 +72,7 @@ """ menu = e5App().getObject("Project").getMenu("Checks") if menu: - self.__projectAct = E4Action(self.trUtf8('Check Syntax'), + self.__projectAct = E5Action(self.trUtf8('Check Syntax'), self.trUtf8('&Syntax...'), 0, 0, self, 'project_check_syntax') self.__projectAct.setStatusTip(\ @@ -83,10 +83,10 @@ )) self.connect(self.__projectAct, SIGNAL('triggered()'), self.__projectSyntaxCheck) - e5App().getObject("Project").addE4Actions([self.__projectAct]) + e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) - self.__editorAct = E4Action(self.trUtf8('Check Syntax'), + self.__editorAct = E5Action(self.trUtf8('Check Syntax'), self.trUtf8('&Syntax...'), 0, 0, self, "") self.__editorAct.setWhatsThis(self.trUtf8( @@ -162,7 +162,7 @@ e5App().getObject("Project").getProjectLanguage() == "Python3": self.__projectBrowserMenu = menu if self.__projectBrowserAct is None: - self.__projectBrowserAct = E4Action(self.trUtf8('Check Syntax'), + self.__projectBrowserAct = E5Action(self.trUtf8('Check Syntax'), self.trUtf8('&Syntax...'), 0, 0, self, "") self.__projectBrowserAct.setWhatsThis(self.trUtf8(
--- a/Plugins/PluginTabnanny.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginTabnanny.py Wed Jan 13 18:53:58 2010 +0000 @@ -11,9 +11,9 @@ from PyQt4.QtCore import QObject, SIGNAL -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from CheckerPlugins.Tabnanny.TabnannyDialog import TabnannyDialog @@ -72,7 +72,7 @@ """ menu = e5App().getObject("Project").getMenu("Checks") if menu: - self.__projectAct = E4Action(self.trUtf8('Check Indentations'), + self.__projectAct = E5Action(self.trUtf8('Check Indentations'), self.trUtf8('&Indentations...'), 0, 0, self,'project_check_indentations') self.__projectAct.setStatusTip(\ @@ -83,10 +83,10 @@ """ for bad indentations using tabnanny.</p>""" )) self.connect(self.__projectAct, SIGNAL('triggered()'), self.__projectTabnanny) - e5App().getObject("Project").addE4Actions([self.__projectAct]) + e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) - self.__editorAct = E4Action(self.trUtf8('Check Indentations'), + self.__editorAct = E5Action(self.trUtf8('Check Indentations'), self.trUtf8('&Indentations...'), 0, 0, self, "") self.__editorAct.setWhatsThis(self.trUtf8( @@ -163,7 +163,7 @@ e5App().getObject("Project").getProjectLanguage() == "Python3": self.__projectBrowserMenu = menu if self.__projectBrowserAct is None: - self.__projectBrowserAct = E4Action(self.trUtf8('Check Indentations'), + self.__projectBrowserAct = E5Action(self.trUtf8('Check Indentations'), self.trUtf8('&Indentations...'), 0, 0, self, "") self.__projectBrowserAct.setWhatsThis(self.trUtf8(
--- a/Plugins/PluginVcsPySvn.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginVcsPySvn.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtGui import QApplication -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import Preferences from Preferences.Shortcuts import readShortcuts
--- a/Plugins/PluginVcsSubversion.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginVcsSubversion.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtGui import QApplication -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import Preferences from Preferences.Shortcuts import readShortcuts
--- a/Plugins/PluginWizardPyRegExp.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardPyRegExp.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import \ PyRegExpWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('Python re Wizard'), + self.action = E5Action(self.trUtf8('Python re Wizard'), self.trUtf8('&Python re Wizard...'), 0, 0, self, 'wizards_python_re') self.action.setStatusTip(self.trUtf8('Python re Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQColorDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQColorDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.ColorDialogWizard.ColorDialogWizardDialog import \ ColorDialogWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QColorDialog Wizard'), + self.action = E5Action(self.trUtf8('QColorDialog Wizard'), self.trUtf8('Q&ColorDialog Wizard...'), 0, 0, self, 'wizards_qcolordialog') self.action.setStatusTip(self.trUtf8('QColorDialog Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQFileDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQFileDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.FileDialogWizard.FileDialogWizardDialog import \ FileDialogWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QFileDialog Wizard'), + self.action = E5Action(self.trUtf8('QFileDialog Wizard'), self.trUtf8('Q&FileDialog Wizard...'), 0, 0, self, 'wizards_qfiledialog') self.action.setStatusTip(self.trUtf8('QFileDialog Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQFontDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQFontDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.FontDialogWizard.FontDialogWizardDialog import \ FontDialogWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QFontDialog Wizard'), + self.action = E5Action(self.trUtf8('QFontDialog Wizard'), self.trUtf8('Q&FontDialog Wizard...'), 0, 0, self, 'wizards_qfontdialog') self.action.setStatusTip(self.trUtf8('QFontDialog Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQInputDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQInputDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.InputDialogWizard.InputDialogWizardDialog import \ InputDialogWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QInputDialog Wizard'), + self.action = E5Action(self.trUtf8('QInputDialog Wizard'), self.trUtf8('Q&InputDialog Wizard...'), 0, 0, self, 'wizards_qinputdialog') self.action.setStatusTip(self.trUtf8('QInputDialog Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQMessageBox.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQMessageBox.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.MessageBoxWizard.MessageBoxWizardDialog import \ MessageBoxWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QMessageBox Wizard'), + self.action = E5Action(self.trUtf8('QMessageBox Wizard'), self.trUtf8('Q&MessageBox Wizard...'), 0, 0, self, 'wizards_qmessagebox') self.action.setStatusTip(self.trUtf8('QMessageBox Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/PluginWizardQRegExp.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/PluginWizardQRegExp.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QObject, SIGNAL from PyQt4.QtGui import QDialog, QMessageBox -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action from WizardPlugins.QRegExpWizard.QRegExpWizardDialog import \ QRegExpWizardDialog @@ -62,13 +62,13 @@ menu = self.__ui.getMenu("wizards") if menu: menu.removeAction(self.action) - self.__ui.removeE4Actions([self.action], 'wizards') + self.__ui.removeE5Actions([self.action], 'wizards') def __initAction(self): """ Private method to initialize the action. """ - self.action = E4Action(self.trUtf8('QRegExp Wizard'), + self.action = E5Action(self.trUtf8('QRegExp Wizard'), self.trUtf8('Q&RegExp Wizard...'), 0, 0, self, 'wizards_qregexp') self.action.setStatusTip(self.trUtf8('QRegExp Wizard')) @@ -80,7 +80,7 @@ )) self.connect(self.action, SIGNAL('triggered()'), self.__handle) - self.__ui.addE4Actions([self.action], 'wizards') + self.__ui.addE5Actions([self.action], 'wizards') def __initMenu(self): """
--- a/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.ProjectBrowserHelper import VcsProjectBrowserHelper
--- a/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,11 +12,11 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.ProjectHelper import VcsProjectHelper -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action import UI.PixmapCache @@ -39,7 +39,7 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.actions[:] @@ -47,7 +47,7 @@ """ Public method to generate the action objects. """ - self.vcsNewAct = E4Action(self.trUtf8('New from repository'), + self.vcsNewAct = E5Action(self.trUtf8('New from repository'), UI.PixmapCache.getIcon("vcsCheckout.png"), self.trUtf8('&New from repository...'), 0, 0, self, 'subversion_new') self.vcsNewAct.setStatusTip(self.trUtf8( @@ -60,7 +60,7 @@ self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) self.actions.append(self.vcsNewAct) - self.vcsUpdateAct = E4Action(self.trUtf8('Update from repository'), + self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), UI.PixmapCache.getIcon("vcsUpdate.png"), self.trUtf8('&Update from repository'), 0, 0, self, 'subversion_update') @@ -74,7 +74,7 @@ self.connect(self.vcsUpdateAct, SIGNAL('triggered()'), self._vcsUpdate) self.actions.append(self.vcsUpdateAct) - self.vcsCommitAct = E4Action(self.trUtf8('Commit changes to repository'), + self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'), UI.PixmapCache.getIcon("vcsCommit.png"), self.trUtf8('&Commit changes to repository...'), 0, 0, self, 'subversion_commit') @@ -88,7 +88,7 @@ self.connect(self.vcsCommitAct, SIGNAL('triggered()'), self._vcsCommit) self.actions.append(self.vcsCommitAct) - self.vcsAddAct = E4Action(self.trUtf8('Add to repository'), + self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), UI.PixmapCache.getIcon("vcsAdd.png"), self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add') self.vcsAddAct.setStatusTip(self.trUtf8( @@ -101,7 +101,7 @@ self.connect(self.vcsAddAct, SIGNAL('triggered()'), self._vcsImport) self.actions.append(self.vcsAddAct) - self.vcsRemoveAct = E4Action(self.trUtf8('Remove from repository (and disk)'), + self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'), UI.PixmapCache.getIcon("vcsRemove.png"), self.trUtf8('&Remove from repository (and disk)'), 0, 0, self, 'subversion_remove') @@ -116,7 +116,7 @@ self.connect(self.vcsRemoveAct, SIGNAL('triggered()'), self._vcsRemove) self.actions.append(self.vcsRemoveAct) - self.vcsLogAct = E4Action(self.trUtf8('Show log'), + self.vcsLogAct = E5Action(self.trUtf8('Show log'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show &log'), 0, 0, self, 'subversion_log') @@ -130,7 +130,7 @@ self.connect(self.vcsLogAct, SIGNAL('triggered()'), self._vcsLog) self.actions.append(self.vcsLogAct) - self.svnLogLimitedAct = E4Action(self.trUtf8('Show limited log'), + self.svnLogLimitedAct = E5Action(self.trUtf8('Show limited log'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show limited log'), 0, 0, self, 'subversion_log_limited') @@ -145,7 +145,7 @@ self.connect(self.svnLogLimitedAct, SIGNAL('triggered()'), self.__svnLogLimited) self.actions.append(self.svnLogLimitedAct) - self.svnLogBrowserAct = E4Action(self.trUtf8('Show log browser'), + self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show log browser'), 0, 0, self, 'subversion_log_browser') @@ -161,7 +161,7 @@ self.connect(self.svnLogBrowserAct, SIGNAL('triggered()'), self.__svnLogBrowser) self.actions.append(self.svnLogBrowserAct) - self.vcsDiffAct = E4Action(self.trUtf8('Show difference'), + self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show &difference'), 0, 0, self, 'subversion_diff') @@ -175,7 +175,7 @@ self.connect(self.vcsDiffAct, SIGNAL('triggered()'), self._vcsDiff) self.actions.append(self.vcsDiffAct) - self.svnExtDiffAct = E4Action(self.trUtf8('Show difference (extended)'), + self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show difference (extended)'), 0, 0, self, 'subversion_extendeddiff') @@ -189,7 +189,7 @@ self.connect(self.svnExtDiffAct, SIGNAL('triggered()'), self.__svnExtendedDiff) self.actions.append(self.svnExtDiffAct) - self.svnUrlDiffAct = E4Action(self.trUtf8('Show difference (URLs)'), + self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show difference (URLs)'), 0, 0, self, 'subversion_urldiff') @@ -204,7 +204,7 @@ self.connect(self.svnUrlDiffAct, SIGNAL('triggered()'), self.__svnUrlDiff) self.actions.append(self.svnUrlDiffAct) - self.vcsStatusAct = E4Action(self.trUtf8('Show status'), + self.vcsStatusAct = E5Action(self.trUtf8('Show status'), UI.PixmapCache.getIcon("vcsStatus.png"), self.trUtf8('Show &status'), 0, 0, self, 'subversion_status') @@ -218,7 +218,7 @@ self.connect(self.vcsStatusAct, SIGNAL('triggered()'), self._vcsStatus) self.actions.append(self.vcsStatusAct) - self.svnRepoInfoAct = E4Action(self.trUtf8('Show repository info'), + self.svnRepoInfoAct = E5Action(self.trUtf8('Show repository info'), UI.PixmapCache.getIcon("vcsRepo.png"), self.trUtf8('Show repository info'), 0, 0, self, 'subversion_repoinfo') @@ -233,7 +233,7 @@ self.connect(self.svnRepoInfoAct, SIGNAL('triggered()'), self.__svnInfo) self.actions.append(self.svnRepoInfoAct) - self.vcsTagAct = E4Action(self.trUtf8('Tag in repository'), + self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), UI.PixmapCache.getIcon("vcsTag.png"), self.trUtf8('&Tag in repository...'), 0, 0, self, 'subversion_tag') @@ -247,7 +247,7 @@ self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag) self.actions.append(self.vcsTagAct) - self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), + self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), UI.PixmapCache.getIcon("vcsExport.png"), self.trUtf8('&Export from repository...'), 0, 0, self, 'subversion_export') @@ -261,7 +261,7 @@ self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) self.actions.append(self.vcsExportAct) - self.vcsPropsAct = E4Action(self.trUtf8('Command options'), + self.vcsPropsAct = E5Action(self.trUtf8('Command options'), self.trUtf8('Command &options...'),0,0,self, 'subversion_options') self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) @@ -272,7 +272,7 @@ self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions) self.actions.append(self.vcsPropsAct) - self.vcsRevertAct = E4Action(self.trUtf8('Revert changes'), + self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), UI.PixmapCache.getIcon("vcsRevert.png"), self.trUtf8('Re&vert changes'), 0, 0, self, 'subversion_revert') @@ -286,7 +286,7 @@ self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert) self.actions.append(self.vcsRevertAct) - self.vcsMergeAct = E4Action(self.trUtf8('Merge'), + self.vcsMergeAct = E5Action(self.trUtf8('Merge'), UI.PixmapCache.getIcon("vcsMerge.png"), self.trUtf8('Mer&ge changes...'), 0, 0, self, 'subversion_merge') @@ -300,7 +300,7 @@ self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge) self.actions.append(self.vcsMergeAct) - self.vcsSwitchAct = E4Action(self.trUtf8('Switch'), + self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), UI.PixmapCache.getIcon("vcsSwitch.png"), self.trUtf8('S&witch...'), 0, 0, self, 'subversion_switch') @@ -314,7 +314,7 @@ self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch) self.actions.append(self.vcsSwitchAct) - self.vcsResolveAct = E4Action(self.trUtf8('Resolve conflicts'), + self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'), self.trUtf8('Resolve con&flicts'), 0, 0, self, 'subversion_resolve') self.vcsResolveAct.setStatusTip(self.trUtf8( @@ -327,7 +327,7 @@ self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve) self.actions.append(self.vcsResolveAct) - self.vcsCleanupAct = E4Action(self.trUtf8('Cleanup'), + self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), self.trUtf8('Cleanu&p'), 0, 0, self, 'subversion_cleanup') self.vcsCleanupAct.setStatusTip(self.trUtf8( @@ -340,7 +340,7 @@ self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup) self.actions.append(self.vcsCleanupAct) - self.vcsCommandAct = E4Action(self.trUtf8('Execute command'), + self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), self.trUtf8('E&xecute command...'), 0, 0, self, 'subversion_command') self.vcsCommandAct.setStatusTip(self.trUtf8( @@ -353,7 +353,7 @@ self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand) self.actions.append(self.vcsCommandAct) - self.svnTagListAct = E4Action(self.trUtf8('List tags'), + self.svnTagListAct = E5Action(self.trUtf8('List tags'), self.trUtf8('List tags...'), 0, 0, self, 'subversion_list_tags') self.svnTagListAct.setStatusTip(self.trUtf8( @@ -366,7 +366,7 @@ self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList) self.actions.append(self.svnTagListAct) - self.svnBranchListAct = E4Action(self.trUtf8('List branches'), + self.svnBranchListAct = E5Action(self.trUtf8('List branches'), self.trUtf8('List branches...'), 0, 0, self, 'subversion_list_branches') self.svnBranchListAct.setStatusTip(self.trUtf8( @@ -379,7 +379,7 @@ self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList) self.actions.append(self.svnBranchListAct) - self.svnListAct = E4Action(self.trUtf8('List repository contents'), + self.svnListAct = E5Action(self.trUtf8('List repository contents'), self.trUtf8('List repository contents...'), 0, 0, self, 'subversion_contents') self.svnListAct.setStatusTip(self.trUtf8( @@ -392,7 +392,7 @@ self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList) self.actions.append(self.svnListAct) - self.svnPropSetAct = E4Action(self.trUtf8('Set Property'), + self.svnPropSetAct = E5Action(self.trUtf8('Set Property'), self.trUtf8('Set Property...'), 0, 0, self, 'subversion_property_set') self.svnPropSetAct.setStatusTip(self.trUtf8( @@ -405,7 +405,7 @@ self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet) self.actions.append(self.svnPropSetAct) - self.svnPropListAct = E4Action(self.trUtf8('List Properties'), + self.svnPropListAct = E5Action(self.trUtf8('List Properties'), self.trUtf8('List Properties...'), 0, 0, self, 'subversion_property_list') self.svnPropListAct.setStatusTip(self.trUtf8( @@ -418,7 +418,7 @@ self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList) self.actions.append(self.svnPropListAct) - self.svnPropDelAct = E4Action(self.trUtf8('Delete Property'), + self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'), self.trUtf8('Delete Property...'), 0, 0, self, 'subversion_property_delete') self.svnPropDelAct.setStatusTip(self.trUtf8( @@ -431,7 +431,7 @@ self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel) self.actions.append(self.svnPropDelAct) - self.svnRelocateAct = E4Action(self.trUtf8('Relocate'), + self.svnRelocateAct = E5Action(self.trUtf8('Relocate'), UI.PixmapCache.getIcon("vcsSwitch.png"), self.trUtf8('Relocate...'), 0, 0, self, 'subversion_relocate') @@ -445,7 +445,7 @@ self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate) self.actions.append(self.svnRelocateAct) - self.svnRepoBrowserAct = E4Action(self.trUtf8('Repository Browser'), + self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), UI.PixmapCache.getIcon("vcsRepoBrowser.png"), self.trUtf8('Repository Browser...'), 0, 0, self, 'subversion_repo_browser') @@ -459,7 +459,7 @@ self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser) self.actions.append(self.svnRepoBrowserAct) - self.svnConfigAct = E4Action(self.trUtf8('Configure'), + self.svnConfigAct = E5Action(self.trUtf8('Configure'), self.trUtf8('Configure...'), 0, 0, self, 'subversion_configure') self.svnConfigAct.setStatusTip(self.trUtf8(
--- a/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnCommandDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_SvnCommandDialog import Ui_SvnCommandDialog @@ -36,7 +36,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.workdirCompleter = E4DirCompleter(self.workdirCombo) + self.workdirCompleter = E5DirCompleter(self.workdirCombo) self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) self.okButton.setEnabled(False) @@ -89,4 +89,4 @@ @return a tuple of argv, workdir """ return (self.commandCombo.currentText(), - self.workdirCombo.currentText()) + self.workdirCombo.currentText()) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnCopyDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnCopyDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_SvnCopyDialog import Ui_SvnCopyDialog @@ -34,9 +34,9 @@ self.source = source if os.path.isdir(self.source): - self.targetCompleter = E4DirCompleter(self.targetEdit) + self.targetCompleter = E5DirCompleter(self.targetEdit) else: - self.targetCompleter = E4FileCompleter(self.targetEdit) + self.targetCompleter = E5FileCompleter(self.targetEdit) if move: self.setWindowTitle(self.trUtf8('Subversion Move')) @@ -76,4 +76,4 @@ QFileDialog.Options(QFileDialog.DontConfirmOverwrite)) if target: - self.targetEdit.setText(target) + self.targetEdit.setText(target) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -16,7 +16,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .SvnDialogMixin import SvnDialogMixin from .Ui_SvnDiffDialog import Ui_SvnDiffDialog
--- a/Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnNewProjectOptionsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .SvnRepoBrowserDialog import SvnRepoBrowserDialog from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog @@ -34,8 +34,8 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.vcsDirectoryCompleter = E4DirCompleter(self.vcsUrlEdit) - self.vcsProjectDirCompleter = E4DirCompleter(self.vcsProjectDirEdit) + self.vcsDirectoryCompleter = E5DirCompleter(self.vcsUrlEdit) + self.vcsProjectDirCompleter = E5DirCompleter(self.vcsProjectDirEdit) self.protocolCombo.addItems(ConfigSvnProtocols) @@ -133,4 +133,4 @@ "tag" : self.vcsTagEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return (self.vcsProjectDirEdit.text(), vcsdatadict) + return (self.vcsProjectDirEdit.text(), vcsdatadict) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnOptionsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .SvnRepoBrowserDialog import SvnRepoBrowserDialog from .Ui_SvnOptionsDialog import Ui_SvnOptionsDialog @@ -36,7 +36,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.vcsDirectoryCompleter = E4DirCompleter(self.vcsUrlEdit) + self.vcsDirectoryCompleter = E5DirCompleter(self.vcsUrlEdit) self.project = project @@ -108,4 +108,4 @@ "message" : self.vcsLogEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return vcsdatadict + return vcsdatadict \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnStatusDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .SvnConst import svnStatusMap from .SvnDialogMixin import SvnDialogMixin
--- a/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import pysvn
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py Wed Jan 13 18:53:58 2010 +0000 @@ -16,7 +16,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.VersionControl import VersionControl
--- a/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.ProjectBrowserHelper import VcsProjectBrowserHelper
--- a/Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,11 +12,11 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.ProjectHelper import VcsProjectHelper -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action import UI.PixmapCache @@ -39,7 +39,7 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.actions[:] @@ -47,7 +47,7 @@ """ Public method to generate the action objects. """ - self.vcsNewAct = E4Action(self.trUtf8('New from repository'), + self.vcsNewAct = E5Action(self.trUtf8('New from repository'), UI.PixmapCache.getIcon("vcsCheckout.png"), self.trUtf8('&New from repository...'), 0, 0, self, 'subversion_new') self.vcsNewAct.setStatusTip(self.trUtf8( @@ -60,7 +60,7 @@ self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) self.actions.append(self.vcsNewAct) - self.vcsUpdateAct = E4Action(self.trUtf8('Update from repository'), + self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), UI.PixmapCache.getIcon("vcsUpdate.png"), self.trUtf8('&Update from repository'), 0, 0, self, 'subversion_update') @@ -74,7 +74,7 @@ self.connect(self.vcsUpdateAct, SIGNAL('triggered()'), self._vcsUpdate) self.actions.append(self.vcsUpdateAct) - self.vcsCommitAct = E4Action(self.trUtf8('Commit changes to repository'), + self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'), UI.PixmapCache.getIcon("vcsCommit.png"), self.trUtf8('&Commit changes to repository...'), 0, 0, self, 'subversion_commit') @@ -88,7 +88,7 @@ self.connect(self.vcsCommitAct, SIGNAL('triggered()'), self._vcsCommit) self.actions.append(self.vcsCommitAct) - self.vcsAddAct = E4Action(self.trUtf8('Add to repository'), + self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), UI.PixmapCache.getIcon("vcsAdd.png"), self.trUtf8('&Add to repository...'), 0, 0, self, 'subversion_add') self.vcsAddAct.setStatusTip(self.trUtf8( @@ -101,7 +101,7 @@ self.connect(self.vcsAddAct, SIGNAL('triggered()'), self._vcsImport) self.actions.append(self.vcsAddAct) - self.vcsRemoveAct = E4Action(self.trUtf8('Remove from repository (and disk)'), + self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'), UI.PixmapCache.getIcon("vcsRemove.png"), self.trUtf8('&Remove from repository (and disk)'), 0, 0, self, 'subversion_remove') @@ -116,7 +116,7 @@ self.connect(self.vcsRemoveAct, SIGNAL('triggered()'), self._vcsRemove) self.actions.append(self.vcsRemoveAct) - self.vcsLogAct = E4Action(self.trUtf8('Show log'), + self.vcsLogAct = E5Action(self.trUtf8('Show log'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show &log'), 0, 0, self, 'subversion_log') @@ -130,7 +130,7 @@ self.connect(self.vcsLogAct, SIGNAL('triggered()'), self._vcsLog) self.actions.append(self.vcsLogAct) - self.svnLogLimitedAct = E4Action(self.trUtf8('Show limited log'), + self.svnLogLimitedAct = E5Action(self.trUtf8('Show limited log'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show limited log'), 0, 0, self, 'subversion_log_limited') @@ -145,7 +145,7 @@ self.connect(self.svnLogLimitedAct, SIGNAL('triggered()'), self.__svnLogLimited) self.actions.append(self.svnLogLimitedAct) - self.svnLogBrowserAct = E4Action(self.trUtf8('Show log browser'), + self.svnLogBrowserAct = E5Action(self.trUtf8('Show log browser'), UI.PixmapCache.getIcon("vcsLog.png"), self.trUtf8('Show log browser'), 0, 0, self, 'subversion_log_browser') @@ -161,7 +161,7 @@ self.connect(self.svnLogBrowserAct, SIGNAL('triggered()'), self.__svnLogBrowser) self.actions.append(self.svnLogBrowserAct) - self.vcsDiffAct = E4Action(self.trUtf8('Show difference'), + self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show &difference'), 0, 0, self, 'subversion_diff') @@ -175,7 +175,7 @@ self.connect(self.vcsDiffAct, SIGNAL('triggered()'), self._vcsDiff) self.actions.append(self.vcsDiffAct) - self.svnExtDiffAct = E4Action(self.trUtf8('Show difference (extended)'), + self.svnExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show difference (extended)'), 0, 0, self, 'subversion_extendeddiff') @@ -189,7 +189,7 @@ self.connect(self.svnExtDiffAct, SIGNAL('triggered()'), self.__svnExtendedDiff) self.actions.append(self.svnExtDiffAct) - self.svnUrlDiffAct = E4Action(self.trUtf8('Show difference (URLs)'), + self.svnUrlDiffAct = E5Action(self.trUtf8('Show difference (URLs)'), UI.PixmapCache.getIcon("vcsDiff.png"), self.trUtf8('Show difference (URLs)'), 0, 0, self, 'subversion_urldiff') @@ -204,7 +204,7 @@ self.connect(self.svnUrlDiffAct, SIGNAL('triggered()'), self.__svnUrlDiff) self.actions.append(self.svnUrlDiffAct) - self.vcsStatusAct = E4Action(self.trUtf8('Show status'), + self.vcsStatusAct = E5Action(self.trUtf8('Show status'), UI.PixmapCache.getIcon("vcsStatus.png"), self.trUtf8('Show &status'), 0, 0, self, 'subversion_status') @@ -218,7 +218,7 @@ self.connect(self.vcsStatusAct, SIGNAL('triggered()'), self._vcsStatus) self.actions.append(self.vcsStatusAct) - self.vcsTagAct = E4Action(self.trUtf8('Tag in repository'), + self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), UI.PixmapCache.getIcon("vcsTag.png"), self.trUtf8('&Tag in repository...'), 0, 0, self, 'subversion_tag') @@ -232,7 +232,7 @@ self.connect(self.vcsTagAct, SIGNAL('triggered()'), self._vcsTag) self.actions.append(self.vcsTagAct) - self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), + self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), UI.PixmapCache.getIcon("vcsExport.png"), self.trUtf8('&Export from repository...'), 0, 0, self, 'subversion_export') @@ -246,7 +246,7 @@ self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) self.actions.append(self.vcsExportAct) - self.vcsPropsAct = E4Action(self.trUtf8('Command options'), + self.vcsPropsAct = E5Action(self.trUtf8('Command options'), self.trUtf8('Command &options...'),0,0,self, 'subversion_options') self.vcsPropsAct.setStatusTip(self.trUtf8('Show the VCS command options')) @@ -257,7 +257,7 @@ self.connect(self.vcsPropsAct, SIGNAL('triggered()'), self._vcsCommandOptions) self.actions.append(self.vcsPropsAct) - self.vcsRevertAct = E4Action(self.trUtf8('Revert changes'), + self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), UI.PixmapCache.getIcon("vcsRevert.png"), self.trUtf8('Re&vert changes'), 0, 0, self, 'subversion_revert') @@ -271,7 +271,7 @@ self.connect(self.vcsRevertAct, SIGNAL('triggered()'), self._vcsRevert) self.actions.append(self.vcsRevertAct) - self.vcsMergeAct = E4Action(self.trUtf8('Merge'), + self.vcsMergeAct = E5Action(self.trUtf8('Merge'), UI.PixmapCache.getIcon("vcsMerge.png"), self.trUtf8('Mer&ge changes...'), 0, 0, self, 'subversion_merge') @@ -285,7 +285,7 @@ self.connect(self.vcsMergeAct, SIGNAL('triggered()'), self._vcsMerge) self.actions.append(self.vcsMergeAct) - self.vcsSwitchAct = E4Action(self.trUtf8('Switch'), + self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), UI.PixmapCache.getIcon("vcsSwitch.png"), self.trUtf8('S&witch...'), 0, 0, self, 'subversion_switch') @@ -299,7 +299,7 @@ self.connect(self.vcsSwitchAct, SIGNAL('triggered()'), self._vcsSwitch) self.actions.append(self.vcsSwitchAct) - self.vcsResolveAct = E4Action(self.trUtf8('Resolve conflicts'), + self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'), self.trUtf8('Resolve con&flicts'), 0, 0, self, 'subversion_resolve') self.vcsResolveAct.setStatusTip(self.trUtf8( @@ -312,7 +312,7 @@ self.connect(self.vcsResolveAct, SIGNAL('triggered()'), self.__svnResolve) self.actions.append(self.vcsResolveAct) - self.vcsCleanupAct = E4Action(self.trUtf8('Cleanup'), + self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), self.trUtf8('Cleanu&p'), 0, 0, self, 'subversion_cleanup') self.vcsCleanupAct.setStatusTip(self.trUtf8( @@ -325,7 +325,7 @@ self.connect(self.vcsCleanupAct, SIGNAL('triggered()'), self._vcsCleanup) self.actions.append(self.vcsCleanupAct) - self.vcsCommandAct = E4Action(self.trUtf8('Execute command'), + self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), self.trUtf8('E&xecute command...'), 0, 0, self, 'subversion_command') self.vcsCommandAct.setStatusTip(self.trUtf8( @@ -338,7 +338,7 @@ self.connect(self.vcsCommandAct, SIGNAL('triggered()'), self._vcsCommand) self.actions.append(self.vcsCommandAct) - self.svnTagListAct = E4Action(self.trUtf8('List tags'), + self.svnTagListAct = E5Action(self.trUtf8('List tags'), self.trUtf8('List tags...'), 0, 0, self, 'subversion_list_tags') self.svnTagListAct.setStatusTip(self.trUtf8( @@ -351,7 +351,7 @@ self.connect(self.svnTagListAct, SIGNAL('triggered()'), self.__svnTagList) self.actions.append(self.svnTagListAct) - self.svnBranchListAct = E4Action(self.trUtf8('List branches'), + self.svnBranchListAct = E5Action(self.trUtf8('List branches'), self.trUtf8('List branches...'), 0, 0, self, 'subversion_list_branches') self.svnBranchListAct.setStatusTip(self.trUtf8( @@ -364,7 +364,7 @@ self.connect(self.svnBranchListAct, SIGNAL('triggered()'), self.__svnBranchList) self.actions.append(self.svnBranchListAct) - self.svnListAct = E4Action(self.trUtf8('List repository contents'), + self.svnListAct = E5Action(self.trUtf8('List repository contents'), self.trUtf8('List repository contents...'), 0, 0, self, 'subversion_contents') self.svnListAct.setStatusTip(self.trUtf8( @@ -377,7 +377,7 @@ self.connect(self.svnListAct, SIGNAL('triggered()'), self.__svnTagList) self.actions.append(self.svnListAct) - self.svnPropSetAct = E4Action(self.trUtf8('Set Property'), + self.svnPropSetAct = E5Action(self.trUtf8('Set Property'), self.trUtf8('Set Property...'), 0, 0, self, 'subversion_property_set') self.svnPropSetAct.setStatusTip(self.trUtf8( @@ -390,7 +390,7 @@ self.connect(self.svnPropSetAct, SIGNAL('triggered()'), self.__svnPropSet) self.actions.append(self.svnPropSetAct) - self.svnPropListAct = E4Action(self.trUtf8('List Properties'), + self.svnPropListAct = E5Action(self.trUtf8('List Properties'), self.trUtf8('List Properties...'), 0, 0, self, 'subversion_property_list') self.svnPropListAct.setStatusTip(self.trUtf8( @@ -403,7 +403,7 @@ self.connect(self.svnPropListAct, SIGNAL('triggered()'), self.__svnPropList) self.actions.append(self.svnPropListAct) - self.svnPropDelAct = E4Action(self.trUtf8('Delete Property'), + self.svnPropDelAct = E5Action(self.trUtf8('Delete Property'), self.trUtf8('Delete Property...'), 0, 0, self, 'subversion_property_delete') self.svnPropDelAct.setStatusTip(self.trUtf8( @@ -416,7 +416,7 @@ self.connect(self.svnPropDelAct, SIGNAL('triggered()'), self.__svnPropDel) self.actions.append(self.svnPropDelAct) - self.svnRelocateAct = E4Action(self.trUtf8('Relocate'), + self.svnRelocateAct = E5Action(self.trUtf8('Relocate'), UI.PixmapCache.getIcon("vcsSwitch.png"), self.trUtf8('Relocate...'), 0, 0, self, 'subversion_relocate') @@ -430,7 +430,7 @@ self.connect(self.svnRelocateAct, SIGNAL('triggered()'), self.__svnRelocate) self.actions.append(self.svnRelocateAct) - self.svnRepoBrowserAct = E4Action(self.trUtf8('Repository Browser'), + self.svnRepoBrowserAct = E5Action(self.trUtf8('Repository Browser'), UI.PixmapCache.getIcon("vcsRepoBrowser.png"), self.trUtf8('Repository Browser...'), 0, 0, self, 'subversion_repo_browser') @@ -444,7 +444,7 @@ self.connect(self.svnRepoBrowserAct, SIGNAL('triggered()'), self.__svnRepoBrowser) self.actions.append(self.svnRepoBrowserAct) - self.svnConfigAct = E4Action(self.trUtf8('Configure'), + self.svnConfigAct = E5Action(self.trUtf8('Configure'), self.trUtf8('Configure...'), 0, 0, self, 'subversion_configure') self.svnConfigAct.setStatusTip(self.trUtf8(
--- a/Plugins/VcsPlugins/vcsSubversion/SvnCommandDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnCommandDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_SvnCommandDialog import Ui_SvnCommandDialog @@ -36,7 +36,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.workdirCompleter = E4DirCompleter(self.workdirCombo) + self.workdirCompleter = E5DirCompleter(self.workdirCombo) self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) self.okButton.setEnabled(False) @@ -89,4 +89,4 @@ @return a tuple of argv, workdir """ return (self.commandCombo.currentText(), - self.workdirCombo.currentText()) + self.workdirCombo.currentText()) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnCopyDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_SvnCopyDialog import Ui_SvnCopyDialog @@ -34,9 +34,9 @@ self.source = source if os.path.isdir(self.source): - self.targetCompleter = E4DirCompleter(self.targetEdit) + self.targetCompleter = E5DirCompleter(self.targetEdit) else: - self.targetCompleter = E4FileCompleter(self.targetEdit) + self.targetCompleter = E5FileCompleter(self.targetEdit) if move: self.setWindowTitle(self.trUtf8('Subversion Move')) @@ -76,4 +76,4 @@ QFileDialog.Options(QFileDialog.DontConfirmOverwrite)) if target: - self.targetEdit.setText(target) + self.targetEdit.setText(target) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_SvnDiffDialog import Ui_SvnDiffDialog
--- a/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .SvnRepoBrowserDialog import SvnRepoBrowserDialog from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog @@ -34,8 +34,8 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.vcsDirectoryCompleter = E4DirCompleter(self.vcsUrlEdit) - self.vcsProjectDirCompleter = E4DirCompleter(self.vcsProjectDirEdit) + self.vcsDirectoryCompleter = E5DirCompleter(self.vcsUrlEdit) + self.vcsProjectDirCompleter = E5DirCompleter(self.vcsProjectDirEdit) self.protocolCombo.addItems(ConfigSvnProtocols) @@ -133,4 +133,4 @@ "tag" : self.vcsTagEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return (self.vcsProjectDirEdit.text(), vcsdatadict) + return (self.vcsProjectDirEdit.text(), vcsdatadict) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnOptionsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .SvnRepoBrowserDialog import SvnRepoBrowserDialog from .Ui_SvnOptionsDialog import Ui_SvnOptionsDialog @@ -36,7 +36,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.vcsDirectoryCompleter = E4DirCompleter(self.vcsUrlEdit) + self.vcsDirectoryCompleter = E5DirCompleter(self.vcsUrlEdit) self.project = project @@ -108,4 +108,4 @@ "message" : self.vcsLogEdit.text(), "standardLayout" : self.layoutCheckBox.isChecked(), } - return vcsdatadict + return vcsdatadict \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_SvnPropSetDialog import Ui_SvnPropSetDialog @@ -29,7 +29,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.propFileCompleter = E4FileCompleter(self.propFileEdit) + self.propFileCompleter = E5FileCompleter(self.propFileEdit) @pyqtSlot() def on_fileButton_clicked(self): @@ -56,4 +56,4 @@ if self.fileRadioButton.isChecked(): return (self.propNameEdit.text(), True, self.propFileEdit.text()) else: - return (self.propNameEdit.text(), False, self.propTextEdit.toPlainText()) + return (self.propNameEdit.text(), False, self.propTextEdit.toPlainText()) \ No newline at end of file
--- a/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnStatusDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_SvnStatusDialog import Ui_SvnStatusDialog
--- a/Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_SvnUrlSelectionDialog import Ui_SvnUrlSelectionDialog
--- a/Plugins/VcsPlugins/vcsSubversion/subversion.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/VcsPlugins/vcsSubversion/subversion.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from VCS.VersionControl import VersionControl
--- a/Plugins/ViewManagerPlugins/Listspace/Listspace.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/ViewManagerPlugins/Listspace/Listspace.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from ViewManager.ViewManager import ViewManager
--- a/Plugins/ViewManagerPlugins/MdiArea/MdiArea.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/ViewManagerPlugins/MdiArea/MdiArea.py Wed Jan 13 18:53:58 2010 +0000 @@ -16,7 +16,7 @@ import UI.PixmapCache -from E4Gui.E4Action import E4Action, addActions +from E5Gui.E5Action import E5Action, addActions import Utilities @@ -208,7 +208,7 @@ """ Protected method to define the user interface actions for window handling. """ - self.tileAct = E4Action(self.trUtf8('Tile'), + self.tileAct = E5Action(self.trUtf8('Tile'), self.trUtf8('&Tile'), 0, 0, self, 'vm_window_tile') self.tileAct.setStatusTip(self.trUtf8('Tile the windows')) self.tileAct.setWhatsThis(self.trUtf8( @@ -218,7 +218,7 @@ self.connect(self.tileAct, SIGNAL('triggered()'), self.tile) self.windowActions.append(self.tileAct) - self.cascadeAct = E4Action(self.trUtf8('Cascade'), + self.cascadeAct = E5Action(self.trUtf8('Cascade'), self.trUtf8('&Cascade'), 0, 0, self, 'vm_window_cascade') self.cascadeAct.setStatusTip(self.trUtf8('Cascade the windows')) self.cascadeAct.setWhatsThis(self.trUtf8( @@ -228,7 +228,7 @@ self.connect(self.cascadeAct, SIGNAL('triggered()'), self.cascade) self.windowActions.append(self.cascadeAct) - self.nextChildAct = E4Action(self.trUtf8('Next'), + self.nextChildAct = E5Action(self.trUtf8('Next'), self.trUtf8('&Next'), 0, 0, self, 'vm_window_next') self.nextChildAct.setStatusTip(self.trUtf8('Activate next window')) self.nextChildAct.setWhatsThis(self.trUtf8( @@ -238,7 +238,7 @@ self.connect(self.nextChildAct, SIGNAL('triggered()'), self.activateNextSubWindow) self.windowActions.append(self.nextChildAct) - self.prevChildAct = E4Action(self.trUtf8('Previous'), + self.prevChildAct = E5Action(self.trUtf8('Previous'), self.trUtf8('&Previous'), 0, 0, self, 'vm_window_previous') self.prevChildAct.setStatusTip(self.trUtf8('Activate previous window')) self.prevChildAct.setWhatsThis(self.trUtf8( @@ -249,7 +249,7 @@ self.activatePreviousSubWindow) self.windowActions.append(self.prevChildAct) - self.restoreAllAct = E4Action(self.trUtf8('Restore All'), + self.restoreAllAct = E5Action(self.trUtf8('Restore All'), self.trUtf8('&Restore All'), 0, 0, self, 'vm_window_restore_all') self.restoreAllAct.setStatusTip(self.trUtf8('Restore all windows')) self.restoreAllAct.setWhatsThis(self.trUtf8( @@ -259,7 +259,7 @@ self.connect(self.restoreAllAct, SIGNAL('triggered()'), self.__restoreAllWindows) self.windowActions.append(self.restoreAllAct) - self.iconizeAllAct = E4Action(self.trUtf8('Iconize All'), + self.iconizeAllAct = E5Action(self.trUtf8('Iconize All'), self.trUtf8('&Iconize All'), 0, 0, self, 'vm_window_iconize_all') self.iconizeAllAct.setStatusTip(self.trUtf8('Iconize all windows')) self.iconizeAllAct.setWhatsThis(self.trUtf8( @@ -359,4 +359,4 @@ Private slot to iconize all windows. """ for win in self.subWindowList(): - win.showMinimized() + win.showMinimized() \ No newline at end of file
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from ViewManager.ViewManager import ViewManager @@ -20,14 +20,14 @@ import UI.PixmapCache -from E4Gui.E4TabWidget import E4TabWidget, E4WheelTabBar -from E4Gui.E4Led import E4Led +from E5Gui.E5TabWidget import E5TabWidget, E5WheelTabBar +from E5Gui.E5Led import E5Led import Preferences from eric5config import getConfig -class TabBar(E4WheelTabBar): +class TabBar(E5WheelTabBar): """ Class implementing a customized tab bar supporting drag & drop. @@ -48,7 +48,7 @@ @param parent reference to the parent widget (QWidget) """ - E4WheelTabBar.__init__(self, parent) + E5WheelTabBar.__init__(self, parent) self.setAcceptDrops(True) self.__dragStartPos = QPoint() @@ -61,7 +61,7 @@ """ if event.button() == Qt.LeftButton: self.__dragStartPos = QPoint(event.pos()) - E4WheelTabBar.mousePressEvent(self, event) + E5WheelTabBar.mousePressEvent(self, event) def mouseMoveEvent(self, event): """ @@ -86,7 +86,7 @@ drag.exec_(Qt.DropActions(Qt.CopyAction)) elif event.modifiers() == Qt.KeyboardModifiers(Qt.NoModifier): drag.exec_(Qt.DropActions(Qt.MoveAction)) - E4WheelTabBar.mouseMoveEvent(self, event) + E5WheelTabBar.mouseMoveEvent(self, event) def dragEnterEvent(self, event): """ @@ -102,7 +102,7 @@ "source-index" in formats and \ "tabwidget-id" in formats: event.acceptProposedAction() - E4WheelTabBar.dragEnterEvent(self, event) + E5WheelTabBar.dragEnterEvent(self, event) def dropEvent(self, event): """ @@ -132,9 +132,9 @@ elif event.proposedAction() == Qt.CopyAction: self.emit(SIGNAL("tabCopyRequested(int, int)"), fromIndex, toIndex) event.acceptProposedAction() - E4WheelTabBar.dropEvent(self, event) + E5WheelTabBar.dropEvent(self, event) -class TabWidget(E4TabWidget): +class TabWidget(E5TabWidget): """ Class implementing a custimized tab widget. """ @@ -144,7 +144,7 @@ @param vm view manager widget (Tabview) """ - E4TabWidget.__init__(self) + E5TabWidget.__init__(self) self.setAttribute(Qt.WA_DeleteOnClose, True) self.__tabBar = TabBar(self) @@ -162,7 +162,7 @@ self.vm = vm self.editors = [] - self.indicator = E4Led(self) + self.indicator = E5Led(self) self.setCornerWidget(self.indicator, Qt.TopLeftCorner) self.rightCornerWidget = QWidget(self) @@ -212,7 +212,7 @@ self.emptyLabel = QLabel() self.emptyLabel.setPixmap(ericPic) self.emptyLabel.setAlignment(Qt.AlignVCenter | Qt.AlignHCenter) - E4TabWidget.addTab(self, self.emptyLabel, UI.PixmapCache.getIcon("empty.png"), "") + E5TabWidget.addTab(self, self.emptyLabel, UI.PixmapCache.getIcon("empty.png"), "") def __initMenu(self): """ @@ -314,7 +314,7 @@ @param editor the editor object to be added (QScintilla.Editor.Editor) @param title title for the new tab (string) """ - E4TabWidget.addTab(self, editor, UI.PixmapCache.getIcon("empty.png"), title) + E5TabWidget.addTab(self, editor, UI.PixmapCache.getIcon("empty.png"), title) if self.closeButton: self.closeButton.setEnabled(True) else: @@ -339,7 +339,7 @@ @param title title for the new tab (string) @return index of the inserted tab (integer) """ - newIndex = E4TabWidget.insertTab(self, index, editor, + newIndex = E5TabWidget.insertTab(self, index, editor, UI.PixmapCache.getIcon("empty.png"), title) if self.closeButton: @@ -405,7 +405,7 @@ self.editors.remove(object) if not self.editors: - E4TabWidget.addTab(self, self.emptyLabel, + E5TabWidget.addTab(self, self.emptyLabel, UI.PixmapCache.getIcon("empty.png"), "") self.emptyLabel.show() if self.closeButton: @@ -481,7 +481,7 @@ if not self.editors: return None else: - return E4TabWidget.currentWidget(self) + return E5TabWidget.currentWidget(self) def hasEditor(self, editor): """ @@ -1026,7 +1026,7 @@ if event.type() == QEvent.MouseButtonPress and \ not event.button() == Qt.RightButton: self.currentTabWidget.showIndicator(False) - if isinstance(watched, E4TabWidget): + if isinstance(watched, E5TabWidget): switched = watched is not self.currentTabWidget self.currentTabWidget = watched elif isinstance(watched, QTabBar):
--- a/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/WizardPlugins/FileDialogWizard/FileDialogWizardDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,9 +12,9 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_FileDialogWizardDialog import Ui_FileDialogWizardDialog @@ -34,8 +34,8 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.eStartWithCompleter = E4FileCompleter(self.eStartWith) - self.eWorkDirCompleter = E4DirCompleter(self.eWorkDir) + self.eStartWithCompleter = E5FileCompleter(self.eStartWith) + self.eWorkDirCompleter = E5DirCompleter(self.eWorkDir) self.connect(self.rSaveFile, SIGNAL("toggled(bool)"), self.__toggleConfirmCheckBox)
--- a/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_InputDialogWizardDialog import Ui_InputDialogWizardDialog
--- a/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/WizardPlugins/MessageBoxWizard/MessageBoxWizardDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_MessageBoxWizardDialog import Ui_MessageBoxWizardDialog
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_QRegExpWizardDialog import Ui_QRegExpWizardDialog
--- a/Preferences/ConfigurationDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import QScintilla.Lexers
--- a/Preferences/ConfigurationPages/CorbaPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/CorbaPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_CorbaPage import Ui_CorbaPage @@ -30,7 +30,7 @@ self.setupUi(self) self.setObjectName("CorbaPage") - self.idlCompleter = E4FileCompleter(self.idlEdit) + self.idlCompleter = E5FileCompleter(self.idlEdit) # set initial values self.idlEdit.setText(Preferences.getCorba("omniidl")) @@ -62,4 +62,4 @@ @param dlg reference to the configuration dialog """ page = CorbaPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerGeneralPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/DebuggerGeneralPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,9 +13,9 @@ from PyQt4.QtGui import * from PyQt4.QtNetwork import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_DebuggerGeneralPage import Ui_DebuggerGeneralPage @@ -52,8 +52,8 @@ t += Utilities.getPercentReplacementHelp() self.consoleDbgEdit.setWhatsThis(t) - self.consoleDbgCompleter = E4FileCompleter(self.consoleDbgEdit) - self.dbgTranslationLocalCompleter = E4DirCompleter(self.dbgTranslationLocalEdit) + self.consoleDbgCompleter = E5FileCompleter(self.consoleDbgEdit) + self.dbgTranslationLocalCompleter = E5DirCompleter(self.dbgTranslationLocalEdit) # set initial values interfaces = []
--- a/Preferences/ConfigurationPages/DebuggerPython3Page.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/DebuggerPython3Page.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_DebuggerPython3Page import Ui_DebuggerPython3Page @@ -30,8 +30,8 @@ self.setupUi(self) self.setObjectName("DebuggerPython3Page") - self.interpreterCompleter = E4FileCompleter(self.interpreterEdit) - self.debugClientCompleter = E4FileCompleter(self.debugClientEdit) + self.interpreterCompleter = E5FileCompleter(self.interpreterEdit) + self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) # set initial values self.customPyCheckBox.setChecked(\ @@ -115,4 +115,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerPython3Page() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerPythonPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/DebuggerPythonPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_DebuggerPythonPage import Ui_DebuggerPythonPage @@ -30,8 +30,8 @@ self.setupUi(self) self.setObjectName("DebuggerPythonPage") - self.interpreterCompleter = E4FileCompleter(self.interpreterEdit) - self.debugClientCompleter = E4FileCompleter(self.debugClientEdit) + self.interpreterCompleter = E5FileCompleter(self.interpreterEdit) + self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) # set initial values self.interpreterEdit.setText(\ @@ -111,4 +111,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerPythonPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/DebuggerRubyPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/DebuggerRubyPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_DebuggerRubyPage import Ui_DebuggerRubyPage @@ -30,7 +30,7 @@ self.setupUi(self) self.setObjectName("DebuggerRubyPage") - self.rubyInterpreterCompleter = E4FileCompleter(self.rubyInterpreterEdit) + self.rubyInterpreterCompleter = E5FileCompleter(self.rubyInterpreterEdit) # set initial values self.rubyInterpreterEdit.setText(\ @@ -68,4 +68,4 @@ @param dlg reference to the configuration dialog """ page = DebuggerRubyPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/EditorAPIsPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/EditorAPIsPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,8 +10,8 @@ from PyQt4.QtCore import QDir, pyqtSlot, SIGNAL, QFileInfo from PyQt4.QtGui import QFileDialog, QInputDialog -from E4Gui.E4Application import e5App -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Application import e5App +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_EditorAPIsPage import Ui_EditorAPIsPage @@ -39,7 +39,7 @@ self.__currentAPI = None self.__inPreparation = False - self.apiFileCompleter = E4FileCompleter(self.apiFileEdit) + self.apiFileCompleter = E5FileCompleter(self.apiFileEdit) # set initial values self.pluginManager = e5App().getObject("PluginManager")
--- a/Preferences/ConfigurationPages/EditorSpellCheckingPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/EditorSpellCheckingPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QPixmap, QIcon, QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_EditorSpellCheckingPage import Ui_EditorSpellCheckingPage @@ -41,8 +41,8 @@ else: self.spellingFrame.setEnabled(False) - self.pwlFileCompleter = E4FileCompleter(self.pwlEdit, showHidden = True) - self.pelFileCompleter = E4FileCompleter(self.pelEdit, showHidden = True) + self.pwlFileCompleter = E5FileCompleter(self.pwlEdit, showHidden = True) + self.pelFileCompleter = E5FileCompleter(self.pelEdit, showHidden = True) # set initial values self.checkingEnabledCheckBox.setChecked( @@ -140,4 +140,4 @@ @param dlg reference to the configuration dialog """ page = EditorSpellCheckingPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpAppearancePage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/HelpAppearancePage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_HelpAppearancePage import Ui_HelpAppearancePage @@ -30,7 +30,7 @@ self.setupUi(self) self.setObjectName("HelpAppearancePage") - self.styleSheetCompleter = E4FileCompleter(self.styleSheetEdit) + self.styleSheetCompleter = E5FileCompleter(self.styleSheetEdit) self.helpColours = {} @@ -116,4 +116,4 @@ @param dlg reference to the configuration dialog """ page = HelpAppearancePage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpDocumentationPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/HelpDocumentationPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_HelpDocumentationPage import Ui_HelpDocumentationPage @@ -30,10 +30,10 @@ self.setupUi(self) self.setObjectName("HelpDocumentationPage") - self.pythonDocDirCompleter = E4DirCompleter(self.pythonDocDirEdit) - self.qt4DocDirCompleter = E4DirCompleter(self.qt4DocDirEdit) - self.pyqt4DocDirCompleter = E4DirCompleter(self.pyqt4DocDirEdit) - self.pysideDocDirCompleter = E4DirCompleter(self.pysideDocDirEdit) + self.pythonDocDirCompleter = E5DirCompleter(self.pythonDocDirEdit) + self.qt4DocDirCompleter = E5DirCompleter(self.qt4DocDirEdit) + self.pyqt4DocDirCompleter = E5DirCompleter(self.pyqt4DocDirEdit) + self.pysideDocDirCompleter = E5DirCompleter(self.pysideDocDirEdit) try: import PySide @@ -131,4 +131,4 @@ @param dlg reference to the configuration dialog """ page = HelpDocumentationPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/HelpViewersPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/HelpViewersPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QButtonGroup, QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_HelpViewersPage import Ui_HelpViewersPage @@ -36,7 +36,7 @@ self.helpViewerGroup.addButton(self.webBrowserButton) self.helpViewerGroup.addButton(self.customViewerButton) - self.customViewerCompleter = E4FileCompleter(self.customViewerEdit) + self.customViewerCompleter = E5FileCompleter(self.customViewerEdit) # set initial values hvId = Preferences.getHelp("HelpViewerType") @@ -130,4 +130,4 @@ @param dlg reference to the configuration dialog """ page = HelpViewersPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/IconsPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/IconsPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QListWidgetItem, QFileDialog -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .IconsPreviewDialog import IconsPreviewDialog @@ -31,7 +31,7 @@ self.setupUi(self) self.setObjectName("IconsPage") - self.iconDirectoryCompleter = E4DirCompleter(self.iconDirectoryEdit) + self.iconDirectoryCompleter = E5DirCompleter(self.iconDirectoryEdit) # set initial values dirList = Preferences.getIcons("Path")[:] @@ -174,4 +174,4 @@ @param dlg reference to the configuration dialog """ page = IconsPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/InterfacePage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/InterfacePage.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import pyqtSlot, QTranslator, qVersion from PyQt4.QtGui import QStyleFactory, QFileDialog -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_InterfacePage import Ui_InterfacePage @@ -35,7 +35,7 @@ self.setupUi(self) self.setObjectName("InterfacePage") - self.styleSheetCompleter = E4FileCompleter(self.styleSheetEdit) + self.styleSheetCompleter = E5FileCompleter(self.styleSheetEdit) self.uiColours = {}
--- a/Preferences/ConfigurationPages/NetworkPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/NetworkPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_NetworkPage import Ui_NetworkPage @@ -32,7 +32,7 @@ self.setupUi(self) self.setObjectName("NetworkPage") - self.downloadDirCompleter = E4DirCompleter(self.downloadDirEdit) + self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) self.proxyTypeCombo.addItem(self.trUtf8("Transparent HTTP"), 0) self.proxyTypeCombo.addItem(self.trUtf8("Caching HTTP"), 1) @@ -102,4 +102,4 @@ @param dlg reference to the configuration dialog """ page = NetworkPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/PluginManagerPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/PluginManagerPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_PluginManagerPage import Ui_PluginManagerPage @@ -32,7 +32,7 @@ self.setupUi(self) self.setObjectName("PluginManagerPage") - self.downloadDirCompleter = E4DirCompleter(self.downloadDirEdit) + self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit) # set initial values self.activateExternalPluginsCheckBox.setChecked(\ @@ -73,4 +73,4 @@ @param dlg reference to the configuration dialog """ page = PluginManagerPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ProjectBrowserPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/ProjectBrowserPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -9,7 +9,7 @@ from PyQt4.QtCore import pyqtSlot -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ConfigurationPageBase import ConfigurationPageBase from .Ui_ProjectBrowserPage import Ui_ProjectBrowserPage
--- a/Preferences/ConfigurationPages/QtPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/QtPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import QDir, pyqtSlot from PyQt4.QtGui import QFileDialog -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .ConfigurationPageBase import ConfigurationPageBase from .Ui_QtPage import Ui_QtPage @@ -32,8 +32,8 @@ self.setupUi(self) self.setObjectName("QtPage") - self.qt4Completer = E4DirCompleter(self.qt4Edit) - self.qt4TransCompleter = E4DirCompleter(self.qt4TransEdit) + self.qt4Completer = E5DirCompleter(self.qt4Edit) + self.qt4TransCompleter = E5DirCompleter(self.qt4TransEdit) if sys.platform != "darwin": self.qt4Group.hide() @@ -115,4 +115,4 @@ @param dlg reference to the configuration dialog """ page = QtPage() - return page + return page \ No newline at end of file
--- a/Preferences/ConfigurationPages/ViewmanagerPage.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ConfigurationPages/ViewmanagerPage.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import QPixmap -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ConfigurationPageBase import ConfigurationPageBase from .Ui_ViewmanagerPage import Ui_ViewmanagerPage
--- a/Preferences/ProgramsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ProgramsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtGui import QApplication, QTreeWidgetItem, QHeaderView, QCursor, \ QDialog, QDialogButtonBox -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_ProgramsDialog import Ui_ProgramsDialog
--- a/Preferences/Shortcuts.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/Shortcuts.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from Preferences import Prefs, syncPreferences @@ -26,7 +26,7 @@ """ Private function to read a single keyboard shortcut from the settings. - @param act reference to the action object (E4Action) + @param act reference to the action object (E5Action) @param category category the action belongs to (string) @param prefClass preferences class used as the storage area """ @@ -112,7 +112,7 @@ """ Private function to write a single keyboard shortcut to the settings. - @param act reference to the action object (E4Action) + @param act reference to the action object (E5Action) @param category category the action belongs to (string) @param prefClass preferences class used as the storage area """ @@ -218,7 +218,7 @@ def importShortcuts(fn): """ - Module function to import the keyboard shortcuts for the defined E4Actions. + Module function to import the keyboard shortcuts for the defined E5Actions. @param fn filename of the import file (string) @return flag indicating success @@ -323,7 +323,7 @@ """ Private function to write a single keyboard shortcut to the settings. - @param actions list of actions to set (list of E4Action) + @param actions list of actions to set (list of E5Action) @param sdict dictionary containg accelerator information for one category """ for act in actions:
--- a/Preferences/ShortcutsDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ShortcutsDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_ShortcutsDialog import Ui_ShortcutsDialog from .ShortcutDialog import ShortcutDialog @@ -82,7 +82,7 @@ Private method to generate a keyboard shortcut item. @param category reference to the category item (QTreeWidgetItem) - @param action reference to the keyboard action (E4Action) + @param action reference to the keyboard action (E5Action) @keyparam noCheck flag indicating that no uniqueness check should be performed (boolean) @keyparam objectType type of the object (string). Objects of the same type @@ -353,7 +353,7 @@ Private method to save the actions for a category. @param category reference to the category item (QTreeWidgetItem) - @param actions list of actions for the category (list of E4Action) + @param actions list of actions for the category (list of E5Action) """ for index in range(category.childCount()): itm = category.child(index)
--- a/Preferences/ToolConfigurationDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Preferences/ToolConfigurationDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_ToolConfigurationDialog import Ui_ToolConfigurationDialog import Utilities @@ -33,8 +33,8 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.iconCompleter = E4FileCompleter(self.iconEdit) - self.executableCompleter = E4FileCompleter(self.executableEdit) + self.iconCompleter = E5FileCompleter(self.iconEdit) + self.executableCompleter = E5FileCompleter(self.executableEdit) self.redirectionModes = [ ("no", self.trUtf8("no redirection")), @@ -389,4 +389,4 @@ """ tmp = self.toollist[itm1] self.toollist[itm1] = self.toollist[itm2] - self.toollist[itm2] = tmp + self.toollist[itm2] = tmp \ No newline at end of file
--- a/Project/AddDirectoryDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/AddDirectoryDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_AddDirectoryDialog import Ui_AddDirectoryDialog @@ -36,8 +36,8 @@ self.setObjectName(name) self.setupUi(self) - self.sourceDirCompleter = E4DirCompleter(self.sourceDirEdit) - self.targetDirCompleter = E4DirCompleter(self.targetDirEdit) + self.sourceDirCompleter = E5DirCompleter(self.sourceDirEdit) + self.targetDirCompleter = E5DirCompleter(self.targetDirEdit) self.ppath = pro.ppath self.targetDirEdit.setText(self.ppath) @@ -141,4 +141,4 @@ self.filterComboBox.itemData(self.filterComboBox.currentIndex()) return (filetype, self.sourceDirEdit.text(), self.targetDirEdit.text(), - self.recursiveCheckBox.isChecked()) + self.recursiveCheckBox.isChecked()) \ No newline at end of file
--- a/Project/AddFileDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/AddFileDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_AddFileDialog import Ui_AddFileDialog @@ -38,7 +38,7 @@ self.setObjectName(name) self.setupUi(self) - self.targetDirCompleter = E4DirCompleter(self.targetDirEdit) + self.targetDirCompleter = E5DirCompleter(self.targetDirEdit) self.targetDirEdit.setText(pro.ppath) self.filter = filter @@ -182,4 +182,4 @@ the files shall be added as source code """ return (self.sourceFileEdit.text().split(os.pathsep), - self.targetDirEdit.text(), self.sourcecodeCheckBox.isChecked()) + self.targetDirEdit.text(), self.sourcecodeCheckBox.isChecked()) \ No newline at end of file
--- a/Project/CreateDialogCodeDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/CreateDialogCodeDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtGui import * from PyQt4 import uic -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .NewDialogClassDialog import NewDialogClassDialog from .Ui_CreateDialogCodeDialog import Ui_CreateDialogCodeDialog
--- a/Project/DebuggerPropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/DebuggerPropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_DebuggerPropertiesDialog import Ui_DebuggerPropertiesDialog @@ -39,9 +39,9 @@ self.setObjectName(name) self.setupUi(self) - self.debugClientCompleter = E4FileCompleter(self.debugClientEdit) - self.interpreterCompleter = E4FileCompleter(self.interpreterEdit) - self.translationLocalCompleter = E4DirCompleter(self.translationLocalEdit) + self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) + self.interpreterCompleter = E5FileCompleter(self.interpreterEdit) + self.translationLocalCompleter = E5DirCompleter(self.translationLocalEdit) self.project = project
--- a/Project/NewDialogClassDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/NewDialogClassDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_NewDialogClassDialog import Ui_NewDialogClassDialog @@ -35,7 +35,7 @@ self.okButton = self.buttonBox.button(QDialogButtonBox.Ok) self.okButton.setEnabled(False) - self.pathnameCompleter = E4DirCompleter(self.pathnameEdit) + self.pathnameCompleter = E5DirCompleter(self.pathnameEdit) self.classnameEdit.setText(defaultClassName) self.filenameEdit.setText(defaultFile) @@ -95,4 +95,4 @@ """ return self.classnameEdit.text(), \ os.path.join(self.pathnameEdit.text(), \ - self.filenameEdit.text()) + self.filenameEdit.text()) \ No newline at end of file
--- a/Project/Project.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/Project.py Wed Jan 13 18:53:58 2010 +0000 @@ -21,7 +21,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from Globals import recentNameProject @@ -64,7 +64,7 @@ import UI.PixmapCache -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Action import E5Action, createActionGroup import Preferences import Utilities @@ -206,7 +206,7 @@ self.__binaryTranslationsCallbacks = {} self.__projectTypes["Qt4"] = self.trUtf8("Qt4 GUI") self.__projectTypes["Qt4C"] = self.trUtf8("Qt4 Console") - self.__projectTypes["E4Plugin"] = self.trUtf8("Eric5 Plugin") + self.__projectTypes["E4Plugin"] = self.trUtf8("Eric Plugin") self.__projectTypes["Console"] = self.trUtf8("Console") self.__projectTypes["Other"] = self.trUtf8("Other") try: @@ -3221,7 +3221,7 @@ self.actGrp1 = createActionGroup(self) - act = E4Action(self.trUtf8('New project'), + act = E5Action(self.trUtf8('New project'), UI.PixmapCache.getIcon("projectNew.png"), self.trUtf8('&New...'), 0, 0, self.actGrp1,'project_new') @@ -3234,7 +3234,7 @@ self.connect(act, SIGNAL('triggered()'), self.newProject) self.actions.append(act) - act = E4Action(self.trUtf8('Open project'), + act = E5Action(self.trUtf8('Open project'), UI.PixmapCache.getIcon("projectOpen.png"), self.trUtf8('&Open...'), 0, 0, self.actGrp1,'project_open') @@ -3246,7 +3246,7 @@ self.connect(act, SIGNAL('triggered()'), self.openProject) self.actions.append(act) - self.closeAct = E4Action(self.trUtf8('Close project'), + self.closeAct = E5Action(self.trUtf8('Close project'), UI.PixmapCache.getIcon("projectClose.png"), self.trUtf8('&Close'), 0, 0, self, 'project_close') self.closeAct.setStatusTip(self.trUtf8('Close the current project')) @@ -3257,7 +3257,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.closeProject) self.actions.append(self.closeAct) - self.saveAct = E4Action(self.trUtf8('Save project'), + self.saveAct = E5Action(self.trUtf8('Save project'), UI.PixmapCache.getIcon("projectSave.png"), self.trUtf8('&Save'), 0, 0, self, 'project_save') self.saveAct.setStatusTip(self.trUtf8('Save the current project')) @@ -3268,7 +3268,7 @@ self.connect(self.saveAct, SIGNAL('triggered()'), self.saveProject) self.actions.append(self.saveAct) - self.saveasAct = E4Action(self.trUtf8('Save project as'), + self.saveasAct = E5Action(self.trUtf8('Save project as'), UI.PixmapCache.getIcon("projectSaveAs.png"), self.trUtf8('Save &as...'), 0, 0, self, 'project_save_as') self.saveasAct.setStatusTip(self.trUtf8('Save the current project to a new file')) @@ -3281,7 +3281,7 @@ self.actGrp2 = createActionGroup(self) - self.addFilesAct = E4Action(self.trUtf8('Add files to project'), + self.addFilesAct = E5Action(self.trUtf8('Add files to project'), UI.PixmapCache.getIcon("fileMisc.png"), self.trUtf8('Add &files...'), 0, 0, self.actGrp2,'project_add_file') @@ -3295,7 +3295,7 @@ self.connect(self.addFilesAct, SIGNAL('triggered()'), self.addFiles) self.actions.append(self.addFilesAct) - self.addDirectoryAct = E4Action(self.trUtf8('Add directory to project'), + self.addDirectoryAct = E5Action(self.trUtf8('Add directory to project'), UI.PixmapCache.getIcon("dirOpen.png"), self.trUtf8('Add directory...'), 0, 0, self.actGrp2,'project_add_directory') @@ -3309,7 +3309,7 @@ self.connect(self.addDirectoryAct, SIGNAL('triggered()'), self.addDirectory) self.actions.append(self.addDirectoryAct) - self.addLanguageAct = E4Action(self.trUtf8('Add translation to project'), + self.addLanguageAct = E5Action(self.trUtf8('Add translation to project'), UI.PixmapCache.getIcon("linguist4.png"), self.trUtf8('Add &translation...'), 0, 0, self.actGrp2,'project_add_translation') @@ -3323,7 +3323,7 @@ self.connect(self.addLanguageAct, SIGNAL('triggered()'), self.addLanguage) self.actions.append(self.addLanguageAct) - act = E4Action(self.trUtf8('Search new files'), + act = E5Action(self.trUtf8('Search new files'), self.trUtf8('Searc&h new files...'), 0, 0, self.actGrp2,'project_search_new_files') act.setStatusTip(self.trUtf8('Search new files in the project directory.')) @@ -3335,7 +3335,7 @@ self.connect(act, SIGNAL('triggered()'), self.__searchNewFiles) self.actions.append(act) - self.propsAct = E4Action(self.trUtf8('Project properties'), + self.propsAct = E5Action(self.trUtf8('Project properties'), UI.PixmapCache.getIcon("projectProps.png"), self.trUtf8('&Properties...'), 0, 0, self, 'project_properties') self.propsAct.setStatusTip(self.trUtf8('Show the project properties')) @@ -3346,7 +3346,7 @@ self.connect(self.propsAct, SIGNAL('triggered()'), self.__showProperties) self.actions.append(self.propsAct) - self.userPropsAct = E4Action(self.trUtf8('User project properties'), + self.userPropsAct = E5Action(self.trUtf8('User project properties'), UI.PixmapCache.getIcon("projectUserProps.png"), self.trUtf8('&User Properties...'), 0, 0, self, 'project_user_properties') self.userPropsAct.setStatusTip(self.trUtf8( @@ -3358,7 +3358,7 @@ self.connect(self.userPropsAct, SIGNAL('triggered()'), self.__showUserProperties) self.actions.append(self.userPropsAct) - self.filetypesAct = E4Action(self.trUtf8('Filetype Associations'), + self.filetypesAct = E5Action(self.trUtf8('Filetype Associations'), self.trUtf8('Filetype Associations...'), 0, 0, self, 'project_filetype_associatios') self.filetypesAct.setStatusTip(\ @@ -3374,7 +3374,7 @@ self.__showFiletypeAssociations) self.actions.append(self.filetypesAct) - self.lexersAct = E4Action(self.trUtf8('Lexer Associations'), + self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), self.trUtf8('Lexer Associations...'), 0, 0, self, 'project_lexer_associatios') self.lexersAct.setStatusTip(\ @@ -3391,7 +3391,7 @@ self.dbgActGrp = createActionGroup(self) - act = E4Action(self.trUtf8('Debugger Properties'), + act = E5Action(self.trUtf8('Debugger Properties'), self.trUtf8('Debugger &Properties...'), 0, 0, self.dbgActGrp, 'project_debugger_properties') act.setStatusTip(self.trUtf8('Show the debugger properties')) @@ -3402,7 +3402,7 @@ self.connect(act, SIGNAL('triggered()'), self.__showDebugProperties) self.actions.append(act) - act = E4Action(self.trUtf8('Load'), + act = E5Action(self.trUtf8('Load'), self.trUtf8('&Load'), 0, 0, self.dbgActGrp, 'project_debugger_properties_load') act.setStatusTip(self.trUtf8('Load the debugger properties')) @@ -3413,7 +3413,7 @@ self.connect(act, SIGNAL('triggered()'), self.__readDebugProperties) self.actions.append(act) - act = E4Action(self.trUtf8('Save'), + act = E5Action(self.trUtf8('Save'), self.trUtf8('&Save'), 0, 0, self.dbgActGrp, 'project_debugger_properties_save') act.setStatusTip(self.trUtf8('Save the debugger properties')) @@ -3424,7 +3424,7 @@ self.connect(act, SIGNAL('triggered()'), self.__writeDebugProperties) self.actions.append(act) - act = E4Action(self.trUtf8('Delete'), + act = E5Action(self.trUtf8('Delete'), self.trUtf8('&Delete'), 0, 0, self.dbgActGrp, 'project_debugger_properties_delete') act.setStatusTip(self.trUtf8('Delete the debugger properties')) @@ -3436,7 +3436,7 @@ self.connect(act, SIGNAL('triggered()'), self.__deleteDebugProperties) self.actions.append(act) - act = E4Action(self.trUtf8('Reset'), + act = E5Action(self.trUtf8('Reset'), self.trUtf8('&Reset'), 0, 0, self.dbgActGrp, 'project_debugger_properties_resets') act.setStatusTip(self.trUtf8('Reset the debugger properties')) @@ -3449,7 +3449,7 @@ self.sessActGrp = createActionGroup(self) - act = E4Action(self.trUtf8('Load session'), + act = E5Action(self.trUtf8('Load session'), self.trUtf8('Load session'), 0, 0, self.sessActGrp, 'project_load_session') act.setStatusTip(self.trUtf8('Load the projects session file.')) @@ -3466,7 +3466,7 @@ self.connect(act, SIGNAL('triggered()'), self.__readSession) self.actions.append(act) - act = E4Action(self.trUtf8('Save session'), + act = E5Action(self.trUtf8('Save session'), self.trUtf8('Save session'), 0, 0, self.sessActGrp, 'project_save_session') act.setStatusTip(self.trUtf8('Save the projects session file.')) @@ -3483,7 +3483,7 @@ self.connect(act, SIGNAL('triggered()'), self.__writeSession) self.actions.append(act) - act = E4Action(self.trUtf8('Delete session'), + act = E5Action(self.trUtf8('Delete session'), self.trUtf8('Delete session'), 0, 0, self.sessActGrp, 'project_delete_session') act.setStatusTip(self.trUtf8('Delete the projects session file.')) @@ -3496,7 +3496,7 @@ self.chkGrp = createActionGroup(self) - self.codeMetricsAct = E4Action(self.trUtf8('Code Metrics'), + self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), self.trUtf8('&Code Metrics...'), 0, 0, self.chkGrp,'project_code_metrics') self.codeMetricsAct.setStatusTip(\ @@ -3508,7 +3508,7 @@ self.connect(self.codeMetricsAct, SIGNAL('triggered()'), self.__showCodeMetrics) self.actions.append(self.codeMetricsAct) - self.codeCoverageAct = E4Action(self.trUtf8('Python Code Coverage'), + self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), self.trUtf8('Code Co&verage...'), 0, 0, self.chkGrp,'project_code_coverage') self.codeCoverageAct.setStatusTip(\ @@ -3521,7 +3521,7 @@ self.connect(self.codeCoverageAct, SIGNAL('triggered()'), self.__showCodeCoverage) self.actions.append(self.codeCoverageAct) - self.codeProfileAct = E4Action(self.trUtf8('Profile Data'), + self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), self.trUtf8('&Profile Data...'), 0, 0, self.chkGrp,'project_profile_data') self.codeProfileAct.setStatusTip(\ @@ -3533,7 +3533,7 @@ self.connect(self.codeProfileAct, SIGNAL('triggered()'), self.__showProfileData) self.actions.append(self.codeProfileAct) - self.applicationDiagramAct = E4Action(self.trUtf8('Application Diagram'), + self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), self.trUtf8('&Application Diagram...'), 0, 0, self.chkGrp,'project_application_diagram') self.applicationDiagramAct.setStatusTip(\ @@ -3548,7 +3548,7 @@ self.pluginGrp = createActionGroup(self) - self.pluginPkgListAct = E4Action(self.trUtf8('Create Package List'), + self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'), UI.PixmapCache.getIcon("pluginArchiveList.png"), self.trUtf8('Create &Package List'), 0, 0, self.pluginGrp,'project_plugin_pkglist') @@ -3563,7 +3563,7 @@ self.__pluginCreatePkgList) self.actions.append(self.pluginPkgListAct) - self.pluginArchiveAct = E4Action(self.trUtf8('Create Plugin Archive'), + self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'), UI.PixmapCache.getIcon("pluginArchive.png"), self.trUtf8('Create Plugin &Archive'), 0, 0, self.pluginGrp,'project_plugin_archive') @@ -3579,7 +3579,7 @@ self.__pluginCreateArchive) self.actions.append(self.pluginArchiveAct) - self.pluginSArchiveAct = E4Action(self.trUtf8('Create Plugin Archive (Snapshot)'), + self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'), UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, self.pluginGrp,'project_plugin_sarchive') @@ -3729,7 +3729,7 @@ """ Public slot to initialize the project toolbar. - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the toolbar generated (QToolBar) """ tb = QToolBar(self.trUtf8("Project"), self.parent()) @@ -3939,23 +3939,23 @@ """ Public method to get a list of all actions. - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ return self.actions[:] - def addE4Actions(self, actions): + def addE5Actions(self, actions): """ Public method to add actions to the list of actions. - @param actions list of actions (list of E4Action) + @param actions list of actions (list of E5Action) """ self.actions.extend(actions) - def removeE4Actions(self, actions): + def removeE5Actions(self, actions): """ Public method to remove actions from the list of actions. - @param actions list of actions (list of E4Action) + @param actions list of actions (list of E5Action) """ for act in actions: try: @@ -4584,4 +4584,4 @@ lineno += 1 - return version \ No newline at end of file + return version
--- a/Project/ProjectBaseBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectBaseBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from UI.Browser import *
--- a/Project/ProjectBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,8 +15,8 @@ from UI.Browser import Browser -from E4Gui.E4TabWidget import E4TabWidget -from E4Gui.E4Led import E4Led +from E5Gui.E5TabWidget import E5TabWidget +from E5Gui.E5Led import E5Led from .ProjectSourcesBrowser import ProjectSourcesBrowser from .ProjectFormsBrowser import ProjectFormsBrowser @@ -32,7 +32,7 @@ ResourcesBrowserFlag, TranslationsBrowserFlag, InterfacesBrowserFlag, \ OthersBrowserFlag, AllBrowsersFlag -class ProjectBrowser(E4TabWidget): +class ProjectBrowser(E5TabWidget): """ Class implementing the project browser part of the eric5 UI. @@ -55,12 +55,12 @@ have the file browser in a separate window or embedded in the debeug browser instead """ - E4TabWidget.__init__(self, parent) + E5TabWidget.__init__(self, parent) self.project = project self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) - self.vcsStatusIndicator = E4Led(self) + self.vcsStatusIndicator = E5Led(self) self.setCornerWidget(self.vcsStatusIndicator, Qt.TopLeftCorner) self.vcsStatusColorNames = { "A" : "VcsAdded", @@ -233,7 +233,7 @@ @param evt show event to handle (QShowEvent) """ - E4TabWidget.showEvent(self, evt) + E5TabWidget.showEvent(self, evt) if self.embeddedBrowser: self.fileBrowser.layoutDisplay()
--- a/Project/ProjectFormsBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectFormsBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ProjectBrowserModel import ProjectBrowserFileItem, \ ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
--- a/Project/ProjectInterfacesBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectInterfacesBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ProjectBrowserModel import ProjectBrowserFileItem, \ ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
--- a/Project/ProjectResourcesBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectResourcesBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ProjectBrowserModel import ProjectBrowserFileItem, \ ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
--- a/Project/ProjectSourcesBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectSourcesBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from UI.BrowserModel import BrowserFileItem, BrowserClassItem, BrowserMethodItem, \ BrowserClassAttributeItem
--- a/Project/ProjectTranslationsBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/ProjectTranslationsBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .ProjectBrowserModel import ProjectBrowserFileItem, \ ProjectBrowserSimpleDirectoryItem, ProjectBrowserDirectoryItem, \
--- a/Project/PropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/PropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,9 +12,9 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_PropertiesDialog import Ui_PropertiesDialog from .TranslationPropertiesDialog import TranslationPropertiesDialog @@ -48,8 +48,8 @@ self.transPropertiesDlg = None self.spellPropertiesDlg = None - self.dirCompleter = E4DirCompleter(self.dirEdit) - self.mainscriptCompleter = E4FileCompleter(self.mainscriptEdit) + self.dirCompleter = E5DirCompleter(self.dirEdit) + self.mainscriptCompleter = E5FileCompleter(self.mainscriptEdit) projectLanguages = sorted( e5App().getObject("DebugServer").getSupportedLanguages())
--- a/Project/SpellingPropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/SpellingPropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from QScintilla.SpellChecker import SpellChecker @@ -39,8 +39,8 @@ self.project = project self.parent = parent - self.pwlCompleter = E4FileCompleter(self.pwlEdit) - self.pelCompleter = E4FileCompleter(self.pelEdit) + self.pwlCompleter = E5FileCompleter(self.pwlEdit) + self.pelCompleter = E5FileCompleter(self.pelEdit) self.spellingComboBox.addItem(self.trUtf8("<default>")) self.spellingComboBox.addItems(sorted(SpellChecker.getAvailableLanguages())) @@ -110,4 +110,4 @@ self.project.pdata["SPELLWORDS"] = \ [self.pwlEdit.text().replace(self.project.ppath + os.sep, "")] self.project.pdata["SPELLEXCLUDES"] = \ - [self.pelEdit.text().replace(self.project.ppath + os.sep, "")] + [self.pelEdit.text().replace(self.project.ppath + os.sep, "")] \ No newline at end of file
--- a/Project/TranslationPropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/TranslationPropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter, E4DirCompleter +from E5Gui.E5Completers import E5FileCompleter, E5DirCompleter from .Ui_TranslationPropertiesDialog import Ui_TranslationPropertiesDialog @@ -36,9 +36,9 @@ self.project = project self.parent = parent - self.transPatternCompleter = E4FileCompleter(self.transPatternEdit) - self.transBinPathCompleter = E4DirCompleter(self.transBinPathEdit) - self.exceptionCompleter = E4FileCompleter(self.exceptionEdit) + self.transPatternCompleter = E5FileCompleter(self.transPatternEdit) + self.transBinPathCompleter = E5DirCompleter(self.transBinPathEdit) + self.exceptionCompleter = E5FileCompleter(self.exceptionEdit) self.initFilters() if not new: @@ -218,4 +218,4 @@ exceptList = [] for i in range(self.exceptionsList.count()): exceptList.append(self.exceptionsList.item(i).text()) - self.project.pdata["TRANSLATIONEXCEPTIONS"] = exceptList[:] + self.project.pdata["TRANSLATIONEXCEPTIONS"] = exceptList[:] \ No newline at end of file
--- a/Project/UserPropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Project/UserPropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import Preferences
--- a/PyUnit/UnittestDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/PyUnit/UnittestDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -17,8 +17,8 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Application import e5App +from E5Gui.E5Completers import E5FileCompleter from .Ui_UnittestDialog import Ui_UnittestDialog from .Ui_UnittestStacktraceDialog import Ui_UnittestStacktraceDialog @@ -80,7 +80,7 @@ self.progressLed.setDarkFactor(150) self.progressLed.off() - self.testSuiteCompleter = E4FileCompleter(self.testsuiteComboBox) + self.testSuiteCompleter = E5FileCompleter(self.testsuiteComboBox) self.fileHistory = [] self.testNameHistory = []
--- a/PyUnit/UnittestDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/PyUnit/UnittestDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -168,7 +168,7 @@ </spacer> </item> <item> - <widget class="E4Led" name="progressLed" /> + <widget class="E5Led" name="progressLed" /> </item> </layout> </item> @@ -349,9 +349,9 @@ </widget> <customwidgets> <customwidget> - <class>E4Led</class> + <class>E5Led</class> <extends>QFrame</extends> - <header>E4Gui/E4Led.h</header> + <header>E5Gui/E5Led.h</header> <container>1</container> </customwidget> </customwidgets> @@ -416,4 +416,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/QScintilla/Editor.py Tue Jan 12 18:39:15 2010 +0000 +++ b/QScintilla/Editor.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from . import Exporters from . import Lexers
--- a/QScintilla/MiniEditor.py Tue Jan 12 18:39:15 2010 +0000 +++ b/QScintilla/MiniEditor.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,8 +15,8 @@ from PyQt4.QtGui import * from PyQt4.Qsci import QsciScintilla -from E4Gui.E4Application import e5App -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Application import e5App +from E5Gui.E5Action import E5Action, createActionGroup from . import Lexers from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION @@ -305,7 +305,7 @@ """ Private function to read a single keyboard shortcut from the settings. - @param act reference to the action object (E4Action) + @param act reference to the action object (E5Action) @param category category the action belongs to (string) @param prefClass preferences class used as the storage area """ @@ -348,7 +348,7 @@ """ Private method to create the File actions. """ - self.newAct = E4Action(self.trUtf8('New'), + self.newAct = E5Action(self.trUtf8('New'), UI.PixmapCache.getIcon("new.png"), self.trUtf8('&New'), QKeySequence(self.trUtf8("Ctrl+N", "File|New")), @@ -361,7 +361,7 @@ self.connect(self.newAct, SIGNAL('triggered()'), self.__newFile) self.fileActions.append(self.newAct) - self.openAct = E4Action(self.trUtf8('Open'), + self.openAct = E5Action(self.trUtf8('Open'), UI.PixmapCache.getIcon("open.png"), self.trUtf8('&Open...'), QKeySequence(self.trUtf8("Ctrl+O", "File|Open")), @@ -374,7 +374,7 @@ self.connect(self.openAct, SIGNAL('triggered()'), self.__open) self.fileActions.append(self.openAct) - self.saveAct = E4Action(self.trUtf8('Save'), + self.saveAct = E5Action(self.trUtf8('Save'), UI.PixmapCache.getIcon("fileSave.png"), self.trUtf8('&Save'), QKeySequence(self.trUtf8("Ctrl+S", "File|Save")), @@ -387,7 +387,7 @@ self.connect(self.saveAct, SIGNAL('triggered()'), self.__save) self.fileActions.append(self.saveAct) - self.saveAsAct = E4Action(self.trUtf8('Save as'), + self.saveAsAct = E5Action(self.trUtf8('Save as'), UI.PixmapCache.getIcon("fileSaveAs.png"), self.trUtf8('Save &as...'), QKeySequence(self.trUtf8("Shift+Ctrl+S", "File|Save As")), @@ -401,7 +401,7 @@ self.connect(self.saveAsAct, SIGNAL('triggered()'), self.__saveAs) self.fileActions.append(self.saveAsAct) - self.closeAct = E4Action(self.trUtf8('Close'), + self.closeAct = E5Action(self.trUtf8('Close'), UI.PixmapCache.getIcon("close.png"), self.trUtf8('&Close'), QKeySequence(self.trUtf8("Ctrl+W", "File|Close")), @@ -414,7 +414,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.close) self.fileActions.append(self.closeAct) - self.printAct = E4Action(self.trUtf8('Print'), + self.printAct = E5Action(self.trUtf8('Print'), UI.PixmapCache.getIcon("print.png"), self.trUtf8('&Print'), QKeySequence(self.trUtf8("Ctrl+P", "File|Print")), @@ -428,7 +428,7 @@ self.fileActions.append(self.printAct) self.printPreviewAct = \ - E4Action(self.trUtf8('Print Preview'), + E5Action(self.trUtf8('Print Preview'), UI.PixmapCache.getIcon("printPreview.png"), QApplication.translate('ViewManager', 'Print Preview'), 0, 0, self, 'vm_file_print_preview') @@ -446,7 +446,7 @@ """ Private method to create the Edit actions. """ - self.undoAct = E4Action(self.trUtf8('Undo'), + self.undoAct = E5Action(self.trUtf8('Undo'), UI.PixmapCache.getIcon("editUndo.png"), self.trUtf8('&Undo'), QKeySequence(self.trUtf8("Ctrl+Z", "Edit|Undo")), @@ -460,7 +460,7 @@ self.connect(self.undoAct, SIGNAL('triggered()'), self.__undo) self.editActions.append(self.undoAct) - self.redoAct = E4Action(self.trUtf8('Redo'), + self.redoAct = E5Action(self.trUtf8('Redo'), UI.PixmapCache.getIcon("editRedo.png"), self.trUtf8('&Redo'), QKeySequence(self.trUtf8("Ctrl+Shift+Z", "Edit|Redo")), @@ -473,7 +473,7 @@ self.connect(self.redoAct, SIGNAL('triggered()'), self.__redo) self.editActions.append(self.redoAct) - self.cutAct = E4Action(self.trUtf8('Cut'), + self.cutAct = E5Action(self.trUtf8('Cut'), UI.PixmapCache.getIcon("editCut.png"), self.trUtf8('Cu&t'), QKeySequence(self.trUtf8("Ctrl+X", "Edit|Cut")), @@ -487,7 +487,7 @@ self.connect(self.cutAct, SIGNAL('triggered()'), self.__textEdit.cut) self.editActions.append(self.cutAct) - self.copyAct = E4Action(self.trUtf8('Copy'), + self.copyAct = E5Action(self.trUtf8('Copy'), UI.PixmapCache.getIcon("editCopy.png"), self.trUtf8('&Copy'), QKeySequence(self.trUtf8("Ctrl+C", "Edit|Copy")), @@ -501,7 +501,7 @@ self.connect(self.copyAct, SIGNAL('triggered()'), self.__textEdit.copy) self.editActions.append(self.copyAct) - self.pasteAct = E4Action(self.trUtf8('Paste'), + self.pasteAct = E5Action(self.trUtf8('Paste'), UI.PixmapCache.getIcon("editPaste.png"), self.trUtf8('&Paste'), QKeySequence(self.trUtf8("Ctrl+V", "Edit|Paste")), @@ -516,7 +516,7 @@ self.connect(self.pasteAct, SIGNAL('triggered()'), self.__textEdit.paste) self.editActions.append(self.pasteAct) - self.deleteAct = E4Action(self.trUtf8('Clear'), + self.deleteAct = E5Action(self.trUtf8('Clear'), UI.PixmapCache.getIcon("editDelete.png"), self.trUtf8('Cl&ear'), QKeySequence(self.trUtf8("Alt+Shift+C", "Edit|Clear")), @@ -546,7 +546,7 @@ self.editorActGrp = createActionGroup(self) - act = E4Action(QApplication.translate('ViewManager', 'Move left one character'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one character'), QApplication.translate('ViewManager', 'Move left one character'), QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, self.editorActGrp, 'vm_edit_move_left_char') @@ -554,7 +554,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one character'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), QApplication.translate('ViewManager', 'Move right one character'), QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, self.editorActGrp, 'vm_edit_move_right_char') @@ -562,7 +562,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one line'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), QApplication.translate('ViewManager', 'Move up one line'), QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, self.editorActGrp, 'vm_edit_move_up_line') @@ -570,7 +570,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one line'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), QApplication.translate('ViewManager', 'Move down one line'), QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, self.editorActGrp, 'vm_edit_move_down_line') @@ -578,7 +578,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move left one word part'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), QApplication.translate('ViewManager', 'Move left one word part'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word_part') @@ -586,7 +586,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one word part'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), QApplication.translate('ViewManager', 'Move right one word part'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, self.editorActGrp, 'vm_edit_move_right_word_part') @@ -594,7 +594,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move left one word'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), QApplication.translate('ViewManager', 'Move left one word'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word') @@ -602,7 +602,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one word'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), QApplication.translate('ViewManager', 'Move right one word'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), 0, @@ -611,7 +611,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to first visible character in line'), QApplication.translate('ViewManager', 'Move to first visible character in line'), @@ -621,7 +621,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to start of displayed line'), QApplication.translate('ViewManager', 'Move to start of displayed line'), @@ -631,7 +631,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to end of line'), + act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), QApplication.translate('ViewManager', 'Move to end of line'), QKeySequence(QApplication.translate('ViewManager', 'End')), 0, self.editorActGrp, 'vm_edit_move_end_line') @@ -639,7 +639,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Scroll view down one line'), + act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), QApplication.translate('ViewManager', 'Scroll view down one line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, self.editorActGrp, 'vm_edit_scroll_down_line') @@ -647,7 +647,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Scroll view up one line'), + act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), QApplication.translate('ViewManager', 'Scroll view up one line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, self.editorActGrp, 'vm_edit_scroll_up_line') @@ -655,7 +655,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one paragraph'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), QApplication.translate('ViewManager', 'Move up one paragraph'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, self.editorActGrp, 'vm_edit_move_up_para') @@ -663,7 +663,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one paragraph'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), QApplication.translate('ViewManager', 'Move down one paragraph'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, self.editorActGrp, 'vm_edit_move_down_para') @@ -671,7 +671,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one page'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), QApplication.translate('ViewManager', 'Move up one page'), QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, self.editorActGrp, 'vm_edit_move_up_page') @@ -679,7 +679,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one page'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), QApplication.translate('ViewManager', 'Move down one page'), QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, self.editorActGrp, 'vm_edit_move_down_page') @@ -687,7 +687,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to start of text'), + act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), QApplication.translate('ViewManager', 'Move to start of text'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, self.editorActGrp, 'vm_edit_move_start_text') @@ -695,7 +695,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to end of text'), + act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), QApplication.translate('ViewManager', 'Move to end of text'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, self.editorActGrp, 'vm_edit_move_end_text') @@ -703,7 +703,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Indent one level'), + act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), QApplication.translate('ViewManager', 'Indent one level'), QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, self.editorActGrp, 'vm_edit_indent_one_level') @@ -711,7 +711,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Unindent one level'), + act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), QApplication.translate('ViewManager', 'Unindent one level'), QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, self.editorActGrp, 'vm_edit_unindent_one_level') @@ -719,7 +719,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one character'), QApplication.translate('ViewManager', 'Extend selection left one character'), @@ -730,7 +730,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one character'), QApplication.translate('ViewManager', 'Extend selection right one character'), @@ -741,7 +741,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one line'), QApplication.translate('ViewManager', 'Extend selection up one line'), @@ -751,7 +751,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one line'), QApplication.translate('ViewManager', 'Extend selection down one line'), @@ -762,7 +762,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one word part'), QApplication.translate('ViewManager', 'Extend selection left one word part'), @@ -774,7 +774,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one word part'), QApplication.translate('ViewManager', 'Extend selection right one word part'), @@ -786,7 +786,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one word'), QApplication.translate('ViewManager', 'Extend selection left one word'), @@ -798,7 +798,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one word'), QApplication.translate('ViewManager', 'Extend selection right one word'), @@ -810,7 +810,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to first visible character in line'), QApplication.translate('ViewManager', 'Extend selection to first visible character in line'), @@ -821,7 +821,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to start of line'), QApplication.translate('ViewManager', 'Extend selection to start of line'), @@ -833,7 +833,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of line'), QApplication.translate('ViewManager', 'Extend selection to end of line'), @@ -843,7 +843,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one paragraph'), QApplication.translate('ViewManager', 'Extend selection up one paragraph'), @@ -854,7 +854,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one paragraph'), QApplication.translate('ViewManager', 'Extend selection down one paragraph'), @@ -866,7 +866,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one page'), QApplication.translate('ViewManager', 'Extend selection up one page'), @@ -877,7 +877,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one page'), QApplication.translate('ViewManager', 'Extend selection down one page'), @@ -888,7 +888,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to start of text'), QApplication.translate('ViewManager', 'Extend selection to start of text'), @@ -900,7 +900,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of text'), QApplication.translate('ViewManager', 'Extend selection to end of text'), @@ -912,7 +912,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Delete previous character'), QApplication.translate('ViewManager', 'Delete previous character'), QKeySequence(QApplication.translate('ViewManager', 'Backspace')), @@ -923,7 +923,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Delete previous character if not at line start'), QApplication.translate('ViewManager', 'Delete previous character if not at line start'), @@ -933,7 +933,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete current character'), + act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), QApplication.translate('ViewManager', 'Delete current character'), QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, self.editorActGrp, 'vm_edit_delete_current_char') @@ -941,7 +941,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete word to left'), + act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), QApplication.translate('ViewManager', 'Delete word to left'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Backspace')), @@ -951,7 +951,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete word to right'), + act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), QApplication.translate('ViewManager', 'Delete word to right'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, self.editorActGrp, 'vm_edit_delete_word_right') @@ -959,7 +959,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete line to left'), + act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), QApplication.translate('ViewManager', 'Delete line to left'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+Backspace')), @@ -969,7 +969,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete line to right'), + act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), QApplication.translate('ViewManager', 'Delete line to right'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+Del')), @@ -979,7 +979,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Insert new line'), + act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), QApplication.translate('ViewManager', 'Insert new line'), QKeySequence(QApplication.translate('ViewManager', 'Return')), QKeySequence(QApplication.translate('ViewManager', 'Enter')), @@ -988,7 +988,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Insert new line below current line'), QApplication.translate('ViewManager', 'Insert new line below current line'), @@ -998,7 +998,7 @@ self.connect(act, SIGNAL('triggered()'), self.__textEdit.newLineBelow) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete current line'), + act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), QApplication.translate('ViewManager', 'Delete current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), @@ -1007,7 +1007,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Duplicate current line'), + act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), QApplication.translate('ViewManager', 'Duplicate current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_line') @@ -1015,7 +1015,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Swap current and previous lines'), QApplication.translate('ViewManager', 'Swap current and previous lines'), @@ -1025,7 +1025,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Cut current line'), + act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), QApplication.translate('ViewManager', 'Cut current line'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 0, @@ -1034,7 +1034,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Copy current line'), + act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), QApplication.translate('ViewManager', 'Copy current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), 0, @@ -1043,7 +1043,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), + act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), QApplication.translate('ViewManager', 'Toggle insert/overtype'), QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, self.editorActGrp, 'vm_edit_toggle_insert_overtype') @@ -1051,7 +1051,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Convert selection to lower case'), QApplication.translate('ViewManager', 'Convert selection to lower case'), @@ -1062,7 +1062,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Convert selection to upper case'), QApplication.translate('ViewManager', 'Convert selection to upper case'), @@ -1073,7 +1073,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to end of displayed line'), QApplication.translate('ViewManager', 'Move to end of displayed line'), @@ -1083,7 +1083,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of displayed line'), QApplication.translate('ViewManager', 'Extend selection to end of displayed line'), @@ -1093,7 +1093,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Formfeed'), + act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), QApplication.translate('ViewManager', 'Formfeed'), 0, 0, self.editorActGrp, 'vm_edit_formfeed') @@ -1101,7 +1101,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Escape'), + act = E5Action(QApplication.translate('ViewManager', 'Escape'), QApplication.translate('ViewManager', 'Escape'), QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, self.editorActGrp, 'vm_edit_escape') @@ -1109,7 +1109,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection down one line'), QApplication.translate('ViewManager', 'Extend rectangular selection down one line'), @@ -1121,7 +1121,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection up one line'), QApplication.translate('ViewManager', 'Extend rectangular selection up one line'), @@ -1132,7 +1132,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection left one character'), QApplication.translate('ViewManager', 'Extend rectangular selection left one character'), @@ -1144,7 +1144,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection right one character'), QApplication.translate('ViewManager', 'Extend rectangular selection right one character'), @@ -1156,7 +1156,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection to first' ' visible character in line'), QApplication.translate('ViewManager', @@ -1171,7 +1171,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection to end of line'), QApplication.translate('ViewManager', 'Extend rectangular selection to end of line'), @@ -1182,7 +1182,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection up one page'), QApplication.translate('ViewManager', 'Extend rectangular selection up one page'), @@ -1194,7 +1194,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection down one page'), QApplication.translate('ViewManager', 'Extend rectangular selection down one page'), @@ -1206,7 +1206,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Duplicate current selection'), QApplication.translate('ViewManager', 'Duplicate current selection'), @@ -1223,7 +1223,7 @@ """ Private method defining the user interface actions for the search commands. """ - self.searchAct = E4Action(QApplication.translate('ViewManager', 'Search'), + self.searchAct = E5Action(QApplication.translate('ViewManager', 'Search'), UI.PixmapCache.getIcon("find.png"), QApplication.translate('ViewManager', '&Search...'), QKeySequence(QApplication.translate('ViewManager', @@ -1241,7 +1241,7 @@ self.connect(self.searchAct, SIGNAL('triggered()'), self.__search) self.searchActions.append(self.searchAct) - self.searchNextAct = E4Action(QApplication.translate('ViewManager', + self.searchNextAct = E5Action(QApplication.translate('ViewManager', 'Search next'), UI.PixmapCache.getIcon("findNext.png"), QApplication.translate('ViewManager', 'Search &next'), @@ -1259,7 +1259,7 @@ self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext) self.searchActions.append(self.searchNextAct) - self.searchPrevAct = E4Action(QApplication.translate('ViewManager', + self.searchPrevAct = E5Action(QApplication.translate('ViewManager', 'Search previous'), UI.PixmapCache.getIcon("findPrev.png"), QApplication.translate('ViewManager', 'Search &previous'), @@ -1277,7 +1277,7 @@ self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev) self.searchActions.append(self.searchPrevAct) - self.searchClearMarkersAct = E4Action(QApplication.translate('ViewManager', + self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager', 'Clear search markers'), UI.PixmapCache.getIcon("findClear.png"), QApplication.translate('ViewManager', 'Clear search markers'), @@ -1295,7 +1295,7 @@ self.__searchClearMarkers) self.searchActions.append(self.searchClearMarkersAct) - self.replaceAct = E4Action(QApplication.translate('ViewManager', 'Replace'), + self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'), QApplication.translate('ViewManager', '&Replace...'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+R", "Search|Replace")), @@ -1316,7 +1316,7 @@ """ Private method to create the Help actions. """ - self.aboutAct = E4Action(self.trUtf8('About'), + self.aboutAct = E5Action(self.trUtf8('About'), self.trUtf8('&About'), 0, 0, self, 'about_eric') self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -1326,7 +1326,7 @@ self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) self.helpActions.append(self.aboutAct) - self.aboutQtAct = E4Action(self.trUtf8('About Qt'), + self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'about_qt') self.aboutQtAct.setStatusTip(\ self.trUtf8('Display information about the Qt toolkit')) @@ -1337,7 +1337,7 @@ self.connect(self.aboutQtAct, SIGNAL('triggered()'), self.__aboutQt) self.helpActions.append(self.aboutQtAct) - self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), + self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), QKeySequence(self.trUtf8("Shift+F1","Help|What's This?'")),
--- a/QScintilla/SearchReplaceWidget.py Tue Jan 12 18:39:15 2010 +0000 +++ b/QScintilla/SearchReplaceWidget.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from .Ui_SearchWidget import Ui_SearchWidget from .Ui_ReplaceWidget import Ui_ReplaceWidget -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action import Preferences @@ -588,4 +588,4 @@ if aw: aw.setFocus(Qt.ActiveWindowFocusReason) event.accept() - self.close() + self.close() \ No newline at end of file
--- a/QScintilla/Shell.py Tue Jan 12 18:39:15 2010 +0000 +++ b/QScintilla/Shell.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtGui import * from PyQt4.Qsci import QsciScintilla -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from . import Lexers from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
--- a/QScintilla/Terminal.py Tue Jan 12 18:39:15 2010 +0000 +++ b/QScintilla/Terminal.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtGui import * from PyQt4.Qsci import QsciScintilla -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from . import Lexers from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION
--- a/SqlBrowser/SqlBrowser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/SqlBrowser/SqlBrowser.py Wed Jan 13 18:53:58 2010 +0000 @@ -11,7 +11,7 @@ from PyQt4.QtGui import * from PyQt4.QtSql import QSqlError, QSqlDatabase -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action from .SqlBrowserWidget import SqlBrowserWidget @@ -83,7 +83,7 @@ # list of all actions self.__actions = [] - self.addConnectionAct = E4Action(self.trUtf8('Add Connection'), + self.addConnectionAct = E5Action(self.trUtf8('Add Connection'), UI.PixmapCache.getIcon("databaseConnection.png"), self.trUtf8('Add &Connection...'), 0, 0, self, 'sql_file_add_connection') @@ -97,7 +97,7 @@ self.__browser.addConnectionByDialog) self.__actions.append(self.addConnectionAct) - self.exitAct = E4Action(self.trUtf8('Quit'), + self.exitAct = E5Action(self.trUtf8('Quit'), UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), @@ -110,7 +110,7 @@ self.connect(self.exitAct, SIGNAL('triggered()'), qApp, SLOT('closeAllWindows()')) - self.aboutAct = E4Action(self.trUtf8('About'), + self.aboutAct = E5Action(self.trUtf8('About'), self.trUtf8('&About'), 0, 0, self, 'sql_help_about') self.aboutAct.setStatusTip(self.trUtf8('Display information about this software')) @@ -121,7 +121,7 @@ self.connect(self.aboutAct, SIGNAL('triggered()'), self.__about) self.__actions.append(self.aboutAct) - self.aboutQtAct = E4Action(self.trUtf8('About Qt'), + self.aboutQtAct = E5Action(self.trUtf8('About Qt'), self.trUtf8('About &Qt'), 0, 0, self, 'sql_help_about_qt') self.aboutQtAct.setStatusTip(\ @@ -178,4 +178,4 @@ """ Private slot to show info about Qt. """ - QMessageBox.aboutQt(self, self.trUtf8("SQL Browser")) + QMessageBox.aboutQt(self, self.trUtf8("SQL Browser")) \ No newline at end of file
--- a/SqlBrowser/SqlConnectionDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/SqlBrowser/SqlConnectionDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -11,7 +11,7 @@ from PyQt4.QtGui import * from PyQt4.QtSql import QSqlDatabase -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_SqlConnectionDialog import Ui_SqlConnectionDialog @@ -28,7 +28,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.databaseFileCompleter = E4FileCompleter() + self.databaseFileCompleter = E5FileCompleter() self.okButton = self.buttonBox.button(QDialogButtonBox.Ok)
--- a/Tasks/TaskPropertiesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Tasks/TaskPropertiesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_TaskPropertiesDialog import Ui_TaskPropertiesDialog @@ -32,7 +32,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.filenameCompleter = E4FileCompleter(self.filenameEdit) + self.filenameCompleter = E5FileCompleter(self.filenameEdit) if not projectOpen: self.projectCheckBox.setEnabled(False) @@ -67,4 +67,4 @@ """ return (self.descriptionEdit.text(), self.priorityCombo.currentIndex(), self.completedCheckBox.isChecked(), self.projectCheckBox.isChecked(), - self.longtextEdit.toPlainText()) + self.longtextEdit.toPlainText()) \ No newline at end of file
--- a/Tasks/TaskViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Tasks/TaskViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -18,7 +18,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .TaskPropertiesDialog import TaskPropertiesDialog from .TaskFilterConfigDialog import TaskFilterConfigDialog
--- a/Templates/TemplateViewer.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Templates/TemplateViewer.py Wed Jan 13 18:53:58 2010 +0000 @@ -16,7 +16,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .TemplatePropertiesDialog import TemplatePropertiesDialog from .TemplateMultipleVariablesDialog import TemplateMultipleVariablesDialog @@ -33,7 +33,7 @@ import UI.PixmapCache import Utilities -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App class TemplateGroup(QTreeWidgetItem): """
--- a/UI/Browser.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/Browser.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .BrowserModel import BrowserModel, \ BrowserDirectoryItem, BrowserFileItem, BrowserClassItem, BrowserMethodItem, \
--- a/UI/CompareDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/CompareDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter import UI.PixmapCache @@ -87,8 +87,8 @@ QWidget.__init__(self,parent) self.setupUi(self) - self.file1Completer = E4FileCompleter(self.file1Edit) - self.file2Completer = E4FileCompleter(self.file2Edit) + self.file1Completer = E5FileCompleter(self.file1Edit) + self.file2Completer = E5FileCompleter(self.file2Edit) self.diffButton = \ self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) @@ -459,4 +459,4 @@ QApplication.exit() return True - return False + return False \ No newline at end of file
--- a/UI/DiffDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/DiffDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_DiffDialog import Ui_DiffDialog import Utilities @@ -195,8 +195,8 @@ QWidget.__init__(self,parent) self.setupUi(self) - self.file1Completer = E4FileCompleter(self.file1Edit) - self.file2Completer = E4FileCompleter(self.file2Edit) + self.file1Completer = E5FileCompleter(self.file1Edit) + self.file2Completer = E5FileCompleter(self.file2Edit) self.diffButton = \ self.buttonBox.addButton(self.trUtf8("Compare"), QDialogButtonBox.ActionRole) @@ -513,4 +513,4 @@ QApplication.exit() return True - return False + return False \ No newline at end of file
--- a/UI/FindFileDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/FindFileDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,7 +15,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from .Ui_FindFileDialog import Ui_FindFileDialog
--- a/UI/FindFileDialog.ui Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/FindFileDialog.ui Wed Jan 13 18:53:58 2010 +0000 @@ -295,7 +295,7 @@ </layout> </item> <item> - <widget class="E4SqueezeLabelPath" name="findProgressLabel" > + <widget class="E5SqueezeLabelPath" name="findProgressLabel" > <property name="sizePolicy" > <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > <horstretch>0</horstretch> @@ -373,9 +373,9 @@ </widget> <customwidgets> <customwidget> - <class>E4SqueezeLabelPath</class> + <class>E5SqueezeLabelPath</class> <extends>QLabel</extends> - <header>E4Gui/E4SqueezeLabels.h</header> + <header>E5Gui/E5SqueezeLabels.h</header> </customwidget> </customwidgets> <tabstops> @@ -466,4 +466,4 @@ </hints> </connection> </connections> -</ui> +</ui> \ No newline at end of file
--- a/UI/FindFileNameDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/FindFileNameDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4DirCompleter +from E5Gui.E5Completers import E5DirCompleter from .Ui_FindFileNameDialog import Ui_FindFileNameDialog from Utilities import direntries @@ -41,7 +41,7 @@ QWidget.__init__(self, parent) self.setupUi(self) - self.searchDirCompleter = E4DirCompleter(self.searchDirEdit) + self.searchDirCompleter = E5DirCompleter(self.searchDirEdit) self.fileList.headerItem().setText(self.fileList.columnCount(), "") @@ -237,4 +237,4 @@ self.fileNameEdit.selectAll() self.fileNameEdit.setFocus() - QWidget.show(self) + QWidget.show(self) \ No newline at end of file
--- a/UI/LogView.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/LogView.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,9 +10,9 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4TabWidget import E4TabWidget +from E5Gui.E5TabWidget import E5TabWidget -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import UI.PixmapCache import Preferences
--- a/UI/UserInterface.py Tue Jan 12 18:39:15 2010 +0000 +++ b/UI/UserInterface.py Wed Jan 13 18:53:58 2010 +0000 @@ -17,7 +17,7 @@ from PyQt4.Qsci import QSCINTILLA_VERSION_STR from PyQt4.QtNetwork import QHttp, QNetworkProxy -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from Debugger.DebugUI import DebugUI from Debugger.DebugServer import DebugServer @@ -68,14 +68,14 @@ from .FindFileNameDialog import FindFileNameDialog from .AuthenticationDialog import AuthenticationDialog -from E4Gui.E4SingleApplication import E4SingleApplicationServer -from E4Gui.E4Action import E4Action, createActionGroup -from E4Gui.E4ToolBarManager import E4ToolBarManager -from E4Gui.E4ToolBarDialog import E4ToolBarDialog -from E4Gui.E4SqueezeLabels import E4SqueezeLabelPath -from E4Gui.E4ToolBox import E4VerticalToolBox, E4HorizontalToolBox -from E4Gui.E4SideBar import E4SideBar -from E4Gui.E4TabWidget import E4TabWidget +from E5Gui.E5SingleApplication import E5SingleApplicationServer +from E5Gui.E5Action import E5Action, createActionGroup +from E5Gui.E5ToolBarManager import E5ToolBarManager +from E5Gui.E5ToolBarDialog import E5ToolBarDialog +from E5Gui.E5SqueezeLabels import E5SqueezeLabelPath +from E5Gui.E5ToolBox import E5VerticalToolBox, E5HorizontalToolBox +from E5Gui.E5SideBar import E5SideBar +from E5Gui.E5TabWidget import E5TabWidget from VCS.StatusMonitorLed import StatusMonitorLed @@ -497,7 +497,7 @@ self.compareDlg = CompareDialog() # create the toolbar manager object - self.toolbarManager = E4ToolBarManager(self, self) + self.toolbarManager = E5ToolBarManager(self, self) self.toolbarManager.setMainWindow(self) # Initialize the tool groups and list of started tools @@ -560,7 +560,7 @@ # now fire up the single application server if Preferences.getUI("SingleApplicationMode"): splash.showMessage(self.trUtf8("Initializing Single Application Server...")) - self.SAServer = E4SingleApplicationServer() + self.SAServer = E5SingleApplicationServer() else: self.SAServer = None @@ -832,13 +832,13 @@ """ # Create the vertical toolbox self.vToolboxDock = self.__createDockWindow("vToolboxDock") - self.vToolbox = E4VerticalToolBox(self.vToolboxDock) + self.vToolbox = E5VerticalToolBox(self.vToolboxDock) self.__setupDockWindow(self.vToolboxDock, Qt.LeftDockWidgetArea, self.vToolbox, self.trUtf8("Vertical Toolbox")) # Create the horizontal toolbox self.hToolboxDock = self.__createDockWindow("hToolboxDock") - self.hToolbox = E4HorizontalToolBox(self.hToolboxDock) + self.hToolbox = E5HorizontalToolBox(self.hToolboxDock) self.__setupDockWindow(self.hToolboxDock, Qt.BottomDockWidgetArea, self.hToolbox, self.trUtf8("Horizontal Toolbox")) @@ -921,10 +921,10 @@ @param debugServer reference to the debug server object """ # Create the left sidebar - self.leftSidebar = E4SideBar(E4SideBar.West) + self.leftSidebar = E5SideBar(E5SideBar.West) # Create the bottom sidebar - self.bottomSidebar = E4SideBar(E4SideBar.South) + self.bottomSidebar = E5SideBar(E5SideBar.South) # Create the project browser logging.debug("Creating Project Browser...") @@ -1250,7 +1250,7 @@ self.actions = [] self.wizardsActions = [] - self.exitAct = E4Action(self.trUtf8('Quit'), + self.exitAct = E5Action(self.trUtf8('Quit'), UI.PixmapCache.getIcon("exit.png"), self.trUtf8('&Quit'), QKeySequence(self.trUtf8("Ctrl+Q","File|Quit")), @@ -1267,7 +1267,7 @@ self.viewProfileActGrp = createActionGroup(self, "viewprofiles", True) - self.setEditProfileAct = E4Action(self.trUtf8('Edit Profile'), + self.setEditProfileAct = E5Action(self.trUtf8('Edit Profile'), UI.PixmapCache.getIcon("viewProfileEdit.png"), self.trUtf8('Edit Profile'), 0, 0, @@ -1282,7 +1282,7 @@ self.connect(self.setEditProfileAct, SIGNAL('triggered()'), self.__setEditProfile) self.actions.append(self.setEditProfileAct) - self.setDebugProfileAct = E4Action(self.trUtf8('Debug Profile'), + self.setDebugProfileAct = E5Action(self.trUtf8('Debug Profile'), UI.PixmapCache.getIcon("viewProfileDebug.png"), self.trUtf8('Debug Profile'), 0, 0, @@ -1298,7 +1298,7 @@ self.connect(self.setDebugProfileAct, SIGNAL('triggered()'), self.setDebugProfile) self.actions.append(self.setDebugProfileAct) - self.pbAct = E4Action(self.trUtf8('Project-Viewer'), + self.pbAct = E5Action(self.trUtf8('Project-Viewer'), self.trUtf8('&Project-Viewer'), 0, 0, self, 'project_viewer', True) self.pbAct.setStatusTip(self.trUtf8('Toggle the Project-Viewer window')) self.pbAct.setWhatsThis(self.trUtf8( @@ -1309,7 +1309,7 @@ self.connect(self.pbAct, SIGNAL('triggered()'), self.__toggleProjectBrowser) self.actions.append(self.pbAct) - self.pbActivateAct = E4Action(self.trUtf8('Activate Project-Viewer'), + self.pbActivateAct = E5Action(self.trUtf8('Activate Project-Viewer'), self.trUtf8('Activate Project-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+P")), 0, self, @@ -1319,7 +1319,7 @@ self.actions.append(self.pbActivateAct) self.addAction(self.pbActivateAct) - self.mpbAct = E4Action(self.trUtf8('Multiproject-Viewer'), + self.mpbAct = E5Action(self.trUtf8('Multiproject-Viewer'), self.trUtf8('&Multiproject-Viewer'), 0, 0, self, 'multi_project_viewer', True) self.mpbAct.setStatusTip(self.trUtf8('Toggle the Multiproject-Viewer window')) @@ -1331,7 +1331,7 @@ self.connect(self.mpbAct, SIGNAL('triggered()'), self.__toggleMultiProjectBrowser) self.actions.append(self.mpbAct) - self.mpbActivateAct = E4Action(self.trUtf8('Activate Multiproject-Viewer'), + self.mpbActivateAct = E5Action(self.trUtf8('Activate Multiproject-Viewer'), self.trUtf8('Activate Multiproject-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+M")), 0, self, @@ -1341,7 +1341,7 @@ self.actions.append(self.mpbActivateAct) self.addAction(self.mpbActivateAct) - self.debugViewerAct = E4Action(self.trUtf8('Debug-Viewer'), + self.debugViewerAct = E5Action(self.trUtf8('Debug-Viewer'), self.trUtf8('&Debug-Viewer'), 0, 0, self, 'debug_viewer', True) self.debugViewerAct.setStatusTip(self.trUtf8('Toggle the Debug-Viewer window')) self.debugViewerAct.setWhatsThis(self.trUtf8( @@ -1352,7 +1352,7 @@ self.connect(self.debugViewerAct, SIGNAL('triggered()'), self.__toggleDebugViewer) self.actions.append(self.debugViewerAct) - self.debugViewerActivateAct = E4Action(self.trUtf8('Activate Debug-Viewer'), + self.debugViewerActivateAct = E5Action(self.trUtf8('Activate Debug-Viewer'), self.trUtf8('Activate Debug-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+D")), 0, self, @@ -1362,7 +1362,7 @@ self.actions.append(self.debugViewerActivateAct) self.addAction(self.debugViewerActivateAct) - self.shellAct = E4Action(self.trUtf8('Shell'), + self.shellAct = E5Action(self.trUtf8('Shell'), self.trUtf8('&Shell'), 0, 0, self, 'interpreter_shell', True) self.shellAct.setStatusTip(self.trUtf8('Toggle the Shell window')) self.shellAct.setWhatsThis(self.trUtf8( @@ -1374,7 +1374,7 @@ self.connect(self.shellAct, SIGNAL('triggered()'), self.__toggleShell) self.actions.append(self.shellAct) - self.shellActivateAct = E4Action(self.trUtf8('Activate Shell'), + self.shellActivateAct = E5Action(self.trUtf8('Activate Shell'), self.trUtf8('Activate Shell'), QKeySequence(self.trUtf8("Alt+Shift+S")), 0, self, @@ -1383,7 +1383,7 @@ self.actions.append(self.shellActivateAct) self.addAction(self.shellActivateAct) - self.terminalAct = E4Action(self.trUtf8('Terminal'), + self.terminalAct = E5Action(self.trUtf8('Terminal'), self.trUtf8('Te&rminal'), 0, 0, self, 'terminal', True) self.terminalAct.setStatusTip(self.trUtf8('Toggle the Terminal window')) self.terminalAct.setWhatsThis(self.trUtf8( @@ -1394,7 +1394,7 @@ self.connect(self.terminalAct, SIGNAL('triggered()'), self.__toggleTerminal) self.actions.append(self.terminalAct) - self.terminalActivateAct = E4Action(self.trUtf8('Activate Terminal'), + self.terminalActivateAct = E5Action(self.trUtf8('Activate Terminal'), self.trUtf8('Activate Terminal'), QKeySequence(self.trUtf8("Alt+Shift+R")), 0, self, @@ -1404,7 +1404,7 @@ self.actions.append(self.terminalActivateAct) self.addAction(self.terminalActivateAct) - self.browserAct = E4Action(self.trUtf8('File-Browser'), + self.browserAct = E5Action(self.trUtf8('File-Browser'), self.trUtf8('File-&Browser'), 0, 0, self, 'file_browser', True) self.browserAct.setStatusTip(self.trUtf8('Toggle the File-Browser window')) self.browserAct.setWhatsThis(self.trUtf8( @@ -1416,7 +1416,7 @@ self.connect(self.browserAct, SIGNAL('triggered()'), self.__toggleBrowser) self.actions.append(self.browserAct) - self.browserActivateAct = E4Action(self.trUtf8('Activate File-Browser'), + self.browserActivateAct = E5Action(self.trUtf8('Activate File-Browser'), self.trUtf8('Activate File-Browser'), QKeySequence(self.trUtf8("Alt+Shift+F")), 0, self, @@ -1426,7 +1426,7 @@ self.actions.append(self.browserActivateAct) self.addAction(self.browserActivateAct) - self.logViewerAct = E4Action(self.trUtf8('Log-Viewer'), + self.logViewerAct = E5Action(self.trUtf8('Log-Viewer'), self.trUtf8('&Log-Viewer'), 0, 0, self, 'log_viewer', True) self.logViewerAct.setStatusTip(self.trUtf8('Toggle the Log-Viewer window')) self.logViewerAct.setWhatsThis(self.trUtf8( @@ -1437,7 +1437,7 @@ self.connect(self.logViewerAct, SIGNAL('triggered()'), self.__toggleLogViewer) self.actions.append(self.logViewerAct) - self.logViewerActivateAct = E4Action(self.trUtf8('Activate Log-Viewer'), + self.logViewerActivateAct = E5Action(self.trUtf8('Activate Log-Viewer'), self.trUtf8('Activate Log-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+G")), 0, self, @@ -1447,7 +1447,7 @@ self.actions.append(self.logViewerActivateAct) self.addAction(self.logViewerActivateAct) - self.taskViewerAct = E4Action(self.trUtf8('Task-Viewer'), + self.taskViewerAct = E5Action(self.trUtf8('Task-Viewer'), self.trUtf8('T&ask-Viewer'), 0, 0, self, 'task_viewer', True) self.taskViewerAct.setStatusTip(self.trUtf8('Toggle the Task-Viewer window')) self.taskViewerAct.setWhatsThis(self.trUtf8( @@ -1458,7 +1458,7 @@ self.connect(self.taskViewerAct, SIGNAL('triggered()'), self.__toggleTaskViewer) self.actions.append(self.taskViewerAct) - self.taskViewerActivateAct = E4Action(self.trUtf8('Activate Task-Viewer'), + self.taskViewerActivateAct = E5Action(self.trUtf8('Activate Task-Viewer'), self.trUtf8('Activate Task-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+T")), 0, self, @@ -1468,7 +1468,7 @@ self.actions.append(self.taskViewerActivateAct) self.addAction(self.taskViewerActivateAct) - self.templateViewerAct = E4Action(self.trUtf8('Template-Viewer'), + self.templateViewerAct = E5Action(self.trUtf8('Template-Viewer'), self.trUtf8('Temp&late-Viewer'), 0, 0, self, 'template_viewer', True) self.templateViewerAct.setStatusTip(\ self.trUtf8('Toggle the Template-Viewer window')) @@ -1481,7 +1481,7 @@ self.__toggleTemplateViewer) self.actions.append(self.templateViewerAct) - self.templateViewerActivateAct = E4Action(self.trUtf8('Activate Template-Viewer'), + self.templateViewerActivateAct = E5Action(self.trUtf8('Activate Template-Viewer'), self.trUtf8('Activate Template-Viewer'), QKeySequence(self.trUtf8("Alt+Shift+A")), 0, self, @@ -1491,7 +1491,7 @@ self.actions.append(self.templateViewerActivateAct) self.addAction(self.templateViewerActivateAct) - self.vtAct = E4Action(self.trUtf8('Vertical Toolbox'), + self.vtAct = E5Action(self.trUtf8('Vertical Toolbox'), self.trUtf8('&Vertical Toolbox'), 0, 0, self, 'vertical_toolbox', True) self.vtAct.setStatusTip(self.trUtf8('Toggle the Vertical Toolbox window')) self.vtAct.setWhatsThis(self.trUtf8( @@ -1502,7 +1502,7 @@ self.connect(self.vtAct, SIGNAL('triggered()'), self.__toggleVerticalToolbox) self.actions.append(self.vtAct) - self.htAct = E4Action(self.trUtf8('Horizontal Toolbox'), + self.htAct = E5Action(self.trUtf8('Horizontal Toolbox'), self.trUtf8('&Horizontal Toolbox'), 0, 0, self, 'horizontal_toolbox', True) self.htAct.setStatusTip(self.trUtf8('Toggle the Horizontal Toolbox window')) @@ -1514,7 +1514,7 @@ self.connect(self.htAct, SIGNAL('triggered()'), self.__toggleHorizontalToolbox) self.actions.append(self.htAct) - self.lsbAct = E4Action(self.trUtf8('Left Sidebar'), + self.lsbAct = E5Action(self.trUtf8('Left Sidebar'), self.trUtf8('&Left Sidebar'), 0, 0, self, 'left_sidebar', True) self.lsbAct.setStatusTip(self.trUtf8('Toggle the left sidebar window')) self.lsbAct.setWhatsThis(self.trUtf8( @@ -1525,7 +1525,7 @@ self.connect(self.lsbAct, SIGNAL('triggered()'), self.__toggleLeftSidebar) self.actions.append(self.lsbAct) - self.bsbAct = E4Action(self.trUtf8('Bottom Sidebar'), + self.bsbAct = E5Action(self.trUtf8('Bottom Sidebar'), self.trUtf8('&Bottom Sidebar'), 0, 0, self, 'bottom_sidebar', True) self.bsbAct.setStatusTip(self.trUtf8('Toggle the bottom sidebar window')) @@ -1537,7 +1537,7 @@ self.connect(self.bsbAct, SIGNAL('triggered()'), self.__toggleBottomSidebar) self.actions.append(self.bsbAct) - self.whatsThisAct = E4Action(self.trUtf8('What\'s This?'), + self.whatsThisAct = E5Action(self.trUtf8('What\'s This?'), UI.PixmapCache.getIcon("whatsThis.png"), self.trUtf8('&What\'s This?'), QKeySequence(self.trUtf8("Shift+F1")), @@ -1554,7 +1554,7 @@ self.connect(self.whatsThisAct, SIGNAL('triggered()'), self.__whatsThis) self.actions.append(self.whatsThisAct) - self.helpviewerAct = E4Action(self.trUtf8('Helpviewer'), + self.helpviewerAct = E5Action(self.trUtf8('Helpviewer'), UI.PixmapCache.getIcon("help.png"), self.trUtf8('&Helpviewer...'), QKeySequence(self.trUtf8("F1")), @@ -1577,7 +1577,7 @@ self.__initEricDocAction() self.__initPySideDocActions() - self.versionAct = E4Action(self.trUtf8('Show Versions'), + self.versionAct = E5Action(self.trUtf8('Show Versions'), self.trUtf8('Show &Versions'), 0, 0, self, 'show_versions') self.versionAct.setStatusTip(self.trUtf8('Display version information')) self.versionAct.setWhatsThis(self.trUtf8( @@ -1587,7 +1587,7 @@ self.connect(self.versionAct, SIGNAL('triggered()'), self.__showVersions) self.actions.append(self.versionAct) - self.checkUpdateAct = E4Action(self.trUtf8('Check for Updates'), + self.checkUpdateAct = E5Action(self.trUtf8('Check for Updates'), self.trUtf8('Check for &Updates...'), 0, 0, self, 'check_updates') self.checkUpdateAct.setStatusTip(self.trUtf8('Check for Updates')) self.checkUpdateAct.setWhatsThis(self.trUtf8( @@ -1597,7 +1597,7 @@ self.connect(self.checkUpdateAct, SIGNAL('triggered()'), self.performVersionCheck) self.actions.append(self.checkUpdateAct) - self.showVersionsAct = E4Action(self.trUtf8('Show downloadable versions'), + self.showVersionsAct = E5Action(self.trUtf8('Show downloadable versions'), self.trUtf8('Show &downloadable versions...'), 0, 0, self, 'show_downloadable_versions') self.showVersionsAct.setStatusTip(\ @@ -1611,7 +1611,7 @@ self.showAvailableVersionsInfo) self.actions.append(self.showVersionsAct) - self.reportBugAct = E4Action(self.trUtf8('Report Bug'), + self.reportBugAct = E5Action(self.trUtf8('Report Bug'), self.trUtf8('Report &Bug...'), 0, 0, self, 'report_bug') self.reportBugAct.setStatusTip(self.trUtf8('Report a bug')) self.reportBugAct.setWhatsThis(self.trUtf8( @@ -1621,7 +1621,7 @@ self.connect(self.reportBugAct, SIGNAL('triggered()'), self.__reportBug) self.actions.append(self.reportBugAct) - self.requestFeatureAct = E4Action(self.trUtf8('Request Feature'), + self.requestFeatureAct = E5Action(self.trUtf8('Request Feature'), self.trUtf8('Request &Feature...'), 0, 0, self, 'request_feature') self.requestFeatureAct.setStatusTip(self.trUtf8('Send a feature request')) self.requestFeatureAct.setWhatsThis(self.trUtf8( @@ -1633,7 +1633,7 @@ self.utActGrp = createActionGroup(self) - self.utDialogAct = E4Action(self.trUtf8('Unittest'), + self.utDialogAct = E5Action(self.trUtf8('Unittest'), UI.PixmapCache.getIcon("unittest.png"), self.trUtf8('&Unittest...'), 0, 0, self.utActGrp, 'unittest') @@ -1646,7 +1646,7 @@ self.connect(self.utDialogAct, SIGNAL('triggered()'), self.__unittest) self.actions.append(self.utDialogAct) - self.utRestartAct = E4Action(self.trUtf8('Unittest Restart'), + self.utRestartAct = E5Action(self.trUtf8('Unittest Restart'), UI.PixmapCache.getIcon("unittestRestart.png"), self.trUtf8('&Restart Unittest...'), 0, 0, self.utActGrp, 'unittest_restart') @@ -1659,7 +1659,7 @@ self.utRestartAct.setEnabled(False) self.actions.append(self.utRestartAct) - self.utScriptAct = E4Action(self.trUtf8('Unittest Script'), + self.utScriptAct = E5Action(self.trUtf8('Unittest Script'), UI.PixmapCache.getIcon("unittestScript.png"), self.trUtf8('Unittest &Script...'), 0, 0, self.utActGrp, 'unittest_script') @@ -1672,7 +1672,7 @@ self.utScriptAct.setEnabled(False) self.actions.append(self.utScriptAct) - self.utProjectAct = E4Action(self.trUtf8('Unittest Project'), + self.utProjectAct = E5Action(self.trUtf8('Unittest Project'), UI.PixmapCache.getIcon("unittestProject.png"), self.trUtf8('Unittest &Project...'), 0, 0, self.utActGrp, 'unittest_project') @@ -1690,7 +1690,7 @@ "%s.exe" % Utilities.generateQtToolName("designer") or \ Utilities.generateQtToolName("designer") if Utilities.isinpath(designerExe): - self.designer4Act = E4Action(self.trUtf8('Qt-Designer 4'), + self.designer4Act = E5Action(self.trUtf8('Qt-Designer 4'), UI.PixmapCache.getIcon("designer4.png"), self.trUtf8('&Designer 4...'), 0, 0, self, 'qt_designer4') self.designer4Act.setStatusTip(self.trUtf8('Start Qt-Designer 4')) @@ -1707,7 +1707,7 @@ "%s.exe" % Utilities.generateQtToolName("linguist") or \ Utilities.generateQtToolName("linguist") if Utilities.isinpath(linguistExe): - self.linguist4Act = E4Action(self.trUtf8('Qt-Linguist 4'), + self.linguist4Act = E5Action(self.trUtf8('Qt-Linguist 4'), UI.PixmapCache.getIcon("linguist4.png"), self.trUtf8('&Linguist 4...'), 0, 0, self, 'qt_linguist4') self.linguist4Act.setStatusTip(self.trUtf8('Start Qt-Linguist 4')) @@ -1720,7 +1720,7 @@ else: self.linguist4Act = None - self.uipreviewerAct = E4Action(self.trUtf8('UI Previewer'), + self.uipreviewerAct = E5Action(self.trUtf8('UI Previewer'), UI.PixmapCache.getIcon("uiPreviewer.png"), self.trUtf8('&UI Previewer...'), 0, 0, self, 'ui_previewer') self.uipreviewerAct.setStatusTip(self.trUtf8('Start the UI Previewer')) @@ -1731,7 +1731,7 @@ self.connect(self.uipreviewerAct, SIGNAL('triggered()'), self.__UIPreviewer) self.actions.append(self.uipreviewerAct) - self.trpreviewerAct = E4Action(self.trUtf8('Translations Previewer'), + self.trpreviewerAct = E5Action(self.trUtf8('Translations Previewer'), UI.PixmapCache.getIcon("trPreviewer.png"), self.trUtf8('&Translations Previewer...'), 0, 0, self, 'tr_previewer') self.trpreviewerAct.setStatusTip(self.trUtf8('Start the Translations Previewer')) @@ -1742,7 +1742,7 @@ self.connect(self.trpreviewerAct, SIGNAL('triggered()'), self.__TRPreviewer) self.actions.append(self.trpreviewerAct) - self.diffAct = E4Action(self.trUtf8('Compare Files'), + self.diffAct = E5Action(self.trUtf8('Compare Files'), UI.PixmapCache.getIcon("diffFiles.png"), self.trUtf8('&Compare Files...'), 0, 0, self, 'diff_files') self.diffAct.setStatusTip(self.trUtf8('Compare two files')) @@ -1753,7 +1753,7 @@ self.connect(self.diffAct, SIGNAL('triggered()'), self.__compareFiles) self.actions.append(self.diffAct) - self.compareAct = E4Action(self.trUtf8('Compare Files side by side'), + self.compareAct = E5Action(self.trUtf8('Compare Files side by side'), UI.PixmapCache.getIcon("compareFiles.png"), self.trUtf8('Compare Files &side by side...'), 0, 0, self, 'compare_files') @@ -1766,7 +1766,7 @@ self.connect(self.compareAct, SIGNAL('triggered()'), self.__compareFilesSbs) self.actions.append(self.compareAct) - self.sqlBrowserAct = E4Action(self.trUtf8('SQL Browser'), + self.sqlBrowserAct = E5Action(self.trUtf8('SQL Browser'), UI.PixmapCache.getIcon("sqlBrowser.png"), self.trUtf8('SQL &Browser...'), 0, 0, self, 'sql_browser') @@ -1778,7 +1778,7 @@ self.connect(self.sqlBrowserAct, SIGNAL('triggered()'), self.__sqlBrowser) self.actions.append(self.sqlBrowserAct) - self.miniEditorAct = E4Action(self.trUtf8('Mini Editor'), + self.miniEditorAct = E5Action(self.trUtf8('Mini Editor'), UI.PixmapCache.getIcon("editor.png"), self.trUtf8('Mini &Editor...'), 0, 0, self, 'mini_editor') @@ -1790,7 +1790,7 @@ self.connect(self.miniEditorAct, SIGNAL('triggered()'), self.__openMiniEditor) self.actions.append(self.miniEditorAct) - self.webBrowserAct = E4Action(self.trUtf8('Web Browser'), + self.webBrowserAct = E5Action(self.trUtf8('Web Browser'), UI.PixmapCache.getIcon("ericWeb.png"), self.trUtf8('&Web Browser...'), 0, 0, self, 'web_browser') @@ -1802,7 +1802,7 @@ self.connect(self.webBrowserAct, SIGNAL('triggered()'), self.__webBrowser) self.actions.append(self.webBrowserAct) - self.iconEditorAct = E4Action(self.trUtf8('Icon Editor'), + self.iconEditorAct = E5Action(self.trUtf8('Icon Editor'), UI.PixmapCache.getIcon("iconEditor.png"), self.trUtf8('&Icon Editor...'), 0, 0, self, 'icon_editor') @@ -1814,7 +1814,7 @@ self.connect(self.iconEditorAct, SIGNAL('triggered()'), self.__editPixmap) self.actions.append(self.iconEditorAct) - self.prefAct = E4Action(self.trUtf8('Preferences'), + self.prefAct = E5Action(self.trUtf8('Preferences'), UI.PixmapCache.getIcon("configure.png"), self.trUtf8('&Preferences...'), 0, 0, self, 'preferences') self.prefAct.setStatusTip(self.trUtf8('Set the prefered configuration')) @@ -1826,7 +1826,7 @@ self.connect(self.prefAct, SIGNAL('triggered()'), self.showPreferences) self.actions.append(self.prefAct) - self.prefExportAct = E4Action(self.trUtf8('Export Preferences'), + self.prefExportAct = E5Action(self.trUtf8('Export Preferences'), UI.PixmapCache.getIcon("configureExport.png"), self.trUtf8('E&xport Preferences...'), 0, 0, self, 'export_preferences') self.prefExportAct.setStatusTip(self.trUtf8('Export the current configuration')) @@ -1837,7 +1837,7 @@ self.connect(self.prefExportAct, SIGNAL('triggered()'), self.__exportPreferences) self.actions.append(self.prefExportAct) - self.prefImportAct = E4Action(self.trUtf8('Import Preferences'), + self.prefImportAct = E5Action(self.trUtf8('Import Preferences'), UI.PixmapCache.getIcon("configureImport.png"), self.trUtf8('I&mport Preferences...'), 0, 0, self, 'import_preferences') self.prefImportAct.setStatusTip(self.trUtf8( @@ -1849,7 +1849,7 @@ self.connect(self.prefImportAct, SIGNAL('triggered()'), self.__importPreferences) self.actions.append(self.prefImportAct) - self.reloadAPIsAct = E4Action(self.trUtf8('Reload APIs'), + self.reloadAPIsAct = E5Action(self.trUtf8('Reload APIs'), self.trUtf8('Reload &APIs'), 0, 0, self, 'reload_apis') self.reloadAPIsAct.setStatusTip(self.trUtf8('Reload the API information')) self.reloadAPIsAct.setWhatsThis(self.trUtf8( @@ -1859,7 +1859,7 @@ self.connect(self.reloadAPIsAct, SIGNAL('triggered()'), self.__reloadAPIs) self.actions.append(self.reloadAPIsAct) - self.showExternalToolsAct = E4Action(self.trUtf8('Show external tools'), + self.showExternalToolsAct = E5Action(self.trUtf8('Show external tools'), UI.PixmapCache.getIcon("showPrograms.png"), self.trUtf8('Show external &tools'), 0, 0, self, 'show_external_tools') self.showExternalToolsAct.setStatusTip(self.trUtf8('Reload the API information')) @@ -1872,7 +1872,7 @@ self.__showExternalTools) self.actions.append(self.showExternalToolsAct) - self.configViewProfilesAct = E4Action(self.trUtf8('View Profiles'), + self.configViewProfilesAct = E5Action(self.trUtf8('View Profiles'), UI.PixmapCache.getIcon("configureViewProfiles.png"), self.trUtf8('&View Profiles...'), 0, 0, self, 'view_profiles') self.configViewProfilesAct.setStatusTip(self.trUtf8('Configure view profiles')) @@ -1886,7 +1886,7 @@ self.__configViewProfiles) self.actions.append(self.configViewProfilesAct) - self.configToolBarsAct = E4Action(self.trUtf8('Toolbars'), + self.configToolBarsAct = E5Action(self.trUtf8('Toolbars'), UI.PixmapCache.getIcon("toolbarsConfigure.png"), self.trUtf8('Tool&bars...'), 0, 0, self, 'configure_toolbars') self.configToolBarsAct.setStatusTip(self.trUtf8('Configure toolbars')) @@ -1899,7 +1899,7 @@ self.connect(self.configToolBarsAct, SIGNAL('triggered()'), self.__configToolBars) self.actions.append(self.configToolBarsAct) - self.shortcutsAct = E4Action(self.trUtf8('Keyboard Shortcuts'), + self.shortcutsAct = E5Action(self.trUtf8('Keyboard Shortcuts'), UI.PixmapCache.getIcon("configureShortcuts.png"), self.trUtf8('Keyboard &Shortcuts...'), 0, 0, self, 'keyboard_shortcuts') self.shortcutsAct.setStatusTip(self.trUtf8('Set the keyboard shortcuts')) @@ -1911,7 +1911,7 @@ self.connect(self.shortcutsAct, SIGNAL('triggered()'), self.__configShortcuts) self.actions.append(self.shortcutsAct) - self.exportShortcutsAct = E4Action(self.trUtf8('Export Keyboard Shortcuts'), + self.exportShortcutsAct = E5Action(self.trUtf8('Export Keyboard Shortcuts'), UI.PixmapCache.getIcon("exportShortcuts.png"), self.trUtf8('&Export Keyboard Shortcuts...'), 0, 0, self, 'export_keyboard_shortcuts') @@ -1924,7 +1924,7 @@ self.__exportShortcuts) self.actions.append(self.exportShortcutsAct) - self.importShortcutsAct = E4Action(self.trUtf8('Import Keyboard Shortcuts'), + self.importShortcutsAct = E5Action(self.trUtf8('Import Keyboard Shortcuts'), UI.PixmapCache.getIcon("importShortcuts.png"), self.trUtf8('&Import Keyboard Shortcuts...'), 0, 0, self, 'import_keyboard_shortcuts') @@ -1937,7 +1937,7 @@ self.__importShortcuts) self.actions.append(self.importShortcutsAct) - self.viewmanagerActivateAct = E4Action(self.trUtf8('Activate current editor'), + self.viewmanagerActivateAct = E5Action(self.trUtf8('Activate current editor'), self.trUtf8('Activate current editor'), QKeySequence(self.trUtf8("Alt+Shift+E")), 0, self, @@ -1947,7 +1947,7 @@ self.actions.append(self.viewmanagerActivateAct) self.addAction(self.viewmanagerActivateAct) - self.nextTabAct = E4Action(self.trUtf8('Show next'), + self.nextTabAct = E5Action(self.trUtf8('Show next'), self.trUtf8('Show next'), QKeySequence(self.trUtf8('Ctrl+Alt+Tab')), 0, self, 'view_next_tab') @@ -1955,7 +1955,7 @@ self.actions.append(self.nextTabAct) self.addAction(self.nextTabAct) - self.prevTabAct = E4Action(self.trUtf8('Show previous'), + self.prevTabAct = E5Action(self.trUtf8('Show previous'), self.trUtf8('Show previous'), QKeySequence(self.trUtf8('Shift+Ctrl+Alt+Tab')), 0, self, 'view_previous_tab') @@ -1963,7 +1963,7 @@ self.actions.append(self.prevTabAct) self.addAction(self.prevTabAct) - self.switchTabAct = E4Action(self.trUtf8('Switch between tabs'), + self.switchTabAct = E5Action(self.trUtf8('Switch between tabs'), self.trUtf8('Switch between tabs'), QKeySequence(self.trUtf8('Ctrl+1')), 0, self, 'switch_tabs') @@ -1971,7 +1971,7 @@ self.actions.append(self.switchTabAct) self.addAction(self.switchTabAct) - self.pluginInfoAct = E4Action(self.trUtf8('Plugin Infos'), + self.pluginInfoAct = E5Action(self.trUtf8('Plugin Infos'), UI.PixmapCache.getIcon("plugin.png"), self.trUtf8('&Plugin Infos...'), 0, 0, self, 'plugin_infos') self.pluginInfoAct.setStatusTip(self.trUtf8('Show Plugin Infos')) @@ -1983,7 +1983,7 @@ self.connect(self.pluginInfoAct, SIGNAL('triggered()'), self.__showPluginInfo) self.actions.append(self.pluginInfoAct) - self.pluginInstallAct = E4Action(self.trUtf8('Install Plugins'), + self.pluginInstallAct = E5Action(self.trUtf8('Install Plugins'), UI.PixmapCache.getIcon("pluginInstall.png"), self.trUtf8('&Install Plugins...'), 0, 0, self, 'plugin_install') self.pluginInstallAct.setStatusTip(self.trUtf8('Install Plugins')) @@ -1994,7 +1994,7 @@ self.connect(self.pluginInstallAct, SIGNAL('triggered()'), self.__installPlugins) self.actions.append(self.pluginInstallAct) - self.pluginDeinstallAct = E4Action(self.trUtf8('Uninstall Plugin'), + self.pluginDeinstallAct = E5Action(self.trUtf8('Uninstall Plugin'), UI.PixmapCache.getIcon("pluginUninstall.png"), self.trUtf8('&Uninstall Plugin...'), 0, 0, self, 'plugin_deinstall') self.pluginDeinstallAct.setStatusTip(self.trUtf8('Uninstall Plugin')) @@ -2006,7 +2006,7 @@ self.__deinstallPlugin) self.actions.append(self.pluginDeinstallAct) - self.pluginRepoAct = E4Action(self.trUtf8('Plugin Repository'), + self.pluginRepoAct = E5Action(self.trUtf8('Plugin Repository'), UI.PixmapCache.getIcon("pluginRepository.png"), self.trUtf8('Plugin &Repository...'), 0, 0, self, 'plugin_repository') self.pluginRepoAct.setStatusTip(self.trUtf8( @@ -2036,7 +2036,7 @@ """ Private slot to initilize the action to show the Qt documentation. """ - self.qt4DocAct = E4Action(self.trUtf8('Qt4 Documentation'), + self.qt4DocAct = E5Action(self.trUtf8('Qt4 Documentation'), self.trUtf8('Qt&4 Documentation'), 0, 0, self, 'qt4_documentation') self.qt4DocAct.setStatusTip(self.trUtf8('Open Qt4 Documentation')) self.qt4DocAct.setWhatsThis(self.trUtf8( @@ -2048,7 +2048,7 @@ self.connect(self.qt4DocAct, SIGNAL('triggered()'), self.__showQt4Doc) self.actions.append(self.qt4DocAct) - self.pyqt4DocAct = E4Action(self.trUtf8('PyQt4 Documentation'), + self.pyqt4DocAct = E5Action(self.trUtf8('PyQt4 Documentation'), self.trUtf8('P&yQt4 Documentation'), 0, 0, self, 'pyqt4_documentation') self.pyqt4DocAct.setStatusTip(self.trUtf8('Open PyQt4 Documentation')) self.pyqt4DocAct.setWhatsThis(self.trUtf8( @@ -2064,7 +2064,7 @@ """ Private slot to initilize the action to show the Python documentation. """ - self.pythonDocAct = E4Action(self.trUtf8('Python Documentation'), + self.pythonDocAct = E5Action(self.trUtf8('Python Documentation'), self.trUtf8('&Python Documentation'), 0, 0, self, 'python_documentation') self.pythonDocAct.setStatusTip(self.trUtf8('Open Python Documentation')) self.pythonDocAct.setWhatsThis(self.trUtf8( @@ -2083,7 +2083,7 @@ """ Private slot to initialize the action to show the eric5 documentation. """ - self.ericDocAct = E4Action(self.trUtf8("Eric API Documentation"), + self.ericDocAct = E5Action(self.trUtf8("Eric API Documentation"), self.trUtf8('&Eric API Documentation'), 0, 0, self, 'eric_documentation') self.ericDocAct.setStatusTip(self.trUtf8("Open Eric API Documentation")) self.ericDocAct.setWhatsThis(self.trUtf8( @@ -2101,7 +2101,7 @@ """ try: import PySide - self.pysideDocAct = E4Action(self.trUtf8('PySide Documentation'), + self.pysideDocAct = E5Action(self.trUtf8('PySide Documentation'), self.trUtf8('Py&Side Documentation'), 0, 0, self, 'pyside_documentation') self.pysideDocAct.setStatusTip(self.trUtf8('Open PySide Documentation')) self.pysideDocAct.setWhatsThis(self.trUtf8( @@ -2437,7 +2437,7 @@ """ current editors files writability.</p>""" )) - self.sbFile = E4SqueezeLabelPath(self.__statusBar) + self.sbFile = E5SqueezeLabelPath(self.__statusBar) self.sbFile.setMaximumWidth(500) self.sbFile.setMinimumWidth(100) self.__statusBar.addPermanentWidget(self.sbFile, True) @@ -2753,26 +2753,26 @@ editor = MiniEditor(parent = self) editor.show() - def addE4Actions(self, actions, type): + def addE5Actions(self, actions, type): """ Public method to add actions to the list of actions. @param type string denoting the action set to get. It must be one of "ui" or "wizards". - @param actions list of actions to be added (list of E4Action) + @param actions list of actions to be added (list of E5Action) """ if type == 'ui': self.actions.extend(actions) elif type == 'wizards': self.wizardsActions.extend(actions) - def removeE4Actions(self, actions, type = 'ui'): + def removeE5Actions(self, actions, type = 'ui'): """ Public method to remove actions from the list of actions. @param type string denoting the action set to get. It must be one of "ui" or "wizards". - @param actions list of actions (list of E4Action) + @param actions list of actions (list of E5Action) """ for act in actions: try: @@ -2789,7 +2789,7 @@ @param type string denoting the action set to get. It must be one of "ui" or "wizards". - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ if type == 'ui': return self.actions[:] @@ -4611,7 +4611,7 @@ if Preferences.getUI("SingleApplicationMode"): if self.SAServer is None: - self.SAServer = E4SingleApplicationServer() + self.SAServer = E5SingleApplicationServer() else: if self.SAServer is not None: self.SAServer.shutdown() @@ -4669,7 +4669,7 @@ """ Private slot to configure the various toolbars. """ - dlg = E4ToolBarDialog(self.toolbarManager) + dlg = E5ToolBarDialog(self.toolbarManager) if dlg.exec_() == QDialog.Accepted: Preferences.setUI("ToolbarManagerState", self.toolbarManager.saveState())
--- a/Utilities/Startup.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Utilities/Startup.py Wed Jan 13 18:53:58 2010 +0000 @@ -14,7 +14,7 @@ QLibraryInfo from PyQt4.QtGui import QApplication -from E4Gui.E4Application import E4Application +from E5Gui.E5Application import E5Application import Preferences import Utilities @@ -198,7 +198,7 @@ if the last window was closed (boolean) """ ddindex = handleArgs(argv, appinfo) - app = E4Application(argv) + app = E5Application(argv) app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) try: sys.setappdefaultencoding(Preferences.getSystem("StringEncoding"))
--- a/Utilities/__init__.py Tue Jan 12 18:39:15 2010 +0000 +++ b/Utilities/__init__.py Wed Jan 13 18:53:58 2010 +0000 @@ -26,7 +26,7 @@ from Globals import isWindowsPlatform # import this method into the Utilities namespace -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from UI.Info import Program, Version
--- a/VCS/ProjectBrowserHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/VCS/ProjectBrowserHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ from PyQt4.QtCore import QObject from PyQt4.QtGui import QDialog -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
--- a/VCS/ProjectHelper.py Tue Jan 12 18:39:15 2010 +0000 +++ b/VCS/ProjectHelper.py Wed Jan 13 18:53:58 2010 +0000 @@ -15,13 +15,13 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import VCS from .CommandOptionsDialog import vcsCommandOptionsDialog from .RepositoryInfoDialog import VcsRepositoryInfoDialog -from E4Gui.E4Action import E4Action +from E5Gui.E5Action import E5Action import Utilities import Preferences @@ -64,7 +64,7 @@ """ Public method to generate the action objects. """ - self.vcsNewAct = E4Action(self.trUtf8('New from repository'), + self.vcsNewAct = E5Action(self.trUtf8('New from repository'), self.trUtf8('&New from repository...'), 0, 0, self, 'vcs_new') self.vcsNewAct.setStatusTip(self.trUtf8( 'Create a new project from the VCS repository' @@ -76,7 +76,7 @@ self.connect(self.vcsNewAct, SIGNAL('triggered()'), self._vcsCheckout) self.actions.append(self.vcsNewAct) - self.vcsExportAct = E4Action(self.trUtf8('Export from repository'), + self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), self.trUtf8('&Export from repository...'), 0, 0, self, 'vcs_export') self.vcsExportAct.setStatusTip(self.trUtf8( 'Export a project from the repository' @@ -88,7 +88,7 @@ self.connect(self.vcsExportAct, SIGNAL('triggered()'), self._vcsExport) self.actions.append(self.vcsExportAct) - self.vcsAddAct = E4Action(self.trUtf8('Add to repository'), + self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), self.trUtf8('&Add to repository...'), 0, 0, self, 'vcs_add') self.vcsAddAct.setStatusTip(self.trUtf8( 'Add the local project to the VCS repository'
--- a/VCS/StatusMonitorLed.py Tue Jan 12 18:39:15 2010 +0000 +++ b/VCS/StatusMonitorLed.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,11 +10,11 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Led import E4Led, E4LedRectangular +from E5Gui.E5Led import E5Led, E5LedRectangular import Preferences -class StatusMonitorLed(E4Led): +class StatusMonitorLed(E5Led): """ Class implementing a LED to indicate the status of the VCS status monitor thread. """ @@ -25,7 +25,7 @@ @param project reference to the project object (Project.Project) @param parent reference to the parent object (QWidget) """ - E4Led.__init__(self, parent, shape = E4LedRectangular, rectRatio = 1.0) + E5Led.__init__(self, parent, shape = E5LedRectangular, rectRatio = 1.0) self.project = project self.vcsMonitorLedColors = { @@ -137,4 +137,4 @@ """ Private slot to switch the status monitor thread to Off. """ - self.project.stopStatusMonitor() + self.project.stopStatusMonitor() \ No newline at end of file
--- a/VCS/__init__.py Tue Jan 12 18:39:15 2010 +0000 +++ b/VCS/__init__.py Wed Jan 13 18:53:58 2010 +0000 @@ -12,7 +12,7 @@ interfaces (i.e. CVS) have to be subclasses of this base class. """ -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App import Preferences
--- a/ViewManager/BookmarkedFilesDialog.py Tue Jan 12 18:39:15 2010 +0000 +++ b/ViewManager/BookmarkedFilesDialog.py Wed Jan 13 18:53:58 2010 +0000 @@ -10,7 +10,7 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * -from E4Gui.E4Completers import E4FileCompleter +from E5Gui.E5Completers import E5FileCompleter from .Ui_BookmarkedFilesDialog import Ui_BookmarkedFilesDialog @@ -30,7 +30,7 @@ QDialog.__init__(self, parent) self.setupUi(self) - self.fileCompleter = E4FileCompleter(self.fileEdit) + self.fileCompleter = E5FileCompleter(self.fileEdit) self.bookmarks = bookmarks[:] for bookmark in self.bookmarks: @@ -185,4 +185,4 @@ """ tmp = self.bookmarks[itm1] self.bookmarks[itm1] = self.bookmarks[itm2] - self.bookmarks[itm2] = tmp + self.bookmarks[itm2] = tmp \ No newline at end of file
--- a/ViewManager/ViewManager.py Tue Jan 12 18:39:15 2010 +0000 +++ b/ViewManager/ViewManager.py Wed Jan 13 18:53:58 2010 +0000 @@ -13,7 +13,7 @@ from PyQt4.QtGui import * from PyQt4.Qsci import QsciScintilla -from E4Gui.E4Application import e5App +from E5Gui.E5Application import e5App from Globals import recentNameFiles @@ -36,7 +36,7 @@ import UI.PixmapCache import UI.Config -from E4Gui.E4Action import E4Action, createActionGroup +from E5Gui.E5Action import E5Action, createActionGroup class QuickSearchLineEdit(QLineEdit): """ @@ -193,7 +193,7 @@ """ Public method to transfer statusbar info from the user interface to viewmanager. - @param sbFile reference to the file part of the statusbar (E4SqueezeLabelPath) + @param sbFile reference to the file part of the statusbar (E5SqueezeLabelPath) @param sbLine reference to the line number part of the statusbar (QLabel) @param sbPos reference to the character position part of the statusbar (QLabel) @param sbWritable reference to the writability indicator part of @@ -453,7 +453,7 @@ """ Private method defining the user interface actions for file handling. """ - self.newAct = E4Action(QApplication.translate('ViewManager', 'New'), + self.newAct = E5Action(QApplication.translate('ViewManager', 'New'), UI.PixmapCache.getIcon("new.png"), QApplication.translate('ViewManager', '&New'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+N", "File|New")), @@ -467,7 +467,7 @@ self.connect(self.newAct, SIGNAL('triggered()'), self.newEditor) self.fileActions.append(self.newAct) - self.openAct = E4Action(QApplication.translate('ViewManager', 'Open'), + self.openAct = E5Action(QApplication.translate('ViewManager', 'Open'), UI.PixmapCache.getIcon("open.png"), QApplication.translate('ViewManager', '&Open...'), QKeySequence(\ @@ -484,7 +484,7 @@ self.closeActGrp = createActionGroup(self) - self.closeAct = E4Action(QApplication.translate('ViewManager', 'Close'), + self.closeAct = E5Action(QApplication.translate('ViewManager', 'Close'), UI.PixmapCache.getIcon("close.png"), QApplication.translate('ViewManager', '&Close'), QKeySequence(\ @@ -499,7 +499,7 @@ self.connect(self.closeAct, SIGNAL('triggered()'), self.closeCurrentWindow) self.fileActions.append(self.closeAct) - self.closeAllAct = E4Action(QApplication.translate('ViewManager', 'Close All'), + self.closeAllAct = E5Action(QApplication.translate('ViewManager', 'Close All'), QApplication.translate('ViewManager', 'Clos&e All'), 0, 0, self.closeActGrp, 'vm_file_close_all') self.closeAllAct.setStatusTip(\ @@ -515,7 +515,7 @@ self.saveActGrp = createActionGroup(self) - self.saveAct = E4Action(QApplication.translate('ViewManager', 'Save'), + self.saveAct = E5Action(QApplication.translate('ViewManager', 'Save'), UI.PixmapCache.getIcon("fileSave.png"), QApplication.translate('ViewManager', '&Save'), QKeySequence(\ @@ -530,7 +530,7 @@ self.connect(self.saveAct, SIGNAL('triggered()'), self.saveCurrentEditor) self.fileActions.append(self.saveAct) - self.saveAsAct = E4Action(QApplication.translate('ViewManager', 'Save as'), + self.saveAsAct = E5Action(QApplication.translate('ViewManager', 'Save as'), UI.PixmapCache.getIcon("fileSaveAs.png"), QApplication.translate('ViewManager', 'Save &as...'), QKeySequence(QApplication.translate('ViewManager', @@ -546,7 +546,7 @@ self.connect(self.saveAsAct, SIGNAL('triggered()'), self.saveAsCurrentEditor) self.fileActions.append(self.saveAsAct) - self.saveAllAct = E4Action(QApplication.translate('ViewManager', 'Save all'), + self.saveAllAct = E5Action(QApplication.translate('ViewManager', 'Save all'), UI.PixmapCache.getIcon("fileSaveAll.png"), QApplication.translate('ViewManager', 'Save a&ll...'), 0, 0, self.saveActGrp, 'vm_file_save_all') @@ -561,7 +561,7 @@ self.saveActGrp.setEnabled(False) - self.saveToProjectAct = E4Action(QApplication.translate('ViewManager', + self.saveToProjectAct = E5Action(QApplication.translate('ViewManager', 'Save to Project'), UI.PixmapCache.getIcon("fileSaveProject.png"), QApplication.translate('ViewManager', 'Save to Pro&ject'), @@ -579,7 +579,7 @@ self.saveToProjectAct.setEnabled(False) self.fileActions.append(self.saveToProjectAct) - self.printAct = E4Action(QApplication.translate('ViewManager', 'Print'), + self.printAct = E5Action(QApplication.translate('ViewManager', 'Print'), UI.PixmapCache.getIcon("print.png"), QApplication.translate('ViewManager', '&Print'), QKeySequence(QApplication.translate('ViewManager', @@ -596,7 +596,7 @@ self.fileActions.append(self.printAct) self.printPreviewAct = \ - E4Action(QApplication.translate('ViewManager', 'Print Preview'), + E5Action(QApplication.translate('ViewManager', 'Print Preview'), UI.PixmapCache.getIcon("printPreview.png"), QApplication.translate('ViewManager', 'Print Preview'), 0, 0, self, 'vm_file_print_preview') @@ -611,7 +611,7 @@ self.printPreviewAct.setEnabled(False) self.fileActions.append(self.printPreviewAct) - self.findFileNameAct = E4Action(QApplication.translate('ViewManager', + self.findFileNameAct = E5Action(QApplication.translate('ViewManager', 'Search File'), QApplication.translate('ViewManager', 'Search &File...'), QKeySequence(QApplication.translate('ViewManager', @@ -677,7 +677,7 @@ """ Public method to create the File toolbar. - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbar """ tb = QToolBar(QApplication.translate('ViewManager', 'File'), self.ui) @@ -727,7 +727,7 @@ """ self.editActGrp = createActionGroup(self) - self.undoAct = E4Action(QApplication.translate('ViewManager', 'Undo'), + self.undoAct = E5Action(QApplication.translate('ViewManager', 'Undo'), UI.PixmapCache.getIcon("editUndo.png"), QApplication.translate('ViewManager', '&Undo'), QKeySequence(QApplication.translate('ViewManager', @@ -744,7 +744,7 @@ self.connect(self.undoAct, SIGNAL('triggered()'), self.__editUndo) self.editActions.append(self.undoAct) - self.redoAct = E4Action(QApplication.translate('ViewManager', 'Redo'), + self.redoAct = E5Action(QApplication.translate('ViewManager', 'Redo'), UI.PixmapCache.getIcon("editRedo.png"), QApplication.translate('ViewManager', '&Redo'), QKeySequence(QApplication.translate('ViewManager', @@ -759,7 +759,7 @@ self.connect(self.redoAct, SIGNAL('triggered()'), self.__editRedo) self.editActions.append(self.redoAct) - self.revertAct = E4Action(QApplication.translate('ViewManager', + self.revertAct = E5Action(QApplication.translate('ViewManager', 'Revert to last saved state'), QApplication.translate('ViewManager', 'Re&vert to last saved state'), QKeySequence(QApplication.translate('ViewManager', @@ -778,7 +778,7 @@ self.copyActGrp = createActionGroup(self.editActGrp) - self.cutAct = E4Action(QApplication.translate('ViewManager', 'Cut'), + self.cutAct = E5Action(QApplication.translate('ViewManager', 'Cut'), UI.PixmapCache.getIcon("editCut.png"), QApplication.translate('ViewManager', 'Cu&t'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+X", "Edit|Cut")), @@ -794,7 +794,7 @@ self.connect(self.cutAct, SIGNAL('triggered()'), self.__editCut) self.editActions.append(self.cutAct) - self.copyAct = E4Action(QApplication.translate('ViewManager', 'Copy'), + self.copyAct = E5Action(QApplication.translate('ViewManager', 'Copy'), UI.PixmapCache.getIcon("editCopy.png"), QApplication.translate('ViewManager', '&Copy'), QKeySequence(QApplication.translate('ViewManager', @@ -811,7 +811,7 @@ self.connect(self.copyAct, SIGNAL('triggered()'), self.__editCopy) self.editActions.append(self.copyAct) - self.pasteAct = E4Action(QApplication.translate('ViewManager', 'Paste'), + self.pasteAct = E5Action(QApplication.translate('ViewManager', 'Paste'), UI.PixmapCache.getIcon("editPaste.png"), QApplication.translate('ViewManager', '&Paste'), QKeySequence(QApplication.translate('ViewManager', @@ -829,7 +829,7 @@ self.connect(self.pasteAct, SIGNAL('triggered()'), self.__editPaste) self.editActions.append(self.pasteAct) - self.deleteAct = E4Action(QApplication.translate('ViewManager', 'Clear'), + self.deleteAct = E5Action(QApplication.translate('ViewManager', 'Clear'), UI.PixmapCache.getIcon("editDelete.png"), QApplication.translate('ViewManager', 'Cl&ear'), QKeySequence(QApplication.translate('ViewManager', @@ -845,7 +845,7 @@ self.connect(self.deleteAct, SIGNAL('triggered()'), self.__editDelete) self.editActions.append(self.deleteAct) - self.indentAct = E4Action(QApplication.translate('ViewManager', 'Indent'), + self.indentAct = E5Action(QApplication.translate('ViewManager', 'Indent'), UI.PixmapCache.getIcon("editIndent.png"), QApplication.translate('ViewManager', '&Indent'), QKeySequence(QApplication.translate('ViewManager', @@ -861,7 +861,7 @@ self.connect(self.indentAct, SIGNAL('triggered()'), self.__editIndent) self.editActions.append(self.indentAct) - self.unindentAct = E4Action(QApplication.translate('ViewManager', 'Unindent'), + self.unindentAct = E5Action(QApplication.translate('ViewManager', 'Unindent'), UI.PixmapCache.getIcon("editUnindent.png"), QApplication.translate('ViewManager', 'U&nindent'), QKeySequence(QApplication.translate('ViewManager', @@ -878,7 +878,7 @@ self.connect(self.unindentAct, SIGNAL('triggered()'), self.__editUnindent) self.editActions.append(self.unindentAct) - self.smartIndentAct = E4Action(QApplication.translate('ViewManager', + self.smartIndentAct = E5Action(QApplication.translate('ViewManager', 'Smart indent'), UI.PixmapCache.getIcon("editSmartIndent.png"), QApplication.translate('ViewManager', 'Smart indent'), @@ -896,7 +896,7 @@ self.connect(self.smartIndentAct, SIGNAL('triggered()'), self.__editSmartIndent) self.editActions.append(self.smartIndentAct) - self.commentAct = E4Action(QApplication.translate('ViewManager', 'Comment'), + self.commentAct = E5Action(QApplication.translate('ViewManager', 'Comment'), UI.PixmapCache.getIcon("editComment.png"), QApplication.translate('ViewManager', 'C&omment'), QKeySequence(QApplication.translate('ViewManager', @@ -913,7 +913,7 @@ self.connect(self.commentAct, SIGNAL('triggered()'), self.__editComment) self.editActions.append(self.commentAct) - self.uncommentAct = E4Action(QApplication.translate('ViewManager', 'Uncomment'), + self.uncommentAct = E5Action(QApplication.translate('ViewManager', 'Uncomment'), UI.PixmapCache.getIcon("editUncomment.png"), QApplication.translate('ViewManager', 'Unco&mment'), QKeySequence(QApplication.translate('ViewManager', @@ -930,7 +930,7 @@ self.connect(self.uncommentAct, SIGNAL('triggered()'), self.__editUncomment) self.editActions.append(self.uncommentAct) - self.streamCommentAct = E4Action(QApplication.translate('ViewManager', + self.streamCommentAct = E5Action(QApplication.translate('ViewManager', 'Stream Comment'), QApplication.translate('ViewManager', 'Stream Comment'), 0, 0, self.editActGrp, 'vm_edit_stream_comment') @@ -944,7 +944,7 @@ self.__editStreamComment) self.editActions.append(self.streamCommentAct) - self.boxCommentAct = E4Action(QApplication.translate('ViewManager', + self.boxCommentAct = E5Action(QApplication.translate('ViewManager', 'Box Comment'), QApplication.translate('ViewManager', 'Box Comment'), 0, 0, self.editActGrp, 'vm_edit_box_comment') @@ -958,7 +958,7 @@ self.connect(self.boxCommentAct, SIGNAL('triggered()'), self.__editBoxComment) self.editActions.append(self.boxCommentAct) - self.selectBraceAct = E4Action(QApplication.translate('ViewManager', + self.selectBraceAct = E5Action(QApplication.translate('ViewManager', 'Select to brace'), QApplication.translate('ViewManager', 'Select to &brace'), QKeySequence(QApplication.translate('ViewManager', @@ -974,7 +974,7 @@ self.connect(self.selectBraceAct, SIGNAL('triggered()'), self.__editSelectBrace) self.editActions.append(self.selectBraceAct) - self.selectAllAct = E4Action(QApplication.translate('ViewManager', 'Select all'), + self.selectAllAct = E5Action(QApplication.translate('ViewManager', 'Select all'), QApplication.translate('ViewManager', '&Select all'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+A", "Edit|Select all")), @@ -989,7 +989,7 @@ self.connect(self.selectAllAct, SIGNAL('triggered()'), self.__editSelectAll) self.editActions.append(self.selectAllAct) - self.deselectAllAct = E4Action(QApplication.translate('ViewManager', + self.deselectAllAct = E5Action(QApplication.translate('ViewManager', 'Deselect all'), QApplication.translate('ViewManager', '&Deselect all'), QKeySequence(QApplication.translate('ViewManager', @@ -1005,7 +1005,7 @@ self.connect(self.deselectAllAct, SIGNAL('triggered()'), self.__editDeselectAll) self.editActions.append(self.deselectAllAct) - self.convertEOLAct = E4Action(QApplication.translate('ViewManager', + self.convertEOLAct = E5Action(QApplication.translate('ViewManager', 'Convert Line End Characters'), QApplication.translate('ViewManager', 'Convert &Line End Characters'), 0, 0, self.editActGrp, 'vm_edit_convert_eol') @@ -1018,7 +1018,7 @@ self.connect(self.convertEOLAct, SIGNAL('triggered()'), self.__convertEOL) self.editActions.append(self.convertEOLAct) - self.shortenEmptyAct = E4Action(QApplication.translate('ViewManager', + self.shortenEmptyAct = E5Action(QApplication.translate('ViewManager', 'Shorten empty lines'), QApplication.translate('ViewManager', 'Shorten empty lines'), 0, 0, self.editActGrp, 'vm_edit_shorten_empty_lines') @@ -1032,7 +1032,7 @@ self.__shortenEmptyLines) self.editActions.append(self.shortenEmptyAct) - self.autoCompleteAct = E4Action(QApplication.translate('ViewManager', + self.autoCompleteAct = E5Action(QApplication.translate('ViewManager', 'Autocomplete'), QApplication.translate('ViewManager', '&Autocomplete'), QKeySequence(QApplication.translate('ViewManager', @@ -1048,7 +1048,7 @@ self.connect(self.autoCompleteAct, SIGNAL('triggered()'), self.__editAutoComplete) self.editActions.append(self.autoCompleteAct) - self.autoCompleteFromDocAct = E4Action(QApplication.translate('ViewManager', + self.autoCompleteFromDocAct = E5Action(QApplication.translate('ViewManager', 'Autocomplete from Document'), QApplication.translate('ViewManager', 'Autocomplete from Document'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+Shift+Space", @@ -1065,7 +1065,7 @@ self.__editAutoCompleteFromDoc) self.editActions.append(self.autoCompleteFromDocAct) - self.autoCompleteFromAPIsAct = E4Action(QApplication.translate('ViewManager', + self.autoCompleteFromAPIsAct = E5Action(QApplication.translate('ViewManager', 'Autocomplete from APIs'), QApplication.translate('ViewManager', 'Autocomplete from APIs'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+Alt+Space", @@ -1082,7 +1082,7 @@ self.__editAutoCompleteFromAPIs) self.editActions.append(self.autoCompleteFromAPIsAct) - self.autoCompleteFromAllAct = E4Action(\ + self.autoCompleteFromAllAct = E5Action(\ QApplication.translate('ViewManager', 'Autocomplete from Document and APIs'), QApplication.translate('ViewManager', @@ -1101,7 +1101,7 @@ self.__editAutoCompleteFromAll) self.editActions.append(self.autoCompleteFromAllAct) - self.calltipsAct = E4Action(QApplication.translate('ViewManager', + self.calltipsAct = E5Action(QApplication.translate('ViewManager', 'Calltip'), QApplication.translate('ViewManager', '&Calltip'), QKeySequence(QApplication.translate('ViewManager', @@ -1130,7 +1130,7 @@ self.editorActGrp = createActionGroup(self.editActGrp) - act = E4Action(QApplication.translate('ViewManager', 'Move left one character'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one character'), QApplication.translate('ViewManager', 'Move left one character'), QKeySequence(QApplication.translate('ViewManager', 'Left')), 0, self.editorActGrp, 'vm_edit_move_left_char') @@ -1138,7 +1138,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one character'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one character'), QApplication.translate('ViewManager', 'Move right one character'), QKeySequence(QApplication.translate('ViewManager', 'Right')), 0, self.editorActGrp, 'vm_edit_move_right_char') @@ -1146,7 +1146,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one line'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one line'), QApplication.translate('ViewManager', 'Move up one line'), QKeySequence(QApplication.translate('ViewManager', 'Up')), 0, self.editorActGrp, 'vm_edit_move_up_line') @@ -1154,7 +1154,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one line'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one line'), QApplication.translate('ViewManager', 'Move down one line'), QKeySequence(QApplication.translate('ViewManager', 'Down')), 0, self.editorActGrp, 'vm_edit_move_down_line') @@ -1162,7 +1162,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move left one word part'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one word part'), QApplication.translate('ViewManager', 'Move left one word part'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word_part') @@ -1170,7 +1170,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one word part'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one word part'), QApplication.translate('ViewManager', 'Move right one word part'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Right')), 0, self.editorActGrp, 'vm_edit_move_right_word_part') @@ -1178,7 +1178,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move left one word'), + act = E5Action(QApplication.translate('ViewManager', 'Move left one word'), QApplication.translate('ViewManager', 'Move left one word'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Left')), 0, self.editorActGrp, 'vm_edit_move_left_word') @@ -1186,7 +1186,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move right one word'), + act = E5Action(QApplication.translate('ViewManager', 'Move right one word'), QApplication.translate('ViewManager', 'Move right one word'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Right')), 0, @@ -1195,7 +1195,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to first visible character in line'), QApplication.translate('ViewManager', 'Move to first visible character in line'), @@ -1205,7 +1205,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to start of displayed line'), QApplication.translate('ViewManager', 'Move to start of displayed line'), @@ -1215,7 +1215,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to end of line'), + act = E5Action(QApplication.translate('ViewManager', 'Move to end of line'), QApplication.translate('ViewManager', 'Move to end of line'), QKeySequence(QApplication.translate('ViewManager', 'End')), 0, self.editorActGrp, 'vm_edit_move_end_line') @@ -1223,7 +1223,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Scroll view down one line'), + act = E5Action(QApplication.translate('ViewManager', 'Scroll view down one line'), QApplication.translate('ViewManager', 'Scroll view down one line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, self.editorActGrp, 'vm_edit_scroll_down_line') @@ -1231,7 +1231,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Scroll view up one line'), + act = E5Action(QApplication.translate('ViewManager', 'Scroll view up one line'), QApplication.translate('ViewManager', 'Scroll view up one line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, self.editorActGrp, 'vm_edit_scroll_up_line') @@ -1239,7 +1239,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one paragraph'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one paragraph'), QApplication.translate('ViewManager', 'Move up one paragraph'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, self.editorActGrp, 'vm_edit_move_up_para') @@ -1247,7 +1247,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one paragraph'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one paragraph'), QApplication.translate('ViewManager', 'Move down one paragraph'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, self.editorActGrp, 'vm_edit_move_down_para') @@ -1255,7 +1255,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move up one page'), + act = E5Action(QApplication.translate('ViewManager', 'Move up one page'), QApplication.translate('ViewManager', 'Move up one page'), QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, self.editorActGrp, 'vm_edit_move_up_page') @@ -1263,7 +1263,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move down one page'), + act = E5Action(QApplication.translate('ViewManager', 'Move down one page'), QApplication.translate('ViewManager', 'Move down one page'), QKeySequence(QApplication.translate('ViewManager', 'PgDown')), 0, self.editorActGrp, 'vm_edit_move_down_page') @@ -1271,7 +1271,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to start of text'), + act = E5Action(QApplication.translate('ViewManager', 'Move to start of text'), QApplication.translate('ViewManager', 'Move to start of text'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Home')), 0, self.editorActGrp, 'vm_edit_move_start_text') @@ -1279,7 +1279,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Move to end of text'), + act = E5Action(QApplication.translate('ViewManager', 'Move to end of text'), QApplication.translate('ViewManager', 'Move to end of text'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+End')), 0, self.editorActGrp, 'vm_edit_move_end_text') @@ -1287,7 +1287,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Indent one level'), + act = E5Action(QApplication.translate('ViewManager', 'Indent one level'), QApplication.translate('ViewManager', 'Indent one level'), QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, self.editorActGrp, 'vm_edit_indent_one_level') @@ -1295,7 +1295,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Unindent one level'), + act = E5Action(QApplication.translate('ViewManager', 'Unindent one level'), QApplication.translate('ViewManager', 'Unindent one level'), QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, self.editorActGrp, 'vm_edit_unindent_one_level') @@ -1303,7 +1303,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one character'), QApplication.translate('ViewManager', 'Extend selection left one character'), @@ -1314,7 +1314,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one character'), QApplication.translate('ViewManager', 'Extend selection right one character'), @@ -1325,7 +1325,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one line'), QApplication.translate('ViewManager', 'Extend selection up one line'), @@ -1335,7 +1335,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one line'), QApplication.translate('ViewManager', 'Extend selection down one line'), @@ -1346,7 +1346,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one word part'), QApplication.translate('ViewManager', 'Extend selection left one word part'), @@ -1358,7 +1358,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one word part'), QApplication.translate('ViewManager', 'Extend selection right one word part'), @@ -1370,7 +1370,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection left one word'), QApplication.translate('ViewManager', 'Extend selection left one word'), @@ -1382,7 +1382,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection right one word'), QApplication.translate('ViewManager', 'Extend selection right one word'), @@ -1394,7 +1394,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to first visible character in line'), QApplication.translate('ViewManager', 'Extend selection to first visible character in line'), @@ -1405,7 +1405,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to start of line'), QApplication.translate('ViewManager', 'Extend selection to start of line'), @@ -1417,7 +1417,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of line'), QApplication.translate('ViewManager', 'Extend selection to end of line'), @@ -1427,7 +1427,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one paragraph'), QApplication.translate('ViewManager', 'Extend selection up one paragraph'), @@ -1438,7 +1438,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one paragraph'), QApplication.translate('ViewManager', 'Extend selection down one paragraph'), @@ -1450,7 +1450,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection up one page'), QApplication.translate('ViewManager', 'Extend selection up one page'), @@ -1461,7 +1461,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection down one page'), QApplication.translate('ViewManager', 'Extend selection down one page'), @@ -1472,7 +1472,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to start of text'), QApplication.translate('ViewManager', 'Extend selection to start of text'), @@ -1484,7 +1484,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of text'), QApplication.translate('ViewManager', 'Extend selection to end of text'), @@ -1496,7 +1496,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Delete previous character'), QApplication.translate('ViewManager', 'Delete previous character'), QKeySequence(QApplication.translate('ViewManager', 'Backspace')), @@ -1507,7 +1507,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Delete previous character if not at line start'), QApplication.translate('ViewManager', 'Delete previous character if not at line start'), @@ -1517,7 +1517,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete current character'), + act = E5Action(QApplication.translate('ViewManager', 'Delete current character'), QApplication.translate('ViewManager', 'Delete current character'), QKeySequence(QApplication.translate('ViewManager', 'Del')), 0, self.editorActGrp, 'vm_edit_delete_current_char') @@ -1525,7 +1525,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete word to left'), + act = E5Action(QApplication.translate('ViewManager', 'Delete word to left'), QApplication.translate('ViewManager', 'Delete word to left'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Backspace')), @@ -1535,7 +1535,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete word to right'), + act = E5Action(QApplication.translate('ViewManager', 'Delete word to right'), QApplication.translate('ViewManager', 'Delete word to right'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, self.editorActGrp, 'vm_edit_delete_word_right') @@ -1543,7 +1543,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete line to left'), + act = E5Action(QApplication.translate('ViewManager', 'Delete line to left'), QApplication.translate('ViewManager', 'Delete line to left'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+Backspace')), @@ -1553,7 +1553,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete line to right'), + act = E5Action(QApplication.translate('ViewManager', 'Delete line to right'), QApplication.translate('ViewManager', 'Delete line to right'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+Del')), @@ -1563,7 +1563,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Insert new line'), + act = E5Action(QApplication.translate('ViewManager', 'Insert new line'), QApplication.translate('ViewManager', 'Insert new line'), QKeySequence(QApplication.translate('ViewManager', 'Return')), QKeySequence(QApplication.translate('ViewManager', 'Enter')), @@ -1572,7 +1572,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Insert new line below current line'), QApplication.translate('ViewManager', 'Insert new line below current line'), @@ -1582,7 +1582,7 @@ self.connect(act, SIGNAL('triggered()'), self.__newLineBelow) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Delete current line'), + act = E5Action(QApplication.translate('ViewManager', 'Delete current line'), QApplication.translate('ViewManager', 'Delete current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+U')), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+L')), @@ -1591,7 +1591,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Duplicate current line'), + act = E5Action(QApplication.translate('ViewManager', 'Duplicate current line'), QApplication.translate('ViewManager', 'Duplicate current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_line') @@ -1599,7 +1599,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Swap current and previous lines'), QApplication.translate('ViewManager', 'Swap current and previous lines'), @@ -1609,7 +1609,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Cut current line'), + act = E5Action(QApplication.translate('ViewManager', 'Cut current line'), QApplication.translate('ViewManager', 'Cut current line'), QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 0, @@ -1618,7 +1618,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Copy current line'), + act = E5Action(QApplication.translate('ViewManager', 'Copy current line'), QApplication.translate('ViewManager', 'Copy current line'), QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Shift+T')), 0, @@ -1627,7 +1627,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), + act = E5Action(QApplication.translate('ViewManager', 'Toggle insert/overtype'), QApplication.translate('ViewManager', 'Toggle insert/overtype'), QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, self.editorActGrp, 'vm_edit_toggle_insert_overtype') @@ -1635,7 +1635,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Convert selection to lower case'), QApplication.translate('ViewManager', 'Convert selection to lower case'), @@ -1646,7 +1646,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Convert selection to upper case'), QApplication.translate('ViewManager', 'Convert selection to upper case'), @@ -1657,7 +1657,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Move to end of displayed line'), QApplication.translate('ViewManager', 'Move to end of displayed line'), @@ -1667,7 +1667,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend selection to end of displayed line'), QApplication.translate('ViewManager', 'Extend selection to end of displayed line'), @@ -1677,7 +1677,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Formfeed'), + act = E5Action(QApplication.translate('ViewManager', 'Formfeed'), QApplication.translate('ViewManager', 'Formfeed'), 0, 0, self.editorActGrp, 'vm_edit_formfeed') @@ -1685,7 +1685,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', 'Escape'), + act = E5Action(QApplication.translate('ViewManager', 'Escape'), QApplication.translate('ViewManager', 'Escape'), QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, self.editorActGrp, 'vm_edit_escape') @@ -1693,7 +1693,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection down one line'), QApplication.translate('ViewManager', 'Extend rectangular selection down one line'), @@ -1705,7 +1705,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection up one line'), QApplication.translate('ViewManager', 'Extend rectangular selection up one line'), @@ -1716,7 +1716,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection left one character'), QApplication.translate('ViewManager', 'Extend rectangular selection left one character'), @@ -1728,7 +1728,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection right one character'), QApplication.translate('ViewManager', 'Extend rectangular selection right one character'), @@ -1740,7 +1740,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection to first' ' visible character in line'), QApplication.translate('ViewManager', @@ -1755,7 +1755,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection to end of line'), QApplication.translate('ViewManager', 'Extend rectangular selection to end of line'), @@ -1766,7 +1766,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection up one page'), QApplication.translate('ViewManager', 'Extend rectangular selection up one page'), @@ -1778,7 +1778,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Extend rectangular selection down one page'), QApplication.translate('ViewManager', 'Extend rectangular selection down one page'), @@ -1790,7 +1790,7 @@ self.connect(act, SIGNAL('triggered()'), self.esm, SLOT('map()')) self.editActions.append(act) - act = E4Action(QApplication.translate('ViewManager', + act = E5Action(QApplication.translate('ViewManager', 'Duplicate current selection'), QApplication.translate('ViewManager', 'Duplicate current selection'), @@ -1874,7 +1874,7 @@ """ Public method to create the Edit toolbar - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbar """ tb = QToolBar(QApplication.translate('ViewManager', 'Edit'), self.ui) @@ -1911,7 +1911,7 @@ """ self.searchActGrp = createActionGroup(self) - self.searchAct = E4Action(QApplication.translate('ViewManager', 'Search'), + self.searchAct = E5Action(QApplication.translate('ViewManager', 'Search'), UI.PixmapCache.getIcon("find.png"), QApplication.translate('ViewManager', '&Search...'), QKeySequence(QApplication.translate('ViewManager', @@ -1929,7 +1929,7 @@ self.connect(self.searchAct, SIGNAL('triggered()'), self.__search) self.searchActions.append(self.searchAct) - self.searchNextAct = E4Action(QApplication.translate('ViewManager', + self.searchNextAct = E5Action(QApplication.translate('ViewManager', 'Search next'), UI.PixmapCache.getIcon("findNext.png"), QApplication.translate('ViewManager', 'Search &next'), @@ -1947,7 +1947,7 @@ self.connect(self.searchNextAct, SIGNAL('triggered()'), self.searchDlg.findNext) self.searchActions.append(self.searchNextAct) - self.searchPrevAct = E4Action(QApplication.translate('ViewManager', + self.searchPrevAct = E5Action(QApplication.translate('ViewManager', 'Search previous'), UI.PixmapCache.getIcon("findPrev.png"), QApplication.translate('ViewManager', 'Search &previous'), @@ -1965,7 +1965,7 @@ self.connect(self.searchPrevAct, SIGNAL('triggered()'), self.searchDlg.findPrev) self.searchActions.append(self.searchPrevAct) - self.searchClearMarkersAct = E4Action(QApplication.translate('ViewManager', + self.searchClearMarkersAct = E5Action(QApplication.translate('ViewManager', 'Clear search markers'), UI.PixmapCache.getIcon("findClear.png"), QApplication.translate('ViewManager', 'Clear search markers'), @@ -1983,7 +1983,7 @@ self.__searchClearMarkers) self.searchActions.append(self.searchClearMarkersAct) - self.replaceAct = E4Action(QApplication.translate('ViewManager', 'Replace'), + self.replaceAct = E5Action(QApplication.translate('ViewManager', 'Replace'), QApplication.translate('ViewManager', '&Replace...'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+R", "Search|Replace")), @@ -2000,7 +2000,7 @@ self.connect(self.replaceAct, SIGNAL('triggered()'), self.__replace) self.searchActions.append(self.replaceAct) - self.quickSearchAct = E4Action(QApplication.translate('ViewManager', + self.quickSearchAct = E5Action(QApplication.translate('ViewManager', 'Quicksearch'), UI.PixmapCache.getIcon("quickFindNext.png"), QApplication.translate('ViewManager', '&Quicksearch'), @@ -2020,7 +2020,7 @@ self.connect(self.quickSearchAct, SIGNAL('triggered()'), self.__quickSearch) self.searchActions.append(self.quickSearchAct) - self.quickSearchBackAct = E4Action(QApplication.translate('ViewManager', + self.quickSearchBackAct = E5Action(QApplication.translate('ViewManager', 'Quicksearch backwards'), UI.PixmapCache.getIcon("quickFindPrev.png"), QApplication.translate('ViewManager', 'Quicksearch &backwards'), @@ -2037,7 +2037,7 @@ self.__quickSearchPrev) self.searchActions.append(self.quickSearchBackAct) - self.quickSearchExtendAct = E4Action(QApplication.translate('ViewManager', + self.quickSearchExtendAct = E5Action(QApplication.translate('ViewManager', 'Quicksearch extend'), UI.PixmapCache.getIcon("quickFindExtend.png"), QApplication.translate('ViewManager', 'Quicksearch e&xtend'), @@ -2056,7 +2056,7 @@ self.__quickSearchExtend) self.searchActions.append(self.quickSearchExtendAct) - self.gotoAct = E4Action(QApplication.translate('ViewManager', 'Goto Line'), + self.gotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Line'), UI.PixmapCache.getIcon("goto.png"), QApplication.translate('ViewManager', '&Goto Line...'), QKeySequence(QApplication.translate('ViewManager', @@ -2072,7 +2072,7 @@ self.connect(self.gotoAct, SIGNAL('triggered()'), self.__goto) self.searchActions.append(self.gotoAct) - self.gotoBraceAct = E4Action(QApplication.translate('ViewManager', 'Goto Brace'), + self.gotoBraceAct = E5Action(QApplication.translate('ViewManager', 'Goto Brace'), UI.PixmapCache.getIcon("gotoBrace.png"), QApplication.translate('ViewManager', 'Goto &Brace'), QKeySequence(QApplication.translate('ViewManager', @@ -2090,7 +2090,7 @@ self.searchActGrp.setEnabled(False) - self.searchFilesAct = E4Action(QApplication.translate('ViewManager', + self.searchFilesAct = E5Action(QApplication.translate('ViewManager', 'Search in Files'), UI.PixmapCache.getIcon("projectFind.png"), QApplication.translate('ViewManager', 'Search in &Files...'), @@ -2109,7 +2109,7 @@ self.connect(self.searchFilesAct, SIGNAL('triggered()'), self.__searchFiles) self.searchActions.append(self.searchFilesAct) - self.replaceFilesAct = E4Action(QApplication.translate('ViewManager', + self.replaceFilesAct = E5Action(QApplication.translate('ViewManager', 'Replace in Files'), QApplication.translate('ViewManager', 'Replace in F&iles...'), QKeySequence(QApplication.translate('ViewManager', @@ -2132,7 +2132,7 @@ """ Public method to create the Search toolbars - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return a tuple of the generated toolbar (search, quicksearch) """ qtb = QToolBar(QApplication.translate('ViewManager', 'Quicksearch'), self.ui) @@ -2225,7 +2225,7 @@ self.viewActGrp = createActionGroup(self) self.viewFoldActGrp = createActionGroup(self) - self.zoomInAct = E4Action(QApplication.translate('ViewManager', 'Zoom in'), + self.zoomInAct = E5Action(QApplication.translate('ViewManager', 'Zoom in'), UI.PixmapCache.getIcon("zoomIn.png"), QApplication.translate('ViewManager', 'Zoom &in'), QKeySequence(QApplication.translate('ViewManager', @@ -2241,7 +2241,7 @@ self.connect(self.zoomInAct, SIGNAL('triggered()'), self.__zoomIn) self.viewActions.append(self.zoomInAct) - self.zoomOutAct = E4Action(QApplication.translate('ViewManager', 'Zoom out'), + self.zoomOutAct = E5Action(QApplication.translate('ViewManager', 'Zoom out'), UI.PixmapCache.getIcon("zoomOut.png"), QApplication.translate('ViewManager', 'Zoom &out'), QKeySequence(QApplication.translate('ViewManager', @@ -2257,7 +2257,7 @@ self.connect(self.zoomOutAct, SIGNAL('triggered()'), self.__zoomOut) self.viewActions.append(self.zoomOutAct) - self.zoomToAct = E4Action(QApplication.translate('ViewManager', 'Zoom'), + self.zoomToAct = E5Action(QApplication.translate('ViewManager', 'Zoom'), UI.PixmapCache.getIcon("zoomTo.png"), QApplication.translate('ViewManager', '&Zoom'), QKeySequence(QApplication.translate('ViewManager', @@ -2274,7 +2274,7 @@ self.connect(self.zoomToAct, SIGNAL('triggered()'), self.__zoom) self.viewActions.append(self.zoomToAct) - self.toggleAllAct = E4Action(QApplication.translate('ViewManager', + self.toggleAllAct = E5Action(QApplication.translate('ViewManager', 'Toggle all folds'), QApplication.translate('ViewManager', 'Toggle &all folds'), 0, 0, self.viewFoldActGrp, 'vm_view_toggle_all_folds') @@ -2288,7 +2288,7 @@ self.viewActions.append(self.toggleAllAct) self.toggleAllChildrenAct = \ - E4Action(QApplication.translate('ViewManager', + E5Action(QApplication.translate('ViewManager', 'Toggle all folds (including children)'), QApplication.translate('ViewManager', 'Toggle all &folds (including children)'), @@ -2304,7 +2304,7 @@ self.__toggleAllChildren) self.viewActions.append(self.toggleAllChildrenAct) - self.toggleCurrentAct = E4Action(QApplication.translate('ViewManager', + self.toggleCurrentAct = E5Action(QApplication.translate('ViewManager', 'Toggle current fold'), QApplication.translate('ViewManager', 'Toggle ¤t fold'), 0, 0, self.viewFoldActGrp, 'vm_view_toggle_current_fold') @@ -2317,7 +2317,7 @@ self.connect(self.toggleCurrentAct, SIGNAL('triggered()'), self.__toggleCurrent) self.viewActions.append(self.toggleCurrentAct) - self.unhighlightAct = E4Action(QApplication.translate('ViewManager', + self.unhighlightAct = E5Action(QApplication.translate('ViewManager', 'Remove all highlights'), UI.PixmapCache.getIcon("unhighlight.png"), QApplication.translate('ViewManager', @@ -2332,7 +2332,7 @@ self.connect(self.unhighlightAct, SIGNAL('triggered()'), self.unhighlight) self.viewActions.append(self.unhighlightAct) - self.splitViewAct = E4Action(QApplication.translate('ViewManager', 'Split view'), + self.splitViewAct = E5Action(QApplication.translate('ViewManager', 'Split view'), UI.PixmapCache.getIcon("splitVertical.png"), QApplication.translate('ViewManager', '&Split view'), 0, 0, self, 'vm_view_split_view') @@ -2345,7 +2345,7 @@ self.connect(self.splitViewAct, SIGNAL('triggered()'), self.__splitView) self.viewActions.append(self.splitViewAct) - self.splitOrientationAct = E4Action(QApplication.translate('ViewManager', + self.splitOrientationAct = E5Action(QApplication.translate('ViewManager', 'Arrange horizontally'), QApplication.translate('ViewManager', 'Arrange &horizontally'), @@ -2361,7 +2361,7 @@ self.__splitOrientation) self.viewActions.append(self.splitOrientationAct) - self.splitRemoveAct = E4Action(QApplication.translate('ViewManager', + self.splitRemoveAct = E5Action(QApplication.translate('ViewManager', 'Remove split'), UI.PixmapCache.getIcon("remsplitVertical.png"), QApplication.translate('ViewManager', '&Remove split'), @@ -2375,7 +2375,7 @@ self.connect(self.splitRemoveAct, SIGNAL('triggered()'), self.removeSplit) self.viewActions.append(self.splitRemoveAct) - self.nextSplitAct = E4Action(QApplication.translate('ViewManager', 'Next split'), + self.nextSplitAct = E5Action(QApplication.translate('ViewManager', 'Next split'), QApplication.translate('ViewManager', '&Next split'), QKeySequence(QApplication.translate('ViewManager', "Ctrl+Alt+N", "View|Next split")), @@ -2390,7 +2390,7 @@ self.connect(self.nextSplitAct, SIGNAL('triggered()'), self.nextSplit) self.viewActions.append(self.nextSplitAct) - self.prevSplitAct = E4Action(QApplication.translate('ViewManager', + self.prevSplitAct = E5Action(QApplication.translate('ViewManager', 'Previous split'), QApplication.translate('ViewManager', '&Previous split'), QKeySequence(QApplication.translate('ViewManager', @@ -2441,7 +2441,7 @@ """ Public method to create the View toolbar - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbar """ tb = QToolBar(QApplication.translate('ViewManager', 'View'), self.ui) @@ -2468,7 +2468,7 @@ """ self.macroActGrp = createActionGroup(self) - self.macroStartRecAct = E4Action(QApplication.translate('ViewManager', + self.macroStartRecAct = E5Action(QApplication.translate('ViewManager', 'Start Macro Recording'), QApplication.translate('ViewManager', 'S&tart Macro Recording'), @@ -2483,7 +2483,7 @@ self.__macroStartRecording) self.macroActions.append(self.macroStartRecAct) - self.macroStopRecAct = E4Action(QApplication.translate('ViewManager', + self.macroStopRecAct = E5Action(QApplication.translate('ViewManager', 'Stop Macro Recording'), QApplication.translate('ViewManager', 'Sto&p Macro Recording'), @@ -2498,7 +2498,7 @@ self.__macroStopRecording) self.macroActions.append(self.macroStopRecAct) - self.macroRunAct = E4Action(QApplication.translate('ViewManager', 'Run Macro'), + self.macroRunAct = E5Action(QApplication.translate('ViewManager', 'Run Macro'), QApplication.translate('ViewManager', '&Run Macro'), 0, 0, self.macroActGrp, 'vm_macro_run') self.macroRunAct.setStatusTip(QApplication.translate('ViewManager', 'Run Macro')) @@ -2509,7 +2509,7 @@ self.connect(self.macroRunAct, SIGNAL('triggered()'), self.__macroRun) self.macroActions.append(self.macroRunAct) - self.macroDeleteAct = E4Action(QApplication.translate('ViewManager', + self.macroDeleteAct = E5Action(QApplication.translate('ViewManager', 'Delete Macro'), QApplication.translate('ViewManager', '&Delete Macro'), 0, 0, self.macroActGrp, 'vm_macro_delete') @@ -2522,7 +2522,7 @@ self.connect(self.macroDeleteAct, SIGNAL('triggered()'), self.__macroDelete) self.macroActions.append(self.macroDeleteAct) - self.macroLoadAct = E4Action(QApplication.translate('ViewManager', 'Load Macro'), + self.macroLoadAct = E5Action(QApplication.translate('ViewManager', 'Load Macro'), QApplication.translate('ViewManager', '&Load Macro'), 0, 0, self.macroActGrp, 'vm_macro_load') self.macroLoadAct.setStatusTip(QApplication.translate('ViewManager', @@ -2534,7 +2534,7 @@ self.connect(self.macroLoadAct, SIGNAL('triggered()'), self.__macroLoad) self.macroActions.append(self.macroLoadAct) - self.macroSaveAct = E4Action(QApplication.translate('ViewManager', 'Save Macro'), + self.macroSaveAct = E5Action(QApplication.translate('ViewManager', 'Save Macro'), QApplication.translate('ViewManager', '&Save Macro'), 0, 0, self.macroActGrp, 'vm_macro_save') self.macroSaveAct.setStatusTip(QApplication.translate('ViewManager', @@ -2570,7 +2570,7 @@ """ self.bookmarkActGrp = createActionGroup(self) - self.bookmarkToggleAct = E4Action(QApplication.translate('ViewManager', + self.bookmarkToggleAct = E5Action(QApplication.translate('ViewManager', 'Toggle Bookmark'), UI.PixmapCache.getIcon("bookmarkToggle.png"), QApplication.translate('ViewManager', '&Toggle Bookmark'), @@ -2586,7 +2586,7 @@ self.connect(self.bookmarkToggleAct, SIGNAL('triggered()'), self.__toggleBookmark) self.bookmarkActions.append(self.bookmarkToggleAct) - self.bookmarkNextAct = E4Action(QApplication.translate('ViewManager', + self.bookmarkNextAct = E5Action(QApplication.translate('ViewManager', 'Next Bookmark'), UI.PixmapCache.getIcon("bookmarkNext.png"), QApplication.translate('ViewManager', '&Next Bookmark'), @@ -2602,7 +2602,7 @@ self.connect(self.bookmarkNextAct, SIGNAL('triggered()'), self.__nextBookmark) self.bookmarkActions.append(self.bookmarkNextAct) - self.bookmarkPreviousAct = E4Action(QApplication.translate('ViewManager', + self.bookmarkPreviousAct = E5Action(QApplication.translate('ViewManager', 'Previous Bookmark'), UI.PixmapCache.getIcon("bookmarkPrevious.png"), QApplication.translate('ViewManager', '&Previous Bookmark'), @@ -2619,7 +2619,7 @@ self.__previousBookmark) self.bookmarkActions.append(self.bookmarkPreviousAct) - self.bookmarkClearAct = E4Action(QApplication.translate('ViewManager', + self.bookmarkClearAct = E5Action(QApplication.translate('ViewManager', 'Clear Bookmarks'), QApplication.translate('ViewManager', '&Clear Bookmarks'), QKeySequence(QApplication.translate('ViewManager', @@ -2636,7 +2636,7 @@ self.__clearAllBookmarks) self.bookmarkActions.append(self.bookmarkClearAct) - self.syntaxErrorGotoAct = E4Action(QApplication.translate('ViewManager', + self.syntaxErrorGotoAct = E5Action(QApplication.translate('ViewManager', 'Goto Syntax Error'), UI.PixmapCache.getIcon("syntaxErrorGoto.png"), QApplication.translate('ViewManager', '&Goto Syntax Error'), @@ -2651,7 +2651,7 @@ self.connect(self.syntaxErrorGotoAct, SIGNAL('triggered()'), self.__gotoSyntaxError) self.bookmarkActions.append(self.syntaxErrorGotoAct) - self.syntaxErrorClearAct = E4Action(QApplication.translate('ViewManager', + self.syntaxErrorClearAct = E5Action(QApplication.translate('ViewManager', 'Clear Syntax Errors'), QApplication.translate('ViewManager', 'Clear &Syntax Errors'), 0, 0, @@ -2666,7 +2666,7 @@ self.__clearAllSyntaxErrors) self.bookmarkActions.append(self.syntaxErrorClearAct) - self.notcoveredNextAct = E4Action(QApplication.translate('ViewManager', + self.notcoveredNextAct = E5Action(QApplication.translate('ViewManager', 'Next uncovered line'), UI.PixmapCache.getIcon("notcoveredNext.png"), QApplication.translate('ViewManager', '&Next uncovered line'), @@ -2681,7 +2681,7 @@ self.connect(self.notcoveredNextAct, SIGNAL('triggered()'), self.__nextUncovered) self.bookmarkActions.append(self.notcoveredNextAct) - self.notcoveredPreviousAct = E4Action(QApplication.translate('ViewManager', + self.notcoveredPreviousAct = E5Action(QApplication.translate('ViewManager', 'Previous uncovered line'), UI.PixmapCache.getIcon("notcoveredPrev.png"), QApplication.translate('ViewManager', @@ -2699,7 +2699,7 @@ self.__previousUncovered) self.bookmarkActions.append(self.notcoveredPreviousAct) - self.taskNextAct = E4Action(QApplication.translate('ViewManager', + self.taskNextAct = E5Action(QApplication.translate('ViewManager', 'Next Task'), UI.PixmapCache.getIcon("taskNext.png"), QApplication.translate('ViewManager', '&Next Task'), @@ -2714,7 +2714,7 @@ self.connect(self.taskNextAct, SIGNAL('triggered()'), self.__nextTask) self.bookmarkActions.append(self.taskNextAct) - self.taskPreviousAct = E4Action(QApplication.translate('ViewManager', + self.taskPreviousAct = E5Action(QApplication.translate('ViewManager', 'Previous Task'), UI.PixmapCache.getIcon("taskPrev.png"), QApplication.translate('ViewManager', @@ -2771,7 +2771,7 @@ """ Public method to create the Bookmark toolbar - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbar """ tb = QToolBar(QApplication.translate('ViewManager', 'Bookmarks'), self.ui) @@ -2804,7 +2804,7 @@ """ self.spellingActGrp = createActionGroup(self) - self.spellCheckAct = E4Action(QApplication.translate('ViewManager', + self.spellCheckAct = E5Action(QApplication.translate('ViewManager', 'Spell check'), UI.PixmapCache.getIcon("spellchecking.png"), QApplication.translate('ViewManager', @@ -2822,7 +2822,7 @@ self.connect(self.spellCheckAct, SIGNAL('triggered()'), self.__spellCheck) self.spellingActions.append(self.spellCheckAct) - self.autoSpellCheckAct = E4Action(QApplication.translate('ViewManager', + self.autoSpellCheckAct = E5Action(QApplication.translate('ViewManager', 'Automatic spell checking'), UI.PixmapCache.getIcon("autospellchecking.png"), QApplication.translate('ViewManager', @@ -2866,7 +2866,7 @@ """ Public method to create the Spelling toolbar - @param toolbarManager reference to a toolbar manager object (E4ToolBarManager) + @param toolbarManager reference to a toolbar manager object (E5ToolBarManager) @return the generated toolbar """ tb = QToolBar(QApplication.translate('ViewManager', 'Spelling'), self.ui) @@ -4695,7 +4695,7 @@ It must be one of "edit", "file", "search", "view", "window", "macro", "bookmark" or "spelling". - @return list of all actions (list of E4Action) + @return list of all actions (list of E5Action) """ try: return self.__actions[type][:]
--- a/eric5.e4p Tue Jan 12 18:39:15 2010 +0000 +++ b/eric5.e4p Wed Jan 13 18:53:58 2010 +0000 @@ -159,11 +159,6 @@ <Source>Graphics/PixmapDiagram.py</Source> <Source>Graphics/__init__.py</Source> <Source>Graphics/ZoomDialog.py</Source> - <Source>E4Gui/__init__.py</Source> - <Source>E4Gui/E4Action.py</Source> - <Source>E4Gui/E4Led.py</Source> - <Source>E4Gui/E4SingleApplication.py</Source> - <Source>E4Gui/E4TabWidget.py</Source> <Source>Graphics/GraphicsUtilities.py</Source> <Source>Graphics/UMLClassDiagram.py</Source> <Source>Graphics/PackageDiagram.py</Source> @@ -224,7 +219,6 @@ <Source>Debugger/DebuggerInterfaceNone.py</Source> <Source>Debugger/DebugClientCapabilities.py</Source> <Source>Debugger/DebugProtocol.py</Source> - <Source>E4Gui/E4Completers.py</Source> <Source>Preferences/ProgramsDialog.py</Source> <Source>Project/CreateDialogCodeDialog.py</Source> <Source>Project/NewDialogClassDialog.py</Source> @@ -398,8 +392,6 @@ <Source>Plugins/VcsPlugins/vcsSubversion/ConfigurationPage/SubversionPage.py</Source> <Source>Plugins/VcsPlugins/vcsSubversion/SvnUtilities.py</Source> <Source>QScintilla/MiniEditor.py</Source> - <Source>E4Gui/E4ToolBarManager.py</Source> - <Source>E4Gui/E4ToolBarDialog.py</Source> <Source>MultiProject/__init__.py</Source> <Source>MultiProject/MultiProject.py</Source> <Source>MultiProject/PropertiesDialog.py</Source> @@ -420,7 +412,6 @@ <Source>UI/AuthenticationDialog.py</Source> <Source>QScintilla/ShellHistoryDialog.py</Source> <Source>Preferences/ConfigurationPages/HelpAppearancePage.py</Source> - <Source>E4Gui/E4SqueezeLabels.py</Source> <Source>Preferences/ConfigurationPages/EditorAutocompletionQScintillaPage.py</Source> <Source>Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py</Source> <Source>Preferences/ConfigurationPages/EditorPropertiesPage.py</Source> @@ -434,7 +425,6 @@ <Source>QScintilla/Lexers/LexerPostScript.py</Source> <Source>QScintilla/Lexers/LexerYAML.py</Source> <Source>QScintilla/SearchReplaceWidget.py</Source> - <Source>E4Gui/E4ToolBox.py</Source> <Source>ThirdParty/__init__.py</Source> <Source>ThirdParty/CharDet/__init__.py</Source> <Source>ThirdParty/CharDet/chardet/gb2312freq.py</Source> @@ -481,7 +471,6 @@ <Source>Preferences/ConfigurationPages/EditorSpellCheckingPage.py</Source> <Source>QScintilla/SpellCheckingDialog.py</Source> <Source>Project/SpellingPropertiesDialog.py</Source> - <Source>E4Gui/E4SideBar.py</Source> <Source>Project/LexerAssociationDialog.py</Source> <Source>ThirdParty/Pygments/__init__.py</Source> <Source>ThirdParty/Pygments/pygments/style.py</Source> @@ -574,10 +563,8 @@ <Source>DebugClients/Python3/DebugThread.py</Source> <Source>DebugClients/Python3/DebugClientThreads.py</Source> <Source>DebugClients/Python3/DCTestResult.py</Source> - <Source>E4Gui/E4LineEdit.py</Source> <Source>Helpviewer/HelpWebSearchWidget.py</Source> <Source>Helpviewer/HelpClearPrivateDataDialog.py</Source> - <Source>E4Gui/E4TableView.py</Source> <Source>Helpviewer/HelpLanguagesDialog.py</Source> <Source>DebugClients/Python/coverage/html.py</Source> <Source>DebugClients/Python/coverage/report.py</Source> @@ -597,7 +584,6 @@ <Source>Helpviewer/CookieJar/CookieExceptionsModel.py</Source> <Source>Helpviewer/CookieJar/CookieDetailsDialog.py</Source> <Source>Helpviewer/OpenSearch/__init__.py</Source> - <Source>E4Gui/E4ListView.py</Source> <Source>Helpviewer/OpenSearch/OpenSearchEngineAction.py</Source> <Source>Helpviewer/OpenSearch/OpenSearchManager.py</Source> <Source>Helpviewer/OpenSearch/OpenSearchDefaultEngines.py</Source> @@ -619,11 +605,9 @@ <Source>Utilities/AutoSaver.py</Source> <Source>Helpviewer/Bookmarks/DefaultBookmarks.py</Source> <Source>Helpviewer/Bookmarks/BookmarksManager.py</Source> - <Source>E4Gui/E4ModelMenu.py</Source> <Source>Helpviewer/Bookmarks/BookmarksMenu.py</Source> <Source>Helpviewer/Bookmarks/BookmarksToolBar.py</Source> <Source>Helpviewer/Bookmarks/AddBookmarkDialog.py</Source> - <Source>E4Gui/E4TreeView.py</Source> <Source>Helpviewer/Bookmarks/BookmarksDialog.py</Source> <Source>Preferences/ConfigurationPages/HelpWebBrowserPage.py</Source> <Source>Helpviewer/HTMLResources.py</Source> @@ -662,8 +646,6 @@ <Source>DebugClients/Python3/coverage/report.py</Source> <Source>DebugClients/Python3/coverage/summary.py</Source> <Source>DebugClients/Python3/coverage/templite.py</Source> - <Source>E4Gui/E4ModelToolBar.py</Source> - <Source>E4Gui/E4TreeSortFilterProxyModel.py</Source> <Source>ThirdParty/Pygments/pygments/lexers/parsers.py</Source> <Source>Helpviewer/Passwords/__init__.py</Source> <Source>Helpviewer/Passwords/PasswordManager.py</Source> @@ -693,7 +675,6 @@ <Source>compileUiFiles.py</Source> <Source>ThirdParty/CharDet/chardet/test.py</Source> <Source>Helpviewer/OpenSearch/OpenSearchEditDialog.py</Source> - <Source>E4Gui/E4Application.py</Source> <Source>eric5config.py</Source> <Source>eric5.py</Source> <Source>eric5.pyw</Source> @@ -758,6 +739,25 @@ <Source>E5Network/__init__.py</Source> <Source>E5Network/E5NetworkMonitor.py</Source> <Source>E5Network/E5NetworkHeaderDetailsDialog.py</Source> + <Source>E5Gui/__init__.py</Source> + <Source>E5Gui/E5ToolBarDialog.py</Source> + <Source>E5Gui/E5Action.py</Source> + <Source>E5Gui/E5Application.py</Source> + <Source>E5Gui/E5Completers.py</Source> + <Source>E5Gui/E5Led.py</Source> + <Source>E5Gui/E5LineEdit.py</Source> + <Source>E5Gui/E5ListView.py</Source> + <Source>E5Gui/E5ModelMenu.py</Source> + <Source>E5Gui/E5ModelToolBar.py</Source> + <Source>E5Gui/E5SideBar.py</Source> + <Source>E5Gui/E5SingleApplication.py</Source> + <Source>E5Gui/E5SqueezeLabels.py</Source> + <Source>E5Gui/E5TabWidget.py</Source> + <Source>E5Gui/E5TableView.py</Source> + <Source>E5Gui/E5ToolBarManager.py</Source> + <Source>E5Gui/E5ToolBox.py</Source> + <Source>E5Gui/E5TreeSortFilterProxyModel.py</Source> + <Source>E5Gui/E5TreeView.py</Source> </Sources> <Forms> <Form>PyUnit/UnittestDialog.ui</Form> @@ -906,7 +906,6 @@ <Form>Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.ui</Form> <Form>Plugins/VcsPlugins/vcsPySvn/ConfigurationPage/SubversionPage.ui</Form> <Form>Plugins/VcsPlugins/vcsSubversion/ConfigurationPage/SubversionPage.ui</Form> - <Form>E4Gui/E4ToolBarDialog.ui</Form> <Form>MultiProject/PropertiesDialog.ui</Form> <Form>MultiProject/AddProjectDialog.ui</Form> <Form>Preferences/ConfigurationPages/MultiProjectPage.ui</Form> @@ -959,6 +958,7 @@ <Form>E5XML/XMLMessageDialog.ui</Form> <Form>E5Network/E5NetworkMonitor.ui</Form> <Form>E5Network/E5NetworkHeaderDetailsDialog.ui</Form> + <Form>E5Gui/E5ToolBarDialog.ui</Form> </Forms> <Translations> <Translation>i18n/eric5_cs.qm</Translation>
--- a/eric5.py Tue Jan 12 18:39:15 2010 +0000 +++ b/eric5.py Wed Jan 13 18:53:58 2010 +0000 @@ -49,11 +49,11 @@ except ImportError: sys.path.insert(2, os.path.join(os.path.dirname(__file__), "ThirdParty", "Pygments")) -from E4Gui.E4Application import E4Application +from E5Gui.E5Application import E5Application from UI.Info import Program, Version, BugAddress from UI.SplashScreen import SplashScreen, NoneSplashScreen -from E4Gui.E4SingleApplication import E4SingleApplicationClient +from E5Gui.E5SingleApplication import E5SingleApplicationClient import Utilities from Utilities import Startup @@ -67,7 +67,7 @@ @param ddindex index of a '--' option in the options list """ - client = E4SingleApplicationClient() + client = E5SingleApplicationClient() res = client.connect() if res > 0: if "--nosplash" in sys.argv and sys.argv.index("--nosplash") < ddindex: @@ -174,7 +174,7 @@ if Preferences.getUI("SingleApplicationMode"): handleSingleApplication(ddindex) - app = E4Application(sys.argv) + app = E5Application(sys.argv) # set the searchpath for icons Startup.initializeResourceSearchPath() @@ -225,8 +225,8 @@ str(Preferences.getSystem("StringEncoding")))) splash.showMessage(QApplication.translate("eric5", "Importing packages...")) - # We can only import these after creating the E4Application because they - # make Qt calls that need the E4Application to exist. + # We can only import these after creating the E5Application because they + # make Qt calls that need the E5Application to exist. from UI.UserInterface import UserInterface splash.showMessage(QApplication.translate("eric5", "Generating Main Window...")) @@ -250,4 +250,4 @@ raise err if __name__ == '__main__': - main() + main() \ No newline at end of file