master propertie widget:

can link/unlink slave to master
can show element by double clic item on the list
reset modification 


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2878 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-02-26 23:57:22 +00:00
parent 322ba055c0
commit bf707cca2e
7 changed files with 180 additions and 13 deletions

View File

@@ -591,6 +591,7 @@ class LinkElementsCommand : public QUndoCommand {
public:
// constructor destructor
LinkElementsCommand (Element *elmt1, Element *elmt2, QUndoCommand *parent = 0);
LinkElementsCommand (Element *elmt1, QList <Element *> &elmtList, QUndoCommand *parent = 0);
virtual ~LinkElementsCommand();
//methods
virtual void undo();
@@ -599,7 +600,8 @@ class LinkElementsCommand : public QUndoCommand {
private:
//attributes
Diagram *diagram_;
Element *elmt_1, *elmt_2, *previous_report;
Element *element_, *previous_report;
QList <Element *> elmt_list;
bool first_redo;
};
@@ -607,6 +609,7 @@ class unlinkElementsCommand : public QUndoCommand {
public:
//constructor destructor
unlinkElementsCommand (Element *elmt1, Element *elmt2 = 0, QUndoCommand *parent = 0);
unlinkElementsCommand (Element *elmt1, QList <Element *> &elmtList, QUndoCommand *parent = 0);
virtual ~unlinkElementsCommand();
//methods
virtual void undo();