1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:27:45 +00:00

HexEditor: Initial application release

The very first release of the Hex Editor for Serenity.
This commit is contained in:
Brandon Scott 2019-10-12 18:08:12 -05:00 committed by Andreas Kling
parent efc2fc6888
commit 48ef1d1bd1
10 changed files with 828 additions and 0 deletions

View file

@ -0,0 +1,39 @@
#pragma once
#include "HexEditor.h"
#include <AK/FileSystemPath.h>
#include <AK/Function.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GTextEditor.h>
#include <LibGUI/GWidget.h>
#include <LibGUI/GWindow.h>
class HexEditor;
class GStatusBar;
class HexEditorWidget final : public GWidget {
C_OBJECT(HexEditorWidget)
public:
virtual ~HexEditorWidget() override;
void open_file(const String& path);
bool request_close();
private:
HexEditorWidget();
void set_path(const FileSystemPath& file);
void update_title();
RefPtr<HexEditor> m_editor;
String m_path;
String m_name;
String m_extension;
RefPtr<GAction> m_new_action;
RefPtr<GAction> m_open_action;
RefPtr<GAction> m_save_action;
RefPtr<GAction> m_save_as_action;
RefPtr<GAction> m_goto_action;
RefPtr<GStatusBar> m_statusbar;
bool m_document_dirty { false };
};