Skip to content

Commit

Permalink
Merge pull request firemodels#1902 from gforney/master
Browse files Browse the repository at this point in the history
formatting changes to loading option dialog box
  • Loading branch information
gforney authored May 9, 2024
2 parents 7535230 + c3dd614 commit a0fd700
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Source/smokebot_trigger.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
master: dummy text to trigger smokebot
master: dummy text to trigger smokebot
devel: dummy text to trigger smokebot
devel2: dummy text to trigger smokebot
test: dummy text to trigger smokebot
34 changes: 13 additions & 21 deletions Source/smokeview/glui_bounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2625,11 +2625,7 @@ GLUI_Panel *PANEL_slice_plot2dd = NULL;
GLUI_Panel *PANEL_slice_plot2de = NULL;
GLUI_Panel *PANEL_slice_plot2df = NULL;
GLUI_Panel *PANEL_loadbounds = NULL;
GLUI_Panel *PANEL_box_option = NULL;
GLUI_Panel *PANEL_box_specifya = NULL;
GLUI_Panel *PANEL_box_specifyb = NULL;
GLUI_Panel *PANEL_box_specifyab = NULL;
GLUI_Panel *PANEL_load_data = NULL;
GLUI_Panel *PANEL_intersection_box = NULL;

GLUI_Spinner *SPINNER_partdrawskip = NULL;
GLUI_Spinner *SPINNER_sliceval_ndigits = NULL;
Expand Down Expand Up @@ -5293,23 +5289,19 @@ hvacductboundsCPP.setup("hvac", ROLLOUT_hvacduct, hvacductbounds_cpp, nhvacductb
INSERT_ROLLOUT(ROLLOUT_box_specify, glui_bounds);
ADDPROCINFO(loadprocinfo, nloadprocinfo, ROLLOUT_box_specify, LOAD_SPACEBOUND_ROLLOUT, glui_bounds);

PANEL_box_specifyab = glui_bounds->add_panel_to_panel(ROLLOUT_box_specify, "", false);
PANEL_box_specifya = glui_bounds->add_panel_to_panel(PANEL_box_specifyab, "", false);
glui_bounds->add_column_to_panel(PANEL_box_specifyab, false);
PANEL_load_data = glui_bounds->add_panel_to_panel(PANEL_box_specifyab, "Load data for meshes that", true);
PANEL_intersection_box = glui_bounds->add_panel_to_panel(ROLLOUT_box_specify, "", false);
PANEL_intersection_box->set_alignment(GLUI_ALIGN_LEFT);
CHECKBOX_show_intersected_meshes = glui_bounds->add_checkbox_to_panel(PANEL_intersection_box, "Show selected meshes", &show_intersected_meshes, USEMESH_DRAW_MESH, MeshBoundCB);
glui_bounds->add_checkbox_to_panel(PANEL_intersection_box, "Show selected mesh indices", &show_mesh_labels);
CHECKBOX_load_only_when_unloaded = glui_bounds->add_checkbox_to_panel(PANEL_intersection_box, "Load a file only if unloaded", &load_only_when_unloaded, USEMESH_LOAD_WHEN_LOADED, MeshBoundCB);

CHECKBOX_show_intersection_box = glui_bounds->add_checkbox_to_panel(PANEL_box_specifya, "Show intersection box", &show_intersection_box, USEMESH_DRAW_BOX, MeshBoundCB);
CHECKBOX_show_intersected_meshes = glui_bounds->add_checkbox_to_panel(PANEL_box_specifya, "Show specified meshes", &show_intersected_meshes, USEMESH_DRAW_MESH, MeshBoundCB);
glui_bounds->add_checkbox_to_panel(PANEL_box_specifya, "Show specified mesh indices", &show_mesh_labels);
CHECKBOX_load_only_when_unloaded = glui_bounds->add_checkbox_to_panel(PANEL_box_specifya, "Load a file only if unloaded", &load_only_when_unloaded, USEMESH_LOAD_WHEN_LOADED, MeshBoundCB);
PANEL_mesh = glui_bounds->add_panel_to_panel(ROLLOUT_box_specify, "Select meshes by specifying the intersection box");
RADIO_intersect_option = glui_bounds->add_radiogroup_to_panel(PANEL_mesh, &glui_mesh_intersection_option, USEMESH_XYZ, MeshBoundCB);
glui_bounds->add_radiobutton_to_group(RADIO_intersect_option, _("Select meshes that intersect the box"));
glui_bounds->add_radiobutton_to_group(RADIO_intersect_option, _("Select meshes that are completely within the box"));
CHECKBOX_show_intersection_box = glui_bounds->add_checkbox_to_panel(PANEL_mesh, "Show intersection box", &show_intersection_box, USEMESH_DRAW_BOX, MeshBoundCB);

RADIO_intersect_option = glui_bounds->add_radiogroup_to_panel(PANEL_load_data, &glui_mesh_intersection_option, USEMESH_XYZ, MeshBoundCB);
glui_bounds->add_radiobutton_to_group(RADIO_intersect_option, _("intersect box"));
glui_bounds->add_radiobutton_to_group(RADIO_intersect_option, _("are completely within box"));


PANEL_mesh = glui_bounds->add_panel_to_panel(ROLLOUT_box_specify, "", false);
PANEL_mesh_minmax = glui_bounds->add_panel_to_panel(PANEL_mesh, "Specify meshes by setting the intersection box");
PANEL_mesh_minmax = glui_bounds->add_panel_to_panel(PANEL_mesh, "",false);
PANEL_meshxyz[0] = glui_bounds->add_panel_to_panel(PANEL_mesh_minmax, "", false);
PANEL_meshxyz[2] = glui_bounds->add_panel_to_panel(PANEL_mesh_minmax, "", false);
PANEL_meshxyz[4] = glui_bounds->add_panel_to_panel(PANEL_mesh_minmax, "", false);
Expand Down Expand Up @@ -5337,7 +5329,7 @@ hvacductboundsCPP.setup("hvac", ROLLOUT_hvacduct, hvacductbounds_cpp, nhvacductb
SPINNER_meshclip[4]->set_float_limits(zbar0FDS, zbarFDS);
SPINNER_meshclip[5]->set_float_limits(zbar0FDS, zbarFDS);

PANEL_setmesh = glui_bounds->add_panel_to_panel(PANEL_mesh, "or by specifying mesh(es) directly", true);
PANEL_setmesh = glui_bounds->add_panel_to_panel(ROLLOUT_box_specify, "or by selecting mesh(es) directly", true);

PANEL_addmesh = glui_bounds->add_panel_to_panel(PANEL_setmesh, "", false);
SPINNER_set_mesh = glui_bounds->add_spinner_to_panel(PANEL_addmesh, "mesh:", GLUI_SPINNER_INT, &set_mesh);
Expand Down

0 comments on commit a0fd700

Please sign in to comment.