Audacity 3.2.0
Classes | Macros
PopupMenuTable.h File Reference
#include <functional>
#include <vector>
#include <wx/menu.h>
#include <memory>
#include "Internat.h"
#include "../commands/CommandManager.h"
Include dependency graph for PopupMenuTable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  PopupMenuTableEntry
struct  PopupSubMenu
struct  PopupMenuSection
class  PopupMenuHandler
struct  PopupMenuVisitor
class  PopupMenu
class  PopupMenuTable
struct  PopupMenuTable::AttachedItem
class  ComputedPopupMenuTable< Derived, Base >


#define DECLARE_POPUP_MENU(HandlerClass)    void Populate() override;
#define BEGIN_POPUP_MENU(HandlerClass)
#define POPUP_MENU_FN(memFn)   ( (wxCommandEventFunction) (&My::memFn) )
#define POPUP_MENU_SUB_MENU(stringId, classname, pUserData)
#define END_POPUP_MENU()   }

Macro Definition Documentation


#define BEGIN_POPUP_MENU (   HandlerClass)
void HandlerClass::Populate() { \
using My = HandlerClass; \
mTop = std::make_shared< PopupSubMenu >( \
Id(), Caption(), *this ); \
mStack.clear(); \
mStack.push_back( mTop.get() );

Definition at line 314 of file PopupMenuTable.h.


#define DECLARE_POPUP_MENU (   HandlerClass)     void Populate() override;

Definition at line 310 of file PopupMenuTable.h.


#define END_POPUP_MENU ( )    }

Definition at line 329 of file PopupMenuTable.h.


#define POPUP_MENU_FN (   memFn)    ( (wxCommandEventFunction) (&My::memFn) )

Definition at line 322 of file PopupMenuTable.h.


#define POPUP_MENU_SUB_MENU (   stringId,
mStack.back()->items.push_back( \
Services * Get()
Fetch the global instance, or nullptr if none is yet installed.
Definition: BasicUI.cpp:196
std::unique_ptr< IndirectItem > Indirect(const BaseItemSharedPtr &ptr)
A convenience function.
Definition: Registry.h:97

Definition at line 324 of file PopupMenuTable.h.