Thumbnail me  3.0
D:/Thumbnail/Thumbnailme/ThumbnailListwidget.h
Go to the documentation of this file.
00001 /***************************************************************************/
00021 #ifndef THUMBNAILLISTWIDGET_H
00022 #define THUMBNAILLISTWIDGET_H
00023 
00024 #include "defines.h"
00025 #include "libQt+.h"
00026 #include "ThumbnailItem.h"
00027 
00028 #include <QListWidget>
00029 #include <QLinkedList>
00030 #include <QMessageBox>
00031 #include <QKeyEvent>
00032 
00033 class ThumbnailListWidget : public QListWidget
00034 {
00035     Q_OBJECT
00036 
00037     public:
00038     explicit ThumbnailListWidget(QWidget * parent = 0);
00039     virtual ~ThumbnailListWidget();
00040 
00041     protected:
00042     void keyPressEvent ( QKeyEvent * event );
00043 
00044     public:
00045     void addItem  (QString item);
00046     void addItem  (ThumbnailItem* item);
00047     void addItems (QStringList items);
00048     QLinkedList <ThumbnailItem*> getItemsListWidget();
00049 
00050     public slots:
00051     void removeItemSelection();
00052 
00053     signals:
00057     void itemDeleted();
00058 };
00059 
00060 #endif // THUMBNAILLISTWIDGET_H
 All Classes Files Functions Enumerations