#include <dlg_border_selection.h>
Definition at line 16 of file dlg_border_selection.h.
◆ WdgBorderSelection()
Definition at line 19 of file dlg_border_selection.cc.
21 ,
m_width(config->getInt(
"x-radius", 1))
23{
24 Q_ASSERT(view);
26 Q_ASSERT(image);
28
29 setupUi(this);
30
32 spbWidth->setFocus();
33 spbWidth->setVisible(true);
34 spbWidthDouble->setVisible(false);
35
38
39
43
49}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
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 slotWidthChanged(int width)
void slotUpdateAntialiasingAvailability()
void slotAntialiasingChanged(bool value)
void slotUnitChanged(int index)
References KisSizeGroup::addWidget(), connect(), KisViewManager::image(), KoUnit::listOfUnitNameForUi(), m_resolution, m_width, KoUnit::Pixel, slotAntialiasingChanged(), slotUnitChanged(), slotUpdateAntialiasingAvailability(), slotWidthChanged(), and KisImage::yRes().
◆ getConfiguration()
◆ slotAntialiasingChanged
| void WdgBorderSelection::slotAntialiasingChanged |
( |
bool | value | ) |
|
|
privateslot |
◆ slotUnitChanged
| void WdgBorderSelection::slotUnitChanged |
( |
int | index | ) |
|
|
privateslot |
◆ slotUpdateAntialiasingAvailability
| void WdgBorderSelection::slotUpdateAntialiasingAvailability |
( |
| ) |
|
|
privateslot |
Definition at line 83 of file dlg_border_selection.cc.
84{
85 const bool antialiasingEnabled =
m_width > 1;
86
87 if (antialiasingEnabled) {
89 } else {
91 chkAntialiasing->setChecked(false);
93 }
94
95 chkAntialiasing->setEnabled(antialiasingEnabled);
96}
References m_antialiasing, and m_width.
◆ slotWidthChanged [1/2]
| void WdgBorderSelection::slotWidthChanged |
( |
double | width | ) |
|
|
privateslot |
◆ slotWidthChanged [2/2]
| void WdgBorderSelection::slotWidthChanged |
( |
int | width | ) |
|
|
privateslot |
◆ updateWidthUIValue()
| void WdgBorderSelection::updateWidthUIValue |
( |
double | value | ) |
|
|
private |
◆ m_antialiasing
| bool WdgBorderSelection::m_antialiasing = false |
|
private |
◆ m_resolution
| double WdgBorderSelection::m_resolution |
|
private |
◆ m_width
| int WdgBorderSelection::m_width |
|
private |
The documentation for this class was generated from the following files: