X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_ManagePortsDlg.h;h=345d1cb424f8b3819e5476761b41638aaa50d810;hb=cbb0219fe6d6bf11f98f2306c2855fef1eaa2d44;hp=5c7039119266e8cd5c3e68043fc7003d4bac48e8;hpb=9e312aa85e1871ef727bdf6a924a6bcb8958d326;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.h b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.h index 5c70391..345d1cb 100644 --- a/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.h +++ b/src/SUPERVGUI/SUPERVGUI_ManagePortsDlg.h @@ -13,10 +13,11 @@ #include #include +#include +#include +#include class SUPERVGUI_CanvasNode; -class QLineEdit; -class QComboBox; /** * Simple redefinition of ListBoxItem for storing ports name and type without having to parce it @@ -66,6 +67,7 @@ protected: void removePort( QListBox* ); void moveUp( QListBox* ); void moveDown( QListBox* ); + void moveItem( QListBox* theLB, const int from, const int to ); private: void init(); @@ -78,7 +80,29 @@ private: QListBox* myInList; QListBox* myOutList; QListBoxItem* myLastItem; - bool myFromItemChanged; +}; + +/*! + * Port parameters dialog definition (taken from SUPERVGUI_Node.h without change) + */ +class SUPERVGUI_PortParamsDlg: public QDialog { + Q_OBJECT + + public: + SUPERVGUI_PortParamsDlg(const QStringList& thePortsNames); + ~SUPERVGUI_PortParamsDlg() {}; + + QString getName() { return myNameTxt->text(); } + QString getType() { return myTypeTxt->currentText(); } + + public slots: + void clickOnOk(); + + + private: + QLineEdit* myNameTxt; + QComboBox* myTypeTxt; + QStringList myPortsNames; };