Example #1
0
 def hide(self):
     if self.systray is self:
         BaseMainWindow.close(self)
     else:
         for name, window in self._child_windows.items():
             window.hide()
         BaseMainWindow.hide(self)
Example #2
0
 def closeEvent(self, event):
     called_show = False
     if not self.main_toolbox_window.isVisible():
         self.main_toolbox_window.show()
         called_show = True
     name = str(self.name())
     BaseMainWindow.closeEvent(self, event)
     if called_show:
         self.main_toolbox_window.hide()
     del self.main_toolbox_window._child_windows[name]
     print self.main_toolbox_window._child_windows.keys()
Example #3
0
 def __init__(self, parent, name='EntityTypeWindow'):
     BaseMainWindow.__init__(self, parent, name=name)
     self.splitView = QSplitter(self, 'splitView')
     self.etypeView = KListView(self.splitView, 'etypes_view')
     self.extfieldsView = KListView(self.splitView, 'extfields_view')
     self.initActions()
     self.initMenus()
     self.initToolbar()
     self.setCentralWidget(self.splitView)
     self.connect(self.etypeView,
                  SIGNAL('selectionChanged()'), self.selectionChanged)
     self.initlistView()
     self.current_etype = None
Example #4
0
    def __init__(self, parent):
        BaseMainWindow.__init__(self, parent, 'ToolboxMainWindow')
        self.label = QLabel('toobox', self)
        self.setCentralWidget(self.label)
        self.app.main_window = self
        self.initActions()
        self.initMenus()
        self.initToolbar()

        
        self.setAcceptDrops(True)
        self.connect(self.app,
                     PYSIGNAL('UrlHandled'), self.url_handled)
        #self.connect(self, SIGNAL('quit()'), self.hide)
        self._child_windows = dict()

        if os.environ.has_key('DEBUG') and os.environ['DEBUG'] == 'nosystray':
            self.systray = self
        else:
            self.systray = MySytemTray(self)
            systray_menu = self.systray.contextMenu()
            self.newEntityWindowAction.plug(systray_menu)
            self.newRadioWindowAction.plug(systray_menu)
Example #5
0
 def __init__(self, parent, name='BaseToolboxWindow'):
     BaseMainWindow.__init__(self, parent, name=name)
     self.main_toolbox_window = parent
     self.setCaption(name)
Example #6
0
 def __init__(self, parent, umlmachines, name='UmlRunLogWindow'):
     BaseMainWindow.__init__(self, parent, name)
     self.mainView = RunnerWidget(self, umlmachines)
     self.setCentralWidget(self.mainView)
     self.setCaption('Uml Machine %s' % self.mainView.umlmachines.current)
     self.resize(500, 700)
Example #7
0
 def show(self):
     for name, window in self._child_windows.items():
         window.show()
     BaseMainWindow.show(self)
Example #8
0
 def __init__(self, parent=None, name='BaseUmlManagerMainWindow'):
     BaseMainWindow.__init__(self, parent, name)
     self.app = get_application_pointer()
Example #9
0
 def __init__(self, parent, umlmachines, name='UmlRunLogWindow'):
     BaseMainWindow.__init__(self, parent, name)
     self.mainView = RunnerWidget(self, umlmachines)
     self.setCentralWidget(self.mainView)
     self.setCaption('Uml Machine %s' % self.mainView.umlmachines.current)
     self.resize(500, 700)