~ubuntu-branches/ubuntu/trusty/kid3/trusty

« back to all changes in this revision

Viewing changes to kid3/playlistdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-11-08 15:55:34 UTC
  • mfrom: (1.1.10 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091108155534-4ses1tpuj8nxjxj6
Tags: 1.3-1ubuntu1
* Merged from Debian, remaining Ubuntu changes:
  + debian/control:
    - Build-depend on libmp4v2-dev.
  + debian/rules:
    - Build WITH_MP4V2.
* Removed Ubuntu patch fix_gnome_file_dialog.diff, fixed upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \file playlistdialog.h
 
3
 * Create playlist dialog.
 
4
 *
 
5
 * \b Project: Kid3
 
6
 * \author Urs Fleisch
 
7
 * \date 13 Sep 2009
 
8
 *
 
9
 * Copyright (C) 2009  Urs Fleisch
 
10
 *
 
11
 * This file is part of Kid3.
 
12
 *
 
13
 * Kid3 is free software; you can redistribute it and/or modify
 
14
 * it under the terms of the GNU General Public License as published by
 
15
 * the Free Software Foundation; either version 2 of the License, or
 
16
 * (at your option) any later version.
 
17
 *
 
18
 * Kid3 is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 *
 
23
 * You should have received a copy of the GNU General Public License
 
24
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
25
 */
 
26
 
 
27
#ifndef PLAYLISTDIALOG_H
 
28
#define PLAYLISTDIALOG_H
 
29
 
 
30
#include <qdialog.h>
 
31
 
 
32
class QRadioButton;
 
33
class QCheckBox;
 
34
class QComboBox;
 
35
class PlaylistConfig;
 
36
 
 
37
/**
 
38
 * Playlist dialog.
 
39
 */
 
40
class PlaylistDialog : public QDialog {
 
41
Q_OBJECT
 
42
 
 
43
public:
 
44
        /**
 
45
         * Constructor.
 
46
         *
 
47
         * @param parent  parent widget
 
48
         */
 
49
        PlaylistDialog(QWidget* parent);
 
50
 
 
51
        /**
 
52
         * Destructor.
 
53
         */
 
54
        ~PlaylistDialog();
 
55
 
 
56
        /**
 
57
         * Read the local settings from the configuration.
 
58
         */
 
59
        void readConfig();
 
60
 
 
61
        /**
 
62
         * Get the current dialog configuration.
 
63
         *
 
64
         * @param cfg the current configuration is returned here
 
65
         */
 
66
        void getCurrentConfig(PlaylistConfig& cfg) const;
 
67
 
 
68
private slots:
 
69
        /**
 
70
         * Save the local settings to the configuration.
 
71
         */
 
72
        void saveConfig() const;
 
73
 
 
74
        /**
 
75
         * Show help.
 
76
         */
 
77
        void showHelp();
 
78
 
 
79
private:
 
80
        QRadioButton* m_sameAsDirNameButton;
 
81
        QRadioButton* m_fileNameFormatButton;
 
82
        QComboBox* m_locationComboBox;
 
83
        QComboBox* m_formatComboBox;
 
84
        QCheckBox* m_onlySelectedFilesCheckBox;
 
85
        QRadioButton* m_sortFileNameButton;
 
86
        QRadioButton* m_sortTagFieldButton;
 
87
        QRadioButton* m_relPathButton;
 
88
        QRadioButton* m_fullPathButton;
 
89
        QRadioButton* m_writeListButton;
 
90
        QRadioButton* m_writeInfoButton;
 
91
        QComboBox* m_fileNameFormatComboBox;
 
92
        QComboBox* m_sortTagFieldComboBox;
 
93
        QComboBox* m_writeInfoComboBox;
 
94
};
 
95
 
 
96
#endif // PLAYLISTDIALOG_H