Open Ephys GUI
 All Classes Functions Variables Pages
SpikeDisplayEditor.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 SPIKEDISPLAYEDITOR_H_
25 #define SPIKEDISPLAYEDITOR_H_
26 
27 #include "../../../JuceLibraryCode/JuceHeader.h"
28 #include "GenericEditor.h"
29 #include "../../UI/UIComponent.h"
30 #include "../../UI/DataViewport.h"
31 #include "../Visualization/DataWindow.h"
32 #include "../SpikeDisplayNode.h"
33 #include "../Visualization/SpikeDisplayCanvas.h"
34 #include "VisualizerEditor.h"
35 
36 #define MAX_N_SUB_CHAN 8
37 class Visualizer;
38 class UtilityButton;
39 
41 {
42 public:
45 
46  void buttonCallback (Button* button);
47 
48  // void updateSettings();
49  // void updateVisualizer();
50 
51  Visualizer* createNewCanvas();
52 
53 private:
54 
55  UtilityButton *panUpBtn;
56  UtilityButton *panDownBtn;
57  UtilityButton *zoomInBtn;
58  UtilityButton *zoomOutBtn;
59  UtilityButton *clearBtn;
60  UtilityButton *saveImgBtn;
61 
62  Label *panLabel;
63  Label *zoomLabel;
64 
65  UtilityButton *allSubChansBtn;
66 
67  int nSubChannels;
68  Label *subChanLabel;
69  UtilityButton *subChanBtn[MAX_N_SUB_CHAN];
70  bool subChanSelected[MAX_N_SUB_CHAN];
71 
72  void initializeButtons();
73 
74  JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SpikeDisplayEditor);
75 
76 };
77 
78 #endif // SPIKEDISPLAYEDITOR_H_