aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/kdenotify/kdenotify.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-03-29 17:42:30 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-03-29 17:42:30 +0000
commitdf81e9fdb2668eda51eb57122813270dda4fc049 (patch)
tree666d3fc7b1a56656ea18088fde9ad085469d6953 /src/plugins/General/kdenotify/kdenotify.cpp
parentf6b6c89281753773a204b19ec40b7d74482a5df8 (diff)
downloadqmmp-df81e9fdb2668eda51eb57122813270dda4fc049.tar.gz
qmmp-df81e9fdb2668eda51eb57122813270dda4fc049.tar.bz2
qmmp-df81e9fdb2668eda51eb57122813270dda4fc049.zip
library: added quick search optimization
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9790 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/kdenotify/kdenotify.cpp')
0 files changed, 0 insertions, 0 deletions
0c681e8-e032-0410-971d-27865f9a5e38> 2010-03-11 18:46:25 +0000 removed obsolete members' href='/qmmp/commit/src/plugins/Input/modplug/settingsdialog.cpp?id=013ee07b55a3738b28b5d46324392d8498b50f2b'>013ee07b5
3995fa885
013ee07b5
3995fa885

013ee07b5
3995fa885
013ee07b5
3995fa885


013ee07b5
3995fa885
013ee07b5
3995fa885
013ee07b5
3995fa885
013ee07b5
3995fa885


013ee07b5
3995fa885
013ee07b5
3995fa885
013ee07b5
3995fa885
013ee07b5
3995fa885
11b7655bb
3995fa885


013ee07b5
3995fa885


11b7655bb
3995fa885


11b7655bb
3995fa885




013ee07b5
3995fa885
013ee07b5
3995fa885

013ee07b5
3995fa885


fcc385fc5
3995fa885







ae75e5707
3995fa885




013ee07b5


3995fa885




fcc385fc5
3995fa885
fcc385fc5
3995fa885
fcc385fc5
3995fa885






























fcc385fc5
3995fa885




fcc385fc5
3995fa885
5dc0158ee
3995fa885
5dc0158ee
3995fa885







fcc385fc5
3995fa885
fcc385fc5









3995fa885
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
















                                                                            
                                                                            

















                                                                             
                                                                 

                                   

                                                                                   



                                                                                

                                                   
                                               
        
                                             

                                                
                                             
        
                                              


                                                          
                                              
                           
                                              
                           
                                              
        
                                              


                                                                          
                                                      
                                   
                                                     
                                   
                                                     
        
                                                        
                   
                                                                            


                                                                               
                                                                          


                                                                             
                                                                            


                                                                            
                                                                            




                                                                                      
                                                 
                   
                                                    

        
                                             


                                    
                                                                                              







                                    
                                                                 




                                                                       


                                                    




                                                                              
                                         
                                              
                                              
                                              
                                              






























                                                                              
                                                    




                                                                
                                   
     
                                                      
                                                   
                                                        







                                                                   
                                                  
 









                                                   
 
/***************************************************************************
 *   Copyright (C) 2008 by Ilya Kotov                                      *
 *   forkotov02@hotmail.ru                                                 *
 *                                                                         *
 *   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 2 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, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
 ***************************************************************************/

#include <QSettings>
#include <QDir>

#include <libmodplug/stdafx.h>
#include <libmodplug/it_defs.h>
#include <libmodplug/sndfile.h>

#include "decoder_modplug.h"
#include "settingsdialog.h"

SettingsDialog::SettingsDialog(QWidget *parent)
        : QDialog(parent)
{
    ui.setupUi(this);
    setAttribute(Qt::WA_DeleteOnClose);

    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    settings.beginGroup("ModPlug");
    //general
    ui.noiseCheckBox->setChecked(settings.value("NoiseReduction", false).toBool());
    ui.fileNameCheckBox->setChecked(settings.value("UseFileName", false).toBool());
    ui.amigaCheckBox->setChecked(settings.value("GrabAmigaMOD", true).toBool());
    //settings.value("Oversampling", true).toBool();
    //settings.value("VolumeRamp", true).toBool();
    //settings.value("FastInfo", true).toBool();
    //channels number
    if (settings.value("Channels", 2).toInt() == 2)
        ui.stereoRadioButton->setChecked(true);
    else
        ui.monoRadioButton->setChecked(true);
    //bits number
    if (settings.value("Bits", 16).toInt() == 8)
        ui.bit8RadioButton->setChecked(true);
    else
        ui.bit16RadioButton->setChecked(true);
    //resampling frequency
    int freq = settings.value("Frequency", 44100).toInt();
    if (freq == 48000)
        ui.khz48RadioButton->setChecked(true);
    else if (freq == 44100)
        ui.khz44RadioButton->setChecked(true);
    else if (freq == 22050)
        ui.khz22RadioButton->setChecked(true);
    else
        ui.khz11RadioButton->setChecked(true);
    //resampling mode
    int res = settings.value("ResamplineMode", SRCMODE_POLYPHASE).toInt();
    if (res == SRCMODE_NEAREST)
        ui.resampNearestRadioButton->setChecked(true);
    else if (res == SRCMODE_LINEAR)
        ui.resampLinearRadioButton->setChecked(true);
    else if (res == SRCMODE_SPLINE)
        ui.resampSplineRadioButton->setChecked(true);
    else
        ui.resampPolyphaseRadioButton->setChecked(true);
    //reverberation
    ui.reverbGroupBox->setChecked(settings.value("Reverb", false).toBool());
    ui.reverbDepthSlider->setValue(settings.value("ReverbDepth", 30).toInt());
    ui.reverbDelaySlider->setValue(settings.value("ReverbDelay", 100).toInt());
    //surround
    ui.surGroupBox->setChecked(settings.value("Surround", true).toBool());
    ui.surDepthSlider->setValue(settings.value("SurroundDepth", 20).toInt());