custom tool panel. Changed naming to 'Favourites'. Added alt-h hotkey. Allow moving of subtools to Favourites

This commit is contained in:
heckflosse
2018-11-23 16:00:57 +01:00
parent d604abec39
commit 0ae602bcf0
5 changed files with 85 additions and 81 deletions

View File

@@ -399,7 +399,7 @@ void Options::setDefaults()
autoSaveTpOpen = true;
//crvOpen.clear ();
parseExtensions.clear();
userTools.clear();
favourites.clear();
parseExtensionsEnabled.clear();
parsedExtensions.clear();
renameUseTemplates = false;
@@ -1070,8 +1070,8 @@ void Options::readFromFile(Glib::ustring fname)
}
if (keyFile.has_group("GUI")) {
if (keyFile.has_key("GUI", "UserTools")) {
userTools = keyFile.get_string_list("GUI", "UserTools");
if (keyFile.has_key("GUI", "Favourites")) {
favourites = keyFile.get_string_list("GUI", "Favourites");
}
if (keyFile.has_key("GUI", "WindowWidth")) {
@@ -1972,8 +1972,8 @@ void Options::saveToFile(Glib::ustring fname)
keyFile.set_string("Profiles", "CustomProfileBuilderPath", CPBPath);
keyFile.set_integer("Profiles", "CustomProfileBuilderKeys", CPBKeys);
Glib::ArrayHandle<Glib::ustring> pusert = userTools;
keyFile.set_string_list("GUI", "UserTools", pusert);
Glib::ArrayHandle<Glib::ustring> ahfavourites = favourites;
keyFile.set_string_list("GUI", "Favourites", ahfavourites);
keyFile.set_integer("GUI", "WindowWidth", windowWidth);
keyFile.set_integer("GUI", "WindowHeight", windowHeight);
keyFile.set_integer("GUI", "WindowX", windowX);