Dialog::Dialog() : QWidget(), saver(NULL), systemInfo(NULL), di(NULL), ni(NULL),sti(NULL),bi(NULL),dis(NULL), alt1(0),alt2(0),alt3(0) { setupUi(this); setupGeneral(); connect(comboBox,SIGNAL(activated(int)),this,SLOT(tabChanged(int))); connect(versionComboBox,SIGNAL(activated(int)), this,SLOT(getVersion(int))); connect(featureComboBox,SIGNAL(activated(int)), this,SLOT(getFeature(int))); }
Dialog::Dialog() : QWidget(), saver(NULL), systemInfo(NULL), di(NULL), ni(NULL) { setupUi(this); setupGeneral(); connect(tabWidget,SIGNAL(currentChanged(int)),this,SLOT(tabChanged(int))); connect(versionComboBox,SIGNAL(activated(int)), this,SLOT(getVersion(int))); connect(featureComboBox,SIGNAL(activated(int)), this,SLOT(getFeature(int))); updateDeviceLockedState(); QTimer *timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(updateDeviceLockedState())); timer->start(1000); }
void KOEventEditor::init() { setupGeneral(); setupRecurrence(); setupFreeBusy(); setupDesignerTabs( "event" ); // Propagate date time settings to recurrence tab connect( mGeneral, SIGNAL(dateTimesChanged(const QDateTime&,const QDateTime& )), mRecurrence, SLOT(setDateTimes(const QDateTime&,const QDateTime&)) ); connect( mGeneral, SIGNAL(dateTimeStrChanged(const QString&)), mRecurrence, SLOT(setDateTimeStr(const QString&)) ); connect( mFreeBusy, SIGNAL(dateTimesChanged(const QDateTime&,const QDateTime&)), mRecurrence, SLOT(setDateTimes(const QDateTime&,const QDateTime&)) ); // Propagate date time settings to gantt tab and back connect( mGeneral, SIGNAL(dateTimesChanged(const QDateTime&,const QDateTime&)), mFreeBusy, SLOT(slotUpdateGanttView(const QDateTime&,const QDateTime&)) ); connect( mFreeBusy, SIGNAL(dateTimesChanged(const QDateTime&,const QDateTime&)), mGeneral, SLOT(setDateTimes(const QDateTime&,const QDateTime&)) ); connect( mGeneral, SIGNAL(focusReceivedSignal()), SIGNAL(focusReceivedSignal()) ); connect( mGeneral, SIGNAL(openCategoryDialog()), SIGNAL(editCategories()) ); connect( this, SIGNAL(updateCategoryConfig()), mGeneral, SIGNAL(updateCategoryConfig()) ); connect( mFreeBusy, SIGNAL(updateAttendeeSummary(int)), mGeneral, SLOT(updateAttendeeSummary(int)) ); connect( mGeneral, SIGNAL(editRecurrence()), mRecurrenceDialog, SLOT(show()) ); connect( mRecurrenceDialog, SIGNAL(okClicked()), SLOT(updateRecurrenceSummary()) ); connect( mGeneral, SIGNAL(acceptInvitation()), mFreeBusy, SLOT(acceptForMe()) ); connect( mGeneral, SIGNAL(declineInvitation()), mFreeBusy, SLOT(declineForMe()) ); updateRecurrenceSummary(); }
void KOTodoEditor::init() { kdDebug(5850) << k_funcinfo << endl; setupGeneral(); setupRecurrence(); setupAttendeesTab(); // setupAttachmentsTab(); connect(mGeneral, SIGNAL(dateTimeStrChanged(const QString &)), mRecurrence, SLOT(setDateTimeStr(const QString &))); connect(mGeneral, SIGNAL(signalDateTimeChanged(const QDateTime &, const QDateTime &)), mRecurrence, SLOT(setDateTimes(const QDateTime &, const QDateTime &))); connect(mGeneral, SIGNAL(openCategoryDialog()), SIGNAL(editCategories())); connect(mDetails, SIGNAL(updateAttendeeSummary(int)), mGeneral, SLOT(updateAttendeeSummary(int))); }
ApplicationSettingsDialog::ApplicationSettingsDialog(QWidget *parent) : Dialog(parent) { setWindowTitle(tr("Kst Settings")); _generalTab = new GeneralTab(this); _gridTab = new GridTab(this); connect(_generalTab, SIGNAL(apply()), this, SLOT(generalChanged())); connect(_gridTab, SIGNAL(apply()), this, SLOT(gridChanged())); DialogPage *general = new DialogPage(this); general->setPageTitle(tr("General")); general->addDialogTab(_generalTab); addDialogPage(general); DialogPage *grid = new DialogPage(this); grid->setPageTitle(tr("Grid")); grid->addDialogTab(_gridTab); addDialogPage(grid); setupGeneral(); setupGrid(); }
/* * get propeller-elf-gcc path, propeller-load directory path, and user workspace path. */ Properties::Properties(QWidget *parent) : QDialog(parent) { this->setWindowTitle(QString(ASideGuiKey)+tr(" Properties")); /* clean for testing only */ // cleanSettings(); setupFolders(); setupGeneral(); //setupOptional(); // add later setupHighlight(); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); QVBoxLayout *layout = new QVBoxLayout(this); layout->addWidget(&tabWidget); layout->addWidget(buttonBox); setWindowFlags(Qt::Tool); resize(600,260); }
void Dialog::tabChanged(int index) { #ifdef QTM_EXAMPLES_SMALL_SCREEN switch(index) { case 0: setupGeneral(); break; case 1: setupGeneral(); break; case 2: setupDevice(); break; case 3: setupDevice(); break; case 4: setupDevice(); break; case 5: setupDisplay(); break; case 6: setupStorage(); break; case 7: setupNetwork(); break; case 8: setupNetwork(); break; case 9: setupNetwork(); break; case 10: setupSaver(); break; }; #else switch(index) { case 0: setupGeneral(); break; case 1: setupDevice(); break; case 2: setupDisplay(); break; case 3: setupStorage(); break; case 4: setupNetwork(); break; case 5: setupSaver(); break; }; #endif }