Skip to content

Commit

Permalink
Add automatic table generateion support for serialized objects in the…
Browse files Browse the repository at this point in the history
… settings UI.
  • Loading branch information
bpotchik committed Dec 15, 2023
1 parent 12170f9 commit 050e9a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/settingsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class BINARYNINJAUIAPI SettingsEditor : public QWidget
QLineEdit* m_arrayText = nullptr;
QTableWidget* m_objectTable = nullptr;
std::set<QString> m_validComboSelections;
QStringList m_objectTableColumns;
Json::StreamWriterBuilder m_builder;

bool m_optional = false;
Expand All @@ -174,9 +175,10 @@ class BINARYNINJAUIAPI SettingsEditor : public QWidget
int m_minHeight;
int m_maxAdjustedWidth;

QStringList columnsForObject(const Json::Value& value);

public:
SettingsEditor(
QWidget* parent, SettingsRef settings, BinaryViewRef view, BNSettingsScope scope, const Json::Value* setting);
SettingsEditor(QWidget* parent, SettingsRef settings, BinaryViewRef view, BNSettingsScope scope, const Json::Value* setting);
~SettingsEditor();

void setSetting(const Json::Value* value, bool updateSchema = false);
Expand Down

0 comments on commit 050e9a9

Please sign in to comment.