Ejemplo n.º 1
0
 def initActions(self):
     collection = self.actionCollection()
     self.loadAction = KStdAction.open(self.slotLoad, collection)
     #self.editAction = KStdAction.replace(self.mainView.slotEdit, collection)
     self.editAction = EditAction(self.mainView.slotEdit, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 2
0
 def initActions(self):
     collection = self.actionCollection()
     self.loadAction = KStdAction.open(self.slotLoad, collection)
     #self.editAction = KStdAction.replace(self.mainView.slotEdit, collection)
     self.editAction = EditAction(self.mainView.slotEdit, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 3
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newEntityAction = KStdAction.openNew(self.slotNewEntity, collection)
     self.newTagAction = NewTagAction(self.slotNewTag, collection)
     self.manageEntityTypesAction = KStdAction.addBookmark(self.slotManageEntityTypes,
                                                           collection)
Ejemplo n.º 4
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.openNewAction = KStdAction.openNew(self.slotOpenNew, collection)
     self.openAction = KStdAction.open(self.slotOpen, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.saveAsAction = KStdAction.saveAs(self.slotSaveAs, collection)
Ejemplo n.º 5
0
    def __init__(self, parent):
        KMainWindow.__init__(self, parent, 'Uncover Truth Frontend')
        self.app = get_application_pointer()
        self.splitView = QSplitter(self, 'splitView')
        self.listView = KListView(self.splitView, 'guests_view')
        self.textView = InfoPart(self.splitView)
        self.initlistView()

        self.connect(self.listView,
                     SIGNAL('selectionChanged()'), self.selectionChanged)
        self.connect(self.textView,
                     PYSIGNAL('GuestInfoUpdated'), self.refreshDisplay)
        self.setCentralWidget(self.splitView)

        collection = self.actionCollection()
        self.quitAction = KStdAction.quit(self.close, collection)
        self.newGuestAction = KStdAction.openNew(self.slotNewGuest, collection)
        self.selectAllAction = KStdAction.selectAll(self.slotSelectAll,
                                                    collection)
        mainmenu = KPopupMenu(self)
        self.newGuestAction.plug(mainmenu)
        self.selectAllAction.plug(mainmenu)
        self.quitAction.plug(mainmenu)
        menubar = self.menuBar()
        menubar.insertItem('&Main', mainmenu)

        toolbar = self.toolBar()
        self.newGuestAction.plug(toolbar)
        self.quitAction.plug(toolbar)
        
        self.new_guest_dialog = None

        # resize window
        self.resize(400, 500)
        self.splitView.setSizes([75, 325])
Ejemplo n.º 6
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)
     self.importFamilyAction = KStdAction.open(self.slotImportFamily,
                                               collection)
     self.exportFamilyAction = KStdAction.saveAs(self.slotExportFamily,
                                                 collection)
Ejemplo n.º 7
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNew, collection)
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self.editaddressAction = EditAddresses(self.slotEditAddresses, collection)
     self.configureAction = ConfigureKonsultant(self.slotConfigure, collection)
     self.manageTicketsAction = ManageTickets(self.slotManageTickets, collection)
     print self.editaddressAction
Ejemplo n.º 8
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNewObject, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
     self._manage_action_objects = {}
     ao = self._manage_action_objects
     ao['machine'] = ManageMachinesAction(self.slotManagemachine, collection)
     ao['diskconfig'] = ManageDiskConfigAction(self.slotManagediskconfig, collection)
     ao['kernels'] = ManageKernelsAction(self.slotManagekernels, collection)
Ejemplo n.º 9
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNewObject, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
     self._manage_action_objects = {}
     for action_name in ManageActionsOrder:
         slotname = 'slotManage%s' % action_name
         slot = getattr(self, slotname)
         action_object = ManageActions[action_name](slot, collection)
         self._manage_action_objects[action_name] = action_object
Ejemplo n.º 10
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNewObject, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
     self._manage_action_objects = {}
     for action_name in ManageActionsOrder:
         slotname = 'slotManage%s' % action_name
         slot = getattr(self, slotname)
         action_object = ManageActions[action_name](slot, collection)
         self._manage_action_objects[action_name] = action_object
Ejemplo n.º 11
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNewObject, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
     self._manage_action_objects = {}
     ao = self._manage_action_objects
     ao['machine'] = ManageMachinesAction(self.slotManagemachine,
                                          collection)
     ao['diskconfig'] = ManageDiskConfigAction(self.slotManagediskconfig,
                                               collection)
     ao['kernels'] = ManageKernelsAction(self.slotManagekernels, collection)
Ejemplo n.º 12
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self._manage_actions = {}
     for k,v in ManageActions.items():
         att = 'slotManage%s' % k
         self._manage_actions[k] = v(getattr(self, att), collection)
Ejemplo n.º 13
0
 def initActions(self):
     collection = self.actionCollection()
     self.manageFamiliesAction = ManageFamilies(self.slotManageFamilies,
                                                collection)
     self.editTemplatesAction = EditTemplateAction(self.slotEditTemplates,
                                                   collection)
     self.quitAction = KStdAction.quit(self.app.quit, collection)
Ejemplo n.º 14
0
 def initActions(self):
     collection = self.actionCollection()
     self.editaddressAction = EditAddresses(self.slotEditAddresses, collection)
     self.manageclientsAction = ManageClients(self.slotManageClients, collection)
     self.manageticketsAction = ManageTickets(self.slotManageTickets, collection)
     self.configureAction = ConfigureKonsultant(self.slotConfigure, collection)
     self.quitAction = KStdAction.quit(self.app.quit, collection)
Ejemplo n.º 15
0
    def initActions(self):
        collection = self.actionCollection()
        self.manageFamiliesAction = ManageFamilies(self.slotManageFamilies, collection)
        self.manageAptSourcesAction = ManageAptSourcesAction(self.slotManageAptSources, collection)
        self.openSuiteManagerAction = OpenSuiteManagerAction(self.slotOpenSuiteManager, collection)

        self.manageAptKeysAction = ManageAptKeysAction(self.slotManageAptKeys, collection)

        self.identifyMachinesAction = IdentifyMachinesAction(self.slotIdentifyMachines, collection)
        # in the main window assign quit to app.quit
        self.quitAction = KStdAction.quit(self.app.quit, collection)
        self.suiteActions = {}
        self.manageTraitsActions = {}

        self._initTraitsActions(self._suites)
        # define database action slots
        self._dbactionslots = dict(
            export=self.slotExportDatabase, connect=self.slotConnectDatabase, disconnect=self.slotDisconnectDatabase
        )
        # don't collide with python keyword
        self._dbactionslots["import"] = self.slotImportDatabase
        self.dbactions = dict()
        for action in dbactions.keys():
            self.dbactions[action] = dbactions[action](self._dbactionslots[action], collection)
        # these will be similar to suiteActions
        # where the key is the context
        self.environActions = {}
        self.differActions = {}
Ejemplo n.º 16
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self._manage_actions = {}
     for k, v in ManageActions.items():
         att = 'slotManage%s' % k
         self._manage_actions[k] = v(getattr(self, att), collection)
Ejemplo n.º 17
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.hide, collection)
     self.newEntityWindowAction = NewEntityWindowAction(self.slotNewEntityWindow,
                                                         collection)
     self.newRadioWindowAction = NewRadioWindowAction(self.slotNewRadioWindow,
                                                      collection)
     self.newRtorrentWindowAction = NewRtorrentWindowAction(self.slotNewRtorrentWindow,
                                                            collection)
Ejemplo n.º 18
0
 def initActions(self):
     collection = self.actionCollection()
     self.manageFamiliesAction = ManageFamilies(self.slotManageFamilies, collection)
     self.editTemplatesAction = EditTemplateAction(self.slotEditTemplates, collection)
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self.suiteActions = {}
     for suite in self._suites:
         self.suiteActions[suite] = ManageSuiteAction(suite, self.slotManageSuite, collection)
     self.environActions = {}
     self.differActions = {}
Ejemplo n.º 19
0
    def initActions(self):
        collection = self.actionCollection()

        # in the main window assign quit to app.quit
        self.quitAction = KStdAction.quit(self.app.quit, collection)
        self.bootstrapMachineAction = BootstrapMachine(self.slotBootstrapMachine,
                                                       collection)
        self.installMachineAction = InstallMachine(self.slotInstallMachine,
                                                   collection)
        self.backupMachineAction = BackupMachine(self.slotBackupMachine,
                                                 collection)
        self.editConfigFileAction = EditConfigFile(self.slotEditConfigFile,
                                                   collection)
        self.launchMachineAction = LaunchMachine(self.slotLaunchMachine,
                                                 collection)
Ejemplo n.º 20
0
    def initActions(self):
        collection = self.actionCollection()
        self.manageFamiliesAction = \
                                  ManageFamilies(self.slotManageFamilies,
                                                 collection)
        self.manageAptSourcesAction = \
                                    ManageAptSourcesAction(self.slotManageAptSources,
                                                           collection)
        self.openSuiteManagerAction = OpenSuiteManagerAction(
            self.slotOpenSuiteManager, collection)

        self.manageAptKeysAction = \
                                 ManageAptKeysAction(self.slotManageAptKeys,
                                                     collection)

        self.identifyMachinesAction = \
                                    IdentifyMachinesAction(self.slotIdentifyMachines,
                                                           collection)
        # in the main window assign quit to app.quit
        self.quitAction = KStdAction.quit(self.app.quit, collection)
        self.suiteActions = {}
        self.manageTraitsActions = {}

        self._initTraitsActions(self._suites)
        # define database action slots
        self._dbactionslots = dict(export=self.slotExportDatabase,
                                   connect=self.slotConnectDatabase,
                                   disconnect=self.slotDisconnectDatabase)
        # don't collide with python keyword
        self._dbactionslots['import'] = self.slotImportDatabase
        self.dbactions = dict()

        self.dbactions['connect'] = ConnectDatabaseAction(
            self.slotConnectDatabase, collection)
        self.dbactions['disconnect'] = DisconnectDatabaseAction(
            self.slotDisconnectDatabase, collection)
        self.dbactions['import'] = ImportDatabaseAction(
            self.slotImportDatabase, collection)
        self.dbactions['export'] = ExportDatabaseAction(
            self.slotExportDatabase, collection)

        #for action in dbactions.keys():
        #    self.dbactions[action] = dbactions[action](self._dbactionslots[action], collection)
        # these will be similar to suiteActions
        # where the key is the context
        self.environActions = {}
        self.differActions = {}
Ejemplo n.º 21
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newGameAction = NewGame(self.slotNewGame, collection)
     self.importZipFileAction = ImportZipFile(self.slotImportZipFile, collection)
     self.launchDosboxAction = \
                             LaunchDosbox(self.slotLaunchDosbox, collection)
     self.launchDosboxPromptAction = \
                                   LaunchDosboxPrompt(self.slotLaunchDosboxPrompt,
                                                      collection)
     self.launchMainDosboxPromptAction = \
                                       LaunchMainDosboxPrompt(self.slotLaunchMainDosboxPrompt,
                                                              collection)
     self.flatViewAction = FlatView(self.slotFlatView, collection)
     self.treeViewAction = TreeView(self.slotTreeView, collection)
     self.nameViewAction = NameView(self.slotNameView, collection)
     self.titleViewAction = TitleView(self.slotTitleView, collection)
     self.prepareAllGamesAction = \
                                PrepareAllGames(self.slotPrepareAllGames, collection)
     self.cleanAllGamesAction = \
                              CleanAllGames(self.slotCleanAllGames, collection)
     self.archiveAllGamesAction = \
                                ArchiveAllGames(self.slotArchiveAllGames, collection)
     self.filterAllGamesAction = \
                               FilterAllGames(self.slotFilterAllGames, collection)
     self.filterAvailableGamesAction = \
                                     FilterAvailableGames(self.slotFilterAvailableGames,
                                                          collection)
     self.filterUnavailableGamesAction = \
                                       FilterUnavailableGames(self.slotFilterUnavailableGames,
                                                              collection)
     self.manageDosboxProfilesAction = \
                                     ManageDosboxProfiles(self.slotManageDosboxProfiles,
                                                          collection)
     
     self.setCurrentProfileAction = \
                                  SetCurrentProfile(self.slotSetCurrentProfile,
                                                    collection)
     self.configureDosboxPyKDEAction = \
                                     ConfigureDosboxPyKDE(self.slotConfigureDosboxPyKDE,
                                                          collection)
Ejemplo n.º 22
0
 def initActions(self, collection=None):
     if collection is None:
         collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 23
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
     self.newAction = KStdAction.openNew(self.slotNew, collection)
Ejemplo n.º 24
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)
Ejemplo n.º 25
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newClientAction = KStdAction.openNew(self.slotNewClient,
                                               collection)
Ejemplo n.º 26
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(
         self.mainView.slotCreateNewVariable, collection)
Ejemplo n.º 27
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newEntityTypeAction = KStdAction.openNew(self.slotNewEntityType, collection)
     self.newExtraFieldAction = KStdAction.addBookmark(self.slotNewExtraField, collection)
Ejemplo n.º 28
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self._manage_actions = {}
     for k, v in ManageActions.items():
         self._manage_actions[k] = v(self.slotManageSomething, collection)
Ejemplo n.º 29
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
Ejemplo n.º 30
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
Ejemplo n.º 31
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.app.quit, collection)
     self._manage_actions = {}
     for k, v in ManageActions.items():
         self._manage_actions[k] = v(self.slotManageSomething, collection)
Ejemplo n.º 32
0
 def initActions(self):
     collection = self.actionCollection()
     self.diffAction = DiffAction(self.mainView.slotDiff, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 33
0
Archivo: tab.py Proyecto: pipacs/etc
 def initActions(self):
     actions = self.actionCollection()
     self.openAction = KStdAction.open(self.slotOpen, actions)
     self.quitAction = KStdAction.quit(self.slotQuit, actions)
Ejemplo n.º 34
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.saveAction = KStdAction.save(self.slotSave, collection)
Ejemplo n.º 35
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.adduserAction = AddDbUser(self.slotAddDbUser, collection)
     self.addgroupAction = AddDbGroup(self.slotAddDbGroup, collection)
     self.addschemaAction = AddDbSchema(self.slotAddDbSchema, collection)
Ejemplo n.º 36
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
     self.importProfileAction = KStdAction.open(self.slotImportProfile, collection)
     self.exportProfileAction = KStdAction.saveAs(self.slotExportProfile, collection)
Ejemplo n.º 37
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNewTag, collection)
     self.editAction = KStdAction.replace(self.slotEditTag, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 38
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 39
0
 def initActions(self):
     actions = self.actionCollection()
     self.openAction = KStdAction.open(self.slotOpen, actions)
     self.quitAction = KStdAction.quit(self.slotQuit, actions)
Ejemplo n.º 40
0
 def initActions(self):
     collection = self.actionCollection()
     self.changeSuiteAction = ChangeSuiteAction(self.slotChangeSuite, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 41
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNew, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 42
0
 def initActions(self):
     collection = self.actionCollection()
     self.diffAction = DiffAction(self.mainView.slotDiff, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 43
0
 def initActions(self):
     collection = self.actionCollection()
     self.manageFamiliesAction = ManageFamilies(self.slotManageFamilies, collection)
     self.editTemplatesAction = EditTemplateAction(self.slotEditTemplates, collection)
     self.quitAction = KStdAction.quit(self.app.quit, collection)
Ejemplo n.º 44
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)
Ejemplo n.º 45
0
 def initActions(self):
     collection = self.actionCollection()
     self.changeSuiteAction = ChangeSuiteAction(self.slotChangeSuite,
                                                collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Ejemplo n.º 46
0
    def __init__(self, *args):
        apply(KMainWindow.__init__, (self,) + args)
        
        self.lastDir = "/var/log"
        self.monitors = []
        self.currentPage = None
        self.tab = QTabWidget(self)
        self.settingsDlg = SettingsDlg(self)
        self.cfg = LoviConfig().getInstance()
        self.bellIcon = \
            QIconSet(KIconLoader().loadIcon("idea", KIcon.Small, 11))
        self.noIcon = QIconSet()
        self.findDlg = KEdFind(self, "find", False)
        self.connect(self.findDlg, SIGNAL("search()"), self.doFind)
        
        self.setCentralWidget(self.tab)
        self.connect(self.tab, SIGNAL("currentChanged(QWidget *)"), 
            self.onPageChange)
        self.setGeometry(0, 0, 600, 400)
        self.setCaption(makeCaption("(none)"))

        # Timers
        self.timer = QTimer(self)
        self.timer.start(MainWin.MON_TIMEOUT)
        self.statusTimer = QTimer(self)
        self.connect(self.statusTimer, SIGNAL("timeout()"), 
            self.onStatusTimeout)
        self.changeTimer = QTimer(self)
        self.changeTimer.start(MainWin.CHANGE_TIMEOUT)
        self.connect(self.changeTimer, SIGNAL("timeout()"),
            self.onChangeTimeout)

        # Initialize actions
        actions = self.actionCollection()
        self.openAction = KStdAction.open(self.onOpen, actions)
        self.closeAction = KStdAction.close(self.onClose, actions)
        self.closeAction.setEnabled(False)
        self.quitAction = KStdAction.quit(self.onQuit, actions)
        self.copyAction = KStdAction.copy(self.onCopy, actions)
        self.copyAction.setEnabled(False)
        self.clearAction = KStdAction.clear(self.onClear, actions)
        self.clearAction.setEnabled(False)
        self.selectAllAction = KStdAction.selectAll(self.onSelectAll, actions)
        self.selectAllAction.setEnabled(False)
        self.addBookmarkAction = \
            KStdAction.addBookmark(self.onAddBookmark, actions)
        self.addBookmarkAction.setEnabled(False)
        self.settingsAction = KStdAction.preferences(self.onSettings, actions)
        self.findAction = KStdAction.find(self.onFind, actions)
        self.findAction.setEnabled(False)
        self.findNextAction = KStdAction.findNext(self.onFindNext, actions)
        self.findNextAction.setEnabled(False)
        self.findPrevAction = KStdAction.findPrev(self.onFindPrev, actions)
        self.findPrevAction.setEnabled(False)
        
        # Initialize menus
        
        fileMenu = QPopupMenu(self)
        self.openAction.plug(fileMenu)
        self.closeAction.plug(fileMenu)
        fileMenu.insertSeparator()
        self.quitAction.plug(fileMenu)
        self.menuBar().insertItem(i18n("&File"), fileMenu)
        
        editMenu = QPopupMenu(self)
        self.copyAction.plug(editMenu)
        self.clearAction.plug(editMenu)
        editMenu.insertSeparator()
        self.selectAllAction.plug(editMenu)
        self.addBookmarkAction.plug(editMenu)
        editMenu.insertSeparator()
        self.findAction.plug(editMenu)
        self.findNextAction.plug(editMenu)
        self.findPrevAction.plug(editMenu)
        self.menuBar().insertItem(i18n("&Edit"), editMenu)
        
        settingsMenu = QPopupMenu(self)
        self.settingsAction.plug(settingsMenu)
        self.menuBar().insertItem(i18n("&Settings"), settingsMenu)
        
        helpMenu = self.helpMenu("")
        self.menuBar().insertItem(i18n("&Help"), helpMenu)
        
        # Initialize status bar
        self.sb = self.statusBar()
        self.bell = BellButton(None)
        self.displayStatus(False, "")
Ejemplo n.º 47
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)