Skip to content
Snippets Groups Projects
Commit 24458bd2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

better save options gui

parent ec63c550
No related branches found
No related tags found
No related merge requests found
...@@ -2201,8 +2201,10 @@ static Fl_Menu_Item bar_table[] = { ...@@ -2201,8 +2201,10 @@ static Fl_Menu_Item bar_table[] = {
{"&Rename...", FL_CTRL+'r', (Fl_Callback *)file_rename_cb, 0}, {"&Rename...", FL_CTRL+'r', (Fl_Callback *)file_rename_cb, 0},
{"Save &As...", FL_CTRL+'s', (Fl_Callback *)file_save_as_cb, 0}, {"Save &As...", FL_CTRL+'s', (Fl_Callback *)file_save_as_cb, 0},
{"Sa&ve Mesh", FL_CTRL+FL_SHIFT+'s', (Fl_Callback *)mesh_save_cb, 0}, {"Sa&ve Mesh", FL_CTRL+FL_SHIFT+'s', (Fl_Callback *)mesh_save_cb, 0},
{"Save Options", 0, (Fl_Callback *)file_options_save_cb, 0}, {"Save Options", 0, 0, 0, FL_SUBMENU | FL_MENU_DIVIDER},
{"Save Default Options", 0, (Fl_Callback *)options_save_cb, 0, FL_MENU_DIVIDER}, {"For Current File", 0, (Fl_Callback *)file_options_save_cb, 0},
{"As Default", 0, (Fl_Callback *)options_save_cb, 0},
{0},
{"&Quit", FL_CTRL+'q', (Fl_Callback *)file_quit_cb, 0}, {"&Quit", FL_CTRL+'q', (Fl_Callback *)file_quit_cb, 0},
{0}, {0},
{"&Tools", 0, 0, 0, FL_SUBMENU}, {"&Tools", 0, 0, 0, FL_SUBMENU},
...@@ -2251,8 +2253,10 @@ static Fl_Menu_Item sysbar_table[] = { ...@@ -2251,8 +2253,10 @@ static Fl_Menu_Item sysbar_table[] = {
{"Rename...", FL_META+'r', (Fl_Callback *)file_rename_cb, 0}, {"Rename...", FL_META+'r', (Fl_Callback *)file_rename_cb, 0},
{"Save As...", FL_META+'s', (Fl_Callback *)file_save_as_cb, 0}, {"Save As...", FL_META+'s', (Fl_Callback *)file_save_as_cb, 0},
{"Save Mesh", FL_META+FL_SHIFT+'s', (Fl_Callback *)mesh_save_cb, 0}, {"Save Mesh", FL_META+FL_SHIFT+'s', (Fl_Callback *)mesh_save_cb, 0},
{"Save Options", 0, (Fl_Callback *)file_options_save_cb, 0}, {"Save Options", 0, 0, 0, FL_SUBMENU},
{"Save Default Options", 0, (Fl_Callback *)options_save_cb, 0}, {"For Current File", 0, (Fl_Callback *)file_options_save_cb, 0},
{"As Default", 0, (Fl_Callback *)options_save_cb, 0},
{0},
{0}, {0},
{"Tools", 0, 0, 0, FL_SUBMENU}, {"Tools", 0, 0, 0, FL_SUBMENU},
{"Options", FL_META+FL_SHIFT+'n', (Fl_Callback *)options_cb, 0}, {"Options", FL_META+FL_SHIFT+'n', (Fl_Callback *)options_cb, 0},
......
...@@ -870,10 +870,10 @@ void bowyerWatsonFrontal(GFace *gf) ...@@ -870,10 +870,10 @@ void bowyerWatsonFrontal(GFace *gf)
// } // }
} }
char name[245]; // char name[245];
sprintf(name,"frontal%d-real.pos", gf->tag()); // sprintf(name,"frontal%d-real.pos", gf->tag());
_printTris (name, AllTris, Us, Vs,false); // _printTris (name, AllTris, Us, Vs,false);
sprintf(name,"frontal%d-param.pos", gf->tag()); // sprintf(name,"frontal%d-param.pos", gf->tag());
_printTris (name, AllTris, Us, Vs,true); // _printTris (name, AllTris, Us, Vs,true);
transferDataStructure(gf, AllTris, Us, Vs); transferDataStructure(gf, AllTris, Us, Vs);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment