diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /examples/triage/headers.h | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'examples/triage/headers.h')
| -rw-r--r-- | examples/triage/headers.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/examples/triage/headers.h b/examples/triage/headers.h index 0a9af5ff..a8348401 100644 --- a/examples/triage/headers.h +++ b/examples/triage/headers.h @@ -6,36 +6,36 @@ #include "uitypes.h" -class NavigationLabel: public QLabel +class NavigationLabel : public QLabel { std::function<void()> m_func; -public: + public: NavigationLabel(const QString& text, QColor color, const std::function<void()>& func); -protected: + protected: virtual void mousePressEvent(QMouseEvent* event) override; }; -class NavigationAddressLabel: public NavigationLabel +class NavigationAddressLabel : public NavigationLabel { uint64_t m_address; void clickEvent(); -public: + public: NavigationAddressLabel(const QString& text); }; -class NavigationCodeLabel: public NavigationLabel +class NavigationCodeLabel : public NavigationLabel { uint64_t m_address; void clickEvent(); -public: + public: NavigationCodeLabel(const QString& text); }; @@ -61,7 +61,7 @@ class Headers std::vector<HeaderField> m_fields; size_t m_columns, m_rowsPerColumn; -public: + public: Headers(); void AddField(const QString& title, const QString& value, HeaderFieldType type = TextHeaderField); void AddField(const QString& title, const std::vector<QString>& values, HeaderFieldType type = TextHeaderField); @@ -73,27 +73,27 @@ public: }; -class GenericHeaders: public Headers +class GenericHeaders : public Headers { -public: + public: GenericHeaders(BinaryViewRef data); }; -class PEHeaders: public Headers +class PEHeaders : public Headers { - uint64_t GetValueOfStructMember(BinaryViewRef data, const std::string& structName, uint64_t structStart, - const std::string& fieldName); + uint64_t GetValueOfStructMember( + BinaryViewRef data, const std::string& structName, uint64_t structStart, const std::string& fieldName); uint64_t GetAddressAfterStruct(BinaryViewRef data, const std::string& structName, uint64_t structStart); QString GetNameOfEnumerationMember(BinaryViewRef data, const std::string& enumName, uint64_t value); -public: + public: PEHeaders(BinaryViewRef data); }; -class HeaderWidget: public QWidget +class HeaderWidget : public QWidget { -public: + public: HeaderWidget(QWidget* parent, const Headers& headers); }; |
