Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
PrefsListener::Impl Struct Reference
Inheritance diagram for PrefsListener::Impl:
[legend]
Collaboration diagram for PrefsListener::Impl:
[legend]

Public Member Functions

 Impl (PrefsListener &owner)
 
 ~Impl ()
 
void OnEvent (wxEvent &)
 

Public Attributes

PrefsListenermOwner
 

Detailed Description

Definition at line 86 of file Prefs.cpp.

Constructor & Destructor Documentation

◆ Impl()

PrefsListener::Impl::Impl ( PrefsListener owner)

Definition at line 108 of file Prefs.cpp.

109  : mOwner{ owner }
110 {
111  hub().Bind(EVT_PREFS_UPDATE, &PrefsListener::Impl::OnEvent, this);
112 }

◆ ~Impl()

PrefsListener::Impl::~Impl ( )

Definition at line 114 of file Prefs.cpp.

115 {
116 }

Member Function Documentation

◆ OnEvent()

void PrefsListener::Impl::OnEvent ( wxEvent &  evt)

Definition at line 131 of file Prefs.cpp.

132 {
133  evt.Skip();
134  auto id = evt.GetId();
135  if (id <= 0)
137  else
139 }

References mOwner, PrefsListener::UpdatePrefs(), and PrefsListener::UpdateSelectedPrefs().

Here is the call graph for this function:

Member Data Documentation

◆ mOwner

PrefsListener& PrefsListener::Impl::mOwner

Definition at line 91 of file Prefs.cpp.

Referenced by OnEvent().


The documentation for this struct was generated from the following file:
PrefsListener::UpdateSelectedPrefs
virtual void UpdateSelectedPrefs(int id)
Definition: Prefs.cpp:127
PrefsListener::Impl::OnEvent
void OnEvent(wxEvent &)
Definition: Prefs.cpp:131
PrefsListener::UpdatePrefs
virtual void UpdatePrefs()=0
PrefsListener::Impl::mOwner
PrefsListener & mOwner
Definition: Prefs.cpp:91
hub
static wxEvtHandler & hub()
Definition: Prefs.cpp:94