Example #1
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent, 'BaseMachineDialog')
     self.handler = handler
     self._lists = dict(mtypes=[], profiles=[], kernels=[],
                        filesystems=[])
     self.dbaction = None
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
Example #2
0
 def __init__(self, parent, name='SelectEntityTypeDialog'):
     VboxDialog.__init__(self, parent, name=name)
     self.label = QLabel('Select entity type', self.frame)
     self.combo = KComboBox(self.frame)
     self.vbox.addWidget(self.label)
     self.vbox.addWidget(self.combo)
     #etypes = self.app.db.get_entity_types()
     db = self.app.db
     etypes = [et.type for et in db.session.query(db.EntityType).all()]
     self.combo.insertStrList(etypes)
     self.connect(self.combo, SIGNAL('activated(const QString &)'),
                  self._etype_selected)
Example #3
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent)
     self.diskconfig = handler
     self.diskconfigLbl = QLabel(self.frame)
     self.diskconfigLbl.setText('DiskConfig Name')
     self.diskconfigEntry = KLineEdit(self.frame)
     self.contentLbl = QLabel(self.frame)
     self.contentLbl.setText('DiskConfig Content')
     self.contentEntry = KTextEdit(self.frame)
     self.vbox.addWidget(self.diskconfigLbl)
     self.vbox.addWidget(self.diskconfigEntry)
     self.vbox.addWidget(self.contentLbl)
     self.vbox.addWidget(self.contentEntry)
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
Example #4
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent)
     self.diskconfig = handler
     self.diskconfigLbl = QLabel(self.frame)
     self.diskconfigLbl.setText('DiskConfig Name')
     self.diskconfigEntry = KLineEdit(self.frame)
     self.contentLbl = QLabel(self.frame)
     self.contentLbl.setText('DiskConfig Content')
     self.contentEntry = KTextEdit(self.frame)
     self.vbox.addWidget(self.diskconfigLbl)
     self.vbox.addWidget(self.diskconfigEntry)
     self.vbox.addWidget(self.contentLbl)
     self.vbox.addWidget(self.contentEntry)
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
Example #5
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent, 'BaseMachineDialog')
     self.handler = handler
     self._lists = dict(mtypes=[], profiles=[], kernels=[], filesystems=[])
     self.dbaction = None
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
Example #6
0
 def __init__(self, parent):
     VboxDialog.__init__(self, parent, 'NewMTScriptDialog')
     self.scriptnameBox = MTScriptComboBox(self.frame)
     self.scriptdataBox = KTextEdit(self.frame)
     self.vbox.addWidget(self.scriptnameBox)
     self.vbox.addWidget(self.scriptdataBox)
Example #7
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent, 'BaseMachineDialog')
     self.handler = handler
     self.dbaction = None
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)
Example #8
0
 def __init__(self, parent):
     VboxDialog.__init__(self, parent, 'NewMachineScriptDialog')
     self.scriptnameBox = MachineScriptComboBox(self.frame)
     self.scriptdataBox = KTextEdit(self.frame)
     self.vbox.addWidget(self.scriptnameBox)
     self.vbox.addWidget(self.scriptdataBox)
Example #9
0
 def __init__(self, parent, handler):
     VboxDialog.__init__(self, parent, 'BaseMachineDialog')
     self.handler = handler
     self.dbaction = None
     self.connect(self, SIGNAL('okClicked()'), self.slotOkClicked)