digiKam
Loading...
Searching...
No Matches
addtagscombobox.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-09-15
7 * Description : Special combo box for adding or creating tags
8 *
9 * SPDX-FileCopyrightText: 2010 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QEvent>
20
21// Local includes
22
23#include "albumselectcombobox.h"
24#include "taggingaction.h"
25
26namespace Digikam
27{
28
29class AddTagsCompletionBox;
30class AddTagsLineEdit;
31class Album;
32class CheckableAlbumFilterModel;
33class TAlbum;
34class TagModel;
35class TagPropertiesFilterModel;
36class TagTreeView;
37
39{
40 Q_OBJECT
41
42public:
43
44 explicit AddTagsComboBox(QWidget* const parent = nullptr);
45 ~AddTagsComboBox() override;
46
51 void setAlbumModels(TagModel* const model,
52 TagPropertiesFilterModel* const filteredModel = nullptr,
53 CheckableAlbumFilterModel* const filterModel = nullptr);
54
61
65 void setCurrentTag(TAlbum* const album);
66
67 void setPlaceholderText(const QString& message);
68
69 QString text() const;
70 void setText(const QString& text);
71
73
74public Q_SLOTS:
75
79 void setParentTag(TAlbum* const album);
80
81Q_SIGNALS:
82
87
93
94protected Q_SLOTS:
95
96 void slotViewIndexActivated(const QModelIndex&);
98 void slotLineEditActionSelected(const TaggingAction& action);
99
100protected:
101
102 bool eventFilter(QObject* object, QEvent* event) override;
103
104private:
105
106 // Disable
107 void setEditable(bool editable);
108
109private:
110
111 class Private;
112 Private* const d = nullptr;
113};
114
115} // namespace Digikam
Definition addtagscombobox.h:39
void slotLineEditActionActivated(const TaggingAction &action)
Definition addtagscombobox.cpp:165
QString text() const
Definition addtagscombobox.cpp:127
void slotLineEditActionSelected(const TaggingAction &action)
Definition addtagscombobox.cpp:172
AddTagsLineEdit * lineEdit() const
Definition addtagscombobox.cpp:106
void setPlaceholderText(const QString &message)
Definition addtagscombobox.cpp:122
void setParentTag(TAlbum *const album)
Definition addtagscombobox.cpp:111
void taggingActionActivated(const TaggingAction &action)
void setCurrentTag(TAlbum *const album)
Definition addtagscombobox.cpp:116
void setAlbumModels(TagModel *const model, TagPropertiesFilterModel *const filteredModel=nullptr, CheckableAlbumFilterModel *const filterModel=nullptr)
Definition addtagscombobox.cpp:95
~AddTagsComboBox() override
Definition addtagscombobox.cpp:90
void taggingActionSelected(const TaggingAction &action)
bool eventFilter(QObject *object, QEvent *event) override
Definition addtagscombobox.cpp:179
void setText(const QString &text)
Definition addtagscombobox.cpp:132
void slotViewIndexActivated(const QModelIndex &)
Definition addtagscombobox.cpp:147
TaggingAction currentTaggingAction()
Definition addtagscombobox.cpp:137
Definition addtagslineedit.h:36
QSortFilterProxyModel * filterModel() const
Definition albumselectcombobox.cpp:243
AbstractCheckableAlbumModel * model() const
Definition albumselectcombobox.cpp:238
Definition albumfiltermodel.h:284
Definition album.h:421
Definition albummodel.h:57
Definition albumfiltermodel.h:366
Definition albumselectcombobox.h:183
Definition taggingaction.h:26
@ Album
Definition coredbfields.h:48
Definition datefolderview.cpp:34