@@ -1,8 +1,13 | |||
|
1 | 1 | #include "binaryfilewidget.h" |
|
2 | 2 | #include "ui_binaryfilewidget.h" |
|
3 | 3 | #include "qtablewidgetintitem.h" |
|
4 | #if QT_VERSION >= 0x050000 | |
|
4 | 5 | #include <QtWidgets/QTableWidget> |
|
5 | 6 | #include <QtWidgets/QFileDialog> |
|
7 | #else | |
|
8 | #include <QTableWidget> | |
|
9 | #include <QFileDialog> | |
|
10 | #endif | |
|
6 | 11 | #include "srecfile.h" |
|
7 | 12 | |
|
8 | 13 | binaryFileWidget::binaryFileWidget(QWidget *parent) : |
@@ -21,10 +21,13 | |||
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | #ifndef ABSTRACTBINFILE_H |
|
23 | 23 | #define ABSTRACTBINFILE_H |
|
24 | ||
|
24 | #if QT_VERSION >= 0x050000 | |
|
25 | 25 | #include <QtCore/QObject> |
|
26 | 26 | #include <QtWidgets/QWidget> |
|
27 | ||
|
27 | #else | |
|
28 | #include <QObject> | |
|
29 | #include <QWidget> | |
|
30 | #endif | |
|
28 | 31 | class codeFragment |
|
29 | 32 | { |
|
30 | 33 | public: |
@@ -489,7 +489,9 QString ElfFile::getABI() | |||
|
489 | 489 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; |
|
490 | 490 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; |
|
491 | 491 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; |
|
492 | #ifdef ELFOSABI_ARM_AEABI | |
|
492 | 493 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; |
|
494 | #endif | |
|
493 | 495 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; |
|
494 | 496 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; |
|
495 | 497 | } |
@@ -21,8 +21,13 | |||
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | #include "elffilewidget.h" |
|
23 | 23 | #include "ui_elffilewidget.h" |
|
24 | #if QT_VERSION >= 0x050000 | |
|
24 | 25 | #include <QtWidgets/QTableWidgetItem> |
|
25 | 26 | #include <QtWidgets/QFileDialog> |
|
27 | #else | |
|
28 | #include <QTableWidgetItem> | |
|
29 | #include <QFileDialog> | |
|
30 | #endif | |
|
26 | 31 | #include "qhexedit.h" |
|
27 | 32 | #include "qtablewidgetintitem.h" |
|
28 | 33 | #include "../srec/srecfile.h" |
@@ -22,9 +22,14 | |||
|
22 | 22 | #ifndef ELFFILEWIDGET_H |
|
23 | 23 | #define ELFFILEWIDGET_H |
|
24 | 24 | |
|
25 | #if QT_VERSION >= 0x050000 | |
|
25 | 26 | #include <QtWidgets/QWidget> |
|
27 | #include <QtWidgets/QAction> | |
|
28 | #else | |
|
29 | #include <QWidget> | |
|
30 | #include <QAction> | |
|
31 | #endif | |
|
26 | 32 | #include "elffile.h" |
|
27 | #include <QtWidgets/QAction> | |
|
28 | 33 | #include <qhexedit.h> |
|
29 | 34 | |
|
30 | 35 | namespace Ui { |
@@ -22,15 +22,26 | |||
|
22 | 22 | #ifndef ELFINFOWDGT_H |
|
23 | 23 | #define ELFINFOWDGT_H |
|
24 | 24 | |
|
25 | #if QT_VERSION >= 0x050000 | |
|
25 | 26 | #include <QtWidgets/QWidget> |
|
26 | #include "elfparser.h" | |
|
27 | 27 | #include <QtWidgets/QVBoxLayout> |
|
28 | 28 | #include <QtWidgets/QHBoxLayout> |
|
29 | 29 | #include <QtWidgets/QLabel> |
|
30 | 30 | #include <QtWidgets/QTextEdit> |
|
31 | 31 | #include <QtWidgets/QTableWidget> |
|
32 | #include <QtWidgets/QSplitter> | |
|
33 | #else | |
|
34 | #include <QWidget> | |
|
35 | #include <QVBoxLayout> | |
|
36 | #include <QHBoxLayout> | |
|
37 | #include <QLabel> | |
|
38 | #include <QTextEdit> | |
|
39 | #include <QTableWidget> | |
|
40 | #include <QSplitter> | |
|
41 | #endif | |
|
42 | ||
|
43 | #include "elfparser.h" | |
|
32 | 44 | #include <qhexedit.h> |
|
33 | #include <QtWidgets/QSplitter> | |
|
34 | 45 | |
|
35 | 46 | class elfInfoWdgt : public QWidget |
|
36 | 47 | { |
@@ -163,7 +163,9 QString elfparser::getABI() | |||
|
163 | 163 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_TRU64)return "Compaq TRU64 UNIX"; |
|
164 | 164 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_MODESTO)return " Novell Modesto"; |
|
165 | 165 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_OPENBSD)return "OpenBSD"; |
|
166 | #ifdef ELFOSABI_ARM_AEABI | |
|
166 | 167 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM_AEABI)return "ARM EABI"; |
|
168 | #endif | |
|
167 | 169 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_ARM)return "ARM"; |
|
168 | 170 | if(this->ehdr.e_ident[EI_OSABI]==ELFOSABI_STANDALONE)return "Standalone (embedded) application"; |
|
169 | 171 | } |
@@ -1,5 +1,6 | |||
|
1 | 1 | #include "filelist.h" |
|
2 | 2 | #include <QMimeData> |
|
3 | #include <QUrl> | |
|
3 | 4 | |
|
4 | 5 | FileList::FileList(QWidget *parent) : |
|
5 | 6 | QTableWidget(parent) |
@@ -23,7 +23,11 | |||
|
23 | 23 | #include "ui_srecfilewidget.h" |
|
24 | 24 | #include <QTableWidgetItem> |
|
25 | 25 | #include <qtablewidgetintitem.h> |
|
26 | #if QT_VERSION >= 0x050000 | |
|
26 | 27 | #include <QtWidgets/QFileDialog> |
|
28 | #else | |
|
29 | #include <QFileDialog> | |
|
30 | #endif | |
|
27 | 31 | #include "binaryfile.h" |
|
28 | 32 | |
|
29 | 33 | srecFileWidget::srecFileWidget(QWidget *parent) : |
General Comments 0
You need to be logged in to leave comments.
Login now