@@ -44,14 +44,15 @@ class VariableListItem
44
44
BinaryNinja::DataVariable m_dataVar;
45
45
BinaryNinja::PossibleValueSet m_pvs;
46
46
bool m_hasUidf;
47
+ bool m_showPlacementInformation;
47
48
48
49
public:
49
50
// ! Create a new VariableListItem of the LocalVariable type.
50
51
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 );
52
53
53
54
// ! 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 );
55
56
56
57
// ! Get the type of this list item.
57
58
VariableListItemType type () const ;
@@ -112,6 +113,7 @@ class BINARYNINJAUIAPI VariableListModel : public QAbstractListModel
112
113
113
114
size_t m_prevVariableCount;
114
115
uint64_t m_prevSelectionId;
116
+ bool m_showPlacementInformation;
115
117
116
118
public:
117
119
VariableListModel (QWidget* parent, ViewFrame* view, BinaryViewRef data);
@@ -128,6 +130,9 @@ class BINARYNINJAUIAPI VariableListModel : public QAbstractListModel
128
130
// ! Whether or not the function exceeds the set complexity threshold
129
131
bool functionExceedsComplexity () const { return m_funcExceedsComplexity; }
130
132
133
+ // ! Get the showPlacementInformation setting
134
+ bool showPlacementInformation () const { return m_showPlacementInformation; }
135
+
131
136
// ! Set the focused function and update the content of the list.
132
137
void setFunction (FunctionRef func, const BinaryNinja::FunctionViewType& il, const HighlightTokenState& hts);
133
138
0 commit comments