44 #include "wx/toolbar.h"
47 #include "wx/filedlg.h"
48 #include "wx/spinctrl.h"
49 #include "wx/srchctrl.h"
65 _createContour_Button =
new wxButton(
this, -1, _T(
"+ New Contour"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
70 _delete_Button =
new wxButton(
this, -1, _T(
"+ Delete"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
82 _copy_Button =
new wxButton(
this, -1, _T(
"Copy"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
87 _paste_Button =
new wxButton(
this, -1, _T(
"Paste"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
92 _change_Button =
new wxButton(
this, -1, _T(
" <--> "), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
97 _save_Button =
new wxButton(
this, -1, _T(
"Save"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
102 _open_Button =
new wxButton(
this, -1, _T(
"Open"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
107 _spread_Button =
new wxButton(
this, -1, _T(
"+ Spread"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
112 _automatiqueSegmentation_Button =
new wxButton(
this, -1, _T(
"+ Segmentation"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
117 _informationContour_Button =
new wxButton(
this, -1, _T(
"+ Information"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
122 _interfaceConfiguration_Button =
new wxButton(
this, -1, _T(
"+ Configuration"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
129 _interfaceTest_Button =
new wxButton(
this, -1, _T(
"+ Test"), wxDefaultPosition, wxDefaultSize, 0,wxDefaultValidator, wxString(as.c_str(),wxConvUTF8));
149 wxFlexGridSizer * panelSizer =
new wxFlexGridSizer(9);
174 SetSizer( panelSizer );
180 SetSize( wxSize( 1500, 80));
181 this->SetAutoLayout(
true );
207 std::string theStr = std::string( ((wxButton *)event.GetEventObject())->GetName().ToAscii());
208 const char * toolCommand = theStr.c_str();
209 event.SetId( GetId() );
210 event.SetEventObject(
this );
211 event.SetClientData( (
void *) toolCommand);
221 wxCommandEvent cevent( theEventType, GetId() );
222 cevent.SetEventObject(
this );