API Documentation
Loading...
Searching...
No Matches
GridlinesDialog.h
Go to the documentation of this file.
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;
15 class GridlinesDialog : public QWidget, public DesignObjectWidgetInterface
16 {
17 Q_OBJECT
18 public:
19 GridlinesDialog(QWidget* parent = nullptr);
20 void updateSpacingFromDialog();
21 [[nodiscard]] Vector<4, fltp08> currentSpacing() const;
22 Material materialFromTarget() const;
23 void updateSpacingFromDialog(uint01 axis);
24 void onTargetUpdated(UUID id) override;
25 virtual void removeTarget(const DynamicPointer<QTDesignObject>& object) override;
26 virtual void addTarget(const DynamicPointer<QTDesignObject>& object) override;
27 void setUseGridlines(bool use_gridlines);
28 protected slots:
29
30 void orientationDialogUpdated() const;
31
32 protected:
33 Ui::GridlineDialogUI* ui;
34 QCustomLineEdit* m_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
35 Toggle* m_use_spacing[4] = { nullptr, nullptr, nullptr, nullptr };
36 UUID m_material;
37 };
38}
39#endif
Definition ACIColor.h:37
Definition FontEditor.h:6