Skip to content

Commit 49cd12d

Browse files
committed
Make showPlacementInformation an instanced setting
1 parent 757df27 commit 49cd12d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ui/variablelist.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ class VariableListItem
4444
BinaryNinja::DataVariable m_dataVar;
4545
BinaryNinja::PossibleValueSet m_pvs;
4646
bool m_hasUidf;
47+
bool m_showPlacementInformation;
4748

4849
public:
4950
//! Create a new VariableListItem of the LocalVariable type.
5051
VariableListItem(
51-
FunctionRef func, BinaryNinja::Variable var, BinaryNinja::PossibleValueSet pvs, bool hasUidf, std::string name);
52+
FunctionRef func, BinaryNinja::Variable var, BinaryNinja::PossibleValueSet pvs, bool hasUidf, std::string name, bool showPlacementInformation);
5253

5354
//! Create a new VariableListItem of the DataVariable type.
54-
VariableListItem(FunctionRef func, BinaryNinja::DataVariable dataVar, uint64_t refPoint, std::string name);
55+
VariableListItem(FunctionRef func, BinaryNinja::DataVariable dataVar, uint64_t refPoint, std::string name, bool showPlacementInformation);
5556

5657
//! Get the type of this list item.
5758
VariableListItemType type() const;
@@ -112,6 +113,7 @@ class BINARYNINJAUIAPI VariableListModel : public QAbstractListModel
112113

113114
size_t m_prevVariableCount;
114115
uint64_t m_prevSelectionId;
116+
bool m_showPlacementInformation;
115117

116118
public:
117119
VariableListModel(QWidget* parent, ViewFrame* view, BinaryViewRef data);
@@ -128,6 +130,9 @@ class BINARYNINJAUIAPI VariableListModel : public QAbstractListModel
128130
//! Whether or not the function exceeds the set complexity threshold
129131
bool functionExceedsComplexity() const { return m_funcExceedsComplexity; }
130132

133+
//! Get the showPlacementInformation setting
134+
bool showPlacementInformation() const { return m_showPlacementInformation; }
135+
131136
//! Set the focused function and update the content of the list.
132137
void setFunction(FunctionRef func, const BinaryNinja::FunctionViewType& il, const HighlightTokenState& hts);
133138

0 commit comments

Comments
 (0)