ryxeo-webphotoalbum-git / webphotoalbum.h @ 8ed8fc1a
Historique | Voir | Annoter | Télécharger (2,72 ko)
1 |
/** Classe RyXeo WebPhotoAlbum: fichier principal de l'application
|
---|---|
2 |
* @see https://redmine.ryxeo.com/projects/
|
3 |
* @author 2012 Eric Seigne <eric.seigne@ryxeo.com>
|
4 |
* @see The GNU Public License (GNU/GPL) v3
|
5 |
*
|
6 |
*
|
7 |
*
|
8 |
* This program is free software; you can redistribute it and/or modify
|
9 |
* it under the terms of the GNU General Public License as published by
|
10 |
* the Free Software Foundation; either version 3 of the License, or
|
11 |
* (at your option) any later version.
|
12 |
*
|
13 |
* This program is distributed in the hope that it will be useful, but
|
14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
15 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
16 |
* for more details.
|
17 |
*
|
18 |
* You should have received a copy of the GNU General Public License along
|
19 |
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
20 |
*/
|
21 |
|
22 |
|
23 |
#ifndef ORIGINAL_H
|
24 |
#define ORIGINAL_H
|
25 |
|
26 |
#include <QDir> |
27 |
#include <QDebug> |
28 |
#include <QMainWindow> |
29 |
#include <exiv2/image.hpp> |
30 |
#include <exiv2/exif.hpp> |
31 |
#include <QTreeWidgetItem> |
32 |
#include <QListWidgetItem> |
33 |
#include <QMenu> |
34 |
#include <QInputDialog> |
35 |
#include <QDragEnterEvent> |
36 |
#include <QUrl> |
37 |
#include <QLabel> |
38 |
#include <QMessageBox> |
39 |
#include <QSettings> |
40 |
#include "tools.h" |
41 |
#include "assistant.h" |
42 |
#include "newalbumdialog.h" |
43 |
#include "quazip.h" |
44 |
#include "quazipfile.h" |
45 |
|
46 |
|
47 |
namespace Ui { |
48 |
class WebPhotoAlbum; |
49 |
} |
50 |
|
51 |
class WebPhotoAlbum : public QMainWindow |
52 |
{ |
53 |
Q_OBJECT |
54 |
|
55 |
public: |
56 |
explicit WebPhotoAlbum(QWidget *parent = 0);
|
57 |
~WebPhotoAlbum(); |
58 |
|
59 |
private slots: |
60 |
void on_action_Nouvel_album_triggered();
|
61 |
void on_btnSave_clicked();
|
62 |
void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column); |
63 |
void on_treeWidget_customContextMenuRequested(const QPoint &pos); |
64 |
//Gestion du drop d'image venant de l'extérieur
|
65 |
void dragEnterEvent(QDragEnterEvent *event);
|
66 |
void dropEvent(QDropEvent *event);
|
67 |
void addPictureToProject(QString fic);
|
68 |
void refreshPictureList();
|
69 |
// void connectOrDisconnect();
|
70 |
// void uploadFile();
|
71 |
// void cancelUpload();
|
72 |
// void processItem(QTreeWidgetItem *item, int column);
|
73 |
void on_btnUpload_clicked();
|
74 |
void on_action_Assistant_d_installation_triggered();
|
75 |
void updateProgressFichier(int total, int current, QString fileName); |
76 |
void updateProgressData(int total, int current); |
77 |
void makeZip(QString repSource, QString destFileName);
|
78 |
void uploadEnd();
|
79 |
|
80 |
private:
|
81 |
Ui::WebPhotoAlbum *ui; |
82 |
QDir m_baseDir; |
83 |
QMenu *m_menu; |
84 |
QLabel *m_labelDeposez; |
85 |
QString m_currentProjectDir; |
86 |
QString m_typeUploadRecursif; |
87 |
QStringList m_fileListToUploadIndex; |
88 |
QMap<QString,QString> m_fileListToUpload; |
89 |
int m_currentProjectPictureNumber;
|
90 |
int m_currentFTPFileUpload;
|
91 |
tools *m_tools; |
92 |
}; |
93 |
|
94 |
#endif // ORIGINAL_H |