pollymc/gui/dialogs/ScreenshotDialog.h

41 lines
632 B
C
Raw Normal View History

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