#include <qdialog.h>
#include <qlistbox.h>
+#include <qstringlist.h>
+#include <qlineedit.h>
+#include <qcombobox.h>
class SUPERVGUI_CanvasNode;
-class QLineEdit;
-class QComboBox;
/**
* Simple redefinition of ListBoxItem for storing ports name and type without having to parce it
void removePort( QListBox* );
void moveUp( QListBox* );
void moveDown( QListBox* );
+ void moveItem( QListBox* theLB, const int from, const int to );
private:
void init();
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;
};