1 /** 2 * Mandelbulber v2, a 3D fractal generator ,=#MKNmMMKmmßMNWy, 3 * ,B" ]L,,p%%%,,,§;, "K 4 * Copyright (C) 2016-21 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 * PreviewFileDialog - promoted QFileDialog for selection of fractal settings with a preview 33 */ 34 35 #ifndef MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_ 36 #define MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_ 37 38 #include <QCheckBox> 39 #include <QFileDialog> 40 #include <QLabel> 41 #include <QPushButton> 42 #include <QVBoxLayout> 43 44 // forward declarations 45 class cThumbnailWidget; 46 class MyProgressBar; 47 48 class PreviewFileDialog : public QFileDialog 49 { 50 Q_OBJECT 51 public: 52 PreviewFileDialog(QWidget *parent = nullptr); 53 ~PreviewFileDialog() override; 54 protected slots: 55 void OnCurrentChanged(const QString &filename); 56 void OnPresetAdd() const; 57 void OnQueueAdd() const; 58 void slotUpdateProgressAndStatus( 59 const QString &text, const QString &progressText, double progress); 60 void slotHideProgressBar() const; 61 62 private: 63 QVBoxLayout *vBoxLayout; 64 QCheckBox *checkbox; 65 MyProgressBar *progressBar; 66 QPushButton *presetAddButton; 67 QPushButton *queueAddButton; 68 QString filename; 69 int thumbnailSize; 70 71 protected: 72 QLabel *preview; 73 QLabel *description; 74 QLabel *info; 75 cThumbnailWidget *thumbWidget; 76 }; 77 78 #endif /* MANDELBULBER2_QT_PREVIEW_FILE_DIALOG_H_ */ 79