~cyber-killer/ckrpgsfxplayer/trunk

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
	CkRPGSfxPlayer - a sound effect player for roleplaying sessions
	Copyright (C) 2010 Ɓukasz "Cyber Killer" Korpalski

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef CKRPGSFXPLAYER_H
#define CKRPGSFXPLAYER_H

#include <QWidget>

#include <Phonon/MediaObject>
#include <Phonon/AudioOutput>

#include <QTranslator>
#include <QTextCodec>

namespace Ui
{
	class ckrpgsfxplayer;
}

class ckrpgsfxplayer : public QWidget
{
	Q_OBJECT

public:
	explicit ckrpgsfxplayer(QWidget *parent = 0);
	~ckrpgsfxplayer();

private:
	Ui::ckrpgsfxplayer *ui;
	Phonon::MediaObject *playedSound;
	Phonon::AudioOutput *audioOutput;
	Phonon::Path path;
	void playthis(QString sndname);

private slots:
	void on_pushButtonStop_clicked();
	void on_pushButton1_clicked();
	void on_pushButton2_clicked();
	void on_pushButton3_clicked();
	void on_pushButton4_clicked();
	void on_pushButton5_clicked();
	void on_pushButton6_clicked();
	void on_pushButton7_clicked();
	void on_pushButton8_clicked();
	void on_pushButton9_clicked();
	void on_pushButton0_clicked();
	void on_pushButtonq_clicked();
	void on_pushButtonw_clicked();
	void on_pushButtone_clicked();
	void on_pushButtonr_clicked();
	void on_pushButtony_clicked();
	void on_pushButtont_clicked();
	void on_pushButtonu_clicked();
	void on_pushButtoni_clicked();
	void on_pushButtono_clicked();
	void on_pushButtonp_clicked();
	void on_pushButtona_clicked();
	void on_pushButtons_clicked();
	void on_pushButtond_clicked();
	void on_pushButtonf_clicked();
	void on_pushButtong_clicked();
	void on_pushButtonh_clicked();
	void on_pushButtonj_clicked();
	void on_pushButtonk_clicked();
	void on_pushButtonl_clicked();
	void on_pushButtonz_clicked();
	void on_pushButtonx_clicked();
	void on_pushButtonc_clicked();
	void on_pushButtonv_clicked();
	void on_pushButtonb_clicked();
	void on_pushButtonn_clicked();
	void on_pushButtonm_clicked();
};

#endif // CKRPGSFXPLAYER_H