Krita Source Code Documentation
Loading...
Searching...
No Matches
KisScreentoneConfigWidget.h
Go to the documentation of this file.
1/*
2 * KDE. Krita Project.
3 *
4 * SPDX-FileCopyrightText: 2020 Deif Lou <ginoba@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9#ifndef KISSCREENTONECONFIGWIDGET_H
10#define KISSCREENTONECONFIGWIDGET_H
11
12#include <kis_config_widget.h>
13#include <KoColorSpace.h>
15
16#include "ui_KisScreentoneConfigWidget.h"
17
18class KisViewManager;
19class Ui_WdgScreentoneOptions;
20
22{
23 Q_OBJECT
24public:
25 KisScreentoneConfigWidget(QWidget* parent = 0, const KoColorSpace *cs = KoColorSpaceRegistry::instance()->rgb8());
27
30
31 void setView(KisViewManager *view) override;
32
33private:
34 constexpr static qreal minimumCellSize{1.0};
35 constexpr static qreal maximumCellSize{1000.0};
36
37 Ui_ScreentoneConfigWidget m_ui;
41
43 void setupShapeComboBox();
45
46 int shapeToComboIndex(int pattern, int shape) const;
47 int comboIndexToShape(int patterIndex, int shapeIndex) const;
48
49private Q_SLOTS:
52
66
70};
71
72#endif
float value(const T *src, size_t ch)
KisPropertiesConfigurationSP configuration() const override
void slot_sliderResolution_valueChanged(qreal value)
void slot_buttonConstrainFrequency_keepAspectRatioChanged(bool keep)
static constexpr qreal maximumCellSize
int comboIndexToShape(int patterIndex, int shapeIndex) const
void setConfiguration(const KisPropertiesConfigurationSP) override
void slot_sliderAlignToPixelGridX_valueChanged(int value)
void slot_buttonSizeModePixelBased_toggled(bool checked)
void slot_sliderAlignToPixelGridY_valueChanged(int value)
void slot_buttonSizeModeResolutionBased_toggled(bool checked)
Ui_ScreentoneConfigWidget m_ui
void slot_sliderFrequencyX_valueChanged(qreal value)
void slot_buttonConstrainSize_keepAspectRatioChanged(bool keep)
void slot_sliderFrequencyY_valueChanged(qreal value)
KisScreentoneConfigWidget(QWidget *parent=0, const KoColorSpace *cs=KoColorSpaceRegistry::instance() ->rgb8())
void setView(KisViewManager *view) override
int shapeToComboIndex(int pattern, int shape) const
static constexpr qreal minimumCellSize
static KoColorSpaceRegistry * instance()