-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUiDiskFactory.h
44 lines (35 loc) · 1.21 KB
/
UiDiskFactory.h
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
// This implements a modal dialog box for creating, formatting, and inspecting
// virtual disk images.
#ifndef _INCLUDE_UI_DISK_FACTORY_H_
#define _INCLUDE_UI_DISK_FACTORY_H_
#include "w2200.h"
#include "wx/wx.h"
class PropPanel;
class LabelPanel;
class Wvd;
class DiskFactory : public wxDialog
{
public:
CANT_ASSIGN_OR_COPY_CLASS(DiskFactory);
DiskFactory(wxFrame *parent, const std::string &filename);
~DiskFactory() override;
void updateButtons(); // so ugly -- only needed by subordinate notebook pages
// why advertise it to the rest of the world?
private:
// ---- event handlers ----
void OnButton_Save(wxCommandEvent& WXUNUSED(event));
void OnButton_SaveAs(wxCommandEvent& WXUNUSED(event));
void OnButton_Cancel(wxCommandEvent& WXUNUSED(event));
void OnSize(wxSizeEvent &event);
void OnClose(wxCloseEvent& WXUNUSED(event));
// helper routines
void updateDlg();
// member data
std::shared_ptr<Wvd> m_disk_data;
PropPanel *m_tab1 = nullptr;
LabelPanel *m_tab2 = nullptr;
wxButton *m_btn_cancel = nullptr;
wxButton *m_btn_save = nullptr;
};
#endif // _INCLUDE_UI_DISK_FACTORY_H_
// vim: ts=8:et:sw=4:smarttab