-
Notifications
You must be signed in to change notification settings - Fork 4
/
tabwidget.h
56 lines (45 loc) · 1.02 KB
/
tabwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#ifndef TABWIDGET_H
#define TABWIDGET_H
#include <QTabWidget>
#include <QFileDialog>
#include <QStandardItemModel>
#include <QFile>
#include <QDateTime>
#include <QSettings>
#include <QWidget>
#include <QMutex>
#include <QClipboard>
#include "upload_manager.h"
#include "ui_tabwidget.h"
#include "upload_list.h"
#include "uploading.h"
namespace Ui {
class TabWidget;
}
class TabWidget : public QTabWidget {
Q_OBJECT
public:
TabWidget(QWidget *parent = 0);
~TabWidget();
QStandardItemModel * uploadings_model;
UploadManager * upload_manager;
// Helpers
void debugLog(QString message);
protected:
void changeEvent(QEvent *e);
public slots:
void updateUploadState();
void updateUploadList();
void uploadDialog();
void clearTableView();
void copyTableView();
void updateApiKey();
void toggleSystemTray(int state);
private:
Ui::TabWidget *m_ui;
void loadOptions();
void updateTableView();
void updateButtonsState();
};
#endif // TABWIDGET_H