Audacity 3.2.0
AttachableScrollBar.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AttachableScrollBar.h
6
7 James Crook
8
9 A scroll bar that can be attached to multiple items and so control
10 their scrolling.
11
12 Audacity is free software.
13 This file is licensed under the wxWidgets license, see License.txt
14
15**********************************************************************/
16
17#ifndef __AUDACITY_ATTACHABLE_SCROLL_BAR__
18#define __AUDACITY_ATTACHABLE_SCROLL_BAR__
19
20#include <wx/scrolbar.h> // to inherit
21
22class ViewInfo;
23
24class AUDACITY_DLL_API AttachableScrollBar final :
25 public wxScrollBar
26{
27public:
29 wxWindow* parent,
30 wxWindowID id,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 long style = wxSB_HORIZONTAL);
34public:
36 void OnScroll(wxScrollEvent & event);
37 void SetViewInfo( ViewInfo * view );
38
39 void SetScrollBarFromViewInfo();
40 void SetViewInfoFromScrollBar();
41
43 DECLARE_EVENT_TABLE()
44};
45
46#endif // __AUDACITY_ATTACHABLE_SCROLL_BAR__
An AttachableScrollBar is a scroll bar that can be attached to multiple items and so control their sc...