1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 06:07:42 +02:00
audacity/src/widgets/AttachableScrollBar.h
Paul Licameli 7824e94030 Harmlessly qualify classes as final (or explicitly comment not)...
... Should have no effect on generated code, except perhaps some slight faster
virtual function calls.  Mostly useful as documentation of design intent.

Tried to mark every one of our classes that inherits from another, or is a
base for others, or has abstract virtual functions, and a few others besides.
2016-02-24 20:58:30 -05:00

47 lines
1.1 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
AttachableScrollBar.h
James Crook
A scroll bar that can be attached to multiple items and so control
their scrolling.
Audacity is free software.
This file is licensed under the wxWidgets license, see License.txt
**********************************************************************/
#ifndef __AUDACITY_ATTACHABLE_SCROLL_BAR__
#define __AUDACITY_ATTACHABLE_SCROLL_BAR__
#include <wx/scrolbar.h>
class ViewInfo;
class AUDACITY_DLL_API AttachableScrollBar final :
public wxScrollBar
{
public:
AttachableScrollBar(
wxWindow* parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSB_HORIZONTAL);
public:
~AttachableScrollBar(void);
void OnScroll(wxScrollEvent & event);
void SetViewInfo( ViewInfo * view );
void SetScrollBarFromViewInfo();
void SetViewInfoFromScrollBar();
ViewInfo * mpViewInfo;
DECLARE_EVENT_TABLE();
};
#endif // __AUDACITY_ATTACHABLE_SCROLL_BAR__