Open Ephys GUI
 All Classes Functions Variables Pages
EditorViewportButtons.h
1 /*
2  ------------------------------------------------------------------
3 
4  This file is part of the Open Ephys GUI
5  Copyright (C) 2012 Open Ephys
6 
7  ------------------------------------------------------------------
8 
9  This program is free software: you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program. If not, see <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #ifndef __EDITORVIEWPORTBUTTONS_H_2657C51D__
25 #define __EDITORVIEWPORTBUTTONS_H_2657C51D__
26 
27 #include "../../JuceLibraryCode/JuceHeader.h"
28 
29 /**
30 
31  A set of buttons for scrolling through editors and signal chains.
32 
33  @see EditorViewport.
34 
35 */
36 
37 class EditorScrollButton : public DrawableButton
38 {
39 public:
40  EditorScrollButton(int type);
42 
43  void setActive(bool);
44 
45  bool isActive;
46 
47  enum type {LEFT, RIGHT};
48 
49  int direction;
50 
51  DrawablePath inactive, activeNormal, activeOver, activeDown;
52 
53 };
54 
55 
56 class SignalChainScrollButton : public DrawableButton
57 {
58 public:
59  SignalChainScrollButton(int type);
61 
62  void setActive(bool);
63 
64  enum type {UP, DOWN};
65 
66  bool isActive;
67 
68  int direction;
69 
70  DrawablePath inactive, activeNormal, activeOver, activeDown;
71 };
72 
73 
74 
75 #endif // __EDITORVIEWPORTBUTTONS_H_2657C51D__