mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-13 10:51:12 +00:00
* unify footer adds "Done" Buttons, standardize "Reset" Buttons, adds disabled logic to "Reset" Buttons * adds ImGuiWrapper::COL_WARNING = ColorRGB:Warning, replaces ColorRGB::Warning * consistently display warnings, moves assermbly warning after footer, make cut warnings warning color * adds separator above cut warnings * adds tooltip entry in move, rotate & scale for auto-drop * use wrapper tooltip in wrapper->button for consistent text color * restructures brim ears button, renames "Reset" button in painting tools to "Erase All", small styling fixes * small adjustments, moves "Edge detection" checkbox in painting tool underneath, moves "Section View" in Brim ears tool after buttons, moves warnings in Assemble tool under footer * small brim ear tool structure changes, adds separator between "Head Diameter" and "Max angle", adds tooltip to "Auto-generate" button, rewords shortcut descriptions to match other tools --------- Co-authored-by: Hanno Witzleb <hannowitzleb@gmail.com>
32 lines
841 B
C++
32 lines
841 B
C++
#ifndef GL_GIZMO_UTIL_HPP
|
|
#define GL_GIZMO_UTIL_HPP
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <wx/string.h>
|
|
#include "imgui.h"
|
|
|
|
namespace Slic3r::GUI {
|
|
|
|
// Forward declaration
|
|
class ImGuiWrapper;
|
|
class GLCanvas3D;
|
|
|
|
namespace GLGizmoUtils {
|
|
|
|
// Renders a tooltip button using the provided shortcuts
|
|
void render_tooltip_button(
|
|
ImGuiWrapper* imgui_wrapper, const GLCanvas3D& canvas, const std::vector<std::pair<wxString, wxString>>& shortcuts, float x, float y);
|
|
|
|
// Sets up ImGui to render buttons that are right-aligned within the current window, using the provided labels to calculate spacing.
|
|
void begin_right_aligned_buttons(const std::vector<wxString>& labels);
|
|
|
|
void push_orca_button_style();
|
|
|
|
void pop_orca_button_style();
|
|
|
|
} // namespace GLGizmoUtils
|
|
} // namespace Slic3r::GUI
|
|
|
|
#endif // GL_GIZMO_UTIL_HPP
|