Element editor : replace home made property by Q_PROPERTY for all primitive,

Add combo box for input to set the tagg (nothing or label, actually)
Remove terminal text because unused.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3088 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-05-29 13:46:04 +00:00
parent f639871057
commit 6f51f1eb0d
49 changed files with 777 additions and 1342 deletions

View File

@@ -31,9 +31,9 @@ class Terminal : public QGraphicsItem {
// constructors, destructor
public:
Terminal(QPointF, QET::Orientation, Element * = 0, Diagram * = 0);
Terminal(qreal, qreal, QET::Orientation, Element * = 0, Diagram * = 0);
Terminal(QPointF, QET::Orientation, QString number, QString name, bool hiddenName, Element * = 0, Diagram * = 0);
Terminal(QPointF, Qet::Orientation, Element * = 0, Diagram * = 0);
Terminal(qreal, qreal, Qet::Orientation, Element * = 0, Diagram * = 0);
Terminal(QPointF, Qet::Orientation, QString number, QString name, bool hiddenName, Element * = 0, Diagram * = 0);
virtual ~Terminal();
private:
@@ -60,7 +60,7 @@ class Terminal : public QGraphicsItem {
Element *parentElement() const;
QList<Conductor *> conductors() const;
QET::Orientation orientation() const;
Qet::Orientation orientation() const;
QPointF dockConductor() const;
QString number() const;
QString name() const;
@@ -108,7 +108,7 @@ class Terminal : public QGraphicsItem {
/// docking point for parent element
QPointF dock_elmt_;
/// terminal orientation
QET::Orientation ori_;
Qet::Orientation ori_;
/// List of conductors attached to the terminal
QList<Conductor *> conductors_;
/// Pointer to a rectangle representing the terminal bounding rect;
@@ -128,7 +128,7 @@ class Terminal : public QGraphicsItem {
bool name_terminal_hidden;
private:
void init(QPointF, QET::Orientation, QString number, QString name, bool hiddenName);
void init(QPointF, Qet::Orientation, QString number, QString name, bool hiddenName);
};
/**