aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/CommandLineOptions
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/CommandLineOptions')
-rw-r--r--src/plugins/CommandLineOptions/PlayListOption/translations/playlist_plugin_he.ts22
-rw-r--r--src/plugins/CommandLineOptions/SeekOption/translations/seek_plugin_he.ts6
-rw-r--r--src/plugins/CommandLineOptions/StatusOption/translations/status_plugin_he.ts36
-rw-r--r--src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts2
4 files changed, 33 insertions, 33 deletions
diff --git a/src/plugins/CommandLineOptions/PlayListOption/translations/playlist_plugin_he.ts b/src/plugins/CommandLineOptions/PlayListOption/translations/playlist_plugin_he.ts
index a76035d7a..34a23fc63 100644
--- a/src/plugins/CommandLineOptions/PlayListOption/translations/playlist_plugin_he.ts
+++ b/src/plugins/CommandLineOptions/PlayListOption/translations/playlist_plugin_he.ts
@@ -6,59 +6,59 @@
<message>
<location filename="../playlistoption.cpp" line="46"/>
<source>Show playlist manipulation commands</source>
- <translation type="unfinished"></translation>
+ <translation>הצג פקודות תפעול רשימת נגינה</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="60"/>
<source>List all available playlists</source>
- <translation type="unfinished"></translation>
+ <translation>הצג את כל רשימות הנגינה הזמינות</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="61"/>
<source>Show playlist content</source>
- <translation type="unfinished"></translation>
+ <translation>הצג תוכן רשימת נגינה</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="62"/>
<source>Play track &lt;track&gt; in playlist &lt;id&gt;</source>
- <translation type="unfinished"></translation>
+ <translation>נגן את רצועה &lt;track&gt; מתוך רשימת נגינה &lt;id&gt;</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="63"/>
<source>Clear playlist</source>
- <translation type="unfinished"></translation>
+ <translation>טהר רשימת נגינה</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="64"/>
<source>Toggle playlist repeat</source>
- <translation type="unfinished"></translation>
+ <translation>אפשר/נטרל חזרת רשימת נגינת</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="65"/>
<source>Toggle playlist shuffle</source>
- <translation type="unfinished"></translation>
+ <translation>אפשר/נטרל אקראיות רשימת נגינת</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="66"/>
<source>Show playlist options</source>
- <translation type="unfinished"></translation>
+ <translation>הצג אפשרויות רשימת נגינה</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="85"/>
<location filename="../playlistoption.cpp" line="106"/>
<location filename="../playlistoption.cpp" line="121"/>
<source>Invalid playlist ID</source>
- <translation type="unfinished"></translation>
+ <translation>מזהה רשימת נגינה לא תקף</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="100"/>
<source>Invalid number of arguments</source>
- <translation type="unfinished"></translation>
+ <translation>מספר ארגומנטים לא תקין</translation>
</message>
<message>
<location filename="../playlistoption.cpp" line="109"/>
<source>Invalid track ID</source>
- <translation type="unfinished"></translation>
+ <translation>מזהה רצועה לא תקף</translation>
</message>
</context>
</TS>
diff --git a/src/plugins/CommandLineOptions/SeekOption/translations/seek_plugin_he.ts b/src/plugins/CommandLineOptions/SeekOption/translations/seek_plugin_he.ts
index 59c3b1e89..bdc008b56 100644
--- a/src/plugins/CommandLineOptions/SeekOption/translations/seek_plugin_he.ts
+++ b/src/plugins/CommandLineOptions/SeekOption/translations/seek_plugin_he.ts
@@ -6,17 +6,17 @@
<message>
<location filename="../seekoption.cpp" line="38"/>
<source>Seek to position in the current track</source>
- <translation type="unfinished"></translation>
+ <translation>עבור אל מיקום בתוך רצועה נוכחית</translation>
</message>
<message>
<location filename="../seekoption.cpp" line="39"/>
<source>Seek forward</source>
- <translation type="unfinished"></translation>
+ <translation>עבור הלאה</translation>
</message>
<message>
<location filename="../seekoption.cpp" line="40"/>
<source>Seek backwards</source>
- <translation type="unfinished"></translation>
+ <translation>עבור אחורה</translation>
</message>
</context>
</TS>
diff --git a/src/plugins/CommandLineOptions/StatusOption/translations/status_plugin_he.ts b/src/plugins/CommandLineOptions/StatusOption/translations/status_plugin_he.ts
index e22afa7e9..6c8569f47 100644
--- a/src/plugins/CommandLineOptions/StatusOption/translations/status_plugin_he.ts
+++ b/src/plugins/CommandLineOptions/StatusOption/translations/status_plugin_he.ts
@@ -6,92 +6,92 @@
<message>
<location filename="../statusoption.cpp" line="39"/>
<source>Print playback status</source>
- <translation type="unfinished"></translation>
+ <translation>הדפס מצב נגינה</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="41"/>
<source>Print formatted track name (example: qmmp --nowplaying &quot;%t - %a&quot;)</source>
- <translation type="unfinished"></translation>
+ <translation>הדפס שם רצועה מעוצב (דוגמא: qmmp --מנגן-כעת &quot;%t - %a&quot;)</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="42"/>
<source>Print --nowplaying syntax</source>
- <translation type="unfinished"></translation>
+ <translation>הדפס --תחביר מנגן-כעת</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="88"/>
<source>Syntax:</source>
- <translation type="unfinished"></translation>
+ <translation>תחביר:</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="89"/>
<source>%p - artist</source>
- <translation type="unfinished"></translation>
+ <translation>%p - אמן</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="90"/>
<source>%a - album</source>
- <translation type="unfinished"></translation>
+ <translation>%a - אלבום</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="91"/>
<source>%t - title</source>
- <translation type="unfinished"></translation>
+ <translation>%t - כותרת</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="92"/>
<source>%n - track</source>
- <translation type="unfinished"></translation>
+ <translation>%n - רצועה</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="93"/>
<source>%NN - 2-digit track</source>
- <translation type="unfinished"></translation>
+ <translation>%NN - רצועה דו-ספרתית</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="94"/>
<source>%g - genre</source>
- <translation type="unfinished"></translation>
+ <translation>%g - ז׳אנר</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="95"/>
<source>%c - comment</source>
- <translation type="unfinished"></translation>
+ <translation>%c - הערה</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="96"/>
<source>%C - composer</source>
- <translation type="unfinished"></translation>
+ <translation>%C - מלחין</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="97"/>
<source>%D - disc number</source>
- <translation type="unfinished"></translation>
+ <translation>%D - מספר תקליטור</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="98"/>
<source>%f - file name</source>
- <translation type="unfinished"></translation>
+ <translation>%f - שם קובץ</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="99"/>
<source>%F - full path</source>
- <translation type="unfinished"></translation>
+ <translation>%F - נתיב מלא</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="100"/>
<source>%y - year</source>
- <translation type="unfinished"></translation>
+ <translation>%y - שנה</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="101"/>
<source>%l - duration</source>
- <translation type="unfinished"></translation>
+ <translation>%l - משך</translation>
</message>
<message>
<location filename="../statusoption.cpp" line="102"/>
<source>%if(A&amp;B&amp;C,D,E) - condition</source>
- <translation type="unfinished"></translation>
+ <translation>%if(A&amp;B&amp;C,D,E) - תנאי</translation>
</message>
</context>
</TS>
diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts
index 86b5906ad..4309ee414 100644
--- a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts
+++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts
@@ -6,7 +6,7 @@
<message>
<location filename="../uninstalloption.cpp" line="39"/>
<source>Restore the old file associations and clean up the registry</source>
- <translation type="unfinished"></translation>
+ <translation>שחזר את שיוכי קובץ ישנים ונקה את הרשומות</translation>
</message>
</context>
</TS>
;trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2015-12-05 17:47:44 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2015-12-05 17:47:44 +0000 skinned: added feature to disable anti-aliasing' href='/qmmp/commit/src/plugins/Ui/skinned/skin.cpp?h=main&id=632ca92a116a1ce5612f8ef0d6a601fc4ce31e3c'>632ca92a1
ba6d239f2











ecc137abe
de26ec727
ecc137abe
2d622fd9b
36dc7e509

ecc137abe





36dc7e509
ecc137abe
2d622fd9b

2d622fd9b

2d622fd9b

2d622fd9b
2d622fd9b
bfb812b86
2d622fd9b






26da2f9c1
36dc7e509
97c98d9d5


36dc7e509



97c98d9d5


























2d622fd9b


ecc137abe




2d622fd9b


46c25b412
2d622fd9b


26da2f9c1

ecc137abe

3662b94aa
36dc7e509

ecc137abe

36dc7e509




























































26da2f9c1
2295f52f6
2d622fd9b

2d622fd9b
d0d4944e5
2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
2d622fd9b



2d622fd9b
36dc7e509













2d622fd9b
2d622fd9b



2d622fd9b

0843db1a0

36dc7e509

0843db1a0




36dc7e509

0843db1a0
d0d4944e5
2d622fd9b
2d622fd9b



6388236ce
46c25b412

31d3fbf75
46c25b412
2d622fd9b
31d3fbf75
2d622fd9b
46c25b412

2d622fd9b
31d3fbf75








2d622fd9b
31d3fbf75
2d622fd9b






2d622fd9b

46c25b412

2d622fd9b
46c25b412

2d622fd9b
46c25b412

2d622fd9b
46c25b412

2d622fd9b



46c25b412

2d622fd9b
46c25b412







2d622fd9b


36dc7e509













1e7a7fdfd
e747c2b87

2d622fd9b

6388236ce
2d622fd9b
46c25b412
06008c2fc
2d622fd9b
475d933eb
177a63536
6388236ce



06008c2fc
2d622fd9b
475d933eb
177a63536
2d622fd9b

6388236ce
2d622fd9b

26da2f9c1


06008c2fc
26da2f9c1












ecc137abe
26da2f9c1


2d622fd9b

f83a2576b
1bc33e404

46c25b412
de26ec727
2d622fd9b
de26ec727
46c25b412
756f51ca1
de26ec727
756f51ca1



2d622fd9b
756f51ca1
2d622fd9b
756f51ca1
531ca5bad

c8f7b3aaf
531ca5bad


756f51ca1
46c25b412
2d622fd9b
756f51ca1

f83a2576b



e72815bbd




2d622fd9b
2d622fd9b
2d622fd9b




d0d4944e5
2d622fd9b
46c25b412


b5833f942
46c25b412

b5833f942


46c25b412
2d622fd9b
46c25b412
2d622fd9b
46c25b412
2d622fd9b
46c25b412
2d622fd9b
36dc7e509

2d622fd9b
36dc7e509



2d622fd9b
36dc7e509

2d622fd9b
36dc7e509



2d622fd9b
36dc7e509


1e7a7fdfd
46c25b412
2d622fd9b
46c25b412
2d622fd9b

2d622fd9b

bfb812b86



36dc7e509


bfb812b86











2d622fd9b

1bc33e404

46c25b412
de26ec727
2d622fd9b
de26ec727
46c25b412
de26ec727
2d622fd9b

46c25b412
2d622fd9b


845322411
2d622fd9b
c8f7b3aaf
46c25b412




2d622fd9b

46c25b412



2d622fd9b
46c25b412
2d622fd9b



7375ed80c
2d622fd9b
46c25b412
7375ed80c

2d622fd9b
2d622fd9b





36dc7e509



2d622fd9b
36dc7e509



2d622fd9b
1e7a7fdfd


36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b
36dc7e509

2d622fd9b

2d622fd9b

46c25b412
2d622fd9b


5d07e21aa
46c25b412
2d622fd9b
5d07e21aa
46c25b412
2d622fd9b
46c25b412
2d622fd9b
46c25b412
2d622fd9b





46c25b412
2d622fd9b




46c25b412
2d622fd9b
46c25b412
2d622fd9b









































2d622fd9b
46c25b412



2d622fd9b






2d622fd9b



























2d622fd9b

ebd7f9bc6
2d622fd9b

36dc7e509

2d622fd9b


36dc7e509

2d622fd9b





6388236ce
2d622fd9b


46c25b412
2d622fd9b

36dc7e509

2d622fd9b


36dc7e509

2d622fd9b





4ccbc35ad
1bc33e404
2d622fd9b
1bc33e404
2d622fd9b
46c25b412
2d622fd9b

4ccbc35ad



2d622fd9b















71606f83b
2d622fd9b











71606f83b
2d622fd9b





d0d4944e5













6388236ce
2d622fd9b
aa9a07eea
46c25b412
6388236ce
2d622fd9b
6388236ce
2d622fd9b
6388236ce







2d622fd9b
6388236ce
2d622fd9b

6388236ce
ecc137abe
b917024aa
2d622fd9b
de26ec727
97c98d9d5


632ca92a1

97c98d9d5

1bc33e404
de26ec727
1bc33e404
06008c2fc
1bc33e404





de26ec727
1bc33e404


de26ec727
1bc33e404
de26ec727
de26ec727
1bc33e404
de26ec727
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
                                                                            
                                                                            
                                                                            
                                                                            


                                                                            












                                                                            
                                                                            
                                                                             
 



                    
                 
                  

                      


                       
                      
                          
                 
                        
 
                                 
 
                      
 


                                

 
                                                       
 
                                                                  
                                                     
                                          

                                             


                     
                                               
 
                      
                                                                 
                                                                  



                                                               
                                                
                         
                                                                          
                                                                            
                                                                     
                                                                       

                                    
                                    


                            


             
                                        
 
                                                                 
                                                                           
                                                                       
                                                                         











                                                                                     
                                               
                             
                      
                         

                       





                         
                      
                     

                 

                  

                   
                  
                   
                






                   
                  
                 


                     



                                                           


























                                                           


                       




                                         


                                         
                                        


                  

                        

                      
                                                       

                                                            

               




























































                                                                      
 
 

                        
                                             
                                                        
 

                                                         
 

                                                      
 

                                                       
 

                                                      
 

                                                      
 

                                                        
                  



                         
                                             













                                                                
                  



                       

                                           

                              

                                                                           




                                            

                                       
     
                                                                
                  



                        
                                                      

                                 
                                                                
 
                              
                                                              
        

                                                                        
                                       








                                                                
                             
                                                      






                         

                                           

                                                           
 

                                                             
 

                                                            
 

                                                          



                                                                                                                    

                                                            
 







                                                                   


                                                       













                                                          
 

                  

 
                                                                       
 
                                                                         
                                                                                   
     
                                                                                
                                                 



                           
                                                                                           
         
                                                                                    
                                                     

         
                                          

 


                                                                         
                                                                             












                                                        
                     


 

                       
                          

                                          
                       
                                             
 
                     
                                                          
     
                                                            



                              
 
                            
     
                                          

                               
                              


                                                
                                         
                            
         

                                              



                                                                




                                                                          
         
     




                                           
                                                       
 


                                                              
 

                                                             


                                           
                                
     
                                                       
     
                                
     
                                                       
     

                                                             
 



                                                            
 

                                                                
 



                                                               
 


                                                             
 
                                
     
                                                       

                  

 



                                          


                                                           











                                                                   

                         

                                            
                       
                                             
 
                     
                                                          
                                                            

              
                                  


                                           
                                                
                             
                         




                                              

                    



                                           
         
                                    



                  
                                 
     
                                                     

                                           
     





                                            



                                                          
 



                                                          
 


                                                 

                                                         
 

                                                        
 

                                                         
 

                                                          

                  

 
                            


                                     
                                   
                               
     
                         
                                    
         
                                                  
         
                           





                  
                                   




                                              
                                 
     
                                               









































                                              
                       



                                                       






                                   



























                                                        

                                
                                                                              

                               

                                                                                


        

                                         





                        
                                                      


                                
                                                      

                               

                                                                              


        

                                         





                       
                      
                                          
 
                       
     
                                                                       

               



                                                                















                                                                            
                                  











                                                           
                                                       





                                                          













                                                         
                                                                            
 
                         
                                                                  
                                                     
                                          
                    
     







                                                             
         
                                                      

         
 
                                              
                   
 
 


                                                                

                                                                                          

 
                                                 
 
                                                                         
                                                                      





                                    
                                                                  


                                              
     
                                    
     
 
                     
 
/***************************************************************************
 *   Copyright (C) 2007-2019 by Ilya Kotov                                 *
 *   forkotov02@ya.ru                                                      *
 *                                                                         *
 *   Based on Promoe, an XMMS2 Client                                      *
 *   Copyright (C) 2005-2006 by XMMS2 Team                                 *
 *                                                                         *
 *   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 <QDir>
#include <QSettings>
#include <QPainter>
#include <QPolygon>
#include <QImage>
#include <QAction>
#include <QTextStream>
#include <QStringList>
#ifdef Q_OS_WIN
#include <QApplication>
#endif
#include <qmmp/qmmp.h>
#include "actionmanager.h"
#include "skin.h"
#include "cursorimage.h"

Skin *Skin::m_instance = nullptr;

Skin *Skin::instance()
{
    if (!m_instance)
        m_instance = new Skin();
    return m_instance;
}

QPixmap Skin::getPixmap (const QString &name, QDir dir)
{
    dir.setFilter (QDir::Files | QDir::Hidden | QDir::NoSymLinks);
    dir.setNameFilters(QStringList() << name + ".*");
    QFileInfoList f = dir.entryInfoList();
    if(!f.isEmpty())
        return QPixmap(f.first().filePath());
    return QPixmap();
}

Skin::Skin (QObject *parent) : QObject (parent)
{
    m_instance = this;
    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    QString path = settings.value("Skinned/skin_path").toString();
#ifdef Q_OS_WIN
    if(Qmmp::isPortable())
        path.prepend(QApplication::applicationDirPath() + "/");
#endif
    if (path.isEmpty() || !QDir(path).exists ())
        path = ":/glare";
    m_double_size = settings.value("Skinned/double_size", false).toBool();
    m_antialiasing = settings.value("Skinned/antialiasing", false).toBool();
    ACTION(ActionManager::WM_DOUBLE_SIZE)->setChecked(m_double_size);
    ACTION(ActionManager::WM_ANTIALIASING)->setChecked(m_antialiasing);
    setSkin (QDir::cleanPath(path));
    /* skin directory */
    QDir skinDir(Qmmp::configDir());
    skinDir.mkdir ("skins");
}

Skin::~Skin()
{}

void Skin::setSkin (const QString& path)
{
    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    m_use_cursors = settings.value("Skinned/skin_cursors", false).toBool();
    m_double_size = ACTION(ActionManager::WM_DOUBLE_SIZE)->isChecked();
    m_antialiasing = ACTION(ActionManager::WM_ANTIALIASING)->isChecked();
#ifdef Q_OS_WIN
    if(Qmmp::isPortable() && path.startsWith(QApplication::applicationDirPath()))
    {
        QString relativePath = path;
        relativePath.remove(QApplication::applicationDirPath(), Qt::CaseInsensitive);
        if(relativePath.startsWith("/"))
            relativePath.remove(0, 1);
        settings.setValue("Skinned/skin_path", relativePath);
    }
    else
#endif
        settings.setValue("Skinned/skin_path",path);
    qDebug ("Skin: using %s",qPrintable(path));
    m_skin_dir = QDir (path);
    //clear old values
    m_pledit_txt.clear();
    m_buttons.clear();
    m_titlebar.clear();
    m_numbers.clear();
    m_pl_parts.clear();
    m_eq_parts.clear();
    m_eq_bar.clear();
    m_eq_spline.clear();
    m_vis_colors.clear();
    m_cursors.clear();
    //load skin parts
    loadPLEdit();
    loadMain();
    loadButtons();
    loadShufRep();
    loadTitleBar();
    loadPosBar();
    loadNumbers();
    loadPlayList();
    loadEq_ex();
    loadEqMain();
    loadVisColor();
    loadLetters();
    loadMonoSter();
    loadVolume();
    loadBalance();
    loadRegion();
    loadCursors();
    loadColors();
    if(m_double_size)
    {
        uint key;
        foreach(key, m_buttons.keys())
            m_buttons[key] = scalePixmap(m_buttons[key]);