#include <layergroupswitcher.h>
Definition at line 15 of file layergroupswitcher.h.
◆ LayerGroupSwitcher()
| LayerGroupSwitcher::LayerGroupSwitcher |
( |
QObject * | parent, |
|
|
const QVariantList & | ) |
Definition at line 28 of file layergroupswitcher.cpp.
30{
32 addAction(
"LayerGroupSwitcher/previous", action);
34
35 action =
new KisAction(i18n(
"Move into next group"),
this);
36 addAction(
"LayerGroupSwitcher/next", action);
38}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void addAction(const QString &name, KisAction *action)
KisActionPlugin(QObject *parent=0)
void moveIntoPreviousGroup()
References connect().
◆ ~LayerGroupSwitcher()
| LayerGroupSwitcher::~LayerGroupSwitcher |
( |
| ) |
|
|
override |
◆ moveIntoNextGroup
| void LayerGroupSwitcher::moveIntoNextGroup |
( |
| ) |
|
|
privateslot |
Definition at line 44 of file layergroupswitcher.cpp.
45{
47 if (!image) {
48 return;
49 }
52 if (!active) {
53 return;
54 }
59 if (active) {
61 }
62 }
63 else if (active->
parent()) {
65 if (parent) {
71 if (active) {
73 }
75 if (child) {
78 }
79 }
80 }
82
83}
QPointer< KisViewManager > viewManager() const
void refreshGraphAsync(KisNodeSP root, const QVector< QRect > &rects, const QRect &cropRect, KisProjectionUpdateFlags flags=KisProjectionUpdateFlag::None) override
KisGroupLayerSP rootLayer() const
void activateNextNode(bool siblingsOnly=false)
void slotNonUiActivatedNode(KisNodeSP node)
ChildIterator< value_type, is_const > parent(const ChildIterator< value_type, is_const > &it)
virtual void setVisible(bool visible, bool loading=false)
KisLayerSP parentLayer() const
int index(const KisNodeSP node) const
KisNodeSP at(quint32 index) const
References KisNodeManager::activateNextNode(), KisNodeManager::activeLayer(), KisNode::at(), KisSharedPtr< T >::data(), KisNode::index(), KisNode::parent, KisLayer::parentLayer(), KisImage::refreshGraphAsync(), KisImage::rootLayer(), KisBaseNode::setVisible(), KisNodeManager::slotNonUiActivatedNode(), and KisActionPlugin::viewManager().
◆ moveIntoPreviousGroup
| void LayerGroupSwitcher::moveIntoPreviousGroup |
( |
| ) |
|
|
privateslot |
Definition at line 85 of file layergroupswitcher.cpp.
86{
88 if (!image) {
89 return;
90 }
93 if (!active) {
94 return;
95 }
100 if (active) {
102 }
103 }
104 else if (active->
parent()) {
106 if (parent) {
107 int indexInGroup = active->
parent()->
index(active);
109 parent->setVisible(
false);
112 if (active) {
114 }
116 if (child) {
119 }
120 }
121 }
123}
void activatePreviousNode(bool siblingsOnly=false)
References KisNodeManager::activatePreviousNode(), KisNodeManager::activeLayer(), KisNode::at(), KisSharedPtr< T >::data(), KisNode::index(), KisNode::parent, KisLayer::parentLayer(), KisImage::refreshGraphAsync(), KisImage::rootLayer(), KisBaseNode::setVisible(), KisNodeManager::slotNonUiActivatedNode(), and KisActionPlugin::viewManager().
The documentation for this class was generated from the following files: