22 #ifndef ITEMSDIALOGLIST_H
23 #define ITEMSDIALOGLIST_H
25 #ifndef DOXYGEN_NOTFOR_DEVEL
27 #include <tulip/tulipconf.h>
29 #include <QtGui/QListWidget>
30 #include <QtGui/QMouseEvent>
31 #include <QtGui/QDragEnterEvent>
32 #include <QtGui/QDropEvent>
33 #include <QtGui/QMouseEvent>
34 #include <QtCore/QObject>
35 #include <QtCore/QHash>
46 class TLP_QT_SCOPE ItemsListWidget :
public QListWidget {
52 ItemsListWidget(QWidget *parent = NULL,
const unsigned int maxListSize = 0);
56 bool addItemList(QString item);
58 void deleteItemList(QListWidgetItem *item);
62 void setMaxListSize(
const unsigned int maxListSize) {
63 this->maxListSize = maxListSize;
65 unsigned int getMaxListSize()
const {
71 void mousePressEvent(QMouseEvent *event);
72 void mouseMoveEvent(QMouseEvent *event);
73 void dragEnterEvent(QDragEnterEvent *event);
74 void dragMoveEvent(QDragMoveEvent *event);
75 void dropEvent(QDropEvent *event);
79 void startDrag(QListWidgetItem *item);
80 void changeStatus(QListWidgetItem *item);
81 void dragMoveOrEnterEvent(QDragMoveEvent *event);
83 QHash<QString,itemInfo> hashDataBase;
84 unsigned int maxListSize;
89 #endif // DOXYGEN_NOTFOR_DEVEL