![]() |
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 DIALOGORDENPERSONALIZADO_H 00020 #define DIALOGORDENPERSONALIZADO_H 00021 00022 #include <QDialog> 00023 #include "album.h" 00024 #include "controladorresolucion.h" 00025 00026 namespace Ui { 00027 class DialogOrdenPersonalizado; 00028 } 00029 00031 00051 class DialogOrdenPersonalizado : public QDialog 00052 { 00053 Q_OBJECT 00054 00055 public: 00056 00067 explicit DialogOrdenPersonalizado(std::vector<ImagenInfo> images, QWidget *parent = 0, controladorResolucion *controlador_=0, QDir directoriodetrabajo); 00068 00075 ~DialogOrdenPersonalizado(); 00076 00084 std::vector<ImagenInfo> GetVectorImagenes(); 00085 00093 bool ComprobarFinUtilidad(); 00094 00095 00096 public slots: 00097 00103 void AcabarTarea(); 00104 00110 void CambiarPosArriba(); 00111 00117 void CambiarPosAbajo(); 00118 00124 void CancelarTarea(); 00125 00126 00127 private: 00128 Ui::DialogOrdenPersonalizado *ui; 00129 std::vector<ImagenInfo> imagenes_copia; 00130 std::vector<ImagenInfo> imagenes_final; 00131 bool utilidad_finalizada; 00132 controladorResolucion *controlador; 00133 void setDimensiones(); 00134 }; 00135 00136 #endif // DIALOGORDENPERSONALIZADO_H