-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
executable file
·58 lines (46 loc) · 1.32 KB
/
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
49
50
51
52
53
54
55
56
57
58
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStandardItem>
#include <QSplitter>
#include "meminfo.h"
#include "processos.h"
#include "cpuinfo.h"
#include <QVector>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void setMemoryGraph();
void setCPUgraph();
//void updateMemoryGraph(QVector<double>, QVector<double>);
void updateMemoryGraph(double, double);
//void updateCPU(QVector<double>, double, double, double);
void updateCPU(double, double, double, double, int);
void updateProcesses(QHash<QString, QString>);
void TimerSlot();
private slots:
void on_pushButton_clicked();
void on_atualizarDial_valueChanged(int value);
void on_tableView_activated(const QModelIndex &index);
void on_atualizar_clicked();
private:
Ui::MainWindow *ui;
QStandardItemModel *model;
QSplitter *splitter;
//Thread *thread1, *thread2;
MEMinfo *threadMem;
Processos *procs;
CPUinfo *threadCPU;
QList<QStandardItem *> listaItem;
QVector<double> x, memData, cpuData, swapData;
//QVector< QVector<double> > cpuData;
QTimer *timer;
};
#endif // MAINWINDOW_H