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;
51 class NDEVR_API MeasurementCommandsWidget :
public QWidget
55 MeasurementCommandsWidget(QTModelManager* manager, QWidget* parent =
nullptr);
56 ~MeasurementCommandsWidget();
57 void setupRibbonStep(RibbonGroup* group);
58 void setupRibbon(RibbonGroup* group,
bool setup_start_end);
59 void setDefaultExportFormat(
const FileFormat& format,
bool select_current_by_default =
true);
60 void setControl(MeasurementManager::MeasureMode mode);
61 void setControlEnabled(
bool enabled);
63 void hideEvent(QHideEvent* event)
override;
64 void showEvent(QShowEvent* event)
override;
65 MeasurementManager::MeasureMode mode()
const;
66 void setRootModel(
const Model& model);
67 bool canHandle(
const UUID&
id)
const;
68 UUID rootModelID()
const;
71 void refreshUI(
bool force);
72 String modeIcon(MeasurementManager::MeasureMode spec);
74 bool requestVisibleSignal(
bool visible);
75 void controlModeSet(MeasurementManager::MeasureMode mode);
77 void setupRibbon(uint04 index, RibbonGroup* group);
79 Dictionary<MeasurementManager::MeasureMode, QPointer<QWidget>> m_custom_draw_widgets;
80 Buffer<DynamicPointer<MouseController>> m_mouse_controllers;
81 Buffer<Buffer<Button*>> m_mode_buttons;
82 Buffer<Buffer<Button*>> m_step_buttons;
83 Buffer<Buffer<Buffer<QAction*>>> m_step_actions;
84 Buffer<Button*> m_export_buttons;
85 Buffer<Button*> m_clear_buttons;
86 Buffer<Button*> m_new_buttons;
87 Buffer<uint04> m_key_draw_action_indices;
88 MeasurementManager m_geometry_controller;
89 QTModelManager* m_manager;
90 Ui::MeasurementToolsUI* ui;
91 QTResourceListener* m_enabled_listener;
94 MeasurementManager::MeasureMode m_last_mode;
95 FileFormat m_default_export_format;
99 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:115
Definition FontEditor.h:6