![]() |
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 DIALOGMARCOS_H 00021 #define DIALOGMARCOS_H 00022 00023 #include <QDialog> 00024 #include "controladorresolucion.h" 00025 #include <QtGui> 00026 00027 namespace Ui { 00028 class dialogMarcos; 00029 } 00031 00034 typedef struct{ 00035 QString *nombre; 00036 QString *tipo; 00037 int idFoto; 00038 00039 }marco; 00041 00067 class dialogMarcos : public QDialog 00068 { 00069 Q_OBJECT 00070 00071 public: 00082 explicit dialogMarcos(QWidget *parent = 0, QString plantilla="", controladorResolucion *controlador_=0, QDir directoriodetrabajo=QDir()); 00083 00090 ~dialogMarcos(); 00091 00099 QList<marco> getMarcos(); 00100 00108 void setMiniaturas(std::vector<QGraphicsView*> min); 00109 00115 void SeleccionarPrimerItem(); 00116 00117 public slots: 00123 void ActivarVisualizacionMarcos(); 00124 00130 void ElegirMarco(); 00131 00137 void FinalizarLabor(); 00138 00144 void ActivarBotonElegir(); 00145 00146 private: 00147 Ui::dialogMarcos *ui; 00148 controladorResolucion *controlador; 00149 void ActivarSeleccionMarcos(); 00150 QList<marco> marcos; 00151 QString *nombreLocal; 00152 std::vector<QGraphicsView*> miniaturasMarcos; 00153 int numFotosSin, numFotosCon; 00154 QDir directorioPpal; 00155 void setDimensiones(); 00156 }; 00157 00158 #endif // DIALOGMARCOS_H