#include <dlg_shrink_selection.h>
Definition at line 16 of file dlg_shrink_selection.h.
◆ WdgShrinkSelection()
Definition at line 18 of file dlg_shrink_selection.cc.
22{
23 Q_ASSERT(view);
25 Q_ASSERT(image);
27
28 setupUi(this);
29
31 spbShrinkValue->setFocus();
32 spbShrinkValue->setVisible(true);
33 spbShrinkValueDouble->setVisible(false);
34
38
39
42 spbGroup->
addWidget(spbShrinkValueDouble);
43
46 connect(cmbUnit, SIGNAL(currentIndexChanged(
int)),
this, SLOT(
slotUnitChanged(
int)));
48}
void addWidget(QWidget *widget)
KisImageWSP image() const
Return the image this view is displaying.
static QStringList listOfUnitNameForUi(ListOptions listOptions=ListAll)
Returns the list of unit types for the UI, controlled with the given listOptions.
void slotUnitChanged(int index)
void slotShrinkFromImageBorderChanged(bool value)
void slotShrinkValueChanged(int value)
bool m_shrinkFromImageBorder
References KisSizeGroup::addWidget(), KisViewManager::image(), KoUnit::listOfUnitNameForUi(), m_resolution, m_shrinkFromImageBorder, m_shrinkValue, KoUnit::Pixel, slotShrinkFromImageBorderChanged(), slotShrinkValueChanged(), slotUnitChanged(), and KisImage::yRes().
◆ getConfiguration()
◆ slotShrinkFromImageBorderChanged
| void WdgShrinkSelection::slotShrinkFromImageBorderChanged |
( |
bool | value | ) |
|
|
privateslot |
◆ slotShrinkValueChanged [1/2]
| void WdgShrinkSelection::slotShrinkValueChanged |
( |
double | value | ) |
|
|
privateslot |
◆ slotShrinkValueChanged [2/2]
| void WdgShrinkSelection::slotShrinkValueChanged |
( |
int | value | ) |
|
|
privateslot |
◆ slotUnitChanged
| void WdgShrinkSelection::slotUnitChanged |
( |
int | index | ) |
|
|
privateslot |
◆ updateShrinkUIValue()
| void WdgShrinkSelection::updateShrinkUIValue |
( |
double | value | ) |
|
|
private |
◆ m_resolution
| double WdgShrinkSelection::m_resolution |
|
private |
◆ m_shrinkFromImageBorder
| bool WdgShrinkSelection::m_shrinkFromImageBorder |
|
private |
◆ m_shrinkValue
| int WdgShrinkSelection::m_shrinkValue |
|
private |
The documentation for this class was generated from the following files: