|
PieDock 1.4.3
|
#include <Settings.h>

Classes | |
| struct | ButtonFunction |
| struct | CartoucheSettings |
| struct | KeyFunction |
| class | Statement |
| struct | Trigger |
Public Types | |
| enum | Action { NoAction, Launch, ShowNext, ShowPrevious, Hide, Close, SpinUp, SpinDown, SpinNext, SpinPrevious, Disappear } |
| enum | CenterAction { CenterIgnore, CenterNearestIcon, CenterDisappear } |
|
typedef struct PieDock::Settings::Trigger | Key |
|
typedef struct PieDock::Settings::Trigger | Button |
| typedef std::vector< Key > | Keys |
| typedef std::vector< Button > | Buttons |
|
typedef std::vector < ButtonFunction > | ButtonFunctions |
| typedef std::vector< KeyFunction > | KeyFunctions |
|
typedef std::map< std::string, MenuItems > | Menus |
|
typedef std::map< std::string, bool > | WindowsToIgnore |
Public Member Functions | |
| const std::string & | getConfigurationFile () const |
| void | setConfigurationFile (std::string s) |
| const int & | getWidth () const |
| const int & | getHeight () const |
| Keys & | getKeys () |
| Buttons & | getButtons () |
| KeyFunctions & | getKeyFunctions () |
| IconMap & | getIconMap () |
| MenuItems * | getMenu (std::string s) |
| bool | ignoreWindow (std::string s) |
| ActiveIndicator & | getActiveIndicator () |
| const int & | getFocusedAlpha () const |
| const int & | getUnfocusedAlpha () const |
| const double & | getStartRadius () const |
| const bool & | isFitts () const |
| const double & | getZoomModifier () const |
| const CenterAction & | getCenterAction () const |
| const double & | getSpinStep () const |
| const bool & | getShowTitle () const |
| const Text::Font & | getTitleFont () const |
| const CartoucheSettings & | getCartoucheSettings () const |
| const int & | getMinimumNumber () const |
| virtual void | setConfigurationFileFromBinary (std::string) |
| virtual ButtonFunctions | getButtonFunctions (const std::string &menu=std::string(), MenuItem *item=0) |
| virtual void | load (Display *d) |
Protected Member Functions | |
| virtual int | readMenu (std::istream &, int, std::string) |
| virtual void | clearMenus () |
| virtual Action | resolveActionString (const std::string &) const |
| virtual unsigned int | resolveButtonCode (const std::string &) const |
| virtual void | throwParsingError (const char *, unsigned int) const |
| virtual void | presizeIcon (Icon *, int, int, int, int, int, int) |
| void Settings::clearMenus | ( | ) | [protected, virtual] |
Delete menu items
Referenced by load().
| Settings::ButtonFunctions Settings::getButtonFunctions | ( | const std::string & | menu = std::string(), |
| MenuItem * | item = 0 |
||
| ) | [virtual] |
Returns the mouse button functions for the given menu and icon
| menu | - currently active menu name |
| item | - currently selected item |
Referenced by PieDock::PieMenuWindow::processEvent().
| void Settings::load | ( | Display * | d | ) | [virtual] |
(Re-)Load settings
| d | - display to load settings for |
References PieDock::IconMap::addClassAlias(), PieDock::IconMap::addNameAlias(), PieDock::IconMap::addTitleAlias(), clearMenus(), PieDock::Environment::getHome(), PieDock::IconMap::getIconByName(), PieDock::ModMask::getModMaskFor(), PieDock::ActiveIndicator::load(), PieDock::ActiveIndicator::parseX(), PieDock::ActiveIndicator::parseY(), presizeIcon(), readMenu(), PieDock::ActiveIndicator::reset(), PieDock::IconMap::reset(), resolveActionString(), resolveButtonCode(), and throwParsingError().
Referenced by PieDock::Application::run().
| void Settings::presizeIcon | ( | Icon * | icon, |
| int | fromWidth, | ||
| int | fromHeight, | ||
| int | toWidth, | ||
| int | toHeight, | ||
| int | xStep, | ||
| int | yStep | ||
| ) | [protected, virtual] |
Presize icon
| icon | - icon to presize |
| fromWidth | - width in pixels of smallest size |
| fromHeight | - height in pixels of smallest size |
| toWidth | - width in pixels of biggest size |
| toHeight | - height in pixels of biggest size |
| xStep | - horizontal step in pixels |
| yStep | - vertical step in pixels |
References PieDock::ArgbSurfaceSizeMap::getSurface().
Referenced by load().
| int Settings::readMenu | ( | std::istream & | in, |
| int | line, | ||
| std::string | menuName | ||
| ) | [protected, virtual] |
Read a menu structure
| in | - in stream |
| line | - in which line the menu starts |
| menuName | - name of this menu |
References resolveActionString(), resolveButtonCode(), and throwParsingError().
Referenced by load().
| Settings::Action Settings::resolveActionString | ( | const std::string & | s | ) | const [protected, virtual] |
Resolve action string
| s | - name of action to resolve |
Referenced by load(), and readMenu().
| unsigned int Settings::resolveButtonCode | ( | const std::string & | s | ) | const [protected, virtual] |
Resolve X11 mouse button code
| s | - button number as string |
Referenced by load(), and readMenu().
| void Settings::setConfigurationFileFromBinary | ( | std::string | b | ) | [virtual] |
Set configuration file from binary
| b | - name of binary |
References PieDock::Environment::getHome().
| void Settings::throwParsingError | ( | const char * | message, |
| unsigned int | line | ||
| ) | const [protected, virtual] |
Throw a parsing error
| message | - error message |
| line | - line number |
Referenced by load(), and readMenu().
1.7.3