![]() |
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 DIALOGCREACIONPAGINASPERSONALIZADAS_H 00020 #define DIALOGCREACIONPAGINASPERSONALIZADAS_H 00021 00022 #include <QDialog> 00023 #include <QGraphicsView> 00024 #include "controladorresolucion.h" 00025 #include "dialogmarcos.h" 00026 00027 namespace Ui { 00028 class dialogcreacionpaginaspersonalizadas; 00029 } 00031 00058 class dialogcreacionpaginaspersonalizadas : public QDialog 00059 { 00060 Q_OBJECT 00061 00062 public: 00073 explicit dialogcreacionpaginaspersonalizadas(int fotosR, int pagina, controladorResolucion *controlador, QDir directoriodetrabajo); 00074 00081 ~dialogcreacionpaginaspersonalizadas(); 00082 00091 void SetIndices(int numPaginas, int numPagina); 00092 00099 void setMiniaturasTexturas(std::vector<QGraphicsView*> min); 00100 00107 void setMiniaturasMarcos(std::vector<QGraphicsView*> min); 00108 00116 int GetNumTextos(); 00117 00124 int GetFotosRestantes(); 00125 00133 QString GetNombrePlantilla(); 00134 00142 QString GetImagenFondo(); 00143 00151 QString Texto1(); 00152 00160 QString Texto2(); 00161 00169 QString Texto3(); 00170 00178 QString Texto4(); 00179 00187 QColor GetColorFondo(); 00188 00196 QColor Color1(); 00197 00205 QColor Color2(); 00206 00214 QColor Color3(); 00215 00223 QColor Color4(); 00224 00232 QFont Fuente1(); 00233 00241 QFont Fuente2(); 00242 00250 QFont Fuente3(); 00251 00259 QFont Fuente4(); 00260 00268 QList<marco> getMarcos(); 00269 00276 bool ElegidoColor(); 00277 00284 bool ElegidoImagen(); 00285 00293 bool EscritoOno1(); 00294 00302 bool EscritoOno2(); 00303 00311 bool EscritoOno3(); 00312 00320 bool EscritoOno4(); 00321 00329 bool TextoColoreadoOno1(); 00330 00338 bool TextoColoreadoOno2(); 00339 00347 bool TextoColoreadoOno3(); 00348 00356 bool TextoColoreadoOno4(); 00357 00365 bool CursivaOno1(); 00366 00374 bool NegritaOno1(); 00375 00383 bool SubrayadoOno1(); 00384 00392 bool CursivaOno2(); 00393 00401 bool NegritaOno2(); 00402 00410 bool SubrayadoOno2(); 00411 00419 bool CursivaOno3(); 00420 00428 bool NegritaOno3(); 00429 00437 bool SubrayadoOno3(); 00438 00446 bool CursivaOno4(); 00447 00455 bool NegritaOno4(); 00456 00464 bool SubrayadoOno4(); 00465 00473 bool EscogidosMarcos(); 00474 00475 00476 00477 public slots: 00478 00484 void EscogerMarco(); 00490 void ActivarSeleccionPlantilla(); 00491 00499 void EstablecerFondo(QWidget *parent=0); 00500 00506 void ActivarVisualizacionPlantilla(); 00507 00513 void PushTexto(); 00514 00520 void PushSiguiente(); 00521 00522 00523 private: 00524 Ui::dialogcreacionpaginaspersonalizadas *ui; 00525 QString nombreplantilla; 00526 QString t1, t2, t3, t4; 00527 QString *FondoElegido; 00528 std::vector<QGraphicsView*> miniaturasTexturas; 00529 std::vector<QGraphicsView*> miniaturasMarcos; 00530 controladorResolucion *controlador; 00531 int numTextos, numPaginas, numPagina, numFotosPagina, numFotos; 00532 QColor clr1, clr2, clr3, clr4; 00533 QColor *ColorElegido; 00534 bool color, textoEstablecido, subTareaCompleta, escogidosMarcos; 00535 QList<marco> marcos; 00536 bool c1, c2, c3, c4, n1, n2, n3, n4, n5, s1, s2, s3, s4, escritooNo1, escritooNo2, escritooNo3, escritooNo4, coloreadooNo1, coloreadooNo2, coloreadooNo3, coloreadooNo4; 00537 QFont fuente1, fuente2, fuente3, fuente4; 00538 QDir directorioPpal; 00539 //Métodos privados 00540 void InicializarTexto1(bool cc1, bool nn1, bool ss1, QString tt1, QFont ff1); 00541 void InicializarTexto2(bool cc2, bool nn2, bool ss2, QString tt2, QFont ff2); 00542 void InicializarTexto3(bool cc3, bool nn3, bool ss3, QString tt3, QFont ff3); 00543 void InicializarTexto4(bool cc4, bool nn4, bool ss4, QString tt4, QFont ff4); 00544 void setDimensiones(); 00545 }; 00546 00547 #endif // DIALOGCREACIONPAGINASPERSONALIZADAS_H