Audacity 3.2.0
|
#include <WaveChannelVZoomHandle.h>
Classes | |
struct | InitMenuData |
Protected Member Functions | |
WaveChannelVRulerMenuTable (const Identifier &id) | |
void | InitUserData (void *pUserData) override |
Called before the menu items are appended. More... | |
void | OnZoom (WaveChannelViewConstants::ZoomActions iZoomCode) |
void | OnZoomFitVertical (wxCommandEvent &) |
void | OnZoomReset (wxCommandEvent &) |
void | OnZoomHalfWave (wxCommandEvent &) |
void | OnZoomInVertical (wxCommandEvent &) |
void | OnZoomOutVertical (wxCommandEvent &) |
void | UpdatePrefs () override |
Protected Member Functions inherited from PopupMenuTable | |
virtual void | Populate ()=0 |
template<typename Ptr > | |
void | Append (Ptr 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 {} |
Protected Attributes inherited from PopupMenuTable | |
std::shared_ptr< PopupSubMenu > | mTop |
std::vector< PopupMenuGroupItem * > | mStack |
Identifier | mId |
TranslatableString | mCaption |
std::unique_ptr< PopupMenuGroupItem > | mRegistry |
Additional Inherited Members | |
Public Types inherited from PopupMenuTable | |
using | Entry = PopupMenuTableEntry |
Public Member Functions inherited from PopupMenuTable | |
PopupMenuTable (const Identifier &id, const TranslatableString &caption={}) | |
const Identifier & | Id () const |
const TranslatableString & | Caption () const |
const auto * | GetRegistry () const |
const auto & | Get (void *pUserData) |
void | Clear () |
Public Member Functions inherited from PopupMenuHandler | |
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 Public Member Functions inherited from PopupMenuTable | |
static std::unique_ptr< PopupMenu > | BuildMenu (PopupMenuTable *pTable, void *pUserData=NULL) |
static void | ExtendMenu (PopupMenu &menu, PopupMenuTable &otherTable) |
template<typename Table , typename Factory > | |
static auto | Adapt (const Factory &factory) |
Static Protected Member Functions inherited from PopupMenuTable | |
static TranslatableString | MakeLabel (const TranslatableString &label, bool useExtra, const TranslatableString &extra) |
Private Member Functions inherited from PrefsListener | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
virtual void | UpdateSelectedPrefs (int id) |
Static Private Member Functions inherited from PrefsListener | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Definition at line 63 of file WaveChannelVZoomHandle.h.
|
inlineprotected |
Definition at line 80 of file WaveChannelVZoomHandle.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 33 of file WaveChannelVZoomHandle.cpp.
References mpData.
|
protected |
Definition at line 39 of file WaveChannelVZoomHandle.cpp.
References WaveChannelVRulerMenuTable::InitMenuData::doZoom, mpData, WaveChannelVRulerMenuTable::InitMenuData::project, WaveChannelVRulerMenuTable::InitMenuData::rect, RefreshCode::RefreshAll, WaveChannelVRulerMenuTable::InitMenuData::result, RefreshCode::UpdateVRuler, WaveChannelVRulerMenuTable::InitMenuData::wc, and WaveChannelVRulerMenuTable::InitMenuData::yy.
|
inlineprotected |
Definition at line 90 of file WaveChannelVZoomHandle.h.
References WaveChannelViewConstants::kZoom1to1.
|
inlineprotected |
Definition at line 94 of file WaveChannelVZoomHandle.h.
References WaveChannelViewConstants::kZoomHalfWave.
|
inlineprotected |
Definition at line 96 of file WaveChannelVZoomHandle.h.
References WaveChannelViewConstants::kZoomIn.
|
inlineprotected |
Definition at line 98 of file WaveChannelVZoomHandle.h.
References WaveChannelViewConstants::kZoomOut.
|
inlineprotected |
Definition at line 92 of file WaveChannelVZoomHandle.h.
References WaveChannelViewConstants::kZoomReset.
|
overrideprotectedvirtual |
Implements PrefsListener.
Definition at line 51 of file WaveChannelVZoomHandle.cpp.
References PopupMenuTable::Clear().
|
protected |
Definition at line 87 of file WaveChannelVZoomHandle.h.
Referenced by InitUserData(), and OnZoom().