2014-02-23 21:14:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2014-02-24 23:51:24 +00:00
|
|
|
#include "logic/screenshots/ScreenshotList.h"
|
2014-02-23 21:14:24 +00:00
|
|
|
|
2014-02-24 10:30:27 +00:00
|
|
|
class ImgurAlbumCreation;
|
2014-02-23 21:14:24 +00:00
|
|
|
|
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class ScreenshotDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ScreenshotDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ScreenshotDialog(ScreenshotList *list, QWidget *parent = 0);
|
|
|
|
~ScreenshotDialog();
|
|
|
|
|
2014-02-24 08:34:21 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
NothingDone = 0x42
|
|
|
|
};
|
|
|
|
|
2014-02-24 10:30:27 +00:00
|
|
|
QString message() const;
|
2014-02-24 23:51:24 +00:00
|
|
|
QList<ScreenshotPtr> selected() const;
|
2014-02-23 21:14:24 +00:00
|
|
|
|
|
|
|
private
|
|
|
|
slots:
|
2014-02-24 09:34:51 +00:00
|
|
|
void on_uploadBtn_clicked();
|
2014-02-23 21:14:24 +00:00
|
|
|
|
2014-02-24 22:40:05 +00:00
|
|
|
void on_deleteBtn_clicked();
|
|
|
|
|
2014-02-23 21:14:24 +00:00
|
|
|
private:
|
|
|
|
Ui::ScreenshotDialog *ui;
|
|
|
|
ScreenshotList *m_list;
|
2014-02-24 23:51:24 +00:00
|
|
|
QList<ScreenshotPtr> m_uploaded;
|
2014-02-24 10:30:27 +00:00
|
|
|
std::shared_ptr<ImgurAlbumCreation> m_imgurAlbum;
|
2014-02-23 21:14:24 +00:00
|
|
|
};
|