/* * Copyright (C) 2013, 2014 Graeme Gott * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this library. If not, see . */ #ifndef WHISKERMENU_SETTINGS_H #define WHISKERMENU_SETTINGS_H #include "icon-size.h" #include #include namespace WhiskerMenu { class Command; class Plugin; class SearchAction; class Settings { Settings(); Settings(const Settings&); Settings& operator=(const Settings&); ~Settings(); void load(char* file); void save(char* file); bool m_modified; public: bool get_modified() const { return m_modified; } void set_modified() { m_modified = true; } public: std::vector favorites; std::vector recent; std::string custom_menu_file; std::string button_title; std::string button_icon_name; bool button_title_visible; bool button_icon_visible; bool button_single_row; bool launcher_show_name; bool launcher_show_description; IconSize launcher_icon_size; bool category_hover_activate; IconSize category_icon_size; bool load_hierarchy; unsigned int recent_items_max; bool favorites_in_recent; bool display_recent; bool position_search_alternate; bool position_commands_alternate; bool position_categories_alternate; enum Commands { CommandSettings = 0, CommandLockScreen, CommandSwitchUser, CommandLogOut, CommandMenuEditor, CommandProfile, CountCommands }; Command* command[CountCommands]; std::vector search_actions; int menu_width; int menu_height; int menu_opacity; friend class Plugin; }; extern Settings* wm_settings; } #endif // WHISKERMENU_SETTINGS_H