1 /***************************************************************************
2 **                                                                        **
3 **  Polyphone, a soundfont editor                                         **
4 **  Copyright (C) 2013-2020 Davy Triponney                                **
5 **                                                                        **
6 **  This program is free software: you can redistribute it and/or modify  **
7 **  it under the terms of the GNU General Public License as published by  **
8 **  the Free Software Foundation, either version 3 of the License, or     **
9 **  (at your option) any later version.                                   **
10 **                                                                        **
11 **  This program is distributed in the hope that it will be useful,       **
12 **  but WITHOUT ANY WARRANTY; without even the implied warranty of        **
13 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          **
14 **  GNU General Public License for more details.                          **
15 **                                                                        **
16 **  You should have received a copy of the GNU General Public License     **
17 **  along with this program. If not, see http://www.gnu.org/licenses/.    **
18 **                                                                        **
19 ****************************************************************************
20 **           Author: Davy Triponney                                       **
21 **  Website/Contact: https://www.polyphone-soundfonts.com                 **
22 **             Date: 01.01.2013                                           **
23 ***************************************************************************/
24 
25 #ifndef TOOLSOUNDFONTEXPORT_PARAMETERS_H
26 #define TOOLSOUNDFONTEXPORT_PARAMETERS_H
27 
28 #include "abstracttoolparameters.h"
29 #include "basetypes.h"
30 
31 class ToolSoundfontExport_parameters: public AbstractToolParameters
32 {
33 public:
34     /// Load the configuration from the ini file
35     void loadConfiguration() override;
36 
37     /// Save the configuration in the ini file
38     void saveConfiguration() override;
39 
getDirectory()40     QString getDirectory() { return _directory; }
setDirectory(QString directory)41     void setDirectory(QString directory) { _directory = directory; }
42 
getFormat()43     int getFormat() { return _format; }
setFormat(int format)44     void setFormat(int format) { _format = format; }
45 
getQuality()46     int getQuality() { return _quality; }
setQuality(int quality)47     void setQuality(int quality) { _quality = quality; }
48 
getPresetPrefix()49     bool getPresetPrefix() { return _presetPrefix; }
setPresetPrefix(bool presetPrefix)50     void setPresetPrefix(bool presetPrefix) { _presetPrefix = presetPrefix; }
51 
getBankDirectory()52     bool getBankDirectory() { return _bankDirectory; }
setBankDirectory(bool bankDirectory)53     void setBankDirectory(bool bankDirectory) { _bankDirectory = bankDirectory; }
54 
getGmSort()55     bool getGmSort() { return _gmSort; }
setGmSort(bool gmSort)56     void setGmSort(bool gmSort) { _gmSort = gmSort; }
57 
58     // Transitional data
getSelectedPresets()59     QMap<int, QList<int> > & getSelectedPresets() { return _selectedPresets; }
setSelectedPresets(QMap<int,QList<int>> selectedPresets)60     void setSelectedPresets(QMap<int, QList<int> > selectedPresets) { _selectedPresets = selectedPresets; }
61 
62 private:
63     QString _directory;
64     int _format;
65     int _quality;
66     bool _presetPrefix;
67     bool _bankDirectory;
68     bool _gmSort;
69 
70     QMap<int, QList<int> > _selectedPresets;
71 };
72 
73 #endif // TOOLSOUNDFONTEXPORT_PARAMETERS_H
74