aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/FileDialogs/CMakeLists.txt
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-06-21 20:48:27 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2018-06-21 20:48:27 +0000
commit96c6c7c6762a86d58f364db28a871a80b619e6b4 (patch)
treedd246b0b989ebdaaa42b646cb96196276c4332f2 /src/plugins/FileDialogs/CMakeLists.txt
parent287a4404d9f84f7f715436be297ee944d2c49564 (diff)
downloadqmmp-96c6c7c6762a86d58f364db28a871a80b619e6b4.tar.gz
qmmp-96c6c7c6762a86d58f364db28a871a80b619e6b4.tar.bz2
qmmp-96c6c7c6762a86d58f364db28a871a80b619e6b4.zip
renamed .desktop files
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8047 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/FileDialogs/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions
plugins/Ui/skinned/skinnedsettings.cpp?id=4cb1b12751e486cea156c94c826c693fcf3d2f47'>4cb1b1275
6d7605eb3

4cb1b1275

6d7605eb3
4cb1b1275


2731ececc
767999392
6d7605eb3


4cb1b1275






6d7605eb3
4cb1b1275










6d7605eb3

4cb1b1275






6d7605eb3
4cb1b1275


6d7605eb3

4cb1b1275


75a6773ea








75a6773ea


4cb1b1275


6d7605eb3
4cb1b1275


6d7605eb3

4cb1b1275


fbe2f0442








4cb1b1275











f72555fb8

6d7605eb3

f72555fb8

4cb1b1275

75a6773ea
4cb1b1275
75a6773ea


6d7605eb3

4cb1b1275
e00ce793a
75a6773ea





6d7605eb3

75a6773ea
6d7605eb3
4cb1b1275
















6d7605eb3
4cb1b1275




2731ececc

2cf93a402


















2731ececc
2cf93a402
2731ececc

4cb1b1275



6d7605eb3
5aad2ffd2
4cb1b1275


6d7605eb3
4cb1b1275
4cb1b1275

299214e2a
4cb1b1275








6d7605eb3
4cb1b1275
6d7605eb3







4cb1b1275









2731ececc







4cb1b1275




6d7605eb3
da552eeaf


6d7605eb3


11f96a1f8
6d7605eb3
4cb1b1275
6d7605eb3


4cb1b1275
6d7605eb3
5aad2ffd2
6d7605eb3

034128b6d
4cb1b1275






6d7605eb3

da552eeaf
6d7605eb3










4cb1b1275
6d7605eb3

2731ececc
01e8d2286


4cb1b1275

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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
                                                                            
                                                                            














                                                                            
                                                                            




                                                                             
                

                              
                            






                                                                   

                                                  

                                    
                                                                          


                   
                    
                 


                                                                     






                                                                  
                                            










                                                                      

                                                                   






                                               
                                          


                                                  

                                                                                              


     








                                                                                                  


     


                                                 
                                            


                                                  

                                                                                                


     








                                                                  











                                                                                                                   

                                             

                                                                                    

 

                                 
               
                                                                  


                                                                                              

                                                                                          
 
                                                                                             





                                                                                              

                                                                                            
 
                                                                                              
















                                                                                 
                                            




                                   

                                     


















                                                                         
                                                                    
                                                                                        

 



                                 
                             
                                   


                                                                           
                                    
                           

                                                
                                              








                                                                            
                                        
                                      







                                                                           









                                                      







                                                                     




                                                                  
                                                                                           


                                                                                       


                                                                                           
                                                                                 
                                                                                                
                  


                                                                                                
          
                                                                                         
                                                                        

                                                                                          
                                                                                                             






                                                                  

                                                                               
                                                                             










                                                                                            
                                                       

                                                                               
                                                                                


                                                                                  

                        
/***************************************************************************
 *   Copyright (C) 2011-2015 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 <QFontDialog>
#include <QMenu>
#include <qmmp/qmmp.h>
#include <qmmpui/filedialog.h>
#include <qmmpui/uihelper.h>
#include "skinreader.h"
#include "skin.h"
#include "popupsettings.h"
#include "skinnedsettings.h"

SkinnedSettings::SkinnedSettings(QWidget *parent) : QWidget(parent)
{
    m_ui.setupUi(this);
    m_ui.listWidget->setIconSize (QSize (105,34));
    m_skin = Skin::instance();
    m_reader = new SkinReader(this);
    connect(m_ui.skinReloadButton, SIGNAL (clicked()), SLOT(loadSkins()));
    readSettings();
    loadSkins();
    loadFonts();
    createActions();
    //setup icons
    m_ui.skinInstallButton->setIcon(QIcon::fromTheme("list-add"));
    m_ui.skinReloadButton->setIcon(QIcon::fromTheme("view-refresh"));
    m_ui.popupTemplateButton->setIcon(QIcon::fromTheme("configure"));
}

SkinnedSettings::~SkinnedSettings()
{}

void SkinnedSettings::on_listWidget_itemClicked(QListWidgetItem *)
{
    int row = m_ui.listWidget->currentRow();
    QString path;
    if (m_skinList.at (row).isDir())
    {
        path = m_skinList.at (row).canonicalFilePath();
        m_skin->setSkin (path);
    }
    else if (m_skinList.at (row).isFile())
    {
        m_reader->unpackSkin(m_skinList.at (row).canonicalFilePath());
        m_skin->setSkin(QDir::homePath() +"/.qmmp/cache/skin");
    }
    if(m_ui.listWidget->currentItem())
        m_currentSkinName = m_ui.listWidget->currentItem()->text();
    else
        m_currentSkinName.clear();
}

void SkinnedSettings::on_plFontButton_clicked()
{
    bool ok;
    QFont font = m_ui.plFontLabel->font();
    font = QFontDialog::getFont (&ok, font, this);
    if (ok)
    {