![]() |
Audacity 3.2.0
|
#include <TimeTrackControls.h>
Static Public Member Functions | |
static TimeTrackMenuTable & | Instance () |
![]() | |
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) |
Protected Member Functions | |
void | InitUserData (void *pUserData) override |
Called before the menu items are appended. More... | |
![]() | |
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 () |
Private Member Functions | |
TimeTrackMenuTable () | |
DECLARE_POPUP_MENU (TimeTrackMenuTable) | |
void | OnSetTimeTrackRange (wxCommandEvent &) |
void | OnTimeTrackLin (wxCommandEvent &) |
void | OnTimeTrackLog (wxCommandEvent &) |
void | OnTimeTrackLogInt (wxCommandEvent &) |
Private Attributes | |
CommonTrackControls::InitMenuData * | mpData {} |
Additional Inherited Members | |
![]() | |
using | Entry = PopupMenuTableEntry |
![]() | |
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 () |
![]() | |
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 TranslatableString | MakeLabel (const TranslatableString &label, bool useExtra, const TranslatableString &extra) |
![]() | |
std::shared_ptr< PopupSubMenu > | mTop |
std::vector< PopupMenuGroupItem * > | mStack |
Identifier | mId |
TranslatableString | mCaption |
std::unique_ptr< PopupMenuGroupItem > | mRegistry |
Definition at line 39 of file TimeTrackControls.h.
|
inlineprivate |
Definition at line 41 of file TimeTrackControls.h.
|
private |
|
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 51 of file TimeTrackControls.cpp.
References mpData.
|
static |
Definition at line 45 of file TimeTrackControls.cpp.
Referenced by TimeTrackControls::GetMenuExtension(), and TimeTrackVZoomHandle::Release().
|
private |
Definition at line 56 of file TimeTrackControls.cpp.
References AudacityMessageBox(), eIsCreating, ProjectHistory::Get(), TimeTrackControls::kRangeMax, TimeTrackControls::kRangeMin, mpData, CommonTrackControls::InitMenuData::pParent, project, CommonTrackControls::InitMenuData::project, ProjectHistory::PushState(), RefreshCode::RefreshAll, CommonTrackControls::InitMenuData::result, S, safenew, wxDialogWrapper::SetName(), CommonTrackControls::InitMenuData::track, wxT(), XO(), and XXO().
|
private |
Definition at line 145 of file TimeTrackControls.cpp.
References ProjectHistory::Get(), mpData, project, CommonTrackControls::InitMenuData::project, ProjectHistory::PushState(), RefreshCode::RefreshAll, CommonTrackControls::InitMenuData::result, TimeTrack::SetDisplayLog(), CommonTrackControls::InitMenuData::track, RefreshCode::UpdateVRuler, and XO().
|
private |
Definition at line 157 of file TimeTrackControls.cpp.
References ProjectHistory::Get(), mpData, project, CommonTrackControls::InitMenuData::project, ProjectHistory::PushState(), RefreshCode::RefreshAll, CommonTrackControls::InitMenuData::result, TimeTrack::SetDisplayLog(), CommonTrackControls::InitMenuData::track, RefreshCode::UpdateVRuler, and XO().
|
private |
Definition at line 169 of file TimeTrackControls.cpp.
References ProjectHistory::Get(), mpData, project, CommonTrackControls::InitMenuData::project, ProjectHistory::PushState(), RefreshCode::RefreshAll, CommonTrackControls::InitMenuData::result, CommonTrackControls::InitMenuData::track, and XO().
|
private |
Definition at line 54 of file TimeTrackControls.h.
Referenced by InitUserData(), OnSetTimeTrackRange(), OnTimeTrackLin(), OnTimeTrackLog(), and OnTimeTrackLogInt().