summaryrefslogtreecommitdiff
path: root/src/filelist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filelist.h')
-rw-r--r--src/filelist.h66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/filelist.h b/src/filelist.h
index 2ca277c..01cf684 100644
--- a/src/filelist.h
+++ b/src/filelist.h
@@ -24,55 +24,55 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_FILELIST_H__
-#define __DRUMGIZMO_FILELIST_H__
+#pragma once
#include <QListWidget>
#include <QListWidgetItem>
#include <QAction>
#include <QMenu>
-class FileList : public QListWidget {
-Q_OBJECT
+class FileList
+ : public QListWidget
+{
+ Q_OBJECT
public:
- FileList();
+ FileList();
+
+ QString path;
- QString path;
signals:
- void masterFileChanged(QString filename);
- void fileAdded(QString file, QString name);
- void fileRemoved(QString file, QString name);
- void allFilesRemoved();
- void nameChanged(QString file, QString name);
+ void masterFileChanged(QString filename);
+ void fileAdded(QString file, QString name);
+ void fileRemoved(QString file, QString name);
+ void allFilesRemoved();
+ void nameChanged(QString file, QString name);
public slots:
- void addFiles();
- void popupMenu(const QPoint &pos);
+ void addFiles();
+ void popupMenu(const QPoint& pos);
private slots:
- void selectionChanged(QListWidgetItem *item);
- void setMaster();
- void removeFile();
- void removeAllFiles();
- void editName();
- void setItemName(QListWidgetItem *i, QString name);
+ void selectionChanged(QListWidgetItem* item);
+ void setMaster();
+ void removeFile();
+ void removeAllFiles();
+ void editName();
+ void setItemName(QListWidgetItem* i, QString name);
private:
- QString itemFile(QListWidgetItem *i);
- QString itemName(QListWidgetItem *i);
- void setItemFile(QListWidgetItem *i, QString file);
- void setItemMaster(QListWidgetItem *i, bool master);
+ QString itemFile(QListWidgetItem* i);
+ QString itemName(QListWidgetItem* i);
+ void setItemFile(QListWidgetItem* i, QString file);
+ void setItemMaster(QListWidgetItem* i, bool master);
- void setMasterFile(QListWidgetItem *i);
- void createMenus();
+ void setMasterFile(QListWidgetItem* i);
+ void createMenus();
- QMenu *menu;
- QAction *setMasterAction;
- QAction *editAction;
- QAction *removeAction;
- QAction *removeAllAction;
+ QMenu* menu;
+ QAction* setMasterAction;
+ QAction* editAction;
+ QAction* removeAction;
+ QAction* removeAllAction;
- QListWidgetItem *activeItem;
+ QListWidgetItem* activeItem;
};
-
-#endif/*__DRUMGIZMO_FILELIST_H__*/