+ */
+ wxBitmap bmp_new(new_xpm);
+ wxBitmap bmp_open(fileopen_xpm);
+ wxBitmap bmp_close(eldel_xpm);
+ wxBitmap bmp_save(filesave_xpm);
+ wxBitmap bmp_saveas(filesaveas_xpm);
+ wxBitmap bmp_run(wxart_run_xpm);
+ wxBitmap bmp_runbbi(wxart_runbbi_xpm);
+ wxBitmap bmp_graphsimple(wxart_graphsimple_xpm);
+ wxBitmap bmp_graphdetail(wxart_graphdetail_xpm);
+
+ mwxToolBar = new wxToolBar(this, wxID_ANY,
+ wxDefaultPosition, wxDefaultSize,
+ wxTB_FLAT | wxTB_NODIVIDER);
+
+ mwxToolBar->AddTool(ID_ButtonNew, _T("New"),
+ bmp_new, wxNullBitmap, wxITEM_NORMAL,
+ _T("New file"), _T("Create a new file"));
+ mwxToolBar->AddTool(ID_ButtonOpen, _T("Open"),
+ bmp_open, wxNullBitmap, wxITEM_NORMAL,
+ _T("Open file"), _T("This is help for new file tool"));
+ mwxToolBar->AddTool(ID_ButtonClose, _T("Close"),
+ bmp_close, wxNullBitmap, wxITEM_NORMAL,
+ _T("Close file"), _T("Close current file"));
+ mwxToolBar->AddTool(ID_ButtonSave, _T("New"),
+ bmp_save, wxNullBitmap, wxITEM_NORMAL,
+ _T("Save file"), _T("Save current file"));
+ mwxToolBar->AddTool(ID_ButtonSaveAs, _T("New"),
+ bmp_saveas, wxNullBitmap, wxITEM_NORMAL,
+ _T("Save file as"), _T("Save current file as"));
+ mwxToolBar->AddTool(ID_ButtonRun, _T("Run"),
+ bmp_run, wxNullBitmap, wxITEM_NORMAL,
+ _T("Run file"), _T("Run current file"));
+
+
+ mwxToolBar->AddTool(ID_ButtonGraphSimple, _T("Graph (simple)"),
+ bmp_graphsimple, wxNullBitmap, wxITEM_NORMAL,
+ _T("Graph simple"), _T("Simple graph of actual script"));
+
+ mwxToolBar->AddTool(ID_ButtonGraphDetail, _T("Graph (detail)"),
+ bmp_graphdetail, wxNullBitmap, wxITEM_NORMAL,
+ _T("Graph (detail)"), _T("Detail graph of actual script"));
+
+ mwxToolBar->AddTool(ID_ButtonRunBBI, _T("Run external bbi "),
+ bmp_runbbi, wxNullBitmap, wxITEM_NORMAL,
+ _T("Run external bbi"), _T("Run external bbi"));
+
+
+
+ mwxToolBar->AddSeparator();
+ mwxPosition = new wxStaticText ( mwxToolBar, -1, _T(""));
+ mwxToolBar->AddControl(mwxPosition);
+ mwxToolBar->Realize();
+
+ sizer->Add(mwxToolBar,0,wxGROW);
+
+ /*
+ m_mgr.AddPane(mwxToolBar,
+ wxAuiPaneInfo().Name(wxT("toolBar"))
+ .Caption(wxT(""))
+ .ToolbarPane()
+ .Bottom()
+ .MinSize(wxSize(100,50))
+ .LeftDockable(false).RightDockable(false)
+ );
+*/
+ SetSizer(sizer);
+