Cross ref : add commutator/button as new type of master

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3927 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun 2015-04-29 15:33:21 +00:00
parent 57b7026b8e
commit 0aa162a245
3 changed files with 7 additions and 2 deletions

View File

@ -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"));
}
/**

View File

@ -106,7 +106,7 @@ void XRefProperties::fromXml(const QDomElement &xml_element) {
QHash<QString, XRefProperties> XRefProperties::defaultProperties() {
QHash <QString, XRefProperties> hash;
QStringList keys;
keys << "coil" << "protection";
keys << "coil" << "protection" << "commutator";
foreach (QString key, keys) {
XRefProperties properties;

View File

@ -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();
}