1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:57:46 +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

@ -6,18 +6,20 @@
#pragma once
#include "GoToOffsetWidget.h"
#include <AK/Result.h>
#include <AK/Vector.h>
#include <LibGUI/Dialog.h>
class GoToOffsetDialog : public GUI::Dialog {
C_OBJECT(GoToOffsetDialog);
C_OBJECT_ABSTRACT(GoToOffsetDialog);
public:
static ExecResult show(GUI::Window* parent_window, int& history_offset, int& out_offset, int selection_offset, int end);
static ErrorOr<NonnullRefPtr<GoToOffsetDialog>> try_create();
private:
GoToOffsetDialog();
GoToOffsetDialog(NonnullRefPtr<HexEditor::GoToOffsetWidget> goto_offset_widget);
virtual ~GoToOffsetDialog() override = default;
void update_statusbar();
int process_input();