aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/opus/opusmetadatamodel.cpp
Commit message (Expand)AuthorAgeFilesLines
* opus: improved metadata modeltrialuser022016-04-281-34/+28
* fixed previous committrialuser022016-04-251-3/+7
* fixed QString to TagLib::FileName conversion (#852)trialuser022016-04-251-2/+2
* opus plugin: extra tags supporttrialuser022015-05-011-3/+9
* added opus plugintrialuser022013-02-181-0/+213
27865f9a5e38> 2017-11-25 18:00:06 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2017-11-25 18:00:06 +0000 copy 1.2 branch to trunk' href='/qmmp/commit/src/plugins/General/trackchange/trackchangefactory.cpp?id=8453224119a4c5ff7d47d9cd4924d0b1ccb99b3a'>845322411
6dd05311d
f85c8b450
578b482e8
f85c8b450
578b482e8
f85c8b450
578b482e8

f85c8b450
91d21b3a9
578b482e8





f85c8b450
578b482e8
f85c8b450
578b482e8

f85c8b450
578b482e8



f85c8b450
578b482e8
383fcfab1
f85c8b450
dc177bd9a
41c8a60a2
578b482e8

f85c8b450
578b482e8


f85c8b450
578b482e8

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
                                                                            
                                                                            
                                                                            
















                                                                             
 
                      
                        
                           
                               
 
                                                              

                                 
                                                
                                         





                                         
                                                    
 
                                   

 
                                                                



                                      
                                                   
 
                                                                
                                                            
                                                                                                          
                                                                         

 
                                                                  


                                                      
                                                                

                      
/***************************************************************************
 *   Copyright (C) 2013 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 <QMessageBox>
#include "trackchange.h"
#include "settingsdialog.h"
#include "trackchangefactory.h"

const GeneralProperties TrackChangeFactory::properties() const
{
    GeneralProperties properties;
    properties.name = tr("Track Change Plugin");
    properties.shortName = "trackchange";
    properties.hasAbout = true;
    properties.hasSettings = true;
    properties.visibilityControl = false;
    return properties;
}

QObject *TrackChangeFactory::create(QObject *parent)
{
    return new TrackChange(parent);
}

QDialog *TrackChangeFactory::createConfigDialog(QWidget *parent)
{
    return new SettingsDialog(parent);
}

void TrackChangeFactory::showAbout(QWidget *parent)
{
    QMessageBox::about (parent, tr("About Track Change Plugin"),
                        tr("Qmmp Track Change Plugin")+"\n"+
                        tr("This plugin executes external command when current track is changed") + "\n" +
                        tr("Written by: Ilya Kotov <forkotov02@ya.ru>"));
}

QTranslator *TrackChangeFactory::createTranslator(QObject *parent)
{
    QTranslator *translator = new QTranslator(parent);
    QString locale = Qmmp::systemLanguageID();
    translator->load(QString(":/trackchange_plugin_") + locale);
    return translator;
}