Custom profile builder GUI and capsulation

see issue #704
This commit is contained in:
Oliver Duis
2011-05-29 00:59:44 +02:00
parent 19ca183795
commit a64a6d1b2c
6 changed files with 72 additions and 28 deletions

View File

@@ -568,6 +568,27 @@ Gtk::Widget* Preferences::getGeneralPanel () {
fdg->add (*dgvb);
mvbsd->pack_start (*fdg, Gtk::PACK_SHRINK, 4);
// Custom profile builder box
Gtk::Frame* cpfrm = Gtk::manage( new Gtk::Frame (M("PREFERENCES_CUSTPROFBUILD")) );
Gtk::HBox* cphb = Gtk::manage( new Gtk::HBox () );
cphb->set_border_width (4);
cphb->set_spacing (4);
Gtk::Label* cplab = Gtk::manage( new Gtk::Label (M("PREFERENCES_CUSTPROFBUILDPATH")+":") );
cphb->pack_start (*cplab, Gtk::PACK_SHRINK,4);
txtCustProfBuilderPath = Gtk::manage( new Gtk::Entry () );
txtCustProfBuilderPath->set_tooltip_markup (M("PREFERENCES_CUSTPROFBUILDHINT"));
cphb->set_tooltip_markup (M("PREFERENCES_CUSTPROFBUILDHINT"));
cphb->pack_start (*txtCustProfBuilderPath);
cpfrm->add (*cphb);
mvbsd->pack_start (*cpfrm, Gtk::PACK_SHRINK, 4);
mvbsd->set_border_width (4);
tconn = theme->signal_changed().connect( sigc::mem_fun(*this, &Preferences::themeChanged) );
@@ -842,6 +863,7 @@ void Preferences::storePreferences () {
else if (edOther->get_active ())
moptions.editorToSendTo = 3;
moptions.customProfileBuilder = txtCustProfBuilderPath->get_text();
moptions.rtSettings.monitorProfile = monProfile->get_filename ();
moptions.rtSettings.autoMonitorProfile = cbAutoMonProfile->get_active ();
@@ -955,6 +977,8 @@ void Preferences::fillPreferences () {
#endif
editorToSendTo->set_text (moptions.customEditorProg);
txtCustProfBuilderPath->set_text(moptions.customProfileBuilder);
if (moptions.startupDir==STARTUPDIR_CURRENT)
sdcurrent->set_active ();
else if (moptions.startupDir==STARTUPDIR_LAST)