-
Notifications
You must be signed in to change notification settings - Fork 1
/
MetronomeWindow.h
51 lines (39 loc) · 899 Bytes
/
MetronomeWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef METRONOMEWINDOW_H
#define METRONOMEWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include <QList>
#include <QCheckBox>
#include "ui_MetronomeWindow.h"
#include "metronomeconf.h"
#include "ticker.h"
class MetronomeWindow : public QMainWindow, public Ui::MetronomeWindow
{
Q_OBJECT
public:
MetronomeWindow(MetronomeConf* conf);
int getBPM();
int getNumAccents();
protected slots:
void setBPM();
void setAccents(int numAccents);
void startStopTicking();
void doTick();
// todo: find a better way to do this
void bpmPreset60();
void bpmPreset70();
void bpmPreset80();
void bpmPreset90();
void bpmPreset100();
void bpmPreset110();
void bpmPreset120();
void showAboutBox();
protected:
void setTimerInterval();
QTimer *timer;
MetronomeConf* conf;
Ticker *ticker;
QList<QCheckBox*> accentChecks;
int tickIndex;
};
#endif // METRONOMEWINDOW_H