Commit b787142d authored by twanvl's avatar twanvl

Icons for file->export

parent c3008dd9
...@@ -160,7 +160,7 @@ void BarGraph::draw(RotatedDC& dc, int current) const { ...@@ -160,7 +160,7 @@ void BarGraph::draw(RotatedDC& dc, int current) const {
} }
// How many labels and lines to draw? // How many labels and lines to draw?
dc.SetFont(*wxNORMAL_FONT); dc.SetFont(*wxNORMAL_FONT);
UInt label_step = UInt(max(1.0, dc.GetCharHeight() / step_height)); UInt label_step = UInt(max(1.0, (dc.GetCharHeight() + 1) / step_height));
// Draw backlines (horizontal) and value labels // Draw backlines (horizontal) and value labels
dc.SetPen(lerp(bg, fg, 0.5)); dc.SetPen(lerp(bg, fg, 0.5));
for (UInt i = 0 ; i <= axis.max ; ++i) { for (UInt i = 0 ; i <= axis.max ; ++i) {
...@@ -218,6 +218,10 @@ int BarGraph::findItem(const RealPoint& pos, const RealRect& rect1) const { ...@@ -218,6 +218,10 @@ int BarGraph::findItem(const RealPoint& pos, const RealRect& rect1) const {
// ----------------------------------------------------------------------------- : Pie Graph // ----------------------------------------------------------------------------- : Pie Graph
// ----------------------------------------------------------------------------- : Scatter Graph
// ----------------------------------------------------------------------------- : Graph Legend // ----------------------------------------------------------------------------- : Graph Legend
// ----------------------------------------------------------------------------- : GraphControl // ----------------------------------------------------------------------------- : GraphControl
......
...@@ -54,11 +54,11 @@ SetWindow::SetWindow(Window* parent, const SetP& set) ...@@ -54,11 +54,11 @@ SetWindow::SetWindow(Window* parent, const SetP& set)
menuFile->Append(ID_FILE_SAVE, _("save"), _MENU_("save set"), _HELP_("save set")); menuFile->Append(ID_FILE_SAVE, _("save"), _MENU_("save set"), _HELP_("save set"));
menuFile->Append(ID_FILE_SAVE_AS, _MENU_("save set as"), _HELP_("save set as")); menuFile->Append(ID_FILE_SAVE_AS, _MENU_("save set as"), _HELP_("save set as"));
IconMenu* menuExport = new IconMenu(); IconMenu* menuExport = new IconMenu();
menuExport->Append(ID_FILE_EXPORT_HTML, _MENU_("export html"), _HELP_("export html")); menuExport->Append(ID_FILE_EXPORT_HTML, _("export_html"), _MENU_("export html"), _HELP_("export html"));
menuExport->Append(ID_FILE_EXPORT_IMAGE, _MENU_("export image"), _HELP_("export image")); menuExport->Append(ID_FILE_EXPORT_IMAGE, _("export_image"), _MENU_("export image"), _HELP_("export image"));
menuExport->Append(ID_FILE_EXPORT_IMAGES, _MENU_("export images"), _HELP_("export images")); menuExport->Append(ID_FILE_EXPORT_IMAGES, _("export_images"), _MENU_("export images"), _HELP_("export images"));
menuExport->Append(ID_FILE_EXPORT_APPR, _MENU_("export apprentice"),_HELP_("export apprentice")); menuExport->Append(ID_FILE_EXPORT_APPR, _("export_apprentice"), _MENU_("export apprentice"),_HELP_("export apprentice"));
menuExport->Append(ID_FILE_EXPORT_MWS, _MENU_("export mws"), _HELP_("export mws")); menuExport->Append(ID_FILE_EXPORT_MWS, _("export_mws"), _MENU_("export mws"), _HELP_("export mws"));
menuFile->Append(ID_FILE_EXPORT, _MENU_("export"), _("Export the set..."), menuExport); menuFile->Append(ID_FILE_EXPORT, _MENU_("export"), _("Export the set..."), menuExport);
menuFile->AppendSeparator(); menuFile->AppendSeparator();
// menuFile->Append(ID_FILE_INSPECT, _("Inspect Internal Data..."), _("Shows a the data in the set using a tree structure")); // menuFile->Append(ID_FILE_INSPECT, _("Inspect Internal Data..."), _("Shows a the data in the set using a tree structure"));
......
...@@ -22,6 +22,11 @@ cursor/rot_text CURSOR "cursor/rot_text.cur" ...@@ -22,6 +22,11 @@ cursor/rot_text CURSOR "cursor/rot_text.cur"
tool/new IMAGE "tool/new.png" tool/new IMAGE "tool/new.png"
tool/open IMAGE "tool/open.png" tool/open IMAGE "tool/open.png"
tool/save IMAGE "tool/save.png" tool/save IMAGE "tool/save.png"
tool/export_html IMAGE "tool/export_html.png"
tool/export_image IMAGE "tool/export_image.png"
tool/export_images IMAGE "tool/export_images.png"
tool/export_mws IMAGE "tool/export_mws.png"
tool/export_apprentice IMAGE "tool/export_apprentice.png"
tool/undo IMAGE "tool/undo.png" tool/undo IMAGE "tool/undo.png"
tool/redo IMAGE "tool/redo.png" tool/redo IMAGE "tool/redo.png"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment