47 lines
1.1 KiB
C++
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> // to inherit
|
|
|
|
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__
|