2
* This file is part of Krita
4
* Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* Ported from the CImg Gimp plugin by Victor Stinner and David Tschumperlé.
23
#include "qcheckbox.h"
24
#include "qpushbutton.h"
26
#include "knuminput.h"
28
#include "kis_filter_configuration_widget.h"
30
#include "kis_cimgconfig_widget.h"
31
#include "kis_cimg_filter.h"
33
KisCImgconfigWidget::KisCImgconfigWidget(KisFilter* nfilter, QWidget * parent, const char * name, WFlags f)
34
: KisFilterConfigurationWidget(nfilter, parent, name, f)
36
m_page = new WdgCImg(this);
39
QHBoxLayout * l = new QHBoxLayout(this);
43
filter() -> setAutoUpdate(false);
44
connect( m_page -> bnRefresh, SIGNAL(clicked()), filter(), SLOT(refreshPreview()));
48
KisCImgFilterConfiguration * KisCImgconfigWidget::config()
50
KisCImgFilterConfiguration * cfg = new KisCImgFilterConfiguration();
53
cfg -> power1 = m_page -> numDetail -> value();
54
cfg -> power2 = m_page -> numGradient -> value();
55
cfg -> dt = m_page -> numTimeStep -> value();
56
cfg -> sigma = m_page -> numBlur -> value();
57
cfg -> nb_iter = m_page -> numBlurIterations -> value();
58
cfg -> dtheta = m_page -> numAngularStep -> value();
59
cfg -> dlength = m_page -> numIntegralStep -> value();
60
cfg -> gauss_prec = m_page -> numGaussian -> value();
61
cfg -> linear = m_page -> chkLinearInterpolation -> isChecked();
62
cfg -> onormalize = m_page -> chkNormalize -> isChecked();
67
#include "kis_cimgconfig_widget.moc"