GME
13
|
#include <DynMenu.h>
Public Member Functions | |
CDynMenu (int iden, TCHAR *nm) | |
~CDynMenu () | |
void | SetName (CString nm) |
void | SetID (int i) |
CMenu & | GetMenu () |
int | GetMinID () const |
int | GetMaxID () const |
bool | IsEmpty () const |
int | GetCount () const |
void | AddItem (int id, CString &&roleName, CString &&displayName, CString &&helpMsg) |
CDynMenuItem * | FindItem (int id) |
void | Sort () |
Protected Attributes | |
int | id |
int | minID |
int | maxID |
CString | name |
std::vector< std::unique_ptr < CDynMenuItem > > | items |
CMenu | menu |
CDynMenu::CDynMenu | ( | int | iden, |
TCHAR * | nm | ||
) |
Definition at line 7 of file DynMenu.cpp.
Definition at line 13 of file DynMenu.cpp.
void CDynMenu::AddItem | ( | int | id, |
CString && | roleName, | ||
CString && | displayName, | ||
CString && | helpMsg | ||
) |
Definition at line 17 of file DynMenu.cpp.
CDynMenuItem * CDynMenu::FindItem | ( | int | id | ) |
Definition at line 38 of file DynMenu.cpp.
int CDynMenu::GetCount | ( | ) | const [inline] |
int CDynMenu::GetMaxID | ( | ) | const [inline] |
CMenu& CDynMenu::GetMenu | ( | ) | [inline] |
int CDynMenu::GetMinID | ( | ) | const [inline] |
bool CDynMenu::IsEmpty | ( | void | ) | const [inline] |
void CDynMenu::SetID | ( | int | i | ) | [inline] |
void CDynMenu::SetName | ( | CString | nm | ) | [inline] |
void CDynMenu::Sort | ( | ) |
Definition at line 26 of file DynMenu.cpp.
int CDynMenu::id [protected] |
std::vector<std::unique_ptr<CDynMenuItem> > CDynMenu::items [protected] |
int CDynMenu::maxID [protected] |
CMenu CDynMenu::menu [protected] |
int CDynMenu::minID [protected] |
CString CDynMenu::name [protected] |