![]() |
OpenAlbum 1.0.b
|
00001 /* 00002 Copyright © 2011 Manuel Jesús de la Calle Brihuega 00003 00004 This file is part of open Album. 00005 00006 Open Album is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 Open Album is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with open Album. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 #ifndef FONDODIALOG_H 00020 #define FONDODIALOG_H 00021 00022 #include <QDialog> 00023 #include <QMainWindow> 00024 #include <QtGui> 00025 #include <QFileInfo> 00026 #include <QList> 00027 #include <QSettings> 00028 #include "controladorresolucion.h" 00029 00030 namespace Ui { 00031 class FondoDialog; 00032 } 00033 00035 00061 class FondoDialog : public QDialog 00062 { 00063 Q_OBJECT 00064 00065 public: 00066 00077 explicit FondoDialog(QWidget *parent = 0, QString plantilla="", bool pagina=false, controladorResolucion *controlador=0, QDir directoriodetrabajo=QDir()); 00078 00085 ~FondoDialog(); 00086 00093 void setMiniaturasTexturas(std::vector<QGraphicsView*> min); 00094 00102 QColor ColorFondo(); 00103 00111 QString ImagenFondo(); 00112 00120 bool ColordeFondo(); 00121 00129 bool TexturadeFondo(); 00130 00138 bool getTareaCompleta(); 00139 00140 00141 public slots: 00142 00148 void ActivarBotonSiguiente(); 00149 00155 void ElegirTipoFondo(); 00156 00157 00158 private: 00159 Ui::FondoDialog *ui; 00160 QColor colorelegido; 00161 QString imagenelegida; 00162 QDir directorioPpal; 00163 bool color; 00164 bool textura; 00165 bool tareaCompleta; 00166 std::vector<QGraphicsView*> miniaturasTexturas; 00167 controladorResolucion *controlador; 00168 void setDimensiones(); 00169 }; 00170 00171 #endif // FONDODIALOG_H