2
* \file textimportdialog.h
3
* Dialog to import from a text (file or clipboard).
9
* Copyright (C) 2011 Urs Fleisch
11
* This file is part of Kid3.
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.
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.
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/>.
27
#ifndef TEXTIMPORTDIALOG_H
28
#define TEXTIMPORTDIALOG_H
37
* Dialog to import from a text (file or clipboard).
39
class TextImportDialog : public QDialog {
46
* @param parent parent widget
47
* @param trackDataModel track data to be filled with imported values
49
explicit TextImportDialog(QWidget* parent,
50
TrackDataModel* trackDataModel);
55
virtual ~TextImportDialog();
64
* Let user select file, assign file contents to text and preview in
70
* Assign clipboard contents to text and preview in table.
75
* Save the local settings to the configuration.
86
* Emitted when the m_trackDataVector was updated with new imported data.
88
void trackDataUpdated();
98
bool importFromFile(const QString& fn);
101
* Set the format combo box and line edits from the configuration.
103
void setFormatFromConfig();
106
FormatListEdit* m_formatListEdit;
108
TextImporter* m_textImporter;