Commit 64f06da2 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: In the plc editor, display only one of connection/nav/node palettes at a time.

parent 993ff7af
......@@ -292,11 +292,12 @@ void WFoeQtWidget::activate_palette_con()
if (sender() != foe->view_conpal) {
foe->view_conpal->setChecked(true);
}
bool set = foe->view_conpal->isChecked();
foe->con_palette->setVisible(set);
foe->con_palette_managed = set;
foe->con_palctx->set_inputfocus(set);
foe->nav_palette->setVisible(false);
foe->node_palette->setVisible(false);
foe->con_palette->setVisible(true);
foe->con_palette_managed = 1;
foe->con_palctx->set_inputfocus(1);
}
// Display or hide the connection palette.
......@@ -305,11 +306,12 @@ void WFoeQtWidget::activate_palette_object()
if (sender() != foe->view_objectpal) {
foe->view_objectpal->setChecked(true);
}
bool set = foe->view_objectpal->isChecked();
foe->node_palette->setVisible(set);
foe->node_palette_managed = set;
foe->node_palctx->set_inputfocus(set);
foe->con_palette->setVisible(false);
foe->nav_palette->setVisible(false);
foe->node_palette->setVisible(true);
foe->node_palette_managed = 1;
foe->node_palctx->set_inputfocus(1);
}
void WFoeQtWidget::activate_confeedback(bool set)
......@@ -348,11 +350,12 @@ void WFoeQtWidget::activate_palette_plant()
if (sender() != foe->view_plantpal) {
foe->view_plantpal->setChecked(true);
}
bool set = foe->view_plantpal->isChecked();
foe->nav_palette->setVisible(set);
foe->nav_palette_managed = set;
foe->navctx->set_inputfocus(set);
foe->con_palette->setVisible(false);
foe->node_palette->setVisible(false);
foe->nav_palette->setVisible(true);
foe->nav_palette_managed = 1;
foe->navctx->set_inputfocus(1);
}
void WFoeQtWidget::activate_refcon(bool set)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment