-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,798 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
#pragma once | ||
|
||
#include "HexDump.h" | ||
#include "TraceFileDump.h" | ||
|
||
//forward declaration | ||
//class CPUMultiDump; | ||
class TraceBrowser; | ||
class GotoDialog; | ||
class CommonActions; | ||
|
||
class TraceDump : public HexDump | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit TraceDump(TraceBrowser* disas, TraceFileDumpMemoryPage* memoryPage, QWidget* parent); | ||
void getColumnRichText(int col, dsint rva, RichTextPainter::List & richText) override; | ||
QString paintContent(QPainter* painter, dsint rowBase, int rowOffset, int col, int x, int y, int w, int h); | ||
void setupContextMenu(); | ||
void getAttention(); | ||
void contextMenuEvent(QContextMenuEvent* event); | ||
void mouseDoubleClickEvent(QMouseEvent* event); | ||
void mouseMoveEvent(QMouseEvent* event); | ||
|
||
signals: | ||
void displayReferencesWidget(); | ||
void showDisassemblyTab(duint selectionStart, duint selectionEnd, duint firstAddress); | ||
|
||
public slots: | ||
void gotoExpressionSlot(); | ||
void gotoFileOffsetSlot(); | ||
void gotoStartSlot(); | ||
void gotoEndSlot(); | ||
//void gotoPreviousReferenceSlot(); | ||
//void gotoNextReferenceSlot(); | ||
|
||
void hexAsciiSlot(); | ||
void hexUnicodeSlot(); | ||
void hexCodepageSlot(); | ||
void hexLastCodepageSlot(); | ||
|
||
void textAsciiSlot(); | ||
void textUnicodeSlot(); | ||
void textCodepageSlot(); | ||
void textLastCodepageSlot(); | ||
|
||
void integerSignedByteSlot(); | ||
void integerSignedShortSlot(); | ||
void integerSignedLongSlot(); | ||
void integerSignedLongLongSlot(); | ||
void integerUnsignedByteSlot(); | ||
void integerUnsignedShortSlot(); | ||
void integerUnsignedLongSlot(); | ||
void integerUnsignedLongLongSlot(); | ||
void integerHexShortSlot(); | ||
void integerHexLongSlot(); | ||
void integerHexLongLongSlot(); | ||
|
||
void floatFloatSlot(); | ||
void floatDoubleSlot(); | ||
void floatLongDoubleSlot(); | ||
|
||
void addressUnicodeSlot(); | ||
void addressAsciiSlot(); | ||
void disassemblySlot(); | ||
|
||
void selectionGet(SELECTIONDATA* selection); | ||
void selectionSet(const SELECTIONDATA* selection); | ||
|
||
void binaryEditSlot(); | ||
void binaryCopySlot(); | ||
void binarySaveToFileSlot(); | ||
void findPattern(); | ||
void copyFileOffsetSlot(); | ||
void findReferencesSlot(); | ||
|
||
void selectionUpdatedSlot(); | ||
void syncWithExpressionSlot(); | ||
|
||
void headerButtonReleasedSlot(int colIndex); | ||
|
||
private: | ||
TraceFileDumpMemoryPage* mMemoryPage; | ||
MenuBuilder* mMenuBuilder; | ||
CommonActions* mCommonActions; | ||
|
||
//QMenu* mPluginMenu; | ||
//QMenu* mFollowInDumpMenu; | ||
QList<QAction*> mFollowInDumpActions; | ||
|
||
GotoDialog* mGoto = nullptr; | ||
GotoDialog* mGotoOffset = nullptr; | ||
TraceBrowser* mDisas; | ||
//CPUMultiDump* mMultiDump; | ||
int mAsciiSeparator = 0; | ||
|
||
enum ViewEnum_t | ||
{ | ||
ViewHexAscii = 0, | ||
ViewHexUnicode, | ||
ViewTextAscii, | ||
ViewTextUnicode, | ||
ViewIntegerSignedShort, | ||
ViewIntegerSignedLong, | ||
ViewIntegerSignedLongLong, | ||
ViewIntegerUnsignedShort, | ||
ViewIntegerUnsignedLong, | ||
ViewIntegerUnsignedLongLong, | ||
ViewIntegerHexShort, | ||
ViewIntegerHexLong, | ||
ViewIntegerHexLongLong, | ||
ViewFloatFloat, | ||
ViewFloatDouble, | ||
ViewFloatLongDouble, | ||
ViewAddress, | ||
ViewIntegerSignedByte, | ||
ViewIntegerUnsignedByte, | ||
ViewAddressAscii, | ||
ViewAddressUnicode, | ||
ViewHexCodepage, | ||
ViewTextCodepage | ||
}; | ||
|
||
void setView(ViewEnum_t view); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.