1 /**
2  * projectM-qt -- Qt4 based projectM GUI
3  * Copyright (C)2003-2004 projectM Team
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  * See 'LICENSE.txt' included within this release
19  *
20  */
21 
22 #ifndef QPRESET_FILEDIALOG_H
23 #define QPRESET_FILEDIALOG_H
24 
25 
26 #define CONFIG_FILE "/share/projectM/config.inp"
27 
28 #include <QMainWindow>
29 #include <QCloseEvent>
30 #include <cassert>
31 #include <projectM.hpp>
32 
33 #include <iostream>
34 #include <QFileDialog>
35 
36  class QPresetFileDialog : public QFileDialog
37  {
38      Q_OBJECT        // must include this if you use Qt signals/slots
39 
40  public:
QPresetFileDialog(QWidget * parent=0)41      QPresetFileDialog(QWidget * parent = 0):
42 		QFileDialog(parent, "Add preset files", QString(), "Presets (*.prjm *.milk *.so)" ) {
43 
44 		this->setOption(QFileDialog::DontUseNativeDialog);
45 
46 		this->setFileMode(QFileDialog::ExistingFiles);
47 	}
48 
~QPresetFileDialog()49      ~QPresetFileDialog() { }
50  private:
51 
52 
53 };
54 #endif
55