33#include <NDEVR/QTModelManager.h>
34#if NDEVR_VIEWPORT && NDEVR_MEASURE_MODELS
35#include <NDEVR/MouseController.h>
36#include <NDEVR/MeasurementManager.h>
37#include <NDEVR/FileFormat.h>
42 class MeasurementToolsUI;
50 class QTResourceListener;
55 class NDEVR_API MeasurementCommandsWidget :
public QWidget
59 MeasurementCommandsWidget(QTModelManager* manager, QWidget* parent =
nullptr);
60 ~MeasurementCommandsWidget();
61 void setupRibbonStep(RibbonGroup* group);
62 void setupRibbon(RibbonGroup* group,
bool setup_start_end);
63 void setDefaultExportFormat(
const FileFormat& format,
bool select_current_by_default =
true);
64 void setControl(MeasurementManager::MeasureMode mode);
65 void setControlEnabled(
bool enabled);
67 void hideEvent(QHideEvent* event)
override;
68 void showEvent(QShowEvent* event)
override;
69 MeasurementManager::MeasureMode mode()
const;
70 void setRootModel(
const Model& model);
71 bool canHandle(
const UUID&
id)
const;
72 UUID rootModelID()
const;
75 void refreshUI(
bool force);
76 String modeIcon(MeasurementManager::MeasureMode spec);
78 bool requestVisibleSignal(
bool visible);
79 void controlModeSet(MeasurementManager::MeasureMode mode);
81 void setupRibbon(uint04 index, RibbonGroup* group);
83 Dictionary<MeasurementManager::MeasureMode, QPointer<QWidget>> m_custom_draw_widgets;
84 Buffer<DynamicPointer<MouseController>> m_mouse_controllers;
85 Buffer<Buffer<Button*>> m_mode_buttons;
86 Buffer<Buffer<Button*>> m_step_buttons;
87 Buffer<Buffer<Buffer<QAction*>>> m_step_actions;
88 Buffer<Button*> m_export_buttons;
89 Buffer<Button*> m_clear_buttons;
90 Buffer<Button*> m_new_buttons;
91 Buffer<uint04> m_key_draw_action_indices;
92 MeasurementManager m_geometry_controller;
93 QTModelManager* m_manager;
94 Ui::MeasurementToolsUI* ui;
95 QTResourceListener* m_enabled_listener;
98 MeasurementManager::MeasureMode m_last_mode;
99 FileFormat m_default_export_format;
103 bool m_export_current_by_default;
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Definition FontEditor.h:6