-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmainWindow.h
70 lines (54 loc) · 1.68 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
59
60
61
62
63
64
65
66
67
68
69
70
/*
* This application is free software and is released under the terms of
* the BSD license. See LICENSE file for details.
*
* Copyright (c) 2010 Volker Poplawski ([email protected])
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include "asterixModel.h"
#include "hexedit.h"
#include "dataItemWidget.h"
#include "recordWidget.h"
#include "TextHexDumpEdit.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected Q_SLOTS:
void openFile();
void showSpecificationSelectionDialog();
void readFile( const QString& filename );
void mapFile(qint64 ofs);
void blockClicked(const QModelIndex& index);
void recordClicked(const QModelIndex& index);
void fieldClicked(const QModelIndex& index);
void hexCursorPosChanged(qint64 pos);
void generateXmlReport();
void showAboutDialog();
protected:
Ui::MainWindow *ui;
void createDockWidgets();
QFile m_file;
AsterixFileMapper* m_mapper;
AsterixBlockModel* m_blockModel;
AsterixRecordModel* m_recordModel;
AsterixBlock* m_currentBlock;
int m_currentBlockIndex;
const AsterixRecord* m_currentRecord;
const AsterixDataItem* m_currentDataItem;
QLabel* m_blockCountLabel;
QLabel* m_cursorPosLabel;
HexEdit* m_hexEdit;
TextHexDumpEdit* m_hexDumpLoadEdit;
QDockWidget* m_detailDock;
DataItemWidget* m_dataItemWidget;
RecordWidget* m_recordWidget;
};
#endif // MAINWINDOW_H