PieDock 1.4.3
Public Member Functions | Protected Member Functions | Protected Attributes

PieDock::Menu Class Reference

#include <Menu.h>

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

List of all members.

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)
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

Applicationapp
MenuItemselected
MenuItemsmenuItems
Window windowBelowCursor
std::string name

Detailed Description

Abstract menu

Author:
Markus Fisch <mf@markusfisch.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 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 [protected, virtual]

Run some command

Parameters:
command- command to execute

Referenced by execute().

bool Menu::update ( std::string  menuName) [virtual]

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