OpenAlbum 1.0.b

/home/manuel/PFC/open-album/OpenAlbum-Unix/dialogtexturas.h

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 DIALOGTEXTURAS_H
00020 #define DIALOGTEXTURAS_H
00021 
00022 #include <QDialog>
00023 #include <QGraphicsView>
00024 #include <QDir>
00025 #include "controladorresolucion.h"
00026 
00027 namespace Ui {
00028     class dialogTexturas;
00029 }
00030 
00032 
00058 class dialogTexturas : public QDialog
00059 {
00060     Q_OBJECT
00061 
00062 public:
00063     
00072     explicit dialogTexturas(QWidget *parent = 0, controladorResolucion *controlador_=0, QDir directoriodetrabajo=QDir());
00073     
00080     ~dialogTexturas();
00081     
00088     void setMiniaturasTextura(std::vector<QGraphicsView*> min);
00089     
00095     void seleccionarPrimerItem();
00096     
00104     bool getTareaCompletada();
00105     
00113     QString getTexturaElegida();
00114     
00115     
00116 public slots:
00117     
00123     void ActivarSeleccionTexturas();
00124     
00130     void ActivarVisualizacionTexturas();
00131     
00137     void elegirTextura();
00138     
00144     void cancelarEleccion();
00145     
00146     
00147 private:
00148     Ui::dialogTexturas *ui;
00149     QString texturaElegida;
00150     QDir directorioPpal;
00151     bool tareaCompletada;
00152     std::vector<QGraphicsView*> miniaturasTexturas;
00153     controladorResolucion *controlador;
00154     void setDimensiones();
00155 };
00156 
00157 #endif // DIALOGTEXTURAS_H
 Todo Clases Archivos Funciones Variables