blob: 1071a8c9fb00e5b6baf419a774429ae561b8ad3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 };
};
|