Radium Engine  1.5.20
Loading...
Searching...
No Matches
MatrixEditor.hpp
1#pragma once
2#include <Gui/RaGui.hpp>
3
4#include <QDoubleValidator>
5#include <QWidget>
6
7#include <Core/Types.hpp>
8#include <stack>
9
10namespace Ra {
11namespace Gui {
12namespace Widgets {
16class RA_GUI_API MatrixEditor : public QWidget
17{
18 Q_OBJECT
19
20 public:
24 explicit MatrixEditor( const Ra::Core::MatrixN& matrix, int dec, QWidget* parent = nullptr );
25 MatrixEditor( const MatrixEditor& ) = delete;
26 MatrixEditor& operator=( const MatrixEditor& ) = delete;
27 MatrixEditor( MatrixEditor&& ) = delete;
28 MatrixEditor&& operator=( MatrixEditor&& ) = delete;
32 const Ra::Core::MatrixN& matrix() const;
33
37 int decimals() const;
38
43 void setDecimals( int prec );
44
45 signals:
46 void valueChanged( const Ra::Core::MatrixN& );
47
48 private:
49 Ra::Core::MatrixN m_matrix;
50};
51} // namespace Widgets
52} // namespace Gui
53} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3