#include <black_white_point_chooser.h>
Definition at line 15 of file black_white_point_chooser.h.
◆ BlackWhitePointChooser()
| BlackWhitePointChooser::BlackWhitePointChooser |
( |
QWidget * | parent | ) |
|
Definition at line 20 of file black_white_point_chooser.cpp.
21 : QFrame(parent, Qt::Popup)
22{
23 setFrameStyle(QFrame::Panel|QFrame::Raised);
24
31
38
41
42 QFormLayout *
layout =
new QFormLayout(
this);
45}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void sigWhitePointChanged(qreal value)
KisDoubleSliderSpinBox * m_black
KisDoubleSliderSpinBox * m_white
void sigBlackPointChanged(qreal value)
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
void setValue(qreal newValue)
void setRange(qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range.
void setExponentRatio(qreal newExponentRatio)
References connect(), m_black, m_white, KisDoubleSliderSpinBox::setExponentRatio(), KisDoubleSliderSpinBox::setRange(), KisDoubleSliderSpinBox::setValue(), sigBlackPointChanged(), and sigWhitePointChanged().
◆ ~BlackWhitePointChooser()
| BlackWhitePointChooser::~BlackWhitePointChooser |
( |
| ) |
|
◆ blackPoint()
| qreal BlackWhitePointChooser::blackPoint |
( |
| ) |
const |
◆ setBlackPoint()
| void BlackWhitePointChooser::setBlackPoint |
( |
qreal | bp | ) |
|
◆ setWhitePoint()
| void BlackWhitePointChooser::setWhitePoint |
( |
qreal | wp | ) |
|
◆ showPopup()
| void BlackWhitePointChooser::showPopup |
( |
const QPoint & | basePoint | ) |
|
Definition at line 51 of file black_white_point_chooser.cpp.
52{
53 show();
54
56 QRect popupRect(basePoint - QPoint(0,
popupSize.height()), popupSize);
57 QRect screenRect = this->screen()->availableGeometry();
58
60 setGeometry(popupRect);
61}
QRect kisEnsureInRect(QRect rc, const QRect &bounds)
int size(const Forest< T > &forest)
const NumericSetting< int > popupSize
References kisEnsureInRect().
◆ sigBlackPointChanged
| void BlackWhitePointChooser::sigBlackPointChanged |
( |
qreal | value | ) |
|
|
signal |
◆ sigWhitePointChanged
| void BlackWhitePointChooser::sigWhitePointChanged |
( |
qreal | value | ) |
|
|
signal |
◆ whitePoint()
| qreal BlackWhitePointChooser::whitePoint |
( |
| ) |
const |
◆ m_black
◆ m_white
The documentation for this class was generated from the following files: