aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/opus/replaygainreader.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-04-27 06:53:17 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2013-04-27 06:53:17 +0000
commit13befc31a6079aee01caa593778e724c0929aa98 (patch)
tree7b19fa7ad63b02d7454cd260e37b5836b02dc16c /src/plugins/Input/opus/replaygainreader.cpp
parentc9da71f2828b7940f62e77615915c906c04f8af9 (diff)
downloadqmmp-13befc31a6079aee01caa593778e724c0929aa98.tar.gz
qmmp-13befc31a6079aee01caa593778e724c0929aa98.tar.bz2
qmmp-13befc31a6079aee01caa593778e724c0929aa98.zip
qmake: removed release option from config
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3406 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/opus/replaygainreader.cpp')
0 files changed, 0 insertions, 0 deletions
user02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2009-01-05 17:00:02 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2009-01-05 17:00:02 +0000 short command line keys' href='/qmmp/commit/src/ui/builtincommandlineoption.cpp?h=main&id=38ba9babb485a491c62a9ebd7a88e9253fccb839'>38ba9babb
6f0d664cc
38ba9babb





058812044

dca857498

058812044
38ba9babb
058812044


38ba9babb
058812044

058812044
38ba9babb
058812044





0e860ae0b
058812044




0e860ae0b
058812044

38ba9babb
058812044


38ba9babb
058812044














dca857498
058812044
11b7655bb
dca857498
058812044
058812044
058812044


dca857498
058812044
dca857498








058812044
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
                                                                            
                                                                            























                                                                             
                         










                                                                  










                                                 
                    
                 



                                                          





                                                                                   
                                                                                                   





                                                                              

 

                                                                                      
 
                                                           


                   
                                                                

                   
     
                                                                 





                                       
                                                      




                                           
                                                      

                       
                                                                       


                        
                                                                        














                                                    
                                                            
     
                        
                                           
               
                                                      


     
                                                                                               
 








                                                       
 
/***************************************************************************
 *   Copyright (C) 2008-2010 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.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#include <qmmp/soundcore.h>

#include "mainwindow.h"
#include "builtincommandlineoption.h"

BuiltinCommandLineOption::BuiltinCommandLineOption(QObject *parent)
        : QObject(parent)
{
}


BuiltinCommandLineOption::~BuiltinCommandLineOption()
{
}

// BuiltinCommandLineOption methods implementation
bool BuiltinCommandLineOption::identify(const QString & str) const
{
    if (str == "--next" ||
        str == "--previous" ||
        str == "--play" || str == "-p" ||
        str == "--pause" || str == "-u" ||
        str == "--play-pause" || str == "-t" ||
        str == "--stop" || str == "-s" ||
        str == "--volume" ||
        str == "--jump-to-file" || str == "-j" ||
        str == "--toggle-visibility" ||
        str == "--add-file" ||
        str == "--add-dir")
        return true;
    return false;
}

const QString BuiltinCommandLineOption::helpString() const
{
    return QString(
               "-p, --play           "+tr("Start playing current song")+"\n" +
               "-u, --pause          "+tr("Pause current song")+ "\n"
               "-t, --play-pause     "+tr("Pause if playing, play otherwise")+ "\n"
               "-s, --stop           "+tr("Stop current song")+ "\n" +
               "-j, --jump-to-file   "+tr("Display Jump to File dialog")+ "\n" +
               "--volume <0..100>    "+tr("Set playback volume (example: qmmp --volume 20)") + "\n"
               "--next               "+tr("Skip forward in playlist")+ "\n" +
               "--previous           "+tr("Skip backwards in playlist")+"\n" +
               "--toggle-visibility  "+tr("Show/hide application")+ "\n" +
               "--add-file           "+tr("Display Add File dialog")+ "\n" +
               "--add-dir            "+tr("Display Add Directory dialog")
           );
}

void BuiltinCommandLineOption::executeCommand(const QString &option_string,
                                              const QStringList &args, MainWindow *mw)
{
    if (option_string == "--play" || option_string == "-p")
    {
        mw->play();
    }
    else if (option_string == "--stop" || option_string == "-s")
    {
        mw->stop();
    }
    else if (option_string == "--pause" || option_string == "-u")
    {
        mw->pause();
    }
    else if (option_string == "--next")
    {
        mw->next();
        if (mw->soundCore()->state() == Qmmp::Stopped)
            mw->play();
    }
    else if (option_string == "--previous")
    {
        mw->previous();