root/branches/audiofilebrowser/gui/src/AudioFileBrowser/AudioFileBrowser.h @ 493

Revision 493, 1.9 KB (checked in by wolke, 5 years ago)

small changes

Line 
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 *
5 * http://www.hydrogen-music.org
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY, without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20 *
21 */
22
23#ifndef AUDIOFILEBROWSER_H
24#define AUDIOFILEBROWSER_H
25
26#include "config.h"
27#include "ui_AudioFileBrowser_UI.h"
28#include "InstrumentEditor/InstrumentEditor.h"
29
30#include <QDialog>
31#include <hydrogen/Object.h>
32#include <hydrogen/Preferences.h>
33
34
35class Button;
36class SampleWaveDisplay;
37
38///
39/// This dialog is used to preview audiofiles
40///
41class AudioFileBrowser : public QDialog, public Ui_AudioFileBrowser_UI, public Object
42
43{
44        Q_OBJECT
45        public:
46               
47                AudioFileBrowser( QWidget* pParent );
48                ~AudioFileBrowser();
49                QString selectedFile();
50                QString setDir( QString dir );
51
52
53
54        private slots:
55                void on_cancelBTN_clicked();
56                void on_openBTN_clicked();
57                void clicked( const QModelIndex& index );
58                void on_m_pPlayBtn_clicked();
59                void updateModelIndex();
60                void on_m_pPathHometoolButton_clicked();
61                void on_m_pPathUptoolButton_clicked();
62                void on_playSamplescheckBox_clicked();
63
64
65        private:
66                InstrumentEditor* m_pInstrumentEditor;
67                QString m_psamplefilename;
68                QString m_pselectedFile;
69                QDirModel *model;
70                QTreeView *tree;
71                SampleWaveDisplay *m_pSampleWaveDisplay;
72                QString sEmptySampleFilename;
73               
74
75
76};
77
78
79#endif
Note: See TracBrowser for help on using the browser.