]> cloud.milkyroute.net Git - dolphin.git/blob - src/panels/information/filemetadataconfigurationdialog.h
Remove unused #include
[dolphin.git] / src / panels / information / filemetadataconfigurationdialog.h
1 /***************************************************************************
2 * Copyright (C) 2010 by Peter Penz <peter.penz19@gmail.com> *
3 * *
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. *
8 * *
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. *
13 * *
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 ***************************************************************************/
19
20 #ifndef FILEMETADATACONFIGURATIONDIALOG_H
21 #define FILEMETADATACONFIGURATIONDIALOG_H
22
23 #include <KFileItem>
24 #include <config-baloo.h>
25 #ifndef HAVE_BALOO
26 class KFileMetaDataConfigurationWidget;
27 #else
28
29 #include <QDialog>
30
31 namespace Baloo {
32 class FileMetaDataConfigWidget;
33 }
34 #endif
35
36 class QLabel;
37
38 /**
39 * @brief Dialog which allows to configure which meta data should be shown
40 * in the KFileMetaDataWidget.
41 */
42 class FileMetaDataConfigurationDialog : public QDialog
43 {
44 Q_OBJECT
45
46 public:
47 explicit FileMetaDataConfigurationDialog(QWidget* parent = nullptr);
48 ~FileMetaDataConfigurationDialog() override;
49
50 /**
51 * Sets the items, for which the visibility of the meta data should
52 * be configured. Note that the visibility of the meta data is not
53 * bound to the items itself, the items are only used to determine
54 * which meta data should be configurable. For example when a JPEG image
55 * is set as item, it will be configurable which EXIF data should be
56 * shown. If an audio file is set as item, it will be configurable
57 * whether the artist, album name, ... should be shown.
58 */
59 void setItems(const KFileItemList& items);
60 KFileItemList items() const;
61
62 /**
63 * Sets the description that is shown above the list
64 * of meta data. Per default the translated text for
65 * "Select which data should be shown." is set.
66 */
67 void setDescription(const QString& description);
68 QString description() const;
69
70 protected slots:
71 void slotAccepted();
72 private:
73 QLabel* m_descriptionLabel;
74 #ifndef HAVE_BALOO
75 KFileMetaDataConfigurationWidget* m_configWidget;
76 #else
77 Baloo::FileMetaDataConfigWidget* m_configWidget;
78 #endif
79 };
80
81 #endif