Audacity  2.2.2
Public Member Functions | Protected Attributes | List of all members
ExpandingToolBarEvtHandler Class Referencefinal

A custom event handler for ExpandingToolBar. More...

Inheritance diagram for ExpandingToolBarEvtHandler:

Public Member Functions

 ExpandingToolBarEvtHandler (ExpandingToolBar *toolbar, wxWindow *window, wxEvtHandler *inheritedEvtHandler)
 
bool ProcessEvent (wxEvent &evt) override
 
 ~ExpandingToolBarEvtHandler ()
 

Protected Attributes

ExpandingToolBarmToolBar
 
wxWindow * mWindow
 
wxEvtHandler * mInheritedEvtHandler
 

Detailed Description

A custom event handler for ExpandingToolBar.

Definition at line 275 of file ExpandingToolBar.cpp.

Constructor & Destructor Documentation

ExpandingToolBarEvtHandler::ExpandingToolBarEvtHandler ( ExpandingToolBar toolbar,
wxWindow *  window,
wxEvtHandler *  inheritedEvtHandler 
)
inline

Definition at line 278 of file ExpandingToolBar.cpp.

References mInheritedEvtHandler, mToolBar, and mWindow.

281  {
282  mToolBar = toolbar;
283  mWindow = window;
284  mInheritedEvtHandler = inheritedEvtHandler;
285 
286  window->PushEventHandler(this);
287 }
ExpandingToolBarEvtHandler::~ExpandingToolBarEvtHandler ( )
inline

Definition at line 299 of file ExpandingToolBar.cpp.

References mWindow.

300  {
301  mWindow->RemoveEventHandler(this);
302  }

Member Function Documentation

bool ExpandingToolBarEvtHandler::ProcessEvent ( wxEvent &  evt)
inlineoverride

Definition at line 289 of file ExpandingToolBar.cpp.

References mInheritedEvtHandler, mToolBar, and ExpandingToolBar::TryAutoExpand().

290  {
291 // if (mToolBar->IsCursorInWindow())
293 // else
294 // mToolBar->TryAutoExpand();
295 
296  return mInheritedEvtHandler->ProcessEvent(evt);
297  }

Member Data Documentation

wxEvtHandler* ExpandingToolBarEvtHandler::mInheritedEvtHandler
protected

Definition at line 307 of file ExpandingToolBar.cpp.

Referenced by ExpandingToolBarEvtHandler(), and ProcessEvent().

ExpandingToolBar* ExpandingToolBarEvtHandler::mToolBar
protected

Definition at line 305 of file ExpandingToolBar.cpp.

Referenced by ExpandingToolBarEvtHandler(), and ProcessEvent().

wxWindow* ExpandingToolBarEvtHandler::mWindow
protected

The documentation for this class was generated from the following file: