| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef KSNIP_IMGURHISTORYDIALOG_H |
| 21 |
#define KSNIP_IMGURHISTORYDIALOG_H |
| 22 |
|
| 23 |
#include <QDialog> |
| 24 |
#include <QTableWidget> |
| 25 |
#include <QVBoxLayout> |
| 26 |
#include <QApplication> |
| 27 |
#include <QDesktopServices> |
| 28 |
#include <QUrl> |
| 29 |
#include <QHeaderView> |
| 30 |
#include <QPushButton> |
| 31 |
|
| 32 |
#include "src/backend/uploader/imgur/ImgurResponseLogger.h" |
| 33 |
|
| 34 |
class ImgurHistoryDialog : public QDialog |
| 35 |
{ |
| 36 |
Q_OBJECT |
| 37 |
public: |
| 38 |
explicit ImgurHistoryDialog(); |
| 39 |
~ImgurHistoryDialog() override; |
| 40 |
|
| 41 |
private: |
| 42 |
QVBoxLayout *mLayout; |
| 43 |
QTableWidget *mTableWidget; |
| 44 |
QPushButton *mCloseButton; |
| 45 |
|
| 46 |
void addEntryToTable(const QString &entry, int row) const; |
| 47 |
void populateTable(const QStringList &logEntries); |
| 48 |
void createTable(int rowCount); |
| 49 |
|
| 50 |
private slots: |
| 51 |
void cellClicked(int row, int column) const; |
| 52 |
|
| 53 |
}; |
| 54 |
|
| 55 |
#endif |