1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:47:44 +00:00

HexEditor: Port HexEditor to GML compilation

This commit is contained in:
tetektoza 2023-09-28 17:06:49 +02:00 committed by Tim Schumacher
parent bcec05a7cb
commit 935aaab757
15 changed files with 147 additions and 51 deletions

View file

@ -19,18 +19,23 @@
#include <LibGUI/Widget.h>
#include <LibGUI/Window.h>
class HexEditor;
namespace HexEditor {
class HexEditorWidget final : public GUI::Widget {
C_OBJECT(HexEditorWidget)
C_OBJECT_ABSTRACT(HexEditorWidget)
public:
virtual ~HexEditorWidget() override = default;
void open_file(String const& filename, NonnullOwnPtr<Core::File>);
ErrorOr<void> initialize_menubar(GUI::Window&);
bool request_close();
static ErrorOr<NonnullRefPtr<HexEditorWidget>> create();
protected:
static ErrorOr<NonnullRefPtr<HexEditorWidget>> try_create();
private:
HexEditorWidget();
ErrorOr<void> setup();
HexEditorWidget() = default;
void set_path(StringView);
void update_title();
void set_search_results_visible(bool visible);
@ -85,3 +90,5 @@ private:
bool m_value_inspector_little_endian { true };
bool m_selecting_from_inspector { false };
};
}