GlsMenu
1.5.4
|
#include <gls_mfd_menu.h>
Public Types | |
typedef GlsMenu_T< MenuItem_t, GlsMFD::MenuItemId_t > | BaseClass |
typedef GlsMenuDataGroup_T< Submenu_t > | SubmenuGroup_t |
typedef std::vector< Submenu_t * > | SubmenuCont_t |
typedef MenuItem_t | Item_t |
typedef GlsMFD::MenuItemId_t | ItemId_t |
typedef GlsMenuHandlerGroup_T< MenuItem_t > | ItemGroup_t |
Public Member Functions | |
GlsMFDMenu_T (const std::string &name, GlsMenuDictionary &dataDict, GlsMenuAction::HandlerCont_t &actionHandlers) | |
virtual | ~GlsMFDMenu_T () |
PageId_t | Page () const |
virtual std::istream & | ReadValue (std::istream &instr) |
const SubmenuCont_t & | Submenus () const |
ItemGroup_t * | Items () const |
MenuItem_t * | Item (const ItemId_t &itemId) const |
void | SelectItem (const ItemId_t &itemId) |
virtual void | Hide () |
virtual void | Show () |
const GlsMenuDictionary & | Attributes () const |
virtual std::ostream & | WriteValue (std::ostream &outstr) |
virtual void | Inc (long amount=1) |
Protected Attributes | |
PageId_t | _page |
SubmenuCont_t | _submenus |
GlsMenuDictionary | _attr |
The dictionary of attributes for the group attribute. More... | |
The GlsMFDMenu class provides support for a single aircraft MFD menu. It provides everything from the GlsMenu class plus adds support for MFD pages being associated with MFD menus, grouping of menu items into submenus, and uses the GlsMFD menu item id type.
Definition at line 159 of file gls_mfd_menu.h.
typedef GlsMenu_T<MenuItem_t, GlsMFD::MenuItemId_t> GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::BaseClass |
Definition at line 162 of file gls_mfd_menu.h.
|
inherited |
Definition at line 129 of file gls_menu.h.
|
inherited |
Definition at line 131 of file gls_menu.h.
|
inherited |
Definition at line 130 of file gls_menu.h.
typedef std::vector<Submenu_t*> GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::SubmenuCont_t |
Definition at line 164 of file gls_mfd_menu.h.
typedef GlsMenuDataGroup_T<Submenu_t> GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::SubmenuGroup_t |
Definition at line 163 of file gls_mfd_menu.h.
|
inline |
Class constructor.
Definition at line 171 of file gls_mfd_menu.h.
References GlsMenuDataGroup::_attr, and GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::_page.
|
inlinevirtual |
Class destructor.
Definition at line 189 of file gls_mfd_menu.h.
|
inlineinherited |
Read attribute dictionary from an input stream.
instr | input stream to read value from. |
Definition at line 78 of file gls_menu_data_group.h.
References GlsMenuDataGroup::_attr.
Referenced by GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::ReadValue().
|
virtualinherited |
Hide the menu. Perform necessary logic for when a menu is newly hidden for the first time after being shown. This should not be called on a cyclical basis, but when a "hide menu" event occurs.
|
virtualinherited |
Increment the data item. Derived classes must override this as the default is a no-op.
Reimplemented in GlsMenuDiscrete_T< T >.
Referenced by GlsMenuSet_T< MenuType_t, DataFactory_t >::IncData().
|
inlineinherited |
Gain access to the specified menu item.
itemId | id of the menu item. |
Definition at line 179 of file gls_menu.h.
References GlsMenu_T< MenuItem_t, MenuItemId_t >::_menuItems, and GlsMenuHandlerGroup_T< T >::Item().
|
inlineinherited |
Gain access to a container of all the menu items in the menu.
Definition at line 164 of file gls_menu.h.
References GlsMenu_T< MenuItem_t, MenuItemId_t >::_menuItems.
|
inline |
Return whic&>*, std::less<std::string>, std::allocator<std::pair<const std::string, GlsFuncth page is currently displayed.
Definition at line 196 of file gls_mfd_menu.h.
References GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::_page.
|
inlinevirtual |
Reads the menu meta data attributes from a stream.
Reimplemented from GlsMenuDataGroup.
Definition at line 206 of file gls_mfd_menu.h.
References GlsMenuDataGroup::_attr, GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::_submenus, GlsMenuDataGroup::Attributes(), and GlsMenuDataGroup::ReadValue().
|
inlineinherited |
Handle selection of one of the menu items.
itemId | id of the menu item. |
Definition at line 195 of file gls_menu.h.
References GlsMenu_T< MenuItem_t, MenuItemId_t >::_menuItems, and GlsMenuHandlerGroup_T< T >::Item().
|
virtualinherited |
Show the menu. Perform necessary logic for when a menu is newly shown for the first time or after being hidden. This should not be called on a cyclical basis, but when a "show menu" event occurs.
|
inline |
Gain access to a container of all the submenus in the menu.
Definition at line 239 of file gls_mfd_menu.h.
References GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::_submenus.
|
virtualinherited |
Read attribute dictionary from an input stream.
instr | input stream to read value from. |
|
protectedinherited |
The dictionary of attributes for the group attribute.
Definition at line 100 of file gls_menu_data_group.h.
Referenced by GlsMenuDataGroup::Attributes(), GlsMenu_T< MenuItem_t, GlsMFD::MenuItemId_t >::GlsMenu_T(), GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::GlsMFDMenu_T(), GlsMFDSubmenu_T< MenuItemId_t >::GlsMFDSubmenu_T(), GlsMenuDataGroup_T< T >::Item(), GlsMenuHandlerGroup_T< Menu_t >::Item(), GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::ReadValue(), and GlsMenuItem_T< State_t >::State().
|
protected |
Definition at line 246 of file gls_mfd_menu.h.
Referenced by GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::GlsMFDMenu_T(), and GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::Page().
|
protected |
Definition at line 249 of file gls_mfd_menu.h.
Referenced by GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::ReadValue(), and GlsMFDMenu_T< MenuItem_t, Submenu_t, PageId_t >::Submenus().