![]() |
Audacity 3.2.0
|
#include <WaveTrackVZoomHandle.h>
Classes | |
struct | InitMenuData |
Protected Member Functions | |
WaveTrackVRulerMenuTable (const Identifier &id) | |
void | InitUserData (void *pUserData) override |
Called before the menu items are appended. More... | |
void | OnZoom (WaveTrackViewConstants::ZoomActions iZoomCode) |
void | OnZoomFitVertical (wxCommandEvent &) |
void | OnZoomReset (wxCommandEvent &) |
void | OnZoomDiv2Vertical (wxCommandEvent &) |
void | OnZoomTimes2Vertical (wxCommandEvent &) |
void | OnZoomHalfWave (wxCommandEvent &) |
void | OnZoomInVertical (wxCommandEvent &) |
void | OnZoomOutVertical (wxCommandEvent &) |
void | UpdatePrefs () override |
![]() | |
virtual void | Populate ()=0 |
void | Append (Registry::BaseItemPtr pItem) |
void | Append (const Identifier &stringId, PopupMenuTableEntry::Type type, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init) |
void | AppendItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
void | AppendRadioItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
void | AppendCheckItem (const Identifier &stringId, int id, const TranslatableString &string, wxCommandEventFunction memFn, const PopupMenuTableEntry::InitFunction &init={}) |
void | BeginSection (const Identifier &name) |
void | EndSection () |
Protected Attributes | |
InitMenuData * | mpData {} |
![]() | |
std::shared_ptr< Registry::GroupItem > | mTop |
std::vector< Registry::GroupItem * > | mStack |
Identifier | mId |
TranslatableString | mCaption |
std::unique_ptr< Registry::GroupItem > | mRegistry |
Additional Inherited Members | |
![]() | |
using | Entry = PopupMenuTableEntry |
![]() | |
PopupMenuTable (const Identifier &id, const TranslatableString &caption={}) | |
const Identifier & | Id () const |
const TranslatableString & | Caption () const |
const Registry::GroupItem * | GetRegistry () const |
const std::shared_ptr< Registry::GroupItem > & | Get (void *pUserData) |
void | Clear () |
![]() | |
PopupMenuHandler ()=default | |
PopupMenuHandler (const PopupMenuHandler &)=delete | |
PopupMenuHandler & | operator= (const PopupMenuHandler &)=delete |
virtual void | InitUserData (void *pUserData)=0 |
Called before the menu items are appended. More... | |
![]() | |
static std::unique_ptr< PopupMenu > | BuildMenu (PopupMenuTable *pTable, void *pUserData=NULL) |
static void | ExtendMenu (PopupMenu &menu, PopupMenuTable &otherTable) |
template<typename Table > | |
static Registry::BaseItemPtr | Computed (const std::function< Registry::BaseItemPtr(Table &) > &factory) |
![]() | |
static TranslatableString | MakeLabel (const TranslatableString &label, bool useExtra, const TranslatableString &extra) |
![]() | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
virtual void | UpdateSelectedPrefs (int id) |
![]() | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Definition at line 62 of file WaveTrackVZoomHandle.h.
|
inlineprotected |
Definition at line 79 of file WaveTrackVZoomHandle.h.
|
overrideprotectedvirtual |
Called before the menu items are appended.
Store context data, if needed. May be called more than once before the menu opens. Pointer remains valid for the duration of any callback, if PopupMenuTable::BuildMenu() is called and the result's Popup() is called before any other menus are built.
Implements PopupMenuHandler.
Definition at line 35 of file WaveTrackVZoomHandle.cpp.
References mpData.
|
protected |
Definition at line 41 of file WaveTrackVZoomHandle.cpp.
References WaveTrackVRulerMenuTable::InitMenuData::doZoom, mpData, WaveTrackVRulerMenuTable::InitMenuData::project, WaveTrackVRulerMenuTable::InitMenuData::pTrack, WaveTrackVRulerMenuTable::InitMenuData::rect, RefreshCode::RefreshAll, WaveTrackVRulerMenuTable::InitMenuData::result, RefreshCode::UpdateVRuler, and WaveTrackVRulerMenuTable::InitMenuData::yy.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 97 of file WaveTrackVZoomHandle.h.
References WaveTrackViewConstants::kZoomHalfWave.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Definition at line 91 of file WaveTrackVZoomHandle.h.
References WaveTrackViewConstants::kZoomReset.
|
inlineprotected |
Definition at line 95 of file WaveTrackVZoomHandle.h.
References WaveTrackViewConstants::kZoomTimes2.
|
overrideprotectedvirtual |
Implements PrefsListener.
Definition at line 53 of file WaveTrackVZoomHandle.cpp.
References PopupMenuTable::Clear().
|
protected |
Definition at line 86 of file WaveTrackVZoomHandle.h.
Referenced by InitUserData(), and OnZoom().