2014-06-18 13:22:19 -04:00
|
|
|
#ifndef PICTURE_H
|
|
|
|
#define PICTURE_H
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QDir>
|
|
|
|
#include <QFileDialog>
|
2014-06-18 19:15:35 -04:00
|
|
|
#include "ui_picture.h"
|
|
|
|
#include <syscall.h>
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QImageReader>
|
|
|
|
#include <QDialog>
|
2014-06-18 21:32:10 -04:00
|
|
|
#include <QProcess>
|
2014-06-19 11:39:37 -04:00
|
|
|
#include <exiv2/exiv2.hpp>
|
|
|
|
#include <cassert>
|
2014-06-22 20:14:42 -04:00
|
|
|
#include <QDrag>
|
|
|
|
#include <QDragEnterEvent>
|
|
|
|
#include <QMimeData>
|
|
|
|
#include <QRegExp>
|
|
|
|
#include <QMessageBox>
|
2014-06-18 13:22:19 -04:00
|
|
|
namespace Ui {
|
2014-06-22 20:14:42 -04:00
|
|
|
class Picture;
|
|
|
|
class Preview;
|
2014-06-18 13:22:19 -04:00
|
|
|
}
|
2014-06-22 20:14:42 -04:00
|
|
|
class Picture : public QMainWindow {
|
|
|
|
Q_OBJECT
|
2014-06-18 13:22:19 -04:00
|
|
|
|
2014-06-22 20:14:42 -04:00
|
|
|
public:
|
2019-11-29 09:51:40 -05:00
|
|
|
explicit Picture(QWidget *parent = nullptr);
|
2014-06-18 13:22:19 -04:00
|
|
|
~Picture();
|
2014-06-22 20:14:42 -04:00
|
|
|
private slots:
|
|
|
|
void changeDirectory();
|
2014-06-18 13:22:19 -04:00
|
|
|
void fillList();
|
|
|
|
void on_cd_clicked();
|
2014-06-18 15:23:12 -04:00
|
|
|
void on_refresh_clicked();
|
2014-06-18 16:00:39 -04:00
|
|
|
void on_clearLog_clicked();
|
2014-06-21 17:17:00 -04:00
|
|
|
void on_processButton_clicked();
|
|
|
|
void on_processButton_pressed();
|
2014-06-25 19:58:22 -04:00
|
|
|
void on_fileList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
|
|
|
|
|
|
|
|
private:
|
2014-06-18 13:22:19 -04:00
|
|
|
Ui::Picture *ui;
|
|
|
|
QDir directory;
|
2014-06-22 20:14:42 -04:00
|
|
|
protected:
|
2014-06-19 14:13:48 -04:00
|
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
|
|
void dropEvent(QDropEvent *event);
|
2014-06-18 13:22:19 -04:00
|
|
|
};
|
|
|
|
#endif // PICTURE_H
|