Merged with swedish
This commit is contained in:
commit
40a0b0339f
@ -2,7 +2,7 @@
|
|||||||
#01 Developers should add translations to this file and then run 'generateDifferences.sh' script to update other locales.
|
#01 Developers should add translations to this file and then run 'generateDifferences.sh' script to update other locales.
|
||||||
ADJUSTER_RESET_TO_DEFAULT;Reset to default
|
ADJUSTER_RESET_TO_DEFAULT;Reset to default
|
||||||
BATCHQUEUE_AUTOSTART;Auto start
|
BATCHQUEUE_AUTOSTART;Auto start
|
||||||
BATCH_PROCESSING;batch processing
|
BATCH_PROCESSING;Batch processing
|
||||||
CURVEEDITOR_CUSTOM;Custom
|
CURVEEDITOR_CUSTOM;Custom
|
||||||
CURVEEDITOR_DARKS;Darks
|
CURVEEDITOR_DARKS;Darks
|
||||||
CURVEEDITOR_FILEDLGFILTERANY;Any files
|
CURVEEDITOR_FILEDLGFILTERANY;Any files
|
||||||
@ -378,7 +378,7 @@ PARTIALPASTE_SHARPENING;Sharpening
|
|||||||
PARTIALPASTE_VIGNETTING;Vignetting correction
|
PARTIALPASTE_VIGNETTING;Vignetting correction
|
||||||
PARTIALPASTE_WHITEBALANCE;White balance
|
PARTIALPASTE_WHITEBALANCE;White balance
|
||||||
PREFERENCES_ADD;ADD
|
PREFERENCES_ADD;ADD
|
||||||
PREFERENCES_APPLNEXTSTARTUP;applied at next startup
|
PREFERENCES_APPLNEXTSTARTUP;restart required
|
||||||
PREFERENCES_BATCH_PROCESSING;batch processing
|
PREFERENCES_BATCH_PROCESSING;batch processing
|
||||||
PREFERENCES_BEHAVIOR;Behavior
|
PREFERENCES_BEHAVIOR;Behavior
|
||||||
PREFERENCES_BLINKCLIPPED;Blink clipped areas
|
PREFERENCES_BLINKCLIPPED;Blink clipped areas
|
||||||
@ -406,6 +406,7 @@ PREFERENCES_DCBENHANCE;Apply DCB enhancement step
|
|||||||
PREFERENCES_DCBITERATIONS;Number of DCB iterations
|
PREFERENCES_DCBITERATIONS;Number of DCB iterations
|
||||||
PREFERENCES_DEFAULTLANG;Default language
|
PREFERENCES_DEFAULTLANG;Default language
|
||||||
PREFERENCES_DEFAULTTHEME;Default theme
|
PREFERENCES_DEFAULTTHEME;Default theme
|
||||||
|
PREFERENCES_USESYSTEMTHEME; Use System Theme
|
||||||
PREFERENCES_DEMOSAICINGALGO;Demosaicing Algorithm
|
PREFERENCES_DEMOSAICINGALGO;Demosaicing Algorithm
|
||||||
PREFERENCES_DIRHOME;Home directory
|
PREFERENCES_DIRHOME;Home directory
|
||||||
PREFERENCES_DIRLAST;Last visited directory
|
PREFERENCES_DIRLAST;Last visited directory
|
||||||
|
@ -10,6 +10,7 @@ DualProcSupport=true
|
|||||||
MultiUser=true
|
MultiUser=true
|
||||||
Language=English (US)
|
Language=English (US)
|
||||||
Theme=Gray
|
Theme=Gray
|
||||||
|
UseSystemTheme=false
|
||||||
Version=300
|
Version=300
|
||||||
FirstRun=true
|
FirstRun=true
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ DualProcSupport=true
|
|||||||
MultiUser=true
|
MultiUser=true
|
||||||
Language=English (US)
|
Language=English (US)
|
||||||
Theme=Gray Textured
|
Theme=Gray Textured
|
||||||
|
UseSystemTheme=false
|
||||||
Version=300
|
Version=300
|
||||||
FirstRun=true
|
FirstRun=true
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ DualProcSupport=true
|
|||||||
MultiUser=true
|
MultiUser=true
|
||||||
Language=English (US)
|
Language=English (US)
|
||||||
Theme=Gray
|
Theme=Gray
|
||||||
|
UseSystemTheme=false
|
||||||
Version=300
|
Version=300
|
||||||
FirstRun=true
|
FirstRun=true
|
||||||
|
|
||||||
|
@ -43,23 +43,23 @@ FileThumbnailButtonSet::FileThumbnailButtonSet (FileBrowserEntry* myEntry) {
|
|||||||
iconsLoaded = true;
|
iconsLoaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add (new LWButton (processIcon, 6, myEntry, LWButton::Left, LWButton::Center, M("FILEBROWSER_POPUPPROCESS")));
|
||||||
add (new LWButton (unRankIcon, 0, myEntry, LWButton::Left, LWButton::Center, M("FILEBROWSER_POPUPUNRANK")));
|
add (new LWButton (unRankIcon, 0, myEntry, LWButton::Left, LWButton::Center, M("FILEBROWSER_POPUPUNRANK")));
|
||||||
for (int i=0; i<5; i++)
|
for (int i=0; i<5; i++)
|
||||||
add (new LWButton (rankIcon, i+1, myEntry, LWButton::Left));
|
add (new LWButton (rankIcon, i+1, myEntry, LWButton::Left));
|
||||||
add (new LWButton (processIcon, 6, myEntry, LWButton::Right, LWButton::Center, M("FILEBROWSER_POPUPPROCESS")));
|
|
||||||
add (new LWButton (trashIcon, 7, myEntry, LWButton::Right, LWButton::Center, M("FILEBROWSER_POPUPTRASH")));
|
add (new LWButton (trashIcon, 7, myEntry, LWButton::Right, LWButton::Center, M("FILEBROWSER_POPUPTRASH")));
|
||||||
|
|
||||||
buttons[1]->setToolTip (M("FILEBROWSER_POPUPRANK1"));
|
buttons[2]->setToolTip (M("FILEBROWSER_POPUPRANK1"));
|
||||||
buttons[2]->setToolTip (M("FILEBROWSER_POPUPRANK2"));
|
buttons[3]->setToolTip (M("FILEBROWSER_POPUPRANK2"));
|
||||||
buttons[3]->setToolTip (M("FILEBROWSER_POPUPRANK3"));
|
buttons[4]->setToolTip (M("FILEBROWSER_POPUPRANK3"));
|
||||||
buttons[4]->setToolTip (M("FILEBROWSER_POPUPRANK4"));
|
buttons[5]->setToolTip (M("FILEBROWSER_POPUPRANK4"));
|
||||||
buttons[5]->setToolTip (M("FILEBROWSER_POPUPRANK5"));
|
buttons[6]->setToolTip (M("FILEBROWSER_POPUPRANK5"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileThumbnailButtonSet::setRank (int stars) {
|
void FileThumbnailButtonSet::setRank (int stars) {
|
||||||
|
|
||||||
for (int i=1; i<=5; i++)
|
for (int i=1; i<=5; i++)
|
||||||
buttons[i]->setIcon (i<=stars ? rankIcon : gRankIcon);
|
buttons[i+1]->setIcon (i<=stars ? rankIcon : gRankIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileThumbnailButtonSet::setInTrash (bool inTrash) {
|
void FileThumbnailButtonSet::setInTrash (bool inTrash) {
|
||||||
|
@ -108,13 +108,15 @@ int main(int argc, char **argv)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Gtk::RC::add_default_file (argv0+"/themes/"+options.theme);
|
// Gtk::RC::add_default_file (argv0+"/themes/"+options.theme);
|
||||||
std::vector<std::string> rcfiles;
|
if (!options.useSystemTheme)
|
||||||
rcfiles.push_back (argv0+"/themes/"+options.theme);
|
{
|
||||||
// Set the font face and size
|
std::vector<std::string> rcfiles;
|
||||||
Gtk::RC::parse_string (Glib::ustring::compose(
|
rcfiles.push_back (argv0+"/themes/"+options.theme);
|
||||||
"style \"clearlooks-default\" { font_name = \"%1\" }", options.font));
|
// Set the font face and size
|
||||||
Gtk::RC::set_default_files (rcfiles);
|
Gtk::RC::parse_string (Glib::ustring::compose(
|
||||||
|
"style \"clearlooks-default\" { font_name = \"%1\" }", options.font));
|
||||||
|
Gtk::RC::set_default_files (rcfiles);
|
||||||
|
}
|
||||||
Gtk::Main m(&argc, &argv);
|
Gtk::Main m(&argc, &argv);
|
||||||
// MainWindow *MainWindow = new class MainWindow();
|
// MainWindow *MainWindow = new class MainWindow();
|
||||||
RTWindow *rtWindow = new class RTWindow();
|
RTWindow *rtWindow = new class RTWindow();
|
||||||
|
@ -89,6 +89,7 @@ void Options::setDefaults () {
|
|||||||
language = DefaultLanguage;
|
language = DefaultLanguage;
|
||||||
lastSaveAsPath = "";
|
lastSaveAsPath = "";
|
||||||
theme = "";
|
theme = "";
|
||||||
|
useSystemTheme = false;
|
||||||
maxThumbnailHeight = 400;
|
maxThumbnailHeight = 400;
|
||||||
maxCacheEntries = 10000;
|
maxCacheEntries = 10000;
|
||||||
thumbnailFormat = FT_Custom16;
|
thumbnailFormat = FT_Custom16;
|
||||||
@ -183,6 +184,7 @@ if (keyFile.has_group ("General")) {
|
|||||||
// if (keyFile.has_key ("General", "Version")) version = keyFile.get_integer ("General", "Version");
|
// if (keyFile.has_key ("General", "Version")) version = keyFile.get_integer ("General", "Version");
|
||||||
if (keyFile.has_key ("General", "Language")) language = keyFile.get_string ("General", "Language");
|
if (keyFile.has_key ("General", "Language")) language = keyFile.get_string ("General", "Language");
|
||||||
if (keyFile.has_key ("General", "Theme")) theme = keyFile.get_string ("General", "Theme");
|
if (keyFile.has_key ("General", "Theme")) theme = keyFile.get_string ("General", "Theme");
|
||||||
|
if (keyFile.has_key ("General", "UseSystemTheme")) useSystemTheme = keyFile.get_boolean ("General", "UseSystemTheme");
|
||||||
if (keyFile.has_key ("General", "FirstRun")) firstRun = keyFile.get_boolean ("General", "FirstRun");
|
if (keyFile.has_key ("General", "FirstRun")) firstRun = keyFile.get_boolean ("General", "FirstRun");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,6 +324,7 @@ int Options::saveToFile (Glib::ustring fname) {
|
|||||||
keyFile.set_boolean ("General", "MultiUser", multiUser);
|
keyFile.set_boolean ("General", "MultiUser", multiUser);
|
||||||
keyFile.set_string ("General", "Language", language);
|
keyFile.set_string ("General", "Language", language);
|
||||||
keyFile.set_string ("General", "Theme", theme);
|
keyFile.set_string ("General", "Theme", theme);
|
||||||
|
keyFile.set_boolean ("General", "UseSystemTheme", useSystemTheme);
|
||||||
keyFile.set_integer ("General", "Version", 290);
|
keyFile.set_integer ("General", "Version", 290);
|
||||||
keyFile.set_boolean ("General", "FirstRun", firstRun);
|
keyFile.set_boolean ("General", "FirstRun", firstRun);
|
||||||
|
|
||||||
|
@ -97,6 +97,7 @@ class Options {
|
|||||||
int bgcolor;
|
int bgcolor;
|
||||||
Glib::ustring language;
|
Glib::ustring language;
|
||||||
Glib::ustring theme;
|
Glib::ustring theme;
|
||||||
|
bool useSystemTheme;
|
||||||
static Glib::ustring cacheBaseDir;
|
static Glib::ustring cacheBaseDir;
|
||||||
bool autoSuffix;
|
bool autoSuffix;
|
||||||
bool saveParamsFile;
|
bool saveParamsFile;
|
||||||
|
@ -47,27 +47,27 @@ Preferences::Preferences (RTWindow *rtwindow):parent(rtwindow) {
|
|||||||
Gtk::HBox* buttonpanel = Gtk::manage (new Gtk::HBox ());
|
Gtk::HBox* buttonpanel = Gtk::manage (new Gtk::HBox ());
|
||||||
mainvb->pack_end (*buttonpanel, Gtk::PACK_SHRINK, 2);
|
mainvb->pack_end (*buttonpanel, Gtk::PACK_SHRINK, 2);
|
||||||
|
|
||||||
Gtk::Button* load = Gtk::manage (new Gtk::Button (M("GENERAL_LOAD")));
|
// Gtk::Button* load = Gtk::manage (new Gtk::Button (M("GENERAL_LOAD")));
|
||||||
Gtk::Button* save = Gtk::manage (new Gtk::Button (M("GENERAL_SAVE")));
|
// Gtk::Button* save = Gtk::manage (new Gtk::Button (M("GENERAL_SAVE")));
|
||||||
Gtk::Button* about = Gtk::manage (new Gtk::Button (M("GENERAL_ABOUT")));
|
Gtk::Button* about = Gtk::manage (new Gtk::Button (M("GENERAL_ABOUT")));
|
||||||
Gtk::Button* ok = Gtk::manage (new Gtk::Button (M("GENERAL_OK")));
|
Gtk::Button* ok = Gtk::manage (new Gtk::Button (M("GENERAL_OK")));
|
||||||
Gtk::Button* cancel = Gtk::manage (new Gtk::Button (M("GENERAL_CANCEL")));
|
Gtk::Button* cancel = Gtk::manage (new Gtk::Button (M("GENERAL_CANCEL")));
|
||||||
|
|
||||||
save->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-save"), Gtk::ICON_SIZE_BUTTON)));
|
// save->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-save"), Gtk::ICON_SIZE_BUTTON)));
|
||||||
load->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-open"), Gtk::ICON_SIZE_BUTTON)));
|
// load->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-open"), Gtk::ICON_SIZE_BUTTON)));
|
||||||
about->set_image (*Gtk::manage(new Gtk::Image (argv0+"/images/logoicon16.png")));
|
about->set_image (*Gtk::manage(new Gtk::Image (argv0+"/images/logoicon16.png")));
|
||||||
ok->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-ok"), Gtk::ICON_SIZE_BUTTON)));
|
ok->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-ok"), Gtk::ICON_SIZE_BUTTON)));
|
||||||
cancel->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-cancel"), Gtk::ICON_SIZE_BUTTON)));
|
cancel->set_image (*Gtk::manage(new Gtk::Image (Gtk::StockID("gtk-cancel"), Gtk::ICON_SIZE_BUTTON)));
|
||||||
|
|
||||||
|
|
||||||
load->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::loadPressed) );
|
// load->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::loadPressed) );
|
||||||
save->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::savePressed) );
|
// save->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::savePressed) );
|
||||||
about->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::aboutPressed) );
|
about->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::aboutPressed) );
|
||||||
ok->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::okPressed) );
|
ok->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::okPressed) );
|
||||||
cancel->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::cancelPressed) );
|
cancel->signal_clicked().connect( sigc::mem_fun(*this, &Preferences::cancelPressed) );
|
||||||
|
|
||||||
buttonpanel->pack_start (*load, Gtk::PACK_SHRINK, 4);
|
// buttonpanel->pack_start (*load, Gtk::PACK_SHRINK, 4);
|
||||||
buttonpanel->pack_start (*save, Gtk::PACK_SHRINK, 4);
|
// buttonpanel->pack_start (*save, Gtk::PACK_SHRINK, 4);
|
||||||
buttonpanel->pack_start (*about, Gtk::PACK_SHRINK, 4);
|
buttonpanel->pack_start (*about, Gtk::PACK_SHRINK, 4);
|
||||||
buttonpanel->pack_end (*ok, Gtk::PACK_SHRINK, 4);
|
buttonpanel->pack_end (*ok, Gtk::PACK_SHRINK, 4);
|
||||||
buttonpanel->pack_end (*cancel, Gtk::PACK_SHRINK, 4);
|
buttonpanel->pack_end (*cancel, Gtk::PACK_SHRINK, 4);
|
||||||
@ -355,7 +355,7 @@ Gtk::Widget* Preferences::getProcParamsPanel () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dmconn = dmethod->signal_changed().connect( sigc::mem_fun(*this, &Preferences::dmethodChanged) );
|
dmconn = dmethod->signal_changed().connect( sigc::mem_fun(*this, &Preferences::dmethodChanged) );
|
||||||
dmconnBatch = dmethod->signal_changed().connect( sigc::mem_fun(*this, &Preferences::dmethodBatchChanged) );
|
dmconnBatch = dmethod->signal_changed().connect( sigc::mem_fun(*this, &Preferences::dmethodBatchChanged) );
|
||||||
|
|
||||||
return mvbpp;
|
return mvbpp;
|
||||||
}
|
}
|
||||||
@ -432,7 +432,16 @@ Gtk::Widget* Preferences::getGeneralPanel () {
|
|||||||
mvbsd->pack_start (*flang, Gtk::PACK_SHRINK, 4);
|
mvbsd->pack_start (*flang, Gtk::PACK_SHRINK, 4);
|
||||||
|
|
||||||
Gtk::Frame* ftheme = new Gtk::Frame (M("PREFERENCES_DEFAULTTHEME"));
|
Gtk::Frame* ftheme = new Gtk::Frame (M("PREFERENCES_DEFAULTTHEME"));
|
||||||
Gtk::HBox* hbtheme = new Gtk::HBox ();
|
Gtk::VBox* vbftheme = new Gtk::VBox ();
|
||||||
|
Gtk::HBox* hbUseSystemTheme = new Gtk::HBox ();
|
||||||
|
hbUseSystemTheme->set_border_width (4);
|
||||||
|
Gtk::Label* useNextStart = new Gtk::Label (Glib::ustring("(") + M("PREFERENCES_APPLNEXTSTARTUP") + ")");
|
||||||
|
chUseSystemTheme = new Gtk::CheckButton (M("PREFERENCES_USESYSTEMTHEME"));
|
||||||
|
hbUseSystemTheme->pack_start(*chUseSystemTheme, Gtk::PACK_SHRINK);
|
||||||
|
hbUseSystemTheme->pack_start (*useNextStart, Gtk::PACK_SHRINK, 4);
|
||||||
|
vbftheme->pack_start(*hbUseSystemTheme, Gtk::PACK_SHRINK, 4);
|
||||||
|
|
||||||
|
hbtheme = new Gtk::HBox ();
|
||||||
hbtheme->set_border_width (4);
|
hbtheme->set_border_width (4);
|
||||||
Gtk::Label* themelab = new Gtk::Label (M("PREFERENCES_SELECTTHEME")+":");
|
Gtk::Label* themelab = new Gtk::Label (M("PREFERENCES_SELECTTHEME")+":");
|
||||||
theme = new Gtk::ComboBoxText ();
|
theme = new Gtk::ComboBoxText ();
|
||||||
@ -453,7 +462,8 @@ Gtk::Widget* Preferences::getGeneralPanel () {
|
|||||||
hbtheme->pack_start (*theme);
|
hbtheme->pack_start (*theme);
|
||||||
hbtheme->pack_start (*fontlab, Gtk::PACK_SHRINK, 4);
|
hbtheme->pack_start (*fontlab, Gtk::PACK_SHRINK, 4);
|
||||||
hbtheme->pack_start (*fontbutton);
|
hbtheme->pack_start (*fontbutton);
|
||||||
ftheme->add (*hbtheme);
|
vbftheme->pack_end(*hbtheme, Gtk::PACK_SHRINK, 4);
|
||||||
|
ftheme->add (*vbftheme);
|
||||||
mvbsd->pack_start (*ftheme, Gtk::PACK_SHRINK, 4);
|
mvbsd->pack_start (*ftheme, Gtk::PACK_SHRINK, 4);
|
||||||
|
|
||||||
//-----
|
//-----
|
||||||
@ -564,7 +574,7 @@ Gtk::Widget* Preferences::getGeneralPanel () {
|
|||||||
|
|
||||||
tconn = theme->signal_changed().connect( sigc::mem_fun(*this, &Preferences::themeChanged) );
|
tconn = theme->signal_changed().connect( sigc::mem_fun(*this, &Preferences::themeChanged) );
|
||||||
fconn = fontbutton->signal_font_set().connect( sigc::mem_fun(*this, &Preferences::fontChanged) );
|
fconn = fontbutton->signal_font_set().connect( sigc::mem_fun(*this, &Preferences::fontChanged) );
|
||||||
|
usethcon = chUseSystemTheme->signal_clicked ().connect( sigc::mem_fun(*this, &Preferences::useThemeChanged) );
|
||||||
|
|
||||||
return mvbsd;
|
return mvbsd;
|
||||||
}
|
}
|
||||||
@ -756,6 +766,7 @@ void Preferences::storePreferences () {
|
|||||||
moptions.shadowThreshold = (int)shThresh->get_value ();
|
moptions.shadowThreshold = (int)shThresh->get_value ();
|
||||||
moptions.language = languages->get_active_text ();
|
moptions.language = languages->get_active_text ();
|
||||||
moptions.theme = theme->get_active_text ();
|
moptions.theme = theme->get_active_text ();
|
||||||
|
moptions.useSystemTheme = chUseSystemTheme->get_active ();
|
||||||
moptions.font = fontbutton->get_font_name();
|
moptions.font = fontbutton->get_font_name();
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
moptions.gimpDir = gimpDir->get_filename ();
|
moptions.gimpDir = gimpDir->get_filename ();
|
||||||
@ -881,6 +892,7 @@ void Preferences::fillPreferences () {
|
|||||||
intent->set_active (moptions.rtSettings.colorimetricIntent);
|
intent->set_active (moptions.rtSettings.colorimetricIntent);
|
||||||
languages->set_active_text (moptions.language);
|
languages->set_active_text (moptions.language);
|
||||||
theme->set_active_text (moptions.theme);
|
theme->set_active_text (moptions.theme);
|
||||||
|
chUseSystemTheme->set_active(moptions.useSystemTheme);
|
||||||
fontbutton->set_font_name(moptions.font);
|
fontbutton->set_font_name(moptions.font);
|
||||||
showDateTime->set_active (moptions.fbShowDateTime);
|
showDateTime->set_active (moptions.fbShowDateTime);
|
||||||
showBasicExif->set_active (moptions.fbShowBasicExif);
|
showBasicExif->set_active (moptions.fbShowBasicExif);
|
||||||
@ -1072,22 +1084,22 @@ void Preferences::dmethodChanged () {
|
|||||||
|
|
||||||
void Preferences::dmethodBatchChanged () {
|
void Preferences::dmethodBatchChanged () {
|
||||||
|
|
||||||
if (dmethod->get_active_row_number()==0)
|
// if (dmethod->get_active_row_number()==0)
|
||||||
ccSteps->set_value (2);
|
// ccSteps->set_value (2);
|
||||||
else if (dmethod->get_active_row_number()==1)
|
// else if (dmethod->get_active_row_number()==1)
|
||||||
ccSteps->set_value (1);
|
// ccSteps->set_value (1);
|
||||||
else if (dmethod->get_active_row_number()==2)
|
// else if (dmethod->get_active_row_number()==2)
|
||||||
ccSteps->set_value (2);
|
// ccSteps->set_value (2);
|
||||||
|
//
|
||||||
if (dmethod->get_active_row_number()==4) {
|
// if (dmethod->get_active_row_number()==4) {
|
||||||
dcbEnhance->set_sensitive(true);
|
// dcbEnhance->set_sensitive(true);
|
||||||
dcbIterations->set_sensitive(true);
|
// dcbIterations->set_sensitive(true);
|
||||||
dcbIterationsLabel->set_sensitive(true);
|
// dcbIterationsLabel->set_sensitive(true);
|
||||||
} else {
|
// } else {
|
||||||
dcbEnhance->set_sensitive(false);
|
// dcbEnhance->set_sensitive(false);
|
||||||
dcbIterations->set_sensitive(false);
|
// dcbIterations->set_sensitive(false);
|
||||||
dcbIterationsLabel->set_sensitive(false);
|
// dcbIterationsLabel->set_sensitive(false);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::aboutPressed () {
|
void Preferences::aboutPressed () {
|
||||||
@ -1140,6 +1152,17 @@ void Preferences::switchFontTo(Glib::ustring newFont) {
|
|||||||
gdk_event_send_clientmessage_toall ((GdkEvent*)&event);
|
gdk_event_send_clientmessage_toall ((GdkEvent*)&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Preferences::useThemeChanged(){
|
||||||
|
|
||||||
|
if(!chUseSystemTheme->get_active()){
|
||||||
|
hbtheme->set_sensitive(true);
|
||||||
|
fontbutton->set_sensitive(true);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
hbtheme->set_sensitive(false);
|
||||||
|
fontbutton->set_sensitive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Preferences::addExtPressed () {
|
void Preferences::addExtPressed () {
|
||||||
|
|
||||||
|
@ -94,6 +94,8 @@ class Preferences : public Gtk::Dialog {
|
|||||||
Gtk::ComboBoxText* intent;
|
Gtk::ComboBoxText* intent;
|
||||||
|
|
||||||
Gtk::ComboBoxText* theme;
|
Gtk::ComboBoxText* theme;
|
||||||
|
Gtk::HBox* hbtheme;
|
||||||
|
Gtk::CheckButton* chUseSystemTheme;
|
||||||
Gtk::FontButton* fontbutton;
|
Gtk::FontButton* fontbutton;
|
||||||
|
|
||||||
Gtk::ComboBoxText* cformat;
|
Gtk::ComboBoxText* cformat;
|
||||||
@ -115,7 +117,7 @@ class Preferences : public Gtk::Dialog {
|
|||||||
RTWindow* parent;
|
RTWindow* parent;
|
||||||
|
|
||||||
Options moptions;
|
Options moptions;
|
||||||
sigc::connection dmconn, dmconnBatch, tconn, fconn, addc, setc;
|
sigc::connection dmconn, dmconnBatch, tconn, fconn, addc, setc, usethcon;
|
||||||
Glib::ustring initialTheme;
|
Glib::ustring initialTheme;
|
||||||
Glib::ustring initialFont;
|
Glib::ustring initialFont;
|
||||||
|
|
||||||
@ -126,6 +128,7 @@ class Preferences : public Gtk::Dialog {
|
|||||||
void dmethodBatchChanged ();
|
void dmethodBatchChanged ();
|
||||||
void workflowUpdate();
|
void workflowUpdate();
|
||||||
void themeChanged ();
|
void themeChanged ();
|
||||||
|
void useThemeChanged();
|
||||||
void fontChanged ();
|
void fontChanged ();
|
||||||
void switchThemeTo (Glib::ustring newTheme);
|
void switchThemeTo (Glib::ustring newTheme);
|
||||||
void switchFontTo (Glib::ustring newFont);
|
void switchFontTo (Glib::ustring newFont);
|
||||||
|
0
tools/generateTranslationDiffs.sh
Executable file → Normal file
0
tools/generateTranslationDiffs.sh
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user