Version: 0.6.0
zoompan.h
1 // Name: zoompan.h
3 // Purpose: Zoom/pan declarations
4 // Author: Moskvichev Andrey V.
5 // Created: 2010/09/13
6 // Copyright: (c) 2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef ZOOMPAN_H_
11 #define ZOOMPAN_H_
12 
13 #include <wx/wxfreechartdefs.h>
14 #include <wx/chartpanel.h>
15 
16 
17 class WXDLLIMPEXP_FREECHART ZoomMode : public ChartPanelMode
18 {
19 public:
20  ZoomMode();
21  virtual ~ZoomMode();
22 
23  void SetAllowHorizontalZoom(bool allowHorizontalZoom);
24  void SetAllowVertialZoom(bool allowVerticalZoom);
25 
26  //
27  // ChartPanelObserver
28  //
29  virtual void ChartEnterWindow();
30 
31  virtual void ChartMouseDown(wxPoint &pt, int key);
32  virtual void ChartMouseUp(wxPoint &pt, int key);
33 
34  virtual void ChartMouseMove(wxPoint &pt);
35  virtual void ChartMouseDrag(wxPoint &pt);
36 
37  virtual void ChartMouseWheel(int rotation);
38 
39 private:
40  bool m_allowHorizontalZoom;
41  bool m_allowVerticalZoom;
42 };
43 
48 class WXDLLIMPEXP_FREECHART PanMode : public ChartPanelMode
49 {
50 public:
51  PanMode();
52  virtual ~PanMode();
53 
54  void SetAllowHorizontalPan(bool allowHorizontalPan);
55  void SetAllowVertialPan(bool allowVerticalPan);
56 
57  //
58  // ChartPanelObserver
59  //
60  virtual void ChartMouseDown(wxPoint &pt);
61  virtual void ChartMouseUp(wxPoint &pt);
62  virtual void ChartMouseMove(wxPoint &pt);
63 private:
64 
65 
66 };
67 
68 #endif /* ZOOMPAN_H_ */
Definition: zoompan.h:48
Definition: chartpanel.h:40
Definition: zoompan.h:17