#include <kis_dlg_layer_style.h>
Definition at line 204 of file kis_dlg_layer_style.h.
◆ StylesSelector()
| StylesSelector::StylesSelector |
( |
QWidget * | parent | ) |
|
Definition at line 588 of file kis_dlg_layer_style.cpp.
589 : QWidget(parent)
590{
592
597
600
601
602 ui.listStyles->setEditTriggers(QAbstractItemView::EditTrigger::NoEditTriggers);
603
604 connect(
ui.cmbStyleCollections, SIGNAL(textActivated(QString)),
this, SLOT(
loadStyles(QString)));
606
608
609 if (
ui.cmbStyleCollections->count()) {
610 ui.cmbStyleCollections->setCurrentIndex(0);
613 }
614}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
The KisResourceModel class provides the main access to resources. It is possible to filter the resour...
void setEnableFiltering(bool enableFiltering)
void loadStyles(const QString &name)
void selectStyle(QModelIndex current)
LocationProxyModel * m_locationsProxyModel
KisResourceModel * m_resourceModel
const QString LayerStyles
References connect(), ResourceType::LayerStyles, loadStyles(), m_locationsProxyModel, m_resourceModel, KisAbstractResourceModel::Name, refillCollections(), selectStyle(), StylesSelector::LocationProxyModel::setEnableFiltering(), and ui.
◆ addNewStyle()
◆ loadCollection()
| void StylesSelector::loadCollection |
( |
const QString & | fileName | ) |
|
Definition at line 684 of file kis_dlg_layer_style.cpp.
685{
686 Q_UNUSED(fileName);
687
688 warnKrita <<
"Collection cannot be loaded, because we do not use collections now; please use KisAslStorage instead.";
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710}
References warnKrita.
◆ loadStyles
| void StylesSelector::loadStyles |
( |
const QString & | name | ) |
|
|
privateslot |
◆ notifyExternalStyleChanged()
| void StylesSelector::notifyExternalStyleChanged |
( |
const QString & | name, |
|
|
const QUuid & | uuid ) |
Definition at line 630 of file kis_dlg_layer_style.cpp.
631{
632 Q_UNUSED(name);
633 Q_UNUSED(uuid);
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657}
◆ refillCollections()
| void StylesSelector::refillCollections |
( |
| ) |
|
◆ selectStyle
| void StylesSelector::selectStyle |
( |
QModelIndex | current | ) |
|
|
privateslot |
Definition at line 664 of file kis_dlg_layer_style.cpp.
665{
666
667
671 qDebug() << "StylesSelector::selectStyle" << (resource.isNull() ? "(null)" : resource->name()) << (layerStyle.isNull() ? "(null)" : layerStyle->name());
672 if (layerStyle) {
674 }
675
676
677
678
679
680
681
682}
KoResourceSP resourceForIndex(QModelIndex index=QModelIndex()) const override
resourceForIndex returns a properly versioned and id'ed resource object
void styleSelected(KisPSDLayerStyleSP style)
The KisPSDLayerStyle class implements loading, saving and applying the PSD layer effects.
References m_locationsProxyModel, m_resourceModel, KisResourceModel::resourceForIndex(), and styleSelected().
◆ slotResourceModelReset
| void StylesSelector::slotResourceModelReset |
( |
| ) |
|
|
privateslot |
◆ styleSelected
◆ m_locationsProxyModel
◆ m_resourceModel
◆ ui
| Ui::WdgStylesSelector StylesSelector::ui |
|
private |
The documentation for this class was generated from the following files: