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

store position of high order tools window

parent 7c3c4604
No related branches found
No related tags found
No related merge requests found
...@@ -467,6 +467,13 @@ StringXNumber GeneralOptions_Number[] = { ...@@ -467,6 +467,13 @@ StringXNumber GeneralOptions_Number[] = {
{ F|S, "GraphicsWidth" , opt_general_graphics_size0 , 800. , { F|S, "GraphicsWidth" , opt_general_graphics_size0 , 800. ,
"Width (in pixels) of the graphic window" }, "Width (in pixels) of the graphic window" },
{ F|S, "HighOrderToolsPositionX" , opt_general_hot_position0 , 650. ,
"Horizontal position (in pixels) of the upper left corner of the high order "
"tools window" },
{ F|S, "HighOrderToolsPositionY" , opt_general_hot_position1 , 150. ,
"Vertical position (in pixels) of the upper left corner of the high order "
"tools window" },
{ F|O, "InitialModule", opt_general_initial_context, 0. , { F|O, "InitialModule", opt_general_initial_context, 0. ,
"Module launched on startup (0=automatic, 1=geometry, 2=mesh, 3=solver, " "Module launched on startup (0=automatic, 1=geometry, 2=mesh, 3=solver, "
"4=post-processing) " }, "4=post-processing) " },
......
...@@ -2241,6 +2241,20 @@ double opt_general_manip_position1(OPT_ARGS_NUM) ...@@ -2241,6 +2241,20 @@ double opt_general_manip_position1(OPT_ARGS_NUM)
return CTX::instance()->manipPosition[1]; return CTX::instance()->manipPosition[1];
} }
double opt_general_hot_position0(OPT_ARGS_NUM)
{
if(action & GMSH_SET)
CTX::instance()->hotPosition[0] = (int)val;
return CTX::instance()->hotPosition[0];
}
double opt_general_hot_position1(OPT_ARGS_NUM)
{
if(action & GMSH_SET)
CTX::instance()->hotPosition[1] = (int)val;
return CTX::instance()->hotPosition[1];
}
double opt_general_session_save(OPT_ARGS_NUM) double opt_general_session_save(OPT_ARGS_NUM)
{ {
if(action & GMSH_SET) if(action & GMSH_SET)
......
...@@ -156,6 +156,8 @@ double opt_general_clip_position0(OPT_ARGS_NUM); ...@@ -156,6 +156,8 @@ double opt_general_clip_position0(OPT_ARGS_NUM);
double opt_general_clip_position1(OPT_ARGS_NUM); double opt_general_clip_position1(OPT_ARGS_NUM);
double opt_general_manip_position0(OPT_ARGS_NUM); double opt_general_manip_position0(OPT_ARGS_NUM);
double opt_general_manip_position1(OPT_ARGS_NUM); double opt_general_manip_position1(OPT_ARGS_NUM);
double opt_general_hot_position0(OPT_ARGS_NUM);
double opt_general_hot_position1(OPT_ARGS_NUM);
double opt_general_session_save(OPT_ARGS_NUM); double opt_general_session_save(OPT_ARGS_NUM);
double opt_general_options_save(OPT_ARGS_NUM); double opt_general_options_save(OPT_ARGS_NUM);
double opt_general_rotation0(OPT_ARGS_NUM); double opt_general_rotation0(OPT_ARGS_NUM);
......
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