1 /*-----------------------------------------------------
3 *------------------------------------------------------*/
4 #if !defined(__TOOLS_MARACAS_TOOLS_H__)
5 #define __TOOLS_MARACAS_TOOLS_H__
7 //#include "interface/wxWindows/widgets/wxManualSegmentation_MPRWidget.h"
8 /*-----------------------------------------------------
10 *------------------------------------------------------*/
14 #include "wx/window.h"
17 #include "osgi/impl/Framework.h"
18 #include "maracas/toolbox/IToolbox.h"
19 #include "maracas/toolbox/IClient.h"
20 #include "maracas/toolbox/IParameter.h"
25 class wxManualSegmentation_MPRWidget;
30 //using namespace std;
31 /*-----------------------------------------------------
36 *------------------------------------------------------*/
38 class wxToolsHandler: public wxEvtHandler{
40 virtual void OnSelectToolEvent(wxCommandEvent& event)=0;
45 class MaracasTools: public wxToolsHandler, public IClient{
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);
56 static MaracasTools* INSTANCE;
58 wxManualSegmentation_MPRWidget* widget;
68 wxFrame* optionsFrame;
69 wxPanel* currentToolPanel;
74 int GetIndexForButton(int _wxbuttonid);
75 void SetIndexForButton(int _wxbuttonid);
80 #endif //__TOOLS_MARACAS_TOOLS_H__