#include <kis_dlg_layer_style.h>
Definition at line 203 of file kis_dlg_layer_style.h.
◆ StylesSelector()
| StylesSelector::StylesSelector |
( |
QWidget * | parent | ) |
|
Definition at line 671 of file kis_dlg_layer_style.cpp.
672 : QWidget(parent)
673{
675
680
683
684
685 ui.listStyles->setEditTriggers(QAbstractItemView::EditTrigger::NoEditTriggers);
686
687 connect(
ui.cmbStyleCollections, SIGNAL(textActivated(QString)),
this, SLOT(
loadStyles(QString)));
688 connect(
ui.listStyles, SIGNAL(clicked(QModelIndex)),
this, SLOT(
selectStyle(QModelIndex)));
689
691
692 if (
ui.cmbStyleCollections->count()) {
693 ui.cmbStyleCollections->setCurrentIndex(0);
696 }
697}
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 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 767 of file kis_dlg_layer_style.cpp.
768{
769 Q_UNUSED(fileName);
770
771 warnKrita <<
"Collection cannot be loaded, because we do not use collections now; please use KisAslStorage instead.";
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793}
References warnKrita.
◆ loadStyles
| void StylesSelector::loadStyles |
( |
const QString & | name | ) |
|
|
privateslot |
◆ notifyExternalStyleChanged()
| void StylesSelector::notifyExternalStyleChanged |
( |
const QString & | name, |
|
|
const QUuid & | uuid ) |
Definition at line 713 of file kis_dlg_layer_style.cpp.
714{
715 Q_UNUSED(name);
716 Q_UNUSED(uuid);
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740}
◆ refillCollections()
| void StylesSelector::refillCollections |
( |
| ) |
|
◆ selectStyle
| void StylesSelector::selectStyle |
( |
QModelIndex | current | ) |
|
|
privateslot |
Definition at line 747 of file kis_dlg_layer_style.cpp.
748{
749
750
754 qDebug() << "StylesSelector::selectStyle" << (resource.isNull() ? "(null)" : resource->name()) << (layerStyle.isNull() ? "(null)" : layerStyle->name());
755 if (layerStyle) {
757 }
758
759
760
761
762
763
764
765}
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: