コード例 #1
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNew, collection)
     self.editaddressAction = EditAddresses(self.slotEditAddresses, collection)
     self.configureAction = ConfigureKonsultant(self.slotConfigure, collection)
     
     print self.editaddressAction
コード例 #2
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)
コード例 #3
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])
コード例 #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)
コード例 #5
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)
コード例 #6
0
ファイル: main.py プロジェクト: joelsefus/paella
 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)
コード例 #7
0
ファイル: main.py プロジェクト: pombredanne/paella-svn
 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
コード例 #8
0
ファイル: main.py プロジェクト: BackupTheBerlios/paella-svn
 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
コード例 #9
0
ファイル: main.py プロジェクト: pombredanne/paella-svn
 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)
コード例 #10
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
コード例 #11
0
ファイル: main.py プロジェクト: BackupTheBerlios/paella-svn
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNew, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
コード例 #12
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(
         self.mainView.slotCreateNewVariable, collection)
コード例 #13
0
ファイル: profile.py プロジェクト: joelsefus/paella
 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)
コード例 #14
0
ファイル: family.py プロジェクト: BackupTheBerlios/paella-svn
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)
コード例 #15
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)
コード例 #16
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newClientAction = KStdAction.openNew(self.slotNewClient,
                                               collection)
コード例 #17
0
ファイル: template.py プロジェクト: joelsefus/paella
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
コード例 #18
0
ファイル: profile.py プロジェクト: pombredanne/paella-svn
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
コード例 #19
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)
コード例 #20
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)
コード例 #21
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)