KiCad PCB EDA Suite
|
< Helper class to organize menu entries.Inserts the entry, preserving the requested order. More...
Public Types | |
enum | ENTRY_TYPE { ACTION , MENU , WXITEM , SEPARATOR } |
Public Member Functions | |
ENTRY (const TOOL_ACTION *aAction, SELECTION_CONDITION aCondition, int aOrder, bool aCheckmark) | |
ENTRY (ACTION_MENU *aMenu, SELECTION_CONDITION aCondition, int aOrder) | |
ENTRY (const wxMenuItem &aItem, BITMAPS aBitmap, SELECTION_CONDITION aCondition, int aOrder, bool aCheckmark) | |
ENTRY (SELECTION_CONDITION aCondition, int aOrder) | |
ENTRY (const ENTRY &aEntry) | |
~ENTRY () | |
Possible entry types. | |
ENTRY_TYPE | Type () const |
BITMAPS | GetIcon () const |
const TOOL_ACTION * | Action () const |
ACTION_MENU * | Menu () const |
wxMenuItem * | wxItem () const |
bool | IsCheckmarkEntry () const |
const SELECTION_CONDITION & | Condition () const |
int | Order () const |
void | SetOrder (int aOrder) |
Private Attributes | ||
ENTRY_TYPE | m_type | |
BITMAPS | m_icon | |
union { | ||
const TOOL_ACTION * action | ||
ACTION_MENU * menu | ||
wxMenuItem * wxItem | ||
} | m_data | |
Condition to be fulfilled to show the entry in menu. | ||
SELECTION_CONDITION | m_condition | |
Order number, the higher the number the lower position it takes it is in the menu. | ||
int | m_order | |
bool | m_isCheckmarkEntry | |
< Helper class to organize menu entries.Inserts the entry, preserving the requested order.
Definition at line 122 of file conditional_menu.h.
Enumerator | |
---|---|
ACTION | |
MENU | |
WXITEM | |
SEPARATOR |
Definition at line 174 of file conditional_menu.h.
|
inline |
Definition at line 125 of file conditional_menu.h.
References ACTION, m_condition, m_data, m_icon, m_isCheckmarkEntry, m_order, m_type, and move.
Referenced by ENTRY().
|
inline |
Definition at line 136 of file conditional_menu.h.
References ACTION_MENU::ACTION_MENU(), m_condition, m_data, m_icon, m_isCheckmarkEntry, m_order, m_type, MENU, and move.
|
inline |
Definition at line 146 of file conditional_menu.h.
References m_condition, m_data, m_icon, m_isCheckmarkEntry, m_order, m_type, move, and WXITEM.
|
inline |
Definition at line 159 of file conditional_menu.h.
References m_condition, m_data, m_icon, m_isCheckmarkEntry, m_order, m_type, move, and SEPARATOR.
CONDITIONAL_MENU::ENTRY::ENTRY | ( | const ENTRY & | aEntry | ) |
CONDITIONAL_MENU::ENTRY::~ENTRY | ( | ) |
Possible entry types.
Definition at line 258 of file conditional_menu.cpp.
|
inline |
Definition at line 191 of file conditional_menu.h.
|
inline |
Definition at line 214 of file conditional_menu.h.
References m_condition.
|
inline |
Definition at line 186 of file conditional_menu.h.
References m_icon.
|
inline |
Definition at line 209 of file conditional_menu.h.
References m_isCheckmarkEntry.
|
inline |
Definition at line 197 of file conditional_menu.h.
References ACTION_MENU::ACTION_MENU(), m_data, m_type, and MENU.
|
inline |
Definition at line 219 of file conditional_menu.h.
References m_order.
Referenced by CONDITIONAL_MENU::addEntry().
|
inline |
Definition at line 224 of file conditional_menu.h.
References m_order.
Referenced by CONDITIONAL_MENU::addEntry().
|
inline |
Definition at line 181 of file conditional_menu.h.
References m_type.
|
inline |
Definition at line 203 of file conditional_menu.h.
const TOOL_ACTION* CONDITIONAL_MENU::ENTRY::action |
Definition at line 236 of file conditional_menu.h.
Referenced by ENTRY().
|
private |
Order number, the higher the number the lower position it takes it is in the menu.
Definition at line 242 of file conditional_menu.h.
Referenced by Condition(), ENTRY(), ENTRY(), ENTRY(), ENTRY(), and ENTRY().
union { ... } CONDITIONAL_MENU::ENTRY::m_data |
|
private |
|
private |
Definition at line 247 of file conditional_menu.h.
Referenced by ENTRY(), ENTRY(), ENTRY(), ENTRY(), ENTRY(), and IsCheckmarkEntry().
|
private |
Definition at line 245 of file conditional_menu.h.
Referenced by ENTRY(), ENTRY(), ENTRY(), ENTRY(), ENTRY(), Order(), and SetOrder().
|
private |
ACTION_MENU* CONDITIONAL_MENU::ENTRY::menu |
Definition at line 237 of file conditional_menu.h.
Referenced by ENTRY().
wxMenuItem* CONDITIONAL_MENU::ENTRY::wxItem |
Definition at line 238 of file conditional_menu.h.
Referenced by ENTRY().