summaryrefslogtreecommitdiff
path: root/Userland/Applications/HexEditor/ValueInspectorModel.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-04-12 18:59:23 +0200
committerLinus Groh <mail@linusgroh.de>2022-04-27 00:02:24 +0200
commite5736cdf2fd44d82adb95ef0b4f243fe334f51a6 (patch)
tree2bda153b4f881ecae3895b87f1377d1b42cc8a70 /Userland/Applications/HexEditor/ValueInspectorModel.h
parentda7a8a8711faa56514cd6c2c2788b5fe8ebaf869 (diff)
downloadserenity-e5736cdf2fd44d82adb95ef0b4f243fe334f51a6.zip
HexEditor: Add ASCII to the value inspector
This is kind of redundant but probably easier to read than the ASCII column. Also, it seems appropriate after we add other character encodings.
Diffstat (limited to 'Userland/Applications/HexEditor/ValueInspectorModel.h')
-rw-r--r--Userland/Applications/HexEditor/ValueInspectorModel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/HexEditor/ValueInspectorModel.h b/Userland/Applications/HexEditor/ValueInspectorModel.h
index de38cfd4fb..64fcbf20dc 100644
--- a/Userland/Applications/HexEditor/ValueInspectorModel.h
+++ b/Userland/Applications/HexEditor/ValueInspectorModel.h
@@ -26,6 +26,7 @@ public:
UnsignedLong,
Float,
Double,
+ ASCII,
__Count
};
@@ -90,6 +91,8 @@ public:
return "Float";
case Double:
return "Double";
+ case ASCII:
+ return "ASCII";
default:
return "";
}
@@ -112,6 +115,7 @@ public:
switch (selected_type) {
case SignedByte:
case UnsignedByte:
+ case ASCII:
return 1;
case SignedShort:
case UnsignedShort: