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

PieDock::PieMenuWindow Class Reference

#include <PieMenuWindow.h>

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

List of all members.

Public Types

enum  Placement { AroundCursor, IconBelowCursor }

Public Member Functions

 PieMenuWindow (Application &)
virtual ~PieMenuWindow ()
bool appear (std::string="", Placement=AroundCursor)
void draw ()
bool processEvent (XEvent &)

Protected Types

typedef std::map< int,
Cartouche * > 
CartoucheMap

Protected Member Functions

virtual void show (Placement=AroundCursor)
virtual void hide ()
virtual void updateWithText ()
virtual bool performAction (Settings::Action)
virtual void place (Placement)

Protected Attributes

PieMenu menu
Pixmap textCanvas
Texttext
CartoucheMap cartoucheMap

Static Protected Attributes

static const std::string ShowMessage

Detailed Description

This object realizes the pie dock on screen

Author:
Markus Fisch <mf@markusfisch.de>

Constructor & Destructor Documentation

PieMenuWindow::PieMenuWindow ( Application a)

Initialize this window

Parameters:
a- Application object

References PieDock::WindowManager::setWindowType().

PieMenuWindow::~PieMenuWindow ( ) [virtual]

Clean up


Member Function Documentation

bool PieMenuWindow::appear ( std::string  n = "",
PieMenuWindow::Placement  p = AroundCursor 
)

Make window appear, returns false if there are no menu items

Parameters:
n- menu name (optional)
p- where the menu should appear (optional)

References PieDock::PieMenu::setTwistForSelection(), PieDock::TransparentWindow::show(), and PieDock::PieMenu::update().

void PieMenuWindow::draw ( ) [virtual]
void PieMenuWindow::hide ( ) [protected, virtual]

Hide window

Referenced by performAction(), and processEvent().

bool PieMenuWindow::performAction ( Settings::Action  action) [protected, virtual]

Perform action

Parameters:
action- action to perform

References PieDock::Menu::change(), PieDock::Menu::execute(), hide(), and PieDock::PieMenu::turn().

Referenced by processEvent().

void PieMenuWindow::place ( PieMenuWindow::Placement  placement) [protected, virtual]

Place window on Screen

Parameters:
placement- where to place window

Referenced by show().

bool PieMenuWindow::processEvent ( XEvent &  event) [virtual]

Process event, this method returns true as long as it wants to keep processing events

Parameters:
event- X event

Reimplemented from PieDock::TransparentWindow.

References PieDock::Settings::getButtonFunctions(), hide(), and performAction().

void PieMenuWindow::show ( PieMenuWindow::Placement  p = AroundCursor) [protected, virtual]

Show window

Parameters:
p- where to show (optional)

References place(), and PieDock::TransparentWindow::show().

void PieMenuWindow::updateWithText ( ) [protected, virtual]

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