/
preview_file_dialog.h
77 lines (70 loc) · 2.89 KB
/
preview_file_dialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy,
* ,B" ]L,,p%%%,,,§;, "K
* Copyright (C) 2016 Krzysztof Marczak §R-==%w["'~5]m%=L.=~5N
* ,=mm=§M ]=4 yJKA"/-Nsaj "Bw,==,,
* This file is part of Mandelbulber. §R.r= jw",M Km .mM FW ",§=ß., ,TN
* ,4R =%["w[N=7]J '"5=],""]]M,w,-; T=]M
* Mandelbulber is free software: §R.ß~-Q/M=,=5"v"]=Qf,'§"M= =,M.§ Rz]M"Kw
* you can redistribute it and/or §w "xDY.J ' -"m=====WeC=\ ""%""y=%"]"" §
* modify it under the terms of the "§M=M =D=4"N #"%==A%p M§ M6 R' #"=~.4M
* GNU General Public License as §W =, ][T"]C § § '§ e===~ U !§[Z ]N
* published by the 4M",,Jm=,"=e~ § § j]]""N BmM"py=ßM
* Free Software Foundation, ]§ T,M=& 'YmMMpM9MMM%=w=,,=MT]M m§;'§,
* either version 3 of the License, TWw [.j"5=~N[=§%=%W,T ]R,"=="Y[LFT ]N
* or (at your option) TW=,-#"%=;[ =Q:["V"" ],,M.m == ]N
* any later version. J§"mr"] ,=,," =="""J]= M"M"]==ß"
* §= "=C=4 §"eM "=B:m|4"]#F,§~
* Mandelbulber is distributed in "9w=,,]w em%wJ '"~" ,=,,ß"
* the hope that it will be useful, . "K= ,=RMMMßM"""
* but WITHOUT ANY WARRANTY; .'''
* without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with Mandelbulber. If not, see <http://www.gnu.org/licenses/>.
*
* ###########################################################################
*
* Authors: Krzysztof Marczak (buddhi1980@gmail.com)
*
* PreviewFileDialog - promoted QFileDialog for selection of fractal settings with a preview
*/
#ifndef MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_
#define MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_
#include <QCheckBox>
#include <QFileDialog>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
// forward declarations
class cThumbnailWidget;
class MyProgressBar;
class PreviewFileDialog : public QFileDialog
{
Q_OBJECT
public:
PreviewFileDialog(QWidget *parent = 0);
~PreviewFileDialog();
protected slots:
void OnCurrentChanged(const QString &filename);
void OnPresetAdd();
void OnQueueAdd();
void slotUpdateProgressAndStatus(
const QString &text, const QString &progressText, double progress);
void slotHideProgressBar();
private:
QVBoxLayout *vboxlayout;
QCheckBox *checkbox;
MyProgressBar *progressBar;
QPushButton *presetAddButton;
QPushButton *queueAddButton;
QString filename;
protected:
QLabel *preview;
QLabel *description;
QLabel *info;
cThumbnailWidget *thumbWidget;
};
#endif /* MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_ */