~ubuntu-branches/ubuntu/wily/kid3/wily-proposed

« back to all changes in this revision

Viewing changes to src/gui/dialogs/tagimportdialog.h

  • Committer: Package Import Robot
  • Author(s): Ana Beatriz Guerrero Lopez, Patrick Matthäi, Ana Beatriz Guerrero Lopez
  • Date: 2011-11-13 16:34:13 UTC
  • mfrom: (1.1.13) (2.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20111113163413-5y0anlc4dqf511uh
Tags: 2.0.1-1
* New upstream release.

[ Patrick Matthäi ]
* Adjust build system.
* Add build dependency xsltproc.

[ Ana Beatriz Guerrero Lopez ]
* Some more adjustments to the build system taken from upstream's deb/
* directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * \file tagimportdialog.h
 
3
 * Dialog to import from other tags.
 
4
 *
 
5
 * \b Project: Kid3
 
6
 * \author Urs Fleisch
 
7
 * \date 20 Jun 2011
 
8
 *
 
9
 * Copyright (C) 2011  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 TAGIMPORTDIALOG_H
 
28
#define TAGIMPORTDIALOG_H
 
29
 
 
30
#include <QDialog>
 
31
 
 
32
class FormatListEdit;
 
33
class TrackDataModel;
 
34
 
 
35
/**
 
36
 * Dialog to import from a text (file or clipboard).
 
37
 */
 
38
class TagImportDialog : public QDialog {
 
39
  Q_OBJECT
 
40
 
 
41
public:
 
42
  /**
 
43
   * Constructor.
 
44
   *
 
45
   * @param parent  parent widget
 
46
   * @param trackDataModel track data to be filled with imported values
 
47
   */
 
48
  explicit TagImportDialog(QWidget* parent,
 
49
                           TrackDataModel* trackDataModel);
 
50
 
 
51
  /**
 
52
   * Destructor.
 
53
   */
 
54
  virtual ~TagImportDialog();
 
55
 
 
56
  /**
 
57
   * Clear dialog data.
 
58
   */
 
59
  void clear();
 
60
 
 
61
private slots:
 
62
  /**
 
63
   * Apply import to track data.
 
64
   */
 
65
  void apply();
 
66
 
 
67
  /**
 
68
   * Save the local settings to the configuration.
 
69
   */
 
70
  void saveConfig();
 
71
 
 
72
  /**
 
73
   * Show help.
 
74
   */
 
75
  void showHelp();
 
76
 
 
77
signals:
 
78
  /**
 
79
   * Emitted when the m_trackDataVector was updated with new imported data.
 
80
   */
 
81
  void trackDataUpdated();
 
82
 
 
83
private:
 
84
  /**
 
85
   * Set the format combo box and line edits from the configuration.
 
86
   */
 
87
  void setFormatFromConfig();
 
88
 
 
89
  FormatListEdit* m_formatListEdit;
 
90
  TrackDataModel* m_trackDataModel;
 
91
};
 
92
 
 
93
#endif