Om
1.0.0
A universal framework for multimedia simulation
|
A class that manages a hierarchical menu organized by resource categories, types, and subtypes. More...
#include <omEditorTypeMenu.h>
Classes | |
class | Delegate |
A class that contains callback functions that respond to type menu events. More... | |
Public Types | |
enum | Flag { TYPE_MENUS = (1 << 0), SUB_TYPE_MENUS = (1 << 1), CATEGORIES = (1 << 2), TYPES = (1 << 3), SUB_TYPES = (1 << 4) } |
A class that specifies boolean configuration flags for a type menu. More... | |
Public Member Functions | |
TypeMenu () | |
Create a new empty type menu. More... | |
~TypeMenu () | |
Destroy a type menu and release internal resources. More... | |
OM_INLINE Menu & | getMenu () |
Return a reference to the GUI menu for this type menu. More... | |
OM_INLINE const Menu & | getMenu () const |
Return a reference to the GUI menu for this type menu. More... | |
void | addType (const ResourceTypeEditorFactory &newType) |
Add the specified resource type to this type menu and update the menu. More... | |
void | addTypes (const ResourceEditorManager &newTypes) |
Add the resource types from a resource manager to this type menu and update the menu. More... | |
void | clearTypes () |
Remove all types from this menu and return it to its initial state. More... | |
OM_INLINE Delegate & | getDelegate () |
Return a reference to the delegate for this type menu. More... | |
OM_INLINE const Delegate & | getDelegate () const |
Return a reference to the delegate for this type menu. More... | |
OM_INLINE void | setDelegate (const Delegate &newDelegate) |
Set a reference to the delegate for this type menu. More... | |
A class that manages a hierarchical menu organized by resource categories, types, and subtypes.
A class that specifies boolean configuration flags for a type menu.
om::editors::base::TypeMenu::TypeMenu | ( | ) |
Create a new empty type menu.
om::editors::base::TypeMenu::~TypeMenu | ( | ) |
Destroy a type menu and release internal resources.
Return a reference to the GUI menu for this type menu.
Return a reference to the GUI menu for this type menu.
void om::editors::base::TypeMenu::addType | ( | const ResourceTypeEditorFactory & | newType | ) |
Add the specified resource type to this type menu and update the menu.
void om::editors::base::TypeMenu::addTypes | ( | const ResourceEditorManager & | newTypes | ) |
Add the resource types from a resource manager to this type menu and update the menu.
void om::editors::base::TypeMenu::clearTypes | ( | ) |
Remove all types from this menu and return it to its initial state.
Return a reference to the delegate for this type menu.
Return a reference to the delegate for this type menu.
Set a reference to the delegate for this type menu.