gsdview.mainwin
Specialized MainWindow classes and mixins.
Classes
-
class gsdview.mainwin.ItemModelMainWindow(parent=None)
-
currentItem()
-
currentTopLevelItem()
-
setActiveIndexFromWin(window)
-
setActiveWinFromIndex(index)
-
class gsdview.mainwin.ItemSubWindow(item, parent=None, flags=0)
-
class gsdview.mainwin.MdiMainWindow(parent=None)
Base class for MDI applications.
- mdiarea
- windowactions
- windowmenu
-
addMenuItem(menu_name, submenus_names=None, actions=None, icon=None)
Insert actions under menu_name - submenu_names under the menubar.
Insert actions under menu_name - submenu_names under the menubar
or simply create the menu.
If all the tree or part of it exists, use it.
- actions: an action or list of all action to add to
menu_name - submenus_names.
It can be a list or a QActionGroup or a single action
- menu_name: name of root menu (directly on QMenuBar)
- submenus_names: a list containing ordered submenus to add
under menu_name
- icon: last created menu icon (for submenus_names[-1] if not
None or menu_name otherwise)
-
createMenus()
First create and hide main menus. Then other setup could be performed
Useful to mantain desired order in menubar
-
subWindowClosed()
-
updateWindowActions()
-
updateWindowMenu()