aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/ffmpeg/settingsdialog.h
blob: 2404f91215fb84bbd488c0fb8695880bb3e11687 (plain) (blame)
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
/***************************************************************************
 *   Copyright (C) 2008-2021 by Ilya Kotov                                 *
 *   forkotov02@ya.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.         *
 ***************************************************************************/
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>

#include "ui_settingsdialog.h"

/**
    @author Ilya Kotov <forkotov02@ya.ru>
*/
class SettingsDialog : public QDialog
{
    Q_OBJECT
public:
    SettingsDialog(QWidget *parent = nullptr);

    ~SettingsDialog();

public slots:
    virtual void accept() override;

private:
    Ui::SettingsDialog m_ui;

};

#endif
410-971d-27865f9a5e38> 2009-10-20 18:39:35 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2009-10-20 18:39:35 +0000 fixed problems with embedded cue, updated translation files' href='/qmmp/commit/src/plugins/Input/flac/flacmetadatamodel.cpp?h=main&id=d460e76525fed2b11df1ae348b55eba87ec53d3f'>d460e7652
362d4e2b4

ef0380cb1
1cec7355e
ef0380cb1
362d4e2b4
d460e7652

942f996bc
b55c45843
d460e7652
eb89e7912
eb89e7912

8d146b246

0391cde3e
eb89e7912
1cec7355e
d460e7652
eb89e7912

8d146b246

0391cde3e
eb89e7912


1cec7355e


eb89e7912
8d146b246
0391cde3e
8d146b246
362d4e2b4





eb89e7912


b917024aa
eb89e7912
8d146b246

362d4e2b4

8d146b246
362d4e2b4



8d146b246
d460e7652
0391cde3e




3a2ef3199
0391cde3e





3a2ef3199
0391cde3e
d460e7652

8d146b246
d460e7652
933204b47
d460e7652

0391cde3e







































1cec7355e























eb89e7912
362d4e2b4
eb89e7912

362d4e2b4


eb89e7912
362d4e2b4
5549fa67b
362d4e2b4



5549fa67b
362d4e2b4





845322411
362d4e2b4
845322411
b66a8c518



1d6f69e20
362d4e2b4
845322411
362d4e2b4
845322411
362d4e2b4
845322411
362d4e2b4



1d6f69e20
362d4e2b4







1d6f69e20
362d4e2b4








845322411
362d4e2b4








b66a8c518
b66a8c518

362d4e2b4









013ee07b5
362d4e2b4








73cbbeac7
013ee07b5
362d4e2b4




e6cdd7a53

362d4e2b4
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
                                                                            
                                                                            
                                                                            













                                                                            
                                                                            

                                                                             
                  
                  


                           
                                     
                               
                                 

                              
                                                                          
                                                            
                
 

                                  
                                 
                                                    
     
 

                                                     

                                                                                                          
                                 
                   
                                                                     
     

                                                         

                                                                               
                         


                   


                                        
                                                                  
     
                                                        
     





                                       


                      
                         
     

                        

 
                                                 



                  
                                        
 




                                                                      
     





                                                                                                                      
     
                     

 
                                            
 
                                                              

 







































                                                                            























                                                                                      
                                                                                                                    
 

                  


                                         
  
 
                                        



                            
                                                           





                         
                                                
                      
                                                 



                                                          
                                                                                     
                     
                                                
                       
                                                  
                     
                                                



                                                       
                                                                                  







                                                         
                                                                                    








                                                                           
                                                 








                              
                           

                                                  









                               
                                               








                                       
                                          
                                                 




                               

                       
 
/***************************************************************************
 *   Copyright (C) 2009-2021 by Ilya Kotov                                 *
 *   forkotov02@ya.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 <QPixmap>
#include <QBuffer>
#include <taglib/tag.h>
#include <taglib/fileref.h>
#include <taglib/tmap.h>
#include <taglib/id3v2framefactory.h>
#include <taglib/flacpicture.h>
#include <qmmp/metadatamanager.h>
#include "flacmetadatamodel.h"

FLACMetaDataModel::FLACMetaDataModel(const QString &path, bool readOnly) :
    MetaDataModel(readOnly, MetaDataModel::IsCoverEditable),
    m_path(path)
{
    if(path.startsWith("flac://"))
    {
        m_path.remove("flac://");
        m_path.remove(QRegularExpression("#\\d+$"));
    }

    if(m_path.endsWith(".flac", Qt::CaseInsensitive))
    {
        m_stream = new TagLib::FileStream(QStringToFileName(m_path), readOnly);
        TagLib::FLAC::File *f = new TagLib::FLAC::File(m_stream, TagLib::ID3v2::FrameFactory::instance());
        m_tag = f->xiphComment();
        m_file = f;
        setDialogHints(dialogHints() | MetaDataModel::IsCueEditable);
    }
    else if(m_path.endsWith(".oga", Qt::CaseInsensitive))
    {
        m_stream = new TagLib::FileStream(QStringToFileName(m_path), readOnly);
        TagLib::Ogg::FLAC::File *f = new TagLib::Ogg::FLAC::File(m_stream);