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

#include <PieMenuWindow.h>

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

Public Types

enum  Placement { AroundCursor, IconBelowCursor }
 

Public Member Functions

 PieMenuWindow (Application &)
 
virtual ~PieMenuWindow ()
 
bool appear (std::string="", Placement=AroundCursor)
 
void draw ()
 
bool processEvent (XEvent &)
 
- Public Member Functions inherited from PieDock::TransparentWindow
 TransparentWindow (Application &)
 
virtual ~TransparentWindow ()
 
const Window & getWindow () const
 
virtual void appear ()
 

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 Member Functions inherited from PieDock::TransparentWindow
ApplicationgetApp () const
 
const int & getWidth () const
 
const int & getHeight () const
 
XSurfacegetCanvas () const
 
const GC & getGc () const
 
virtual void show ()
 
virtual void hide () const
 
virtual void clear ()
 
virtual void update () const
 

Detailed Description

This object realizes the pie dock on screen

Author
Markus Fisch mf@ma.nosp@m.rkus.nosp@m.fisch.nosp@m..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 ( )
protectedvirtual

Hide window

References PieDock::TransparentWindow::hide().

Referenced by performAction(), and processEvent().

bool PieMenuWindow::performAction ( Settings::Action  action)
protectedvirtual

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

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

Show window

Parameters
p- where to show (optional)

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

void PieMenuWindow::updateWithText ( )
protectedvirtual

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