Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_selection_options.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2005 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SELECTION_OPTIONS_H__
8#define __KIS_SELECTION_OPTIONS_H__
9
10#include "kritaui_export.h"
11
13#include <KisSelectionTags.h>
14
15class QKeySequence;
16
18{
19 Q_OBJECT
20
21public:
22 enum ReferenceLayers { CurrentLayer, AllLayers, ColorLabeledLayers };
23
24 KisSelectionOptions(QWidget *parent = nullptr);
25 ~KisSelectionOptions() override;
26
27 SelectionMode mode() const;
28 SelectionAction action() const;
29 bool antiAliasSelection() const;
30 int growSelection() const;
31 bool stopGrowingAtDarkestPixel() const;
32 int featherSelection() const;
33 ReferenceLayers referenceLayers() const;
34 QList<int> selectedColorLabels() const;
35
36 void setMode(SelectionMode newMode);
37 void setAction(SelectionAction newAction);
38 void setAntiAliasSelection(bool newAntiAliasSelection);
39 void setGrowSelection(int newGrowSelection);
40 void setStopGrowingAtDarkestPixel(bool newStopGrowingAtDarkestPixel);
41 void setFeatherSelection(int newFeatherSelection);
42 void setReferenceLayers(ReferenceLayers newReferenceLayers);
43 void setSelectedColorLabels(const QList<int> &newSelectedColorLabels);
44
45 void setModeSectionVisible(bool visible);
46 void setActionSectionVisible(bool visible);
47 void setAdjustmentsSectionVisible(bool visible);
48 void setStopGrowingAtDarkestPixelButtonVisible(bool visible);
49 void setReferenceSectionVisible(bool visible);
50
51 void updateActionButtonToolTip(SelectionAction action,
52 const QKeySequence &shortcut);
53
54Q_SIGNALS:
57 void antiAliasSelectionChanged(bool antiAliasSelection);
58 void growSelectionChanged(int growSelection);
59 void stopGrowingAtDarkestPixelChanged(bool stopGrowingAtDarkestPixel);
60 void featherSelectionChanged(int featherSelection);
63
64private:
65 class Private;
66 QScopedPointer<Private> m_d;
67};
68
69#endif
70
SelectionMode
SelectionAction
Class providing a list of widgets with some addons such as separators, orientation or individual widg...
void actionChanged(SelectionAction action)
void antiAliasSelectionChanged(bool antiAliasSelection)
void featherSelectionChanged(int featherSelection)
void selectedColorLabelsChanged()
void referenceLayersChanged(ReferenceLayers referenceLayers)
QScopedPointer< Private > m_d
void stopGrowingAtDarkestPixelChanged(bool stopGrowingAtDarkestPixel)
void growSelectionChanged(int growSelection)
void modeChanged(SelectionMode mode)