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
Esempio n. 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)
Esempio n. 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])
 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)
Esempio n. 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)
Esempio n. 6
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)
Esempio n. 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
Esempio 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 = {}
     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
Esempio 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 = {}
     ao = self._manage_action_objects
     ao['machine'] = ManageMachinesAction(self.slotManagemachine,
                                          collection)
     ao['diskconfig'] = ManageDiskConfigAction(self.slotManagediskconfig,
                                               collection)
     ao['kernels'] = ManageKernelsAction(self.slotManagekernels, collection)
Esempio n. 10
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
Esempio n. 11
0
 def initActions(self):
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.slotNew, collection)
     self.quitAction = KStdAction.quit(self.close, collection)
Esempio n. 12
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(
         self.mainView.slotCreateNewVariable, collection)
Esempio n. 13
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)
Esempio n. 14
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)
Esempio n. 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)
Esempio n. 16
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newClientAction = KStdAction.openNew(self.slotNewClient,
                                               collection)
Esempio n. 17
0
 def initActions(self):
     BaseTextEditWindow.initActions(self)
     collection = self.actionCollection()
     self.newAction = KStdAction.openNew(self.mainView.slotCreateNewVariable, collection)
Esempio n. 18
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newProfileAction = KStdAction.openNew(self.newProfile, collection)
Esempio n. 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)
Esempio n. 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)
Esempio n. 21
0
 def initActions(self):
     collection = self.actionCollection()
     self.quitAction = KStdAction.quit(self.close, collection)
     self.newFamilyAction = KStdAction.openNew(self.newFamily, collection)