root/branches/jackMidi/gui/src/AudioFileBrowser/AudioFileBrowser.h @ 822

Revision 822, 2.0 KB (checked in by gabriel@…, 4 years ago)

Merge rev 560:571 from trunk.

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                QStringList 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 on_m_pStopBtn_clicked();
60                void updateModelIndex();
61                void on_m_pPathHometoolButton_clicked();
62                void on_m_pPathUptoolButton_clicked();
63                void on_playSamplescheckBox_clicked();
64
65
66        private:
67                InstrumentEditor* m_pInstrumentEditor;
68                QString m_psamplefilename;
69                QStringList m_pselectedFile;
70                QDirModel *model;
71                QTreeView *tree;
72                SampleWaveDisplay *m_pSampleWaveDisplay;
73                QString sEmptySampleFilename;
74                QStringList filters;
75                QModelIndex __index;
76
77
78};
79
80
81#endif
Note: See TracBrowser for help on using the browser.