21 #include <QMainWindow>
24 #include <ui_roleChoiceDlg.h>
31 : QDialog(app ? app->getMainWindow() : 0, Qt::Tool),
32 m_gui(new Ui_RoleChoiceDialog),
34 m_firstEnt(firstEntity),
35 m_secondEnt(secondEntity),
36 m_useInputOrder(true) {
39 connect(
m_gui->swapButton, &QAbstractButton::clicked,
this,
42 m_gui->firstlabel->setText(firstRole);
43 m_gui->secondlabel->setText(secondRole);
89 m_gui->firstLineEdit->setText(
"No entity!");
100 m_gui->secondLineEdit->setText(
"No entity!");
virtual void setTempColor(const ecvColor::Rgb &col, bool autoActivate=true)
Sets current temporary (unique)
virtual void setVisible(bool state)
Sets entity visibility.
virtual void enableTempColor(bool state)
Set temporary color activation state.
Hierarchical CLOUDVIEWER Object.
virtual QString getName() const
Returns object name.
virtual void setEnabled(bool state)
Sets the "enabled" property.
ccHObject * getSecondEntity()
Returns the second entity (new order)
ecvMainAppInterface * m_app
ccOrderChoiceDlg(ccHObject *firstEntity, QString firstRole, ccHObject *secondEntity, QString secondRole, ecvMainAppInterface *app=0)
Default constructor.
void swap()
Swaps the entities.
ccHObject * getFirstEntity()
Returns the first entity (new order)
void setColorsAndLabels()
Sets the right colors to the entities and updates the dialog.
Ui_RoleChoiceDialog * m_gui
virtual ~ccOrderChoiceDlg()
Destructor.
static void SetButtonColor(QAbstractButton *button, const QColor &col)
Sets a button background color.
Main application interface (for plugins)
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
constexpr Rgb red(MAX, 0, 0)
constexpr Rgb yellow(MAX, MAX, 0)