Menu

[1f2bc6]: / mainWindow.h  Maximize  Restore  History

Download this file

72 lines (54 with data), 1.7 kB

 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
71
/*
* 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 (volker@openbios.org)
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui>
#include "asterixModel.h"
#include "fileFormat.h"
#include "hexedit.h"
#include "dataItemWidget.h"
#include "recordWidget.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected Q_SLOTS:
void openFile();
void openRffFile();
void showSpecificationSelectionDialog();
void readFile(const QString& filename, FileFormat fformat);
void mapFile(qint64 ofs, FileFormat fformat = FileFormat::RAW);
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;
QDockWidget* m_detailDock;
DataItemWidget* m_dataItemWidget;
RecordWidget* m_recordWidget;
};
#endif // MAINWINDOW_H