##// END OF EJS Templates
New Plugin Manager and interface to remove all the previous crap!...
New Plugin Manager and interface to remove all the previous crap! Let's use Qt plugin API and make it much simpler.

File last commit:

r91:acc9efbbe625 default
r118:de85e8465e67 tip 1.0
Show More
socexplorercoresettingsgui.cpp
37 lines | 1.3 KiB | text/x-c | CppLexer
/ src / socexplorercoresettingsgui.cpp
#include "socexplorercoresettingsgui.h"
#include "ui_socexplorercoresettingsgui.h"
#include <socexplorersettings.h>
#include <socexplorerengine.h>
#include <socexplorerconfigkeys.h>
SocExplorerCoreSettingsGUI::SocExplorerCoreSettingsGUI(QWidget *parent) :
SocExplorerSettingsItem(parent),
ui(new Ui::SocExplorerCoreSettingsGUI)
{
ui->setupUi(this);
this->ui->PluginsLookupPath->setText(SocExplorerSettings::value(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_PLUGINS_LOOKUP_PATH,"").toString());
this->ui->SOCregsLookupPath->setText(SocExplorerSettings::value(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_SOC_REGS_LOOKUP_PATH,"").toString());
}
SocExplorerCoreSettingsGUI::~SocExplorerCoreSettingsGUI()
{
delete ui;
}
void SocExplorerCoreSettingsGUI::changeEvent(QEvent *e)
{
QWidget::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}
void SocExplorerCoreSettingsGUI::accept()
{
SocExplorerSettings::setValue(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_PLUGINS_LOOKUP_PATH,this->ui->PluginsLookupPath->text());
SocExplorerSettings::setValue(SOCEXPLORERENGINE_SETTINGS_SCOPE,SOCEXPLORERENGINE_SETTINGS_SOC_REGS_LOOKUP_PATH,this->ui->SOCregsLookupPath->text());
}