1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-06 15:19:29 +02:00
audacity/src/widgets/AttachableScrollBar.h
Paul-Licameli ab21f75c77 ViewInfo is becoming a smart class, not a dumb struct
Now it has:
A constructor
XML attribute serializer functions (but no XML tag of its own)

Also removed unused lastZoom
2015-07-19 11:43:59 -04: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 :
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__