Audacity  2.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>
21 
22 class ViewInfo;
23 
24 class AUDACITY_DLL_API AttachableScrollBar final :
25  public wxScrollBar
26 {
27 public:
29  wxWindow* parent,
30  wxWindowID id,
31  const wxPoint& pos = wxDefaultPosition,
32  const wxSize& size = wxDefaultSize,
33  long style = wxSB_HORIZONTAL);
34 public:
35  ~AttachableScrollBar(void);
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...
Definition: AttachableScrollBar.h:24
ViewInfo is used mainly to hold the zooming, selection and scroll information. It also has some statu...
Definition: ViewInfo.h:138
ViewInfo * mpViewInfo
Definition: AttachableScrollBar.h:42