diff options
| author | Peter LaFosse <peter@vector35.com> | 2019-08-03 10:20:51 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2019-08-03 10:23:48 -0400 |
| commit | d211df96cc9d27922e79137307cb3243c28e8157 (patch) | |
| tree | ceae4111dd94e1802889c910d65f07b47cf61ca4 | |
| parent | 8bda3399997c0af7fbba6c8a6cf3d22cdd6d0297 (diff) | |
Add better error handling for type dialog
| -rw-r--r-- | ui/typedialog.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/typedialog.h b/ui/typedialog.h index 0404372d..34b68c07 100644 --- a/ui/typedialog.h +++ b/ui/typedialog.h @@ -36,22 +36,28 @@ class BINARYNINJAUIAPI TypeDialog: public QDialog QComboBox* m_combo; QStringListModel* m_model; - QLabel* m_previewText; + QLabel* m_prompt; + QString m_promptText; BinaryViewRef m_view; bool m_resultValid; QStringList m_historyEntries; int m_historySize; GetTypesListThread* m_updateThread; QFont m_defaultFont; - QString m_prompt; bool m_initialTextSelection; BinaryNinja::QualifiedNameAndType m_type; + QPushButton* m_acceptButton; + QTimer* m_updateTimer; + QPalette m_defaultPalette; + QString m_parseError; void commitHistory(); void customEvent(QEvent* event); private Q_SLOTS: void accepted(); + void checkParse(QString text); + void updateTimerEvent(); public: TypeDialog(QWidget* parent, BinaryViewRef view, const QString& title = "Specify Type", |
