Inheritance diagram for Exponent::GUI::Windowing::CMenuWindow:
Definition at line 41 of file CMenuWindow.hpp.
Exponent::GUI::Windowing::CMenuWindow::CMenuWindow | ( | const CRect & | size, | |
CWindowAttributes * | attributes, | |||
CMenu * | menu, | |||
const bool | useIcons = true , |
|||
IMenuListener * | listener = NULL | |||
) |
Construction
size | The size of the window | |
attributes | The attributes of the window | |
menu | The menu that will be displayed | |
useIcons | If true menu will display menu item icons (if available) | |
listener | The listener for menu events |
virtual Exponent::GUI::Windowing::CMenuWindow::~CMenuWindow | ( | ) | [virtual] |
Destruction
virtual void Exponent::GUI::Windowing::CMenuWindow::closePopupWindow | ( | ) | [virtual] |
Close the popup
virtual void Exponent::GUI::Windowing::CMenuWindow::gainedFocus | ( | IWindow * | window | ) | [virtual] |
Window gained the focus
window | The window that gained the focus |
Reimplemented from Exponent::GUI::Windowing::CWindow.
virtual void Exponent::GUI::Windowing::CMenuWindow::handleMenuClosing | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu closing
event | The event for the menu that closed |
virtual void Exponent::GUI::Windowing::CMenuWindow::handleMenuOpening | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu opening
event | The event for the menu that opened |
virtual void Exponent::GUI::Windowing::CMenuWindow::handleMenuSelection | ( | const CMenuEvent & | event | ) | [virtual] |
Handle a menu selection
event | The menu had something selected |
void Exponent::GUI::Windowing::CMenuWindow::killSubWindow | ( | ) |
Kill a sub window
void Exponent::GUI::Windowing::CMenuWindow::lauchSubWindow | ( | CSubMenuMenuItem * | item, | |
IControl * | control | |||
) |
Launch a child window
item | The sub menu item that will form the new window | |
control | The control that will be used on the sub window |
virtual void Exponent::GUI::Windowing::CMenuWindow::lostFocus | ( | IWindow * | window | ) | [virtual] |
Window lost the focus
window | The window that lost focus |
Reimplemented from Exponent::GUI::Windowing::CWindow.
virtual void Exponent::GUI::Windowing::CMenuWindow::openPopupWindow | ( | const CPoint & | point | ) | [virtual] |
Open the popup
point | The *global* window position tht you would like this window to open at |
void Exponent::GUI::Windowing::CMenuWindow::preLauchSubWindow | ( | const bool | launching = true |
) | [inline] |
Prepare for a child window to be lauched
launching | are we launching a sub menu window |
Definition at line 184 of file CMenuWindow.hpp.
References m_openingSubMenuWindow.
virtual void Exponent::GUI::Windowing::CMenuWindow::registerMenuListener | ( | IMenuListener * | listener | ) | [inline, virtual] |
Register the menu listener
listener | The menu event listener |
Definition at line 103 of file CMenuWindow.hpp.
References m_menuListener.
virtual void Exponent::GUI::Windowing::CMenuWindow::setCurrentSelection | ( | const long | selection = CMENU_WINDOW_NO_SELECTION |
) | [virtual] |
Set the selected entry
selection | If CMENU_WINDOW_NO_SELECTION Then nothing is selected, else the entry |
virtual void Exponent::GUI::Windowing::CMenuWindow::setFont | ( | CFont * | font | ) | [virtual] |
Set the font
font | The font to use |
virtual void Exponent::GUI::Windowing::CMenuWindow::setMenu | ( | CMenu * | menu | ) | [virtual] |
Set the menu
menu | The menu to be displayed |
virtual void Exponent::GUI::Windowing::CMenuWindow::setMenuAndSize | ( | CMenu * | menu | ) | [virtual] |
Set the menu and recalculate the size of control root and this window to fit
menu | The menu to be displayed |
virtual void Exponent::GUI::Windowing::CMenuWindow::setMenuColours | ( | const SMenuColours & | colours | ) | [virtual] |
Set the window colours
colours | The colours of the menu items |
virtual void Exponent::GUI::Windowing::CMenuWindow::setMinimumWidth | ( | const long | width | ) | [virtual] |
Set the minimum Width
width | The minimum menu width in pixels |
virtual void Exponent::GUI::Windowing::CMenuWindow::setParentMenuWindow | ( | CMenuWindow * | menuWindow | ) | [inline, virtual] |
Set the parentWindow
menuWindow | The menu window |
Definition at line 178 of file CMenuWindow.hpp.
References m_parentMenuWindow.
virtual void Exponent::GUI::Windowing::CMenuWindow::useIcons | ( | const bool | icons = true |
) | [virtual] |
Use icons
icons | If true then menu items will have icons shown (if they have them) if false, no icons are shown |
const long Exponent::GUI::Windowing::CMenuWindow::CMENU_WINDOW_NO_SELECTION = -1 [static] |
The window has nothing selected
Definition at line 53 of file CMenuWindow.hpp.
bool Exponent::GUI::Windowing::CMenuWindow::m_closingWindow [protected] |
Are we closing the window
Definition at line 386 of file CMenuWindow.hpp.
Listener for menu actions
Definition at line 377 of file CMenuWindow.hpp.
Referenced by registerMenuListener().
CDimension* Exponent::GUI::Windowing::CMenuWindow::m_mySizeOnInitialise [protected] |
The size of the menu window on initialise
Definition at line 378 of file CMenuWindow.hpp.
bool Exponent::GUI::Windowing::CMenuWindow::m_openingSubMenuWindow [protected] |
Are we currently opening a sub window
Definition at line 381 of file CMenuWindow.hpp.
Referenced by preLauchSubWindow().
The parent menu
Definition at line 380 of file CMenuWindow.hpp.
Referenced by setParentMenuWindow().
The sub window
Definition at line 379 of file CMenuWindow.hpp.
bool Exponent::GUI::Windowing::CMenuWindow::m_useIcons [protected] |
Should icons be used?
Definition at line 382 of file CMenuWindow.hpp.
WindowGroupRef Exponent::GUI::Windowing::CMenuWindow::m_windowGroup [protected] |
Menu window group
Definition at line 387 of file CMenuWindow.hpp.