scriptEditor::scriptEditor(QWidget* parent, const char* name, bool modal, Qt::WFlags fl) : XDialog(parent, name, modal, fl) { setupUi(this); connect(_save, SIGNAL(clicked()), this, SLOT(sSave())); connect(_import, SIGNAL(clicked()), this, SLOT(sImport())); connect(_export, SIGNAL(clicked()), this, SLOT(sExport())); }
ImportWindow::ImportWindow(QWidget* parent, Qt::WindowFlags fl) : QMainWindow(parent, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(helpIndexAction, SIGNAL(activated()), this, SLOT(helpIndex())); connect(helpContentsAction, SIGNAL(activated()), this, SLOT(helpContents())); connect(helpAboutAction, SIGNAL(activated()), this, SLOT(helpAbout())); connect(fileExitAction, SIGNAL(activated()), this, SLOT(fileExit())); connect(fileOpenAction, SIGNAL(activated()), this, SLOT(sAdd())); connect(_add, SIGNAL(clicked()), this, SLOT(sAdd())); connect(_import, SIGNAL(clicked()), this, SLOT(sImport())); connect(_remove, SIGNAL(clicked()), this, SLOT(sRemove())); connect(_reports, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(reportsDoubleClicked(QListWidgetItem*))); _reports->clear(); _dbTimerId = startTimer(60000); }
ImportWindow::ImportWindow(QWidget* parent, Qt::WindowFlags fl) : QMainWindow(parent, fl) { setupUi(this); (void)statusBar(); // signals and slots connections connect(helpIndexAction, SIGNAL(activated()), this, SLOT(helpIndex())); connect(helpContentsAction, SIGNAL(activated()), this, SLOT(helpContents())); connect(helpAboutAction, SIGNAL(activated()), this, SLOT(helpAbout())); connect(fileExitAction, SIGNAL(activated()), this, SLOT(fileExit())); connect(fileOpenAction, SIGNAL(activated()), this, SLOT(sAdd())); connect(_add, SIGNAL(clicked()), this, SLOT(sAdd())); connect(_import, SIGNAL(clicked()), this, SLOT(sImport())); connect(_remove, SIGNAL(clicked()), this, SLOT(sRemove())); _reports->clear(); QSqlQuery qpop; QSqlError err; if(!qpop.exec(getSqlFromTag("fmt19", QSqlDatabase::database().driverName()))) { err = qpop.lastError(); _log->append(tr("<font color=red>The following error was encountered " "retrieving available schemas:\n" "\t%1\n\t%2\n</font>") .arg(err.driverText()) .arg(err.databaseText())); return; } else while (qpop.next()) _schema->addItem(qpop.value(0).toString(), qpop.value(0)); _dbTimerId = startTimer(60000); }