![]() |
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 00020 #ifndef FORMTEXTOCLASS_H 00021 #define FORMTEXTOCLASS_H 00022 00023 #include <QDialog> 00024 #include <QMainWindow> 00025 #include <QtGui> 00026 #include <QFileInfo> 00027 #include <QList> 00028 #include <QSettings> 00029 #include "controladorresolucion.h" 00030 00031 00032 namespace Ui { 00033 class formTextoClass; 00034 } 00035 00037 00059 class formTextoClass : public QDialog 00060 { 00061 Q_OBJECT 00062 00063 public: 00064 00075 explicit formTextoClass(QWidget *parent = 0, QString nombrePlantilla_="", controladorResolucion *controlador=0, QDir directoriodetrabajo); 00076 00083 ~formTextoClass(); 00084 00092 bool formularioAceptado(); 00093 00094 00095 bool negfront; 00096 bool negtras; 00097 bool neglat; 00098 bool curfront; 00099 bool curtras; 00100 bool curlat; 00101 bool subfront; 00102 bool subtras; 00103 bool sublat; 00104 bool coloreadotextofron; 00105 bool coloreadotextotras; 00106 bool coloreadotextolat; 00107 QString textfront; 00108 QString texttras; 00109 QString textlat; 00110 QFont ffront; 00111 QFont ftras; 00112 QFont flat; 00113 QColor colortextofron; 00114 QColor colortextotras; 00115 QColor colortextolat; 00117 Ui::formTextoClass *ui; 00120 public slots: 00121 00128 void EstablecerTextos(); 00129 00135 void Aceptar(); 00136 00142 void PushSeleccionColorF(); 00143 00149 void PushSeleccionColorL(); 00150 00156 void PushSeleccionColorT(); 00157 00163 void PushSeleccionFuenteFrontal(); 00164 00170 void PushSeleccionFuenteTrasera(); 00171 00177 void PushSeleccionFuenteLateral(); 00178 00184 void PushNegritaFrontal(); 00185 00191 void PushNegritaLateral(); 00192 00198 void PushNegritaTrasera(); 00199 00205 void PushCursivaFrontal(); 00206 00212 void PushCursivaLateral(); 00213 00219 void PushCursivaTrasera(); 00220 00226 void PushSubrayadoFrontal(); 00227 00233 void PushSubrayadoLateral(); 00234 00240 void PushSubrayadoTrasera(); 00241 00247 void FocusTab(); 00248 00249 00250 private: 00251 bool formularioFinalizadoCorrectamente; 00252 QString nombrePlantilla; 00253 controladorResolucion *controlador; 00254 void setDimensiones(); 00255 00256 }; 00257 00258 #endif // FORMTEXTOCLASS_H