#include <functional>
#include <vector>
#include <wx/menu.h>
#include <memory>
#include "Internat.h"
#include "CommandManager.h"
Go to the source code of this file.
◆ BEGIN_POPUP_MENU
#define BEGIN_POPUP_MENU |
( |
|
HandlerClass | ) |
|
Value:void HandlerClass::Populate() { \
using My = HandlerClass; \
mTop = std::make_shared< PopupSubMenu >( \
Id(), Caption(), *this ); \
mStack.clear(); \
mStack.push_back( mTop.get() );
Definition at line 297 of file PopupMenuTable.h.
◆ DECLARE_POPUP_MENU
#define DECLARE_POPUP_MENU |
( |
|
HandlerClass | ) |
void Populate() override; |
◆ END_POPUP_MENU
#define END_POPUP_MENU |
( |
| ) |
} |
◆ POPUP_MENU_FN
#define POPUP_MENU_FN |
( |
|
memFn | ) |
( (wxCommandEventFunction) (&My::memFn) ) |
◆ POPUP_MENU_SUB_MENU
#define POPUP_MENU_SUB_MENU |
( |
|
stringId, |
|
|
|
classname, |
|
|
|
pUserData |
|
) |
| |
Value: mStack.back()->push_back( \
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
std::unique_ptr< detail::IndirectItem< Item > > Indirect(const std::shared_ptr< Item > &ptr)
A convenience function.
Definition at line 307 of file PopupMenuTable.h.
◆ PopupMenuGroupItem