digiKam
importfiltercombobox.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2010-12-16
7  * Description : Import filter combobox
8  *
9  * Copyright (C) 2010-2011 by Petri Damstén <petri dot damsten at iki dot fi>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IMPORT_FILTER_COMBOBOX_H
25 #define DIGIKAM_IMPORT_FILTER_COMBOBOX_H
26 
27 // Qt includes
28 
29 #include <QComboBox>
30 
31 // Local includes
32 
33 #include "filter.h"
34 
35 namespace Digikam
36 {
37 
38 class CamItemInfo;
39 
40 class ImportFilterComboBox : public QComboBox
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit ImportFilterComboBox(QWidget* const parent);
47  ~ImportFilterComboBox() override;
48 
50  void saveSettings();
51 
52  static void defaultFilters(FilterList* const filters);
53  static const QString defaultIgnoreNames;
54  static const QString defaultIgnoreExtensions;
55 
56 Q_SIGNALS:
57 
59 
60 protected:
61 
62  void fillCombo();
63 
64 protected Q_SLOTS:
65 
66  void indexChanged(int index);
67 
68 private:
69 
70  class Private;
71  Private* const d;
72 };
73 
74 } // namespace Digikam
75 
76 #endif // DIGIKAM_IMPORT_FILTER_COMBOBOX_H
Definition: filter.h:44
Definition: importfiltercombobox.h:41
Filter * currentFilter()
Definition: importfiltercombobox.cpp:108
void saveSettings()
Definition: importfiltercombobox.cpp:172
void indexChanged(int index)
Definition: importfiltercombobox.cpp:162
void signalFilterChanged(Filter *)
void fillCombo()
Definition: importfiltercombobox.cpp:150
ImportFilterComboBox(QWidget *const parent)
Definition: importfiltercombobox.cpp:93
static const QString defaultIgnoreExtensions
Definition: importfiltercombobox.h:54
~ImportFilterComboBox() override
Definition: importfiltercombobox.cpp:103
static const QString defaultIgnoreNames
Definition: importfiltercombobox.h:53
static void defaultFilters(FilterList *const filters)
Definition: importfiltercombobox.cpp:115
Definition: datefolderview.cpp:43