1 /**
2  * Mandelbulber v2, a 3D fractal generator       ,=#MKNmMMKmmßMNWy,
3  *                                             ,B" ]L,,p%%%,,,§;, "K
4  * Copyright (C) 2016-17 Mandelbulber Team     §R-==%w["'~5]m%=L.=~5N
5  *                                        ,=mm=§M ]=4 yJKA"/-Nsaj  "Bw,==,,
6  * This file is part of Mandelbulber.    §R.r= jw",M  Km .mM  FW ",§=ß., ,TN
7  *                                     ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M
8  * Mandelbulber is free software:     §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw
9  * you can redistribute it and/or     §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" §
10  * modify it under the terms of the    "§M=M =D=4"N #"%==A%p M§ M6  R' #"=~.4M
11  * GNU General Public License as        §W =, ][T"]C  §  § '§ e===~ U  !§[Z ]N
12  * published by the                    4M",,Jm=,"=e~  §  §  j]]""N  BmM"py=ßM
13  * Free Software Foundation,          ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§,
14  * either version 3 of the License,    TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N
15  * or (at your option)                   TW=,-#"%=;[  =Q:["V""  ],,M.m == ]N
16  * any later version.                      J§"mr"] ,=,," =="""J]= M"M"]==ß"
17  *                                          §= "=C=4 §"eM "=B:m|4"]#F,§~
18  * Mandelbulber is distributed in            "9w=,,]w em%wJ '"~" ,=,,ß"
19  * the hope that it will be useful,                 . "K=  ,=RMMMßM"""
20  * but WITHOUT ANY WARRANTY;                            .'''
21  * without even the implied warranty
22  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23  *
24  * See the GNU General Public License for more details.
25  * You should have received a copy of the GNU General Public License
26  * along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>.
27  *
28  * ###########################################################################
29  *
30  * Authors: Krzysztof Marczak (buddhi1980@gmail.com)
31  *
32  * cAutomatedWidgets class provides connection between sliders
33  * and edit fields. This class should be subclassed in every window or dialog
34  * with edit fields and called there ConnectSignalsForSlidersInWindow();
35  */
36 
37 #ifndef MANDELBULBER2_SRC_AUTOMATED_WIDGETS_HPP_
38 #define MANDELBULBER2_SRC_AUTOMATED_WIDGETS_HPP_
39 
40 #include <QObject>
41 
42 class cAutomatedWidgets : public QObject
43 {
44 	Q_OBJECT
45 public:
46 	cAutomatedWidgets(QObject *parent);
47 	void ConnectSignalsForSlidersInWindow(QWidget *window) const;
48 
49 private slots:
50 	void slotSliderMoved(int value) const;
51 	void slotDoubleSpinBoxChanged(double value) const;
52 	void slotIntSliderMoved(int value) const;
53 	void slotIntSpinBoxChanged(int value) const;
54 	void slotSlider3Moved(int value) const;
55 	void slotSlider4Moved(int value) const;
56 	void slotSpinBox3Changed(double value) const;
57 	void slotSpinBox4Changed(double value) const;
58 	void slotDial3Moved(int value) const;
59 	void slotDial4Moved(int value) const;
60 	void slotSpinBoxD3Changed(double value) const;
61 	void slotSpinBoxD4Changed(double value) const;
62 	void slotDialMoved(int value) const;
63 	void slotSpinBoxDChanged(double value) const;
64 	void slotLogSliderMoved(int value) const;
65 	void slotLogSliderVect3Moved(int value) const;
66 	void slotLogLineEditChanged(const QString &text) const;
67 	void slotLogVect3Changed(const QString &text) const;
68 };
69 
70 #endif /* MANDELBULBER2_SRC_AUTOMATED_WIDGETS_HPP_ */
71