PrefixSettings::PrefixSettings(QWidget * parent, Qt::WindowFlags f) : QDialog(parent, f) { // Setup base UI setupUi(this); this->setWindowTitle(tr("Add new Prefix")); this->addNew=true; // Loading libq4wine-core.so #ifdef RELEASE libq4wine.setFileName(_CORELIB_PATH_); #else libq4wine.setFileName("../q4wine-lib/libq4wine-core"); #endif if (!libq4wine.load()){ libq4wine.load(); } // Getting corelib calss pointer CoreLibClassPointer = (CoreLibPrototype *) libq4wine.resolve("createCoreLib"); CoreLib.reset((corelib *)CoreLibClassPointer(true)); setWindowIcon(CoreLib->loadIcon("q4wine")); this->loadThemeIcons(); cmdGetPrefixPath->installEventFilter(this); cmdGetMountPoint->installEventFilter(this); // Hide deprecated options widDeprecated->setVisible(false); connect(cmdCancel, SIGNAL(clicked()), this, SLOT(cmdCancel_Click())); connect(cmdOk, SIGNAL(clicked()), this, SLOT(cmdOk_Click())); connect(cmdHelp, SIGNAL(clicked()), this, SLOT(cmdHelp_Click())); connect(cmdClnWineBin, SIGNAL(clicked()), this, SLOT(cmdClnWineBin_Click())); connect(cmdClnWineServerBin, SIGNAL(clicked()), this, SLOT(cmdClnWineServerBin_Click())); connect(cmdClnWineLoaderBin, SIGNAL(clicked()), this, SLOT(cmdClnWineLoaderBin_Click())); connect(cmdClnWineLibs, SIGNAL(clicked()), this, SLOT(cmdClnWineLibs_Click())); connect(txtPrefixName, SIGNAL(textChanged(QString)), this, SLOT(setDefPath(QString))); connect(comboVersionList, SIGNAL(currentIndexChanged(const QString)), this, SLOT(comboVersionList_Change(const QString))); connect(comboTemplatesList, SIGNAL(currentIndexChanged(const int)), this, SLOT(comboTemplatesList_Change(const int))); connect(cmdAddVersion, SIGNAL(clicked()), this, SLOT(cmdAddVersion_Click())); getVersionsList(); comboVersionList->setCurrentIndex(0); connect(txtRunString, SIGNAL(textChanged()), this, SLOT(txtRunString_Changed())); txtRunString->setText(RUN_STRING_TEMPLATE_DEFAULT); // comboArchList->setEnabled(false); txtPrefixName->setFocus(Qt::ActiveWindowFocusReason); return; }
PrefixSettings::PrefixSettings(QWidget * parent, Qt::WFlags f) : QDialog(parent, f) { // Setup base UI setupUi(this); this->setWindowTitle(tr("Add new Prefix")); this->lblCaption->setText(tr("Add new Prefix")); this->addNew=true; // Loading libq4wine-core.so #ifdef RELEASE libq4wine.setFileName(_CORELIB_PATH_); #else libq4wine.setFileName("../q4wine-lib/libq4wine-core"); #endif if (!libq4wine.load()){ libq4wine.load(); } // Getting corelib calss pointer CoreLibClassPointer = (CoreLibPrototype *) libq4wine.resolve("createCoreLib"); CoreLib.reset((corelib *)CoreLibClassPointer(true)); this->loadThemeIcons(); cmdGetPrefixPath->installEventFilter(this); cmdGetWineBin->installEventFilter(this); cmdGetWineServerBin->installEventFilter(this); cmdGetWineLoaderBin->installEventFilter(this); cmdGetWineLibs->installEventFilter(this); cmdGetMountPoint->installEventFilter(this); txtRunString->setText(RUN_STRING_TEMPLATE); connect(cmdCancel, SIGNAL(clicked()), this, SLOT(cmdCancel_Click())); connect(cmdOk, SIGNAL(clicked()), this, SLOT(cmdOk_Click())); connect(cmdHelp, SIGNAL(clicked()), this, SLOT(cmdHelp_Click())); connect(txtPrefixName, SIGNAL(textChanged(QString)), this, SLOT(setDefPath(QString))); txtPrefixName->setFocus(Qt::ActiveWindowFocusReason); return; }