forked from Wirless/IdlersMapEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathborderize_window.h
More file actions
39 lines (30 loc) · 839 Bytes
/
borderize_window.h
File metadata and controls
39 lines (30 loc) · 839 Bytes
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
#ifndef RME_BORDERIZE_WINDOW_H
#define RME_BORDERIZE_WINDOW_H
#include <wx/dialog.h>
#include "editor.h"
class wxGauge;
class wxStaticText;
class wxSpinCtrl;
class BorderizeWindow : public wxDialog {
public:
BorderizeWindow(wxWindow* parent, Editor& editor);
~BorderizeWindow();
void Start();
void UpdateProgress(int current, int total);
private:
void OnClickNext(wxCommandEvent& event);
void OnClickCancel(wxCommandEvent& event);
void OnChunkSizeChange(wxSpinEvent& event);
Editor& editor;
wxGauge* progress;
wxStaticText* status_text;
wxButton* next_button;
wxButton* cancel_button;
wxSpinCtrl* chunk_size_spin;
size_t current_chunk;
size_t total_chunks;
bool processing_whole_map;
TileList remaining_tiles;
DECLARE_EVENT_TABLE()
};
#endif