]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/tools/MaracasTools.h
2a1fce745a25c6966b496cecdc7508febb393160
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / tools / MaracasTools.h
1 /*-----------------------------------------------------
2   DEFINE
3 *------------------------------------------------------*/
4 #if !defined(__TOOLS_MARACAS_TOOLS_H__)
5 #define __TOOLS_MARACAS_TOOLS_H__
6
7 //#include "interface/wxWindows/widgets/wxManualSegmentation_MPRWidget.h"
8 /*-----------------------------------------------------
9   INCLUDE
10 *------------------------------------------------------*/
11 #include <vector>
12
13 #include "wx/frame.h"
14 #include "wx/window.h"
15 #include "wx/event.h"
16
17 #include "osgi/impl/Framework.h"
18 #include "maracas/toolbox/IToolbox.h"
19 #include "maracas/toolbox/IClient.h"
20 #include "maracas/toolbox/IParameter.h"
21
22
23
24
25 class wxManualSegmentation_MPRWidget;
26
27
28
29
30 //using namespace std;
31 /*-----------------------------------------------------
32 Class MaracasTools
33
34   Doc goes here.
35           
36 *------------------------------------------------------*/
37
38 class wxToolsHandler: public wxEvtHandler{
39 public:
40         virtual void OnSelectToolEvent(wxCommandEvent& event)=0;
41 };
42
43
44
45 class MaracasTools: public wxToolsHandler, public IClient{
46         public:
47                 static MaracasTools* GetInstance();
48                 wxFrame* GetToolbox(wxWindow* parent);
49                 IParameter* GetParameter(std::string name);
50                 void SetMPRWidget(wxManualSegmentation_MPRWidget* pWidget){widget = pWidget;}
51                 void OnSelectToolEvent(wxCommandEvent& event);
52                 
53         protected:
54                 MaracasTools();
55         private:
56                 static MaracasTools* INSTANCE;
57                 
58                 wxManualSegmentation_MPRWidget* widget;
59                 
60                 std::vector<int> ids;
61                 
62                 FILE* logger;
63         
64                 Framework* framework;
65                 IToolbox* toolbox;
66                 
67                 wxFrame* toolsFrame;
68                 wxFrame* optionsFrame;
69                 wxPanel* currentToolPanel;
70                 
71                 
72
73                 
74                 int GetIndexForButton(int _wxbuttonid);
75                 void SetIndexForButton(int _wxbuttonid);
76 };
77
78
79
80 #endif //__TOOLS_MARACAS_TOOLS_H__
81
82
83