1 /***************************************************************************
2 * Copyright (C) 2010 by Peter Penz <peter.penz19@gmail.com> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
18 ***************************************************************************/
20 #ifndef FILEMETADATACONFIGURATIONDIALOG_H
21 #define FILEMETADATACONFIGURATIONDIALOG_H
25 #include "config-baloo.h"
28 class KFileMetaDataConfigurationWidget
;
31 class FileMetaDataConfigWidget
;
38 * @brief Dialog which allows to configure which meta data should be shown
39 * in the KFileMetaDataWidget.
41 class FileMetaDataConfigurationDialog
: public QDialog
46 explicit FileMetaDataConfigurationDialog(QWidget
* parent
= 0);
47 ~FileMetaDataConfigurationDialog() override
;
50 * Sets the items, for which the visibility of the meta data should
51 * be configured. Note that the visibility of the meta data is not
52 * bound to the items itself, the items are only used to determine
53 * which meta data should be configurable. For example when a JPEG image
54 * is set as item, it will be configurable which EXIF data should be
55 * shown. If an audio file is set as item, it will be configurable
56 * whether the artist, album name, ... should be shown.
58 void setItems(const KFileItemList
& items
);
59 KFileItemList
items() const;
62 * Sets the description that is shown above the list
63 * of meta data. Per default the translated text for
64 * "Select which data should be shown." is set.
66 void setDescription(const QString
& description
);
67 QString
description() const;
72 QLabel
* m_descriptionLabel
;
74 KFileMetaDataConfigurationWidget
* m_configWidget
;
76 Baloo::FileMetaDataConfigWidget
* m_configWidget
;