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

@@ -25,6 +25,12 @@ namespace Ui {
class MasterPropertiesWidget;
}
/**
* @brief The MasterPropertiesWidget class
* This class is a widget for make link between a master element with several slave element.
* This class embenddedthe undo/redo command when apply new connection.
*/
class MasterPropertiesWidget : public QWidget
{
Q_OBJECT
@@ -33,16 +39,21 @@ class MasterPropertiesWidget : public QWidget
explicit MasterPropertiesWidget(Element *elmt, QWidget *parent = 0);
~MasterPropertiesWidget();
void apply();
void reset();
private:
void buildInterface();
private slots:
void on_link_button_clicked();
void on_unlink_button_clicked();
void showElementFromLWI(QListWidgetItem *lwi);
private:
Ui::MasterPropertiesWidget *ui;
Element *element_;
QHash <QListWidgetItem *, Element *> lwi_hash;
};
#endif // MASTERPROPERTIESWIDGET_H