mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -89,6 +89,7 @@ void ElementPropertiesEditorWidget::setUpInterface() {
|
|||||||
//Master option
|
//Master option
|
||||||
ui -> m_master_type_cb -> addItem(tr("Bobine"), QVariant("coil"));
|
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("Organe de protection"), QVariant("protection"));
|
||||||
|
ui -> m_master_type_cb -> addItem(tr("Commutateur / bouton"), QVariant("commutator"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ void XRefProperties::fromXml(const QDomElement &xml_element) {
|
|||||||
QHash<QString, XRefProperties> XRefProperties::defaultProperties() {
|
QHash<QString, XRefProperties> XRefProperties::defaultProperties() {
|
||||||
QHash <QString, XRefProperties> hash;
|
QHash <QString, XRefProperties> hash;
|
||||||
QStringList keys;
|
QStringList keys;
|
||||||
keys << "coil" << "protection";
|
keys << "coil" << "protection" << "commutator";
|
||||||
|
|
||||||
foreach (QString key, keys) {
|
foreach (QString key, keys) {
|
||||||
XRefProperties properties;
|
XRefProperties properties;
|
||||||
|
|||||||
@@ -87,11 +87,15 @@ void XRefPropertiesWidget::setReadOnly(bool ro) {
|
|||||||
* @brief XRefPropertiesWidget::buildUi
|
* @brief XRefPropertiesWidget::buildUi
|
||||||
* Build some widget of this ui.
|
* 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("Bobine"), "coil");
|
||||||
ui -> m_type_cb -> addItem(tr("Organe de protection"), "protection");
|
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("En bas de page"), "bottom");
|
||||||
ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'élément"), "label");
|
ui -> m_snap_to_cb -> addItem(tr("Sous le label de l'élément"), "label");
|
||||||
|
|
||||||
m_previous_type_index = ui -> m_type_cb -> currentIndex();
|
m_previous_type_index = ui -> m_type_cb -> currentIndex();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user