|
PieDock 1.4.3
|
#include <Menu.h>


Public Member Functions | |
| Menu (Application *) | |
| void | setWindowBelowCursor (Window w) |
| const Window & | getWindowBelowCursor () const |
| MenuItem * | getSelected () const |
| const std::string & | getName () const |
| virtual bool | update (std::string) |
| virtual void | draw (int, int) |
| virtual bool | change (Settings::Action=Settings::Launch) |
| virtual void | execute (Settings::Action=Settings::Launch) |
| virtual std::string | getItemTitle () const |
Protected Member Functions | |
| virtual int | run (std::string) const |
Protected Attributes | |
| Application * | app |
| MenuItem * | selected |
| MenuItems * | menuItems |
| Window | windowBelowCursor |
| std::string | name |
Abstract menu
| Menu::Menu | ( | Application * | a | ) |
Initialize menu
| a | - application |
| bool Menu::change | ( | Settings::Action | a = Settings::Launch | ) | [virtual] |
Check if item points to another menu and if so, change to it
| a | - action to execute (optional) |
References update().
Referenced by PieDock::PieMenuWindow::performAction().
| void Menu::execute | ( | Settings::Action | a = Settings::Launch | ) | [virtual] |
Execute some action for the seleced icon
| a | - action to execute (optional) |
References PieDock::WindowManager::activate(), PieDock::WindowManager::close(), PieDock::WindowManager::getClientWindow(), PieDock::WindowStack::getNextWindow(), PieDock::WindowStack::getPreviousWindow(), PieDock::WindowManager::iconify(), and run().
Referenced by PieDock::PieMenuWindow::performAction().
| std::string Menu::getItemTitle | ( | ) | const [virtual] |
Return item title
Referenced by PieDock::PieMenuWindow::updateWithText().
| int Menu::run | ( | std::string | command | ) | const [protected, virtual] |
| bool Menu::update | ( | std::string | menuName | ) | [virtual] |
Update menu
| menuName | - menu name |
Reimplemented in PieDock::PieMenu.
References PieDock::WindowStack::addWindow(), PieDock::IconMap::createIcon(), PieDock::WindowManager::getActive(), PieDock::IconMap::getFillerIcon(), PieDock::WindowManager::getIcon(), PieDock::IconMap::getIcon(), PieDock::IconMap::getIconByName(), PieDock::IconMap::getMissingIcon(), PieDock::WindowManager::getTitle(), and PieDock::WindowManager::isNormalWindow().
Referenced by change().
1.7.3