summaryrefslogtreecommitdiff
path: root/dgedit/filelist.h
diff options
context:
space:
mode:
authordeva <deva>2009-12-01 09:08:45 +0000
committerdeva <deva>2009-12-01 09:08:45 +0000
commit40294e22bd61cf7cf851ec6d6c7a41fd78cbdcad (patch)
tree19825db91a456419cee653d8e72b2fc4289348ec /dgedit/filelist.h
parent373de0f137e4b7f7e8b348cabd6151573bd80a74 (diff)
Added context menu to filelist. Remove file from list is now possible.
Diffstat (limited to 'dgedit/filelist.h')
-rw-r--r--dgedit/filelist.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/dgedit/filelist.h b/dgedit/filelist.h
index e148203..c43fde6 100644
--- a/dgedit/filelist.h
+++ b/dgedit/filelist.h
@@ -28,6 +28,9 @@
#define __DRUMGIZMO_FILELIST_H__
#include <QListWidget>
+#include <QListWidgetItem>
+#include <QAction>
+#include <QMenu>
class FileList : public QListWidget {
Q_OBJECT
@@ -41,9 +44,24 @@ signals:
public slots:
void addFiles();
+ void popupMenu(const QPoint &pos);
private slots:
void selectionChanged(QListWidgetItem *item);
+ void setMaster();
+ void removeFile();
+ void editName();
+
+private:
+ void setMasterFile(QListWidgetItem *i);
+ void createMenus();
+
+ QMenu *menu;
+ QAction *setMasterAction;
+ QAction *editAction;
+ QAction *removeAction;
+
+ QListWidgetItem *activeItem;
};