-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoundeffectlistdialog.h
55 lines (36 loc) · 1.09 KB
/
soundeffectlistdialog.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
52
53
54
55
#ifndef SOUNDEFFECTLISTDIALOG_H
#define SOUNDEFFECTLISTDIALOG_H
#include <QDialog>
#include <QList>
#include "soundeffect.h"
namespace Ui {
class SoundEffectListDialog;
}
class SoundEffectListDialog : public QDialog
{
Q_OBJECT
public:
explicit SoundEffectListDialog( QWidget *parent = 0);
~SoundEffectListDialog();
void AddSoundEffect(const SoundEffect &sfx);
void AddSoundEffects(const QList<SoundEffect> &sfx);
void RemoveSoundEffect(const SoundEffect &sfx);
void RemoveAllSoundEffects ();
signals:
void remove(const SoundEffect &sfx);
void edit(const SoundEffect &sfx);
void play(const SoundEffect &sfx);
void selected (const SoundEffect &sfx);
private slots:
void on_tableWidget_cellClicked(int row, int column);
void on_tableWidget_cellDoubleClicked(int row, int column);
void on_removeButton_clicked();
void on_editButton_clicked();
void on_playButton_clicked();
private:
SoundEffect SFXFromRow(int row) const;
private:
Ui::SoundEffectListDialog *ui;
QList<SoundEffect> _sfx;
};
#endif // SOUNDEFFECTLISTDIALOG_H