Skip to content

[Viewer] Option Open/Close dashboard area - #12636

Merged
OhadMeir merged 5 commits into
realsenseai:developmentfrom
Tamir91:new-dashboard-appereance
Feb 8, 2024
Merged

OhadMeir merged 5 commits into
realsenseai:developmentfrom
Tamir91:new-dashboard-appereance

Conversation

@Tamir91

@Tamir91 Tamir91 commented Feb 6, 2024

Copy link
Copy Markdown
Contributor

Tracked on [LRS-1021]
image
image

The for loop is surrounded by an if statement that prevents dashboard drawing until the dashboard is fully open.
@Tamir91
Tamir91 requested a review from Nir-Az February 6, 2024 10:15
Comment thread common/device-model.h Outdated
static const char* last_calib_notice{ "viewer_model.last_calib_notice" };
static const char* is_measuring{ "viewer_model.is_measuring" };
static const char* output_open{ "viewer_model.output_open" };
static const char* dashboard_open{ "viewer_model.dashbord_open" };

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread common/output-model.cpp
search_line = config_file::instance().get_or_default(
configurations::viewer::search_term, std::string(""));
is_dashboard_open = config_file::instance().get_or_default(
configurations::viewer::dashboard_open, true );

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dashboard

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I can't find the issue here.

@Nir-Az
Nir-Az requested a review from OhadMeir February 6, 2024 14:07
@Tamir91
Tamir91 requested a review from Nir-Az February 7, 2024 13:56
@Nir-Az
Nir-Az requested review from Nir-Az and removed request for Nir-Az February 7, 2024 14:34
Comment thread common/output-model.cpp Outdated

auto size = ImGui::CalcTextSize(name.c_str());
ImGui::SetCursorPos(ImVec2( r.w / 2 - size.x / 2, 5 ));
auto collapse_buton_h = 28 + 3;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is 28 and what is 3?
Is it the same 3 used on line 1050 ImGui::SetCursorPosY( 3.f + collapse_buton_h );

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 28 is the button size. It was declared in another function. Should we do it global for 1 usage only?

I can add a comment that explains what is 28.

  • 3 is a space, it does not add a significant difference. I can remove it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just add a comment // Dashboard button size plus some spacing

Comment thread common/output-model.cpp Resolved
Type of button changed to float
Comment added
@OhadMeir
OhadMeir merged commit 69e1d41 into realsenseai:development Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants