]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfToolsMenu.h
fd3df207f35c77b252bd8555b0ebb7c2d20ab3ff
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsMenu.h
1 #ifndef __interfToolsMenuH__
2 #define __interfToolsMenuH__
3
4 #include <wx/wx.h>
5
6
7 #include "interfMenuBar.h"
8
9 class interfToolsMenu 
10         : public interfMenuBar
11 {
12 public:
13         interfToolsMenu(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler, std::string datdir = "data/Icons");           
14         ~interfToolsMenu();
15
16     virtual void initButtons(wxEvtHandler* evtHandler) ;
17
18         /**
19         **      Responds to the events of the buttons, when the same panel is responsible for it. It gets the name
20         **      of the button corresponding to the method that has to be executed,
21         **      it uses attribute eventHandler to call the methods define by the application.
22         **      see setEventHandler(wxEventHandler*)
23         **/
24         void onRigidPressed(wxCommandEvent& event);
25
26         void  onSpreadPressed(wxCommandEvent& event);
27
28         void  onInformationPressed(wxCommandEvent& event);
29
30         void  onConfigurationPressed(wxCommandEvent& event);
31
32         
33 private:
34
35         wxContourEventHandler* contourevent;
36         wxPanel* configPanel;
37         wxWindow* infoWin;
38         wxPanel* segmentPanel;
39         wxPanel* spreadPanel;
40         wxPanel* segmentPanelITK;
41         bool axisshown;
42
43         void hideAxis();
44         
45 };
46
47 #endif
48  
49