diff options
Diffstat (limited to 'dgedit/filelist.h')
-rw-r--r-- | dgedit/filelist.h | 18 |
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; }; |