summaryrefslogtreecommitdiff
path: root/src/selectioneditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selectioneditor.h')
-rw-r--r--src/selectioneditor.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/selectioneditor.h b/src/selectioneditor.h
index 55d8e33..feb9200 100644
--- a/src/selectioneditor.h
+++ b/src/selectioneditor.h
@@ -24,40 +24,39 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_SELECTIONEDITOR_H__
-#define __DRUMGIZMO_SELECTIONEDITOR_H__
+#pragma once
#include <QWidget>
#include <QLineEdit>
#include "selection.h"
-class SelectionEditor : public QWidget {
-Q_OBJECT
+class SelectionEditor
+ : public QWidget
+{
+ Q_OBJECT
public:
- SelectionEditor(Selections &selections);
+ SelectionEditor(Selections& selections);
public slots:
- void added(sel_id_t id);
- void updated(sel_id_t id);
- void removed(sel_id_t id);
- void activeChanged(sel_id_t id);
+ void added(sel_id_t id);
+ void updated(sel_id_t id);
+ void removed(sel_id_t id);
+ void activeChanged(sel_id_t id);
private slots:
- void update();
- void updateSelection();
+ void update();
+ void updateSelection();
private:
- Selections &selections;
+ Selections& selections;
- sel_id_t cur;
+ sel_id_t cur;
- QLineEdit *from;
- QLineEdit *to;
- QLineEdit *fadein;
- QLineEdit *fadeout;
- QLineEdit *energy;
- QLineEdit *name;
+ QLineEdit* from;
+ QLineEdit* to;
+ QLineEdit* fadein;
+ QLineEdit* fadeout;
+ QLineEdit* energy;
+ QLineEdit* name;
};
-
-#endif/*__DRUMGIZMO_SELECTIONEDITOR_H__*/