summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-03-18 18:18:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-03-18 18:18:57 +0100
commit57f4d38841c40cad3c206abdd16eebaed753aa1c (patch)
treec7e5a40b457845b2fb296563add9599d2e81384e /src/mainwindow.h
parent9364b9bb84f607d8603f60b86f965b77e03d8c70 (diff)
Update all fiels to adhere to style-guide
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h132
1 files changed, 65 insertions, 67 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index b512f50..265ab31 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -24,8 +24,7 @@
* along with DrumGizmo; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __DRUMGIZMO_MAINWINDOW_H__
-#define __DRUMGIZMO_MAINWINDOW_H__
+#pragma once
#include <QMainWindow>
#include <QScrollBar>
@@ -47,79 +46,78 @@
#include "zoomslider.h"
#include "canvaswidget.h"
-class Preset {
-public:
- QString prefix;
- int attacklength;
- int falloff;
- int fadelength;
+class Preset
+{
+public:
+ QString prefix;
+ int attacklength;
+ int falloff;
+ int fadelength;
};
Q_DECLARE_METATYPE(Preset)
-class MainWindow : public QMainWindow {
-Q_OBJECT
+class MainWindow
+ : public QMainWindow
+{
+ Q_OBJECT
public:
- MainWindow();
- ~MainWindow();
+ MainWindow();
+ ~MainWindow();
public slots:
- /*
- void setXScale(float);
- void setYScale(float);
- void setXOffset(int);
- void setYOffset(int);
- */
- void doExport();
- void loadFile(QString filename);
- void playSamples();
- void setPreset(int);
- void browse();
- void tabChanged(int tabid);
+ //void setXScale(float);
+ //void setYScale(float);
+ //void setXOffset(int);
+ //void setYOffset(int);
+ void doExport();
+ void loadFile(QString filename);
+ void playSamples();
+ void setPreset(int);
+ void browse();
+ void tabChanged(int tabid);
protected:
- void closeEvent(QCloseEvent*);
+ void closeEvent(QCloseEvent*);
private:
- void loadSettings();
- void saveSettings();
-
- QWidget *createFilesTab();
- QWidget *createEditTab();
- QWidget *createGenerateTab();
- QWidget *createExportTab();
-
- int generateTabId;
-
- SampleSorter *sorter;
- CanvasToolSelections *tool_selections;
- CanvasToolThreshold *threshold;
- CanvasToolListen *listen;
- AudioExtractor *extractor;
- FileList *filelist;
-
- //Canvas *canvas;
- //QScrollBar *yoffset;
- //ZoomSlider *yscale;
- //ZoomSlider *xscale;
- //QScrollBar *xoffset;
- CanvasWidget *canvaswidget;
-
- QScrollBar *sb_playsamples;
- QComboBox *presets;
- QSlider *slider_attacklength;
- QSlider *slider_spread;
- QSlider *slider_hold;
- QSlider *slider_falloff;
- QSlider *slider_fadelength;
- QLineEdit *prefix;
- QLineEdit *lineed_exportp;
-
- QTabWidget *tabs;
-
- // Session state information:
- Selections selections;
- Selections selections_preview;
- Player player;
+ void loadSettings();
+ void saveSettings();
+
+ QWidget* createFilesTab();
+ QWidget* createEditTab();
+ QWidget* createGenerateTab();
+ QWidget* createExportTab();
+
+ int generateTabId;
+
+ SampleSorter* sorter;
+ CanvasToolSelections* tool_selections;
+ CanvasToolThreshold* threshold;
+ CanvasToolListen* listen;
+ AudioExtractor* extractor;
+ FileList* filelist;
+
+ //Canvas* canvas;
+ //QScrollBar* yoffset;
+ //ZoomSlider* yscale;
+ //ZoomSlider* xscale;
+ //QScrollBar* xoffset;
+ CanvasWidget* canvaswidget;
+
+ QScrollBar* sb_playsamples;
+ QComboBox* presets;
+ QSlider* slider_attacklength;
+ QSlider* slider_spread;
+ QSlider* slider_hold;
+ QSlider* slider_falloff;
+ QSlider* slider_fadelength;
+ QLineEdit* prefix;
+ QLineEdit* lineed_exportp;
+
+ QTabWidget* tabs;
+
+ // Session state information:
+ Selections selections;
+ Selections selections_preview;
+ Player player;
};
-
-#endif/*__DRUMGIZMO_MAINWINDOW_H__*/