15#include <QInputDialog>
19#include <klocalizedstring.h>
20#include <ksharedconfig.h>
21#include <kconfiggroup.h>
90 KConfigGroup group = KSharedConfig::openConfig()->group(
"SelectedTags");
91 QString tag = group.readEntry<QString>(
d->
resourceType,
"All");
97 d->
model->setTagFilter(tag);
102 d->
model->setSearchText(lineEditText);
107 d->
model->setFilterInCurrentTag(filterByTag);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
QPointer< KisTagFilterResourceProxyModel > model
model main data model for resources in the item chooser that the Tagging Manager is taking care of
KisTagFilterWidget * tagFilter
tagFilter resources filter widget (resources filter box + "filter by tag" checkbox)
KisTagModel * tagModel
tagModel main tag model for tags in the tags combobox
KisTagChooserWidget * tagChooser
tagChooser tag chooser widget (tags combobox + tag tool button with the popup)
KisTagFilterWidget * tagFilterWidget()
tagFilterWidget method to get the tag filter widget
KisResourceTaggingManager(QString resourceType, KisTagFilterResourceProxyModel *model, QWidget *parent)
KisResourceTaggingManager standard constructor of the KisResourceTaggingManager class.
void slotFilterByTagChanged(const bool filterByTag)
slotFilterByTagChanged slot for the "filter by tag" checkbox being checked or unchecked by the user
~KisResourceTaggingManager() override
~KisResourceTaggingManager destructor
void tagSearchLineEditTextChanged(const QString &lineEditText)
tagSearchLineEditTextChanged slot for the signal that the text in the filter changed
void tagChooserIndexChanged(const KisTagSP tag)
tagChooserIndexChanged slot for the signal that the tag chosen in the tags combobox changed
KisTagChooserWidget * tagChooserWidget()
tagChooserWidget method to get the tag chooser widget
void showTaggingBar(bool show)
showTaggingBar method to show or hide the tag chooser bar and the tag filter
void contextMenuRequested(KoResourceSP currentResource, QPoint pos)
contextMenuRequested method to get the context menu
The KisTagFilterResourceProxyModel class filters the resources by tag or resource name.