Audacity  2.2.2
Classes | Macros
PopupMenuTable.h File Reference
#include <vector>
#include <wx/event.h>
#include <wx/menu.h>
#include "../MemoryX.h"
#include "../TranslatableStringArray.h"

Go to the source code of this file.

Classes

struct  PopupMenuTableEntry
 
class  PopupMenuTable
 
class  PopupMenuTable::Menu
 

Macros

#define DECLARE_POPUP_MENU(HandlerClass)   void Populate() override;
 
#define BEGIN_POPUP_MENU(HandlerClass)
 
#define POPUP_MENU_APPEND(type, id, string, memFn, subTable)
 
#define POPUP_MENU_APPEND_ITEM(type, id, string, memFn)
 
#define POPUP_MENU_ITEM(id, string, memFn)   POPUP_MENU_APPEND_ITEM(Entry::Item, id, string, memFn);
 
#define POPUP_MENU_RADIO_ITEM(id, string, memFn)   POPUP_MENU_APPEND_ITEM(Entry::RadioItem, id, string, memFn);
 
#define POPUP_MENU_CHECK_ITEM(id, string, memFn)   POPUP_MENU_APPEND_ITEM(Entry::CheckItem, id, string, memFn);
 
#define POPUP_MENU_SUB_MENU(id, string, classname)
 
#define POPUP_MENU_SEPARATOR()
 
#define END_POPUP_MENU()
 

Macro Definition Documentation

#define BEGIN_POPUP_MENU (   HandlerClass)
Value:
void HandlerClass::Populate() { \
typedef HandlerClass My;

Definition at line 150 of file PopupMenuTable.h.

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

Definition at line 146 of file PopupMenuTable.h.

#define END_POPUP_MENU ( )
Value:
Entry::Invalid, -1, wxT(""), nullptr, nullptr ) \
}
#define POPUP_MENU_APPEND(type, id, string, memFn, subTable)

Definition at line 190 of file PopupMenuTable.h.

#define POPUP_MENU_APPEND (   type,
  id,
  string,
  memFn,
  subTable 
)
Value:
mContents.push_back( Entry { \
type, \
id, \
string, \
memFn, \
subTable \
} );

Definition at line 154 of file PopupMenuTable.h.

#define POPUP_MENU_APPEND_ITEM (   type,
  id,
  string,
  memFn 
)
Value:
type, \
id, \
string, \
(wxCommandEventFunction) (&My::memFn), \
nullptr )
#define POPUP_MENU_APPEND(type, id, string, memFn, subTable)

Definition at line 163 of file PopupMenuTable.h.

#define POPUP_MENU_CHECK_ITEM (   id,
  string,
  memFn 
)    POPUP_MENU_APPEND_ITEM(Entry::CheckItem, id, string, memFn);

Definition at line 177 of file PopupMenuTable.h.

#define POPUP_MENU_ITEM (   id,
  string,
  memFn 
)    POPUP_MENU_APPEND_ITEM(Entry::Item, id, string, memFn);

Definition at line 171 of file PopupMenuTable.h.

#define POPUP_MENU_RADIO_ITEM (   id,
  string,
  memFn 
)    POPUP_MENU_APPEND_ITEM(Entry::RadioItem, id, string, memFn);

Definition at line 174 of file PopupMenuTable.h.

Referenced by BEGIN_POPUP_MENU().

#define POPUP_MENU_SEPARATOR ( )
Value:
Entry::Separator, -1, wxT(""), nullptr, nullptr );
#define POPUP_MENU_APPEND(type, id, string, memFn, subTable)

Definition at line 185 of file PopupMenuTable.h.

Referenced by if().

#define POPUP_MENU_SUB_MENU (   id,
  string,
  classname 
)
Value:
Entry::SubMenu, id, string, nullptr, &classname::Instance() );
#define POPUP_MENU_APPEND(type, id, string, memFn, subTable)

Definition at line 181 of file PopupMenuTable.h.

Referenced by if().