-
Notifications
You must be signed in to change notification settings - Fork 0
/
qjobviewer.h
54 lines (44 loc) · 977 Bytes
/
qjobviewer.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
#ifndef QJOBVIEWER_H
#define QJOBVIEWER_H
#include <QMainWindow>
#include <QComboBox>
#include <QPushButton>
#include <QHBoxLayout>
#include <QLabel>
#include <QTabWidget>
#include <QFileDialog>
#include <QDebug>
#include <QJsonObject>
#include <QTableView>
class JobGetter : public QWidget{
Q_OBJECT
public:
JobGetter(QWidget *parent = nullptr);
~JobGetter(){};
signals:
void jsonLoaded(QJsonObject json);
private:
QComboBox* m_urlInputCBox;
QPushButton* m_viewButton;
QLabel* m_displayLabel;
QPushButton* m_fileButton;
QFileDialog* m_fileDialog;
void setURL();
void loadFile();
};
class QJobViewer : public QMainWindow
{
Q_OBJECT
public:
QJobViewer(QWidget *parent = nullptr);
~QJobViewer(){};
QTableView* settingsView;
signals:
void urlUpdated(QUrl url);
void jsonLoaded(QJsonObject json);
private:
QWidget* central;
JobGetter* inputField;
QTabWidget* tabs;
};
#endif // QJOBVIEWER_H