|
PieDock 1.4.3
|
#include <PieMenuWindow.h>


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 |
| Text * | text |
| CartoucheMap | cartoucheMap |
Static Protected Attributes | |
| static const std::string | ShowMessage |
This object realizes the pie dock on screen
| PieMenuWindow::PieMenuWindow | ( | Application & | a | ) |
Initialize this window
| a | - Application object |
References PieDock::WindowManager::setWindowType().
| PieMenuWindow::~PieMenuWindow | ( | ) | [virtual] |
Clean up
| bool PieMenuWindow::appear | ( | std::string | n = "", |
| PieMenuWindow::Placement | p = AroundCursor |
||
| ) |
Make window appear, returns false if there are no menu items
| 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] |
(Re-)Draw contents
Reimplemented from PieDock::TransparentWindow.
References PieDock::TransparentWindow::clear(), PieDock::PieMenu::draw(), PieDock::PieMenu::isObsolete(), PieDock::TransparentWindow::update(), and updateWithText().
| void PieMenuWindow::hide | ( | ) | [protected, virtual] |
Hide window
Referenced by performAction(), and processEvent().
| bool PieMenuWindow::performAction | ( | Settings::Action | action | ) | [protected, virtual] |
Perform action
| 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] |
| bool PieMenuWindow::processEvent | ( | XEvent & | event | ) | [virtual] |
Process event, this method returns true as long as it wants to keep processing events
| 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
| p | - where to show (optional) |
References place(), and PieDock::TransparentWindow::show().
| void PieMenuWindow::updateWithText | ( | ) | [protected, virtual] |
Update window having text
References PieDock::Blender::blend(), PieDock::Text::draw(), PieDock::Menu::getItemTitle(), PieDock::Text::getMetrics(), and PieDock::TransparentWindow::update().
Referenced by draw().
1.7.3