1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-26 09:08:44 +02:00
audacity/src/widgets/AttachableScrollBar.h
benjamin.drung@gmail.com 277932dccb Remove trailing spaces.
2014-06-03 20:30:19 +00: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>
struct 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__