NDEVR
API Documentation
GridlinesDialog.h
1#pragma once
2#include <NDEVR/QTDesignObject.h>
3#include <NDEVR/DesignObjectWidgetInterface.h>
4#include <NDEVR/UUID.h>
5#include <QWidget>
6#if NDEVR_CROSS_SECTION
7namespace Ui
8{
9 class GridlineDialogUI;
10}
11namespace NDEVR
12{
13 class QCustomLineEdit;
14 class Toggle;
18 class GridlinesDialog : public QWidget, public DesignObjectWidgetInterface
19 {
20 Q_OBJECT
21 public:
26 GridlinesDialog(QWidget* parent = nullptr);
30 void updateSpacingFromDialog();
35 [[nodiscard]] Vector<4, fltp08> currentSpacing() const;
40 Material materialFromTarget() const;
45 void updateSpacingFromDialog(uint01 axis);
50 void onTargetUpdated(UUID id) override;
55 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object) override;
60 virtual void addTarget(const DynamicPointer<QTDesignObject>& object) override;
65 void setUseGridlines(bool use_gridlines);
66 protected slots:
70 void orientationDialogUpdated() const;
71 protected:
72 Ui::GridlineDialogUI* ui;
73 QCustomLineEdit* m_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
74 Toggle* m_use_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
75 UUID m_material;
76 };
77}
78#endif
A base class for interacting with one or more DesignObjects.
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
A Button that toggles between on and off.
Definition Toggle.h:50
The primary namespace for the NDEVR SDK.