DrawToolBar::DrawToolBar(wxWindow *parent) : wxToolBar(parent,-1) { SetHelpText(_T("draw3-toolbar-items")); AddTool(drawTB_ABOUT, _T(""),help_xpm,_("About")); AddTool(drawTB_FIND, _T(""),find_xpm, _("Find")); AddTool(drawTB_SUMWIN, _T(""),plus_xpm, _("Summary Window")); AddTool(drawTB_SPLTCRS, _T(""),split_xpm, _("Split cursor"), wxITEM_CHECK); AddTool(drawTB_FILTER, _T(""),filter0_xpm, _("Filter")); AddTool(drawTB_REFRESH, _T(""),refresh_xpm, _("Refresh")); AddTool(drawTB_DRAWTREE, _T(""),draw_tree_xpm, _("Tree Set")); /** disable florence keyboard in windows builds */ #ifndef MINGW32 AddTool(drawTB_FLORENCE, _T(""), florence_xpm, _("Show screen keyboard")); #endif AddTool(drawTB_GOTOLATESTDATE, _T(""), flag_checkered_xpm, _("Go to latest date")); AddTool(drawTB_REMARK, _T(""), remark_xpm, _("Remarks")); AddTool(drawTB_EXIT, _T(""),exit_xpm, _("Quit")); if (VersionChecker::IsNewVersion()) NewDrawVersionAvailable(); else Realize(); #ifndef MINGW32 /* disable florence button if program is not present */ std::string path = exec_cmd("which florence"); path = path.substr(0, path.size()-1); if (access(path.c_str(), X_OK)) EnableTool(drawTB_FLORENCE, false); #endif VersionChecker::AddToolbar(this); }
DrawToolBar::DrawToolBar(wxWindow *parent) : wxToolBar(parent,-1) { SetHelpText(_T("draw3-toolbar-items")); AddTool(drawTB_ABOUT, _T(""),help_xpm,_("About")); AddTool(drawTB_FIND, _T(""),find_xpm, _("Find")); AddTool(drawTB_SUMWIN, _T(""),plus_xpm, _("Summary Window")); AddTool(drawTB_SPLTCRS, _T(""),split_xpm, _("Split cursor"), wxITEM_CHECK); AddTool(drawTB_FILTER, _T(""),filter0_xpm, _("Filter")); AddTool(drawTB_REFRESH, _T(""),refresh_xpm, _("Refresh")); AddTool(drawTB_DRAWTREE, _T(""),draw_tree_xpm, _("Tree Set")); /** disable florence keyboard in windows builds */ #ifndef MINGW32 AddTool(drawTB_FLORENCE, _T(""), florence_xpm, _("Show screen keyboard")); #endif AddTool(drawTB_GOTOLATESTDATE, _T(""), flag_checkered_xpm, _("Go to latest date")); AddTool(drawTB_REMARK, _T(""), remark_xpm, _("Remarks")); AddTool(drawTB_EXIT, _T(""),exit_xpm, _("Quit")); if (VersionChecker::IsNewVersion()) NewDrawVersionAvailable(); else Realize(); VersionChecker::AddToolbar(this); }