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
 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
 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
 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
 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
 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
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
예제 #18
0
 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)