-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
48 lines (36 loc) · 901 Bytes
/
MainWindow.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
//
// Created by Mirco Ceccarelli on 27/07/17.
//
#ifndef ESLABORATORIO_MAINWINDOW_H
#define ESLABORATORIO_MAINWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include <QProgressBar>
#include <QTextEdit>
#include <QLabel>
#include "Observer.h"
#include "LoadResources.h"
#include <iostream>
class MainWindow : public QMainWindow, public Observer {
Q_OBJECT
public:
MainWindow(LoadResources *resources_, QWidget *parent = 0);
virtual ~MainWindow() {
resources->removeObserver(this);
}
virtual void update() override;
LoadResources *getResources() const {
return resources;
}
private slots:
void loadResources();
private:
LoadResources * resources;
QPushButton * m_button;
QProgressBar * progressBar;
QTextEdit * text;
QLabel * linkToGitHub;
QLabel * title;
QLabel * name;
};
#endif //ESLABORATORIO_MAINWINDOW_H