PieDock  1.6.3
Public Member Functions | Protected Member Functions | List of all members
PieDock::Menu Class Reference

#include <Menu.h>

Inheritance diagram for PieDock::Menu:
Inheritance graph
[legend]

Public Member Functions

 Menu (Application *)
 
void setWindowBelowCursor (Window w)
 
const Window & getWindowBelowCursor () const
 
MenuItemgetSelected () const
 
const std::string & getName () const
 
virtual bool update (std::string, Window=0)
 
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

ApplicationgetApp () const
 
void setSelected (MenuItem *s)
 
MenuItemsgetMenuItems () const
 
virtual int run (std::string) const
 

Detailed Description

Abstract menu

Author
Markus Fisch mf@ma.nosp@m.rkus.nosp@m.fisch.nosp@m..de

Constructor & Destructor Documentation

Menu::Menu ( Application a)

Initialize menu

Parameters
a- application

Member Function Documentation

bool Menu::change ( Settings::Action  a = Settings::Launch)
virtual

Check if item points to another menu and if so, change to it

Parameters
a- action to execute (optional)

References PieDock::WindowStack::getNextWindow(), and update().

Referenced by PieDock::PieMenuWindow::performAction().

void Menu::execute ( Settings::Action  a = Settings::Launch)
virtual
std::string Menu::getItemTitle ( ) const
virtual

Return item title

Referenced by PieDock::PieMenuWindow::updateWithText().

int Menu::run ( std::string  command) const
protectedvirtual

Run some command

Parameters
command- command to execute

Referenced by execute().

bool Menu::update ( std::string  menuName,
Window  forWindow = 0 
)
virtual

The documentation for this class was generated from the following files: