| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef LC_ENTITYPROPERTIESEDITORWIDGET_H |
| | #define LC_ENTITYPROPERTIESEDITORWIDGET_H |
| | #include <QWidget> |
| | #include <QToolButton> |
| |
|
| | #include "lc_actioncontext.h" |
| | #include "lc_entitypropertieseditorsupport.h" |
| | #include "rs_entity.h" |
| |
|
| | class LC_PointPickButton; |
| |
|
| | class LC_EntityPropertiesEditorWidget: public QWidget, |
| | public LC_EntityPropertiesEditorSupport{ |
| | Q_OBJECT |
| | public: |
| | explicit LC_EntityPropertiesEditorWidget(QWidget* parent); |
| | virtual void setEntity(RS_Entity* entity) = 0; |
| | virtual void updateEntityData() {}; |
| | void interactiveInputUpdate(LC_ActionContext::InteractiveInputInfo::InputType inputType, |
| | const QString &tag, double valueOne, double valueTwo); |
| | virtual void setupInteractiveInputWidgets() {}; |
| | signals: |
| | void interactiveInputRequested(LC_ActionContext::InteractiveInputInfo::InputType inputType, QString tag); |
| | protected slots: |
| | void onInteractiveInputButtonClicked(bool checked); |
| | void pickDistanceSetup(QToolButton* button, const QString &tag, QLineEdit* lineEditOne, QLineEdit* lineEditTwo = nullptr); |
| | void pickAngleSetup(QToolButton* button, const QString &tag, QLineEdit* lineEditOne, QLineEdit* lineEditTwo = nullptr); |
| | void pickPointSetup(LC_PointPickButton* button, const QString &tag, QLineEdit* lineEditOne, QLineEdit* lineEditTwo = nullptr); |
| | protected: |
| | void setupInteractiveInputControls(QToolButton* button, LC_ActionContext::InteractiveInputInfo::InputType inputType, const QString &tag, |
| | QLineEdit* lineEditOne, QLineEdit* lineEditTwo = nullptr); |
| | }; |
| |
|
| | #endif |
| |
|