9#include <klocalizedstring.h>
21 m_offsetSize(imageSize)
33 m_page->setObjectName(
"offset_image");
36 resize(
m_page->sizeHint());
46 m_page->offsetXdoubleSpinBox->setDisplayUnit(
false);
47 m_page->offsetYdoubleSpinBox->setDisplayUnit(
false);
49 m_page->offsetXdoubleSpinBox->setReturnUnit(
"px");
50 m_page->offsetYdoubleSpinBox->setReturnUnit(
"px");
66 m_page->unitXComboBox->setCurrentIndex(xUnitIndex);
67 m_page->unitYComboBox->setCurrentIndex(yUnitIndex);
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisDocumentAwareSpinBoxUnitManager * _widthUnitManager
void slotOffsetYChanged(double)
static const QString PARAM_YOFFSET_UNIT
static const QString PARAM_XOFFSET_UNIT
static const QString PARAM_PREFIX
KisDocumentAwareSpinBoxUnitManager * _heightUnitManager
void slotOffsetXChanged(double)
~DlgOffsetImage() override
DlgOffsetImage(QWidget *parent=0, const char *name=0, QSize imageSize=QSize())
void writeEntry(const QString &name, const T &value)
T readEntry(const QString &name, const T &defaultValue=T())
The KisDocumentAwareSpinBoxUnitManager class is a KisSpinBoxUnitManager that is able to connect to th...
void setApparentUnitFromSymbol(QString pSymbol)
QString getApparentUnitSymbol() const
virtual QStringList getsUnitSymbolList(bool withName=false) const
A dialog base class with standard buttons and predefined layouts.
void setMainWidget(QWidget *widget)
virtual void setCaption(const QString &caption)
void setButtons(ButtonCodes buttonMask)
void setDefaultButton(ButtonCode id)
@ Ok
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)