From 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 27 Jan 2022 22:43:28 -0500 Subject: Format All Files --- ui/typedialog.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'ui/typedialog.h') diff --git a/ui/typedialog.h b/ui/typedialog.h index 76931d13..2f171b21 100644 --- a/ui/typedialog.h +++ b/ui/typedialog.h @@ -6,7 +6,7 @@ #include #include #ifndef BINARYNINJAUI_BINDINGS -#include + #include #endif #include "binaryninjaapi.h" #include "uitypes.h" @@ -17,7 +17,7 @@ class GetTypesListThread; class ParseTypeThread; #else -class BINARYNINJAUIAPI GetTypesListThread: public QThread +class BINARYNINJAUIAPI GetTypesListThread : public QThread { Q_OBJECT @@ -27,10 +27,10 @@ class BINARYNINJAUIAPI GetTypesListThread: public QThread bool m_done; BinaryViewRef m_view; -protected: + protected: virtual void run() override; -public: + public: GetTypesListThread(BinaryViewRef view, const std::function& completeFunc); void cancel(); @@ -40,7 +40,8 @@ public: Q_DECLARE_METATYPE(BinaryNinja::QualifiedNameAndType); //! QThread subclass for handling type string parsing to avoid UI interruptions. -class ParseTypeThread: public QThread { +class ParseTypeThread : public QThread +{ Q_OBJECT BinaryViewRef m_view; @@ -48,16 +49,16 @@ class ParseTypeThread: public QThread { void run() override; -Q_SIGNALS: + Q_SIGNALS: void parsingComplete(bool valid, BinaryNinja::QualifiedNameAndType type, QString error); -public: + public: ParseTypeThread(BinaryViewRef view, QString text); void cancel(); }; #endif -class BINARYNINJAUIAPI TypeDialog: public QDialog +class BINARYNINJAUIAPI TypeDialog : public QDialog { Q_OBJECT @@ -84,15 +85,15 @@ class BINARYNINJAUIAPI TypeDialog: public QDialog void commitHistory(); void customEvent(QEvent* event); -private Q_SLOTS: + private Q_SLOTS: void accepted(); void checkParse(); void typeParsed(bool valid, BinaryNinja::QualifiedNameAndType type, QString error); void updateTimerEvent(); -public: + public: TypeDialog(QWidget* parent, BinaryViewRef view, const QString& title = "Specify Type", - const QString& prompt = "Enter Type Name", const QString& existing=""); + const QString& prompt = "Enter Type Name", const QString& existing = ""); ~TypeDialog() { delete m_updateThread; } BinaryNinja::QualifiedNameAndType getType() const { return m_type; } }; -- cgit v1.3.1