diff --git a/sources/editor/ui/elementpropertieseditorwidget.cpp b/sources/editor/ui/elementpropertieseditorwidget.cpp index e3bf799ec..285b93bef 100644 --- a/sources/editor/ui/elementpropertieseditorwidget.cpp +++ b/sources/editor/ui/elementpropertieseditorwidget.cpp @@ -89,6 +89,7 @@ void ElementPropertiesEditorWidget::setUpInterface() { //Master option ui -> m_master_type_cb -> addItem(tr("Bobine"), QVariant("coil")); ui -> m_master_type_cb -> addItem(tr("Organe de protection"), QVariant("protection")); + ui -> m_master_type_cb -> addItem(tr("Commutateur / bouton"), QVariant("commutator")); } /** diff --git a/sources/properties/xrefproperties.cpp b/sources/properties/xrefproperties.cpp index 4690d38f1..6d215454f 100644 --- a/sources/properties/xrefproperties.cpp +++ b/sources/properties/xrefproperties.cpp @@ -106,7 +106,7 @@ void XRefProperties::fromXml(const QDomElement &xml_element) { QHash XRefProperties::defaultProperties() { QHash hash; QStringList keys; - keys << "coil" << "protection"; + keys << "coil" << "protection" << "commutator"; foreach (QString key, keys) { XRefProperties properties; diff --git a/sources/ui/xrefpropertieswidget.cpp b/sources/ui/xrefpropertieswidget.cpp index 2d46b96e9..5bdbfd197 100644 --- a/sources/ui/xrefpropertieswidget.cpp +++ b/sources/ui/xrefpropertieswidget.cpp @@ -87,11 +87,15 @@ void XRefPropertiesWidget::setReadOnly(bool ro) { * @brief XRefPropertiesWidget::buildUi * Build some widget of this ui. */ -void XRefPropertiesWidget::buildUi() { +void XRefPropertiesWidget::buildUi() +{ ui -> m_type_cb -> addItem(tr("Bobine"), "coil"); ui -> m_type_cb -> addItem(tr("Organe de protection"), "protection"); + ui -> m_type_cb -> addItem(tr("Commutateur / bouton"), "commutator"); + ui -> m_snap_to_cb -> addItem(tr("En bas de page"), "bottom"); ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'élément"), "label"); + m_previous_type_index = ui -> m_type_cb -> currentIndex(); }