This repository was archived by the owner on Jul 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMainFrame.hpp
More file actions
48 lines (45 loc) · 1.33 KB
/
MainFrame.hpp
File metadata and controls
48 lines (45 loc) · 1.33 KB
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
40
41
42
43
44
45
46
47
48
#ifndef MAINFRAME_HPP
#define MAINFRAME_HPP
#include "MetalinkEditor.hpp"
#include "MetalinkEditorListener.hpp"
#include "SourcePanel.hpp"
#include "GeneralPanel.hpp"
#include "HashPanel.hpp"
#include "ChunkPanel.hpp"
#include <wx/wx.h>
#include <wx/image.h>
#include <wx/notebook.h>
#include <wx/choice.h>
class MainFrame: public wxFrame, public MetalinkEditorListener
{
public:
MainFrame();
void on_quit(wxCommandEvent& event);
void on_about(wxCommandEvent& event);
void on_license(wxCommandEvent& event);
void on_new(wxCommandEvent& event);
void on_open(wxCommandEvent& event);
void on_save(wxCommandEvent& event);
void on_saveas(wxCommandEvent& event);
void on_add_file(wxCommandEvent& event);
void on_rename_file(wxCommandEvent& event);
void on_del_file(wxCommandEvent& event);
void on_file_select(wxCommandEvent& event);
void on_scan_file(wxCommandEvent& event);
void update();
private:
void create_menu();
void create_widgets();
void update_start(bool force=false);
void saveas();
wxChoice* file_choice_;
wxNotebook* notebook_;
SourcePanel* source_panel_;
GeneralPanel* general_panel_;
HashPanel* hash_panel_;
ChunkPanel* chunk_panel_;
MetalinkEditor editor_;
bool start_; // Are we showing the start page?
DECLARE_EVENT_TABLE()
};
#endif