-
Notifications
You must be signed in to change notification settings - Fork 0
/
mywidget.h
executable file
·48 lines (46 loc) · 1.08 KB
/
mywidget.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
#ifndef MYWIDGET_H
#define MYWIDGET_H
#include <QObject>
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QTableView>
#include <QAbstractItemModel>
#include <QStandardItemModel>
#include <QFile>
#include <qlabel.h>
#include <QDateTime>
#include "qwt_counter.h"
#include "data_plot.h"
class MyWidget : public QWidget
{
Q_OBJECT
public:
MyWidget(QString path,QWidget* parent = 0, Qt::WindowFlags f = 0);
~MyWidget();
// void setTitle(QString s ){title = s;};
private:
QVBoxLayout *vboxLayout ;
QHBoxLayout *hboxLayout ;
QTableView *tableView ;
DataPlot *plot ;
QWidget *toolWidget ;
QwtCounter *counter ;
QAbstractItemModel *model ;
QFile *file ;
qint64 fileSize ;
uchar *memData ;
int memLength ;
QDateTime startTime ;
// QString title ;
public slots:
void setFrameIndex(double);
protected:
void freshDisplay();
void freshPlot();
void freshTable();
void initTableModel();
bool openFile(QString);
void mapFile(int,int);
};
#endif // MYWIDGET_H