]> Creatis software - creaContours.git/blob - lib/Interface_Icons_NDimensions/interfToolsMenu.h
Version with out wxEventHandler
[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 private:
33
34         //wxContourEventHandler* contourevent;
35         wxPanel* configPanel;
36         wxPanel* segmentPanel;
37         wxPanel* spreadPanel;
38         wxPanel* segmentPanelITK;
39         bool axisshown;
40
41         
42         
43 };
44
45 #endif
46  
47