diff options
| author | Brian Potchik <brian@vector35.com> | 2022-08-03 19:42:46 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2022-08-03 19:42:46 -0400 |
| commit | 0469ac871e005ecb359fb171368eee3f517e391c (patch) | |
| tree | a61939d0f822c5f9cc556ba45299078d9f634760 | |
| parent | 38ddc1ff21a8e81abccffd78d7bf780e523cb786 (diff) | |
Enable 'ui.recentFileOptionsLimit' by default and allow general analysis settings propagation for new files.
| -rw-r--r-- | ui/options.h | 2 | ||||
| -rw-r--r-- | ui/settingsview.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ui/options.h b/ui/options.h index b4446741..ee55aac2 100644 --- a/ui/options.h +++ b/ui/options.h @@ -25,6 +25,7 @@ class BINARYNINJAUIAPI OptionsDialog : public QDialog QComboBox* m_objectCombo; QTabWidget* m_tab; QLabel* m_notification; + QPushButton* m_defaultsButton; bool m_isDatabase; FileContext* m_file = nullptr; @@ -43,6 +44,7 @@ class BINARYNINJAUIAPI OptionsDialog : public QDialog void openFile(FileContext* file); private Q_SLOTS: + void defaults(); void cancel(); void open(); void addSettingsViewForType(const std::string& bvtName); diff --git a/ui/settingsview.h b/ui/settingsview.h index a69a2f54..e193a961 100644 --- a/ui/settingsview.h +++ b/ui/settingsview.h @@ -235,8 +235,7 @@ class BINARYNINJAUIAPI SettingsDelegate : public QStyledItemDelegate QWidget* createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const override; void setEditorData(QWidget* editor, const QModelIndex& index) const override; void setModelData(QWidget* editor, QAbstractItemModel* model, const QModelIndex& index) const override; - void updateEditorGeometry( - QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const override; + void updateEditorGeometry(QWidget* editor, const QStyleOptionViewItem& option, const QModelIndex& index) const override; protected: bool eventFilter(QObject* object, QEvent* event) override; @@ -383,6 +382,7 @@ class BINARYNINJAUIAPI SettingsView : public QWidget SettingsRef getSettings() { return m_settings; } void init(std::string schema, bool uiScopeSelection); + void refreshAllSettings(); void refreshCurrentScope(); void setData(BinaryViewRef view, const QString& name = ""); void setDefaultGroupSelection(const QString& group); |
