aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/opus/translations/opus_plugin_sr_BA.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/opus/translations/opus_plugin_sr_BA.ts')
0 files changed, 0 insertions, 0 deletions
; 2013-01-08 13:49:05 +0000 committer trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2013-01-08 13:49:05 +0000 prepare for song change plugin implementation' href='/qmmp/commit/src/plugins/General/songchange/settingsdialog.cpp?h=main&id=578b482e8fdf8aa101f65e6adbb95aa87cb830d1'>578b482e8
12fefde04
578b482e8










f85c8b450



578b482e8

578b482e8





f85c8b450



578b482e8




12fefde04
578b482e8

12fefde04
a4d4df97b

12fefde04
a4d4df97b






12fefde04
a4d4df97b


12fefde04
a4d4df97b


12fefde04
a4d4df97b


12fefde04
a4d4df97b
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
                                                                            
                                                                            
                                                                            



















                                                                             
                                         










                                                                 



                                                                                                     

 





                                                                 



                                                                                            




                                                 
                                                                                                     

                                                    
                                                                                      

 
                                                          






                                                  
                                           


                                                  
                                             


                                                     
                                                


                                                   
                                              
     
 
/***************************************************************************
 *   Copyright (C) 2013-2017 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 <QSettings>
#include <QMenu>
#include <qmmp/qmmp.h>
#include <qmmpui/metadataformattermenu.h>
#include "settingsdialog.h"

SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent)
{
    m_ui.setupUi(this);
    addMenu(m_ui.newTrackButton);
    addMenu(m_ui.endOfTrackButton);
    addMenu(m_ui.endOfPlayListButton);
    addMenu(m_ui.titleChangeButton);

    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    m_ui.newTrackLineEdit->setText(settings.value("TrackChange/new_track_command").toString());
    m_ui.endOfTrackLineEdit->setText(settings.value("TrackChange/end_of_track_command").toString());
    m_ui.endOfPlayListLineEdit->setText(settings.value("TrackChange/end_of_pl_command").toString());
    m_ui.titleChangeLineEdit->setText(settings.value("TrackChange/title_change_command").toString());
}

SettingsDialog::~SettingsDialog()
{}

void SettingsDialog::accept()
{
    QSettings settings(Qmmp::configFile(), QSettings::IniFormat);
    settings.setValue("TrackChange/new_track_command", m_ui.newTrackLineEdit->text());
    settings.setValue("TrackChange/end_of_track_command",  m_ui.endOfTrackLineEdit->text());
    settings.setValue("TrackChange/end_of_pl_command",  m_ui.endOfPlayListLineEdit->text());
    settings.setValue("TrackChange/title_change_command", m_ui.titleChangeLineEdit->text());
    QDialog::accept();