Krita Source Code Documentation
Loading...
Searching...
No Matches
dlg_waveletdecompose.cpp
Go to the documentation of this file.
1/*
2 *
3 * SPDX-FileCopyrightText: 2016 Miroslav Talasek <miroslav.talasek@seznam.cz>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
9
10#include <klocalizedstring.h>
11#include <kis_debug.h>
12
14 const char * name)
15 : KoDialog(parent)
16{
17 setCaption(i18n("WaveletDecompose"));
20 setObjectName(name);
21
22 m_page = new WdgWaveletDecompose(this);
23 Q_CHECK_PTR(m_page);
24 m_page->layout()->setContentsMargins(0, 0, 0, 0);
25 m_page->setObjectName("wavelet_decompose");
26
28 resize(m_page->sizeHint());
29
30 connect(this, SIGNAL(okClicked()),
31 this, SLOT(okClicked()));
32
33}
34
39
41{
42 m_page->scales->setValue(scales);
43
44}
45
46
48{
49 return m_page->scales->value();
50}
51
52
53// SLOTS
54
56{
57 accept();
58}
59
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
WdgWaveletDecompose * m_page
void setScales(quint32 scales)
DlgWaveletDecompose(QWidget *parent=0, const char *name=0)
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
void setMainWidget(QWidget *widget)
Definition KoDialog.cpp:354
virtual void setCaption(const QString &caption)
Definition KoDialog.cpp:498
void setButtons(ButtonCodes buttonMask)
Definition KoDialog.cpp:195
void setDefaultButton(ButtonCode id)
Definition KoDialog.cpp:302
@ Ok
Show Ok button. (this button accept()s the dialog; result set to QDialog::Accepted)
Definition KoDialog.h:127
@ Cancel
Show Cancel-button. (this button reject()s the dialog; result set to QDialog::Rejected)
Definition KoDialog.h:130