mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
HexEditor: Initial application release
The very first release of the Hex Editor for Serenity.
This commit is contained in:
parent
efc2fc6888
commit
48ef1d1bd1
10 changed files with 828 additions and 0 deletions
39
Applications/HexEditor/HexEditorWidget.h
Normal file
39
Applications/HexEditor/HexEditorWidget.h
Normal 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 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue