![]() |
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 DIALOGCREACIONPAGINAS_H 00020 #define DIALOGCREACIONPAGINAS_H 00021 00022 #include <QDialog> 00023 #include <QGraphicsView> 00024 #include <QDir> 00025 #include "controladorresolucion.h" 00026 00027 00028 namespace Ui { 00029 class DialogCreacionPaginas; 00030 } 00032 00059 class DialogCreacionPaginas : public QDialog 00060 { 00061 Q_OBJECT 00062 00063 public: 00073 explicit DialogCreacionPaginas(QWidget *parent = 0, controladorResolucion *controlador_=0, QDir directoriodetrabajo=QDir()); 00074 00081 ~DialogCreacionPaginas(); 00082 00094 void InicializarTexto1(bool cc1, bool nn1, bool ss1, QString tt1, QFont ff1); 00095 00107 void InicializarTexto2(bool cc2, bool nn2, bool ss2, QString tt2, QFont ff2); 00108 00120 void InicializarTexto3(bool cc3, bool nn3, bool ss3, QString tt3, QFont ff3); 00121 00133 void InicializarTexto4(bool cc4, bool nn4, bool ss4, QString tt4, QFont ff4); 00134 00141 void setMiniaturasTexturas(std::vector<QGraphicsView*> min); 00142 00150 bool PaginasFijas(); 00151 00159 bool PaginasAleatorias(); 00160 00168 bool PaginasPersonalizadas(); 00169 00176 bool ColorFondo(); 00177 00185 QString NombrePlantillaFija(); 00186 00194 QString GetImagenFondo(); 00195 00203 QColor GetColorFondo(); 00204 00212 int GetNumTextos(); 00213 00214 bool c1; 00215 bool c2; 00216 bool c3; 00217 bool c4; 00218 bool n1; 00219 bool n2; 00220 bool n3; 00221 bool n4; 00222 bool s1; 00223 bool s2; 00224 bool s3; 00225 bool s4; 00226 bool escritooNo1; 00227 bool escritooNo2; 00228 bool escritooNo3; 00229 bool escritooNo4; 00230 bool coloreadooNo1; 00231 bool coloreadooNo2; 00232 bool coloreadooNo3; 00233 bool coloreadooNo4; 00234 QString t1; 00235 QString t2; 00236 QString t3; 00237 QString t4; 00238 QFont fuente1; 00239 QFont fuente2; 00240 QFont fuente3; 00241 QFont fuente4; 00242 QColor clr1; 00243 QColor clr2; 00244 QColor clr3; 00245 QColor clr4; 00248 public slots: 00249 00255 void ActivarSeleccionPlantilla(); 00256 00262 void PushTexto(); 00263 00269 void DesactivarSeleccionPlantilla(); 00270 00276 void ActivarVisualizacionPlantilla(); 00277 00283 void EstablecerTipoPagina(); 00284 00292 void EstablecerFondo(QWidget *parent=0); 00293 00294 private: 00295 Ui::DialogCreacionPaginas *ui; 00296 bool fija, aleatoria, personalizada, color, textoEstablecido, subTareaCompleta; 00297 QColor *ColorElegido; 00298 QString *FondoElegido; 00299 QString nombreplantillafija; 00300 std::vector<QGraphicsView*> miniaturasTextura; 00301 int max1, max2, max3, max4, numTextos; 00302 controladorResolucion *controlador; 00303 QDir directorioPpal; 00304 void setDimensiones(); 00305 00306 }; 00307 00308 #endif // DIALOGCREACIONPAGINAS_H 00309 00310