Ejemplo n.º 1
0
 def __init__(self, parent, machine, name='LogBrowserWindow'):
     KDialogBase.__init__(self, parent, name)
     self.resize(600, 600)
     #self.mainView = LogBrowser(self, '/tmp/uml-installer.log')
     self.mainView = InstallerWidget(self, machine)
     self.setMainWidget(self.mainView)
     self.setButtonOKText('pause log')
     self.setButtonApplyText('resume log')
Ejemplo n.º 2
0
 def __init__(self, parent, machine, name="LogBrowserWindow"):
     KDialogBase.__init__(self, parent, name)
     self.resize(600, 600)
     # self.mainView = LogBrowser(self, '/tmp/uml-installer.log')
     self.mainView = InstallerWidget(self, machine)
     self.setMainWidget(self.mainView)
     self.setButtonOKText("pause log")
     self.setButtonApplyText("resume log")
Ejemplo n.º 3
0
 def __init__(self, app, parent):
     KDialogBase.__init__(self, parent, 'SuiteSelector')
     dbwidget(self, app)
     self.suites = Suites(self.conn)
     self.listView = KListView(self)
     self.listView.addColumn('suite')
     self.setMainWidget(self.listView)
     self.refreshlistView()
     self.show()
Ejemplo n.º 4
0
 def __init__(self, parent, fields, name='SimpleRecordDialog'):
     KDialogBase.__init__(self, parent, name)
     self.page = QFrame(self)
     self.setMainWidget(self.page)
     text = 'this is a <em>simple</em> record dialog'
     self.grid = SimpleRecord(self.page, fields, text, name=name)
     self.showButtonApply(False)
     self.setButtonOKText('insert', 'insert')
     self.show()
Ejemplo n.º 5
0
 def __init__(self, parent, fields, name='SimpleRecordDialog'):
     KDialogBase.__init__(self, parent, name)
     self.page = QFrame(self)
     self.setMainWidget(self.page)
     text = 'this is a <em>simple</em> record dialog'
     self.grid = SimpleRecord(self.page, fields, text, name=name)
     self.showButtonApply(False)
     self.setButtonOKText('insert', 'insert')
     self.show()
Ejemplo n.º 6
0
 def __init__(self, app, parent):
     KDialogBase.__init__(self, parent, 'SuiteSelector')
     dbwidget(self, app)
     self.suites = Suites(self.conn)
     self.listView = KListView(self)
     self.listView.addColumn('suite')
     self.setMainWidget(self.listView)
     self.refreshlistView()
     self.show()
Ejemplo n.º 7
0
 def __init__(self, parent, name='BaseEntryDialog'):
     KDialogBase.__init__(self, parent, name)
     self.frame = QFrame(self)
     self.setMainWidget(self.frame)
     self.frame.grid = QGridLayout(self.frame, 1, 2, 5, 7)
     self.label = QLabel(self.frame)
     self.entry = KLineEdit(self.frame)
     self.frame.grid.addWidget(self.label, 0, 0)
     self.frame.grid.addWidget(self.entry, 1, 0)
 def __init__(self, parent, name='BaseGameDataDialog'):
     KDialogBase.__init__(self, parent, name)
     # setup app pointer
     self.app = KApplication.kApplication()
     self.myconfig = self.app.myconfig
     # we need a frame for the layout widget
     # the layout widget won't work with a window as parent
     self.frame = BaseGameDataFrame(self)
     # set frame as main widget
     self.setMainWidget(self.frame)
Ejemplo n.º 9
0
 def __init__(self, parent, db, name='AddressSelector', modal=True):
     KDialogBase.__init__(self, parent, name, modal)
     self.db = db
     self.fields = ['street1', 'street2', 'city', 'state', 'zip']
     self.mainView = RecordSelector(self, self.db, 'addresses', self.fields,
                                    'addressid', ['state', 'city'], AddressSelectView, name=name)
     self.setMainWidget(self.mainView)
     self.showButtonApply(False)
     self.showButtonOK(False)
     self.show()
 def __init__(self, parent, name='TicketDialog'):
     KDialogBase.__init__(self, parent, name)
     self.page = QFrame(self)
     self.setMainWidget(self.page)
     self.vbox = QVBoxLayout(self.page, 5, 7)
     self.titleEdit = KLineEdit('new ticket', self.page)
     self.dataEdit = KTextEdit(self.page)
     self.vbox.addWidget(self.titleEdit)
     self.vbox.addWidget(self.dataEdit)
     self.showButtonApply(False)
     self.setButtonOKText('insert', 'insert')
     self.show()
Ejemplo n.º 11
0
 def __init__(self, app, parent, name="AddressSelector", modal=True):
     KDialogBase.__init__(self, parent, name, modal)
     self.app = app
     self.db = app.db
     self.fields = ["street1", "street2", "city", "state", "zip"]
     self.mainView = RecordSelector(
         self.app, self, "addresses", self.fields, "addressid", ["state", "city"], AddressSelectView, name=name
     )
     self.setMainWidget(self.mainView)
     self.showButtonApply(False)
     self.showButtonOK(False)
     self.show()
Ejemplo n.º 12
0
 def __init__(self, parent, db, fields, name='WithAddressIdRecDialog'):
     KDialogBase.__init__(self, parent, name)
     self.db = db
     self.page = QFrame(self)
     self.setMainWidget(self.page)
     text = 'this is a <em>simple</em> record dialog'
     self.grid = WithAddressIdRecord(self.page, fields, text, name=name)
     self.connect(self.grid.selButton, SIGNAL('clicked()'), self.selButtonClicked)
     self.showButtonApply(False)
     self.setButtonOKText('insert', 'insert')
     self.enableButtonOK(False)
     self.dialogs = {}
     self.show()
Ejemplo n.º 13
0
 def __init__(self, app, parent):
     KDialogBase.__init__(self, parent, 'ConfigureDialog')
     self.app = app
     self.cfg = app.cfg
     self.page = KTabWidget(self)
     self.grouplist = ['database', 'pgpool']
     self.groups = {}
     frame = QFrame(self.page)
     self.groups['database'] = DbConfigLayout(frame, self.cfg)
     frame = QFrame(self.page)
     self.groups['pgpool'] = PgPoolConfigLayout(frame, self.cfg)
     
     
     for t in self.grouplist:
         self.page.addTab(self.groups[t].parent(), t)
     self.setMainWidget(self.page)
     self.show()
Ejemplo n.º 14
0
 def __init__(self, parent, type, name='ScriptNameDialog'):
     KDialogBase.__init__(self, parent, name)
     self.scriptname_widget = ScriptNameComboBox(self, type)
     self.setMainWidget(self.scriptname_widget)
Ejemplo n.º 15
0
 def __init__(self, parent, name='BaseDialogWindow'):
     KDialogBase.__init__(self, parent, name)
     self.app = get_application_pointer()
Ejemplo n.º 16
0
 def __init__(self, parent, type, name='ScriptNameDialog'):
     KDialogBase.__init__(self, parent, name)
     self.scriptname_widget = ScriptNameComboBox(self, type)
     self.setMainWidget(self.scriptname_widget)
Ejemplo n.º 17
0
 def __init__(self, parent, name='VboxDialog'):
     KDialogBase.__init__(self, parent, name)
     self.page = QFrame(self)
     self.setMainWidget(self.page)
     self.vbox = QVBoxLayout(self.page, 5, 7)
Ejemplo n.º 18
0
 def __init__(self, parent, name='SuiteSelectDialog'):
     KDialogBase.__init__(self, parent, name)
     self.suite = SuiteComboBox(self)
     self.setMainWidget(self.suite)
Ejemplo n.º 19
0
 def __init__(self, parent, name='SuiteSelectDialog'):
     KDialogBase.__init__(self, parent, name)
     self.suite = SuiteComboBox(self)
     self.setMainWidget(self.suite)