9#include "klocalizedstring.h"
13#include <QApplication>
21 : QFrame(parent, Qt::Popup)
23 setFrameStyle(QFrame::Panel|QFrame::Raised);
42 QFormLayout *layout =
new QFormLayout(
this);
43 layout->addRow(i18n(
"Black:"),
m_black);
44 layout->addRow(i18n(
"White:"),
m_white);
55 QSize popupSize = size();
56 QRect popupRect(basePoint - QPoint(0, popupSize.height()), popupSize);
57 QRect screenRect = this->screen()->availableGeometry();
60 setGeometry(popupRect);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void sigWhitePointChanged(qreal value)
void showPopup(const QPoint &basePoint)
KisDoubleSliderSpinBox * m_black
BlackWhitePointChooser(QWidget *parent)
KisDoubleSliderSpinBox * m_white
void setWhitePoint(qreal wp)
void setBlackPoint(qreal bp)
~BlackWhitePointChooser()
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)
QRect kisEnsureInRect(QRect rc, const QRect &bounds)