FitDialog::FitDialog( QWidget* parent, Qt::WFlags fl ) : QDialog( parent, fl ) { setWindowTitle(tr("Fit Wizard")); setSizeGripEnabled( true ); d_user_function_names = QStringList(); d_user_functions = QStringList(); d_user_function_params = QStringList(); d_fitter = 0; tw = new QStackedWidget(); initEditPage(); initFitPage(); initAdvancedPage(); QVBoxLayout* vl = new QVBoxLayout(); vl->addWidget(tw); setLayout(vl); setBuiltInFunctionNames(); setBuiltInFunctions(); categoryBox->setCurrentRow (2); funcBox->setCurrentRow (0); loadPlugins(); }
void PreferencesDialog::initFromSettings() { Settings& settings = static_cast<Application*>(qApp)->settings(); initDisplayPage(settings); initUiPage(settings); initBehaviorPage(settings); initThumbnailPage(settings); initVolumePage(settings); initAdvancedPage(settings); }