Skip to content

Commit 9da121e

Browse files
committed
add mago option to disable expanding strings
1 parent 39178a4 commit 9da121e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

visuald/propertypage.d

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,6 +2576,7 @@ struct MagoOptions
25762576
bool showStaticsInAggr;
25772577
bool showVTable;
25782578
bool flatClassFields;
2579+
bool expandableStrings;
25792580

25802581
void saveToRegistry()
25812582
{
@@ -2584,6 +2585,7 @@ struct MagoOptions
25842585
keyMago.Set("showStaticsInAggr", showStaticsInAggr);
25852586
keyMago.Set("showVTable", showVTable);
25862587
keyMago.Set("flatClassFields", flatClassFields);
2588+
keyMago.Set("expandableStrings", expandableStrings);
25872589
}
25882590

25892591
void loadFromRegistry()
@@ -2594,6 +2596,7 @@ struct MagoOptions
25942596
showStaticsInAggr = (keyMago.GetDWORD("showStaticsInAggr", 0) != 0);
25952597
showVTable = (keyMago.GetDWORD("showVTable", 1) != 0);
25962598
flatClassFields = (keyMago.GetDWORD("flatClassFields", 0) != 0);
2599+
expandableStrings = (keyMago.GetDWORD("expandableStrings", 0) != 0);
25972600
}
25982601
}
25992602

@@ -2611,6 +2614,7 @@ class MagoPropertyPage : ResizablePropertyPage
26112614
AddControl("", mShowStaticsInAggr = new CheckBox(mCanvas, "Show static fields in structs and classes"));
26122615
AddControl("", mShowVTable = new CheckBox(mCanvas, "Show virtual function table as field of classes"));
26132616
AddControl("", mFlatClassFields = new CheckBox(mCanvas, "Show base class fields as direct fields"));
2617+
AddControl("", mExpandableStrings = new CheckBox(mCanvas, "Expand strings to show array of characters"));
26142618
}
26152619

26162620
override void UpdateDirty(bool bDirty)
@@ -2656,6 +2660,7 @@ class MagoPropertyPage : ResizablePropertyPage
26562660
mShowStaticsInAggr.setChecked(mOptions.showStaticsInAggr);
26572661
mShowVTable.setChecked(mOptions.showVTable);
26582662
mFlatClassFields.setChecked(mOptions.flatClassFields);
2663+
mExpandableStrings.setChecked(mOptions.expandableStrings);
26592664
}
26602665

26612666
int DoApply(ref MagoOptions opts, ref MagoOptions refopts)
@@ -2665,13 +2670,15 @@ class MagoPropertyPage : ResizablePropertyPage
26652670
changes += changeOption(mShowStaticsInAggr.isChecked(), opts.showStaticsInAggr, refopts.showStaticsInAggr);
26662671
changes += changeOption(mShowVTable.isChecked(), opts.showVTable, refopts.showVTable);
26672672
changes += changeOption(mFlatClassFields.isChecked(), opts.flatClassFields, refopts.flatClassFields);
2673+
changes += changeOption(mExpandableStrings.isChecked(), opts.expandableStrings, refopts.expandableStrings);
26682674
return changes;
26692675
}
26702676

26712677
CheckBox mHideInternalNames;
26722678
CheckBox mShowStaticsInAggr;
26732679
CheckBox mShowVTable;
26742680
CheckBox mFlatClassFields;
2681+
CheckBox mExpandableStrings;
26752682
}
26762683

26772684
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)