xref properties widget: user can define the behavior of xref for coil and protection.

They don't work now with official collection, because we must to update the information of element (type coil or protection).
You can test it by creating new master element (dont forget to define the master type, coil or protection).


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3185 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-07-03 08:52:14 +00:00
parent 8c5f953897
commit 68e9d33e88
14 changed files with 180 additions and 75 deletions

View File

@@ -34,20 +34,27 @@ class XRefPropertiesWidget : public QWidget
Q_OBJECT
public:
XRefPropertiesWidget(XRefProperties properties = XRefProperties(), QWidget *parent = 0);
XRefPropertiesWidget(QHash <QString, XRefProperties> properties = QHash <QString, XRefProperties>(), QWidget *parent = 0);
~XRefPropertiesWidget();
void setProperties (const XRefProperties &properties);
XRefProperties properties();
void setProperties (const QHash <QString, XRefProperties> &properties);
QHash <QString, XRefProperties> properties();
void setReadOnly (bool = true);
private:
void buildUi();
void saveProperties(int index);
private slots:
void updateDisplay();
void typeChanged();
private:
Ui::XRefPropertiesWidget *ui;
XRefProperties m_properties;
QHash <QString, XRefProperties> m_properties;
int m_previous_type_index;
};
#endif // XREFPROPERTIESWIDGET_H