forked from Wirless/IdlersMapEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautomagic_settings.h
More file actions
55 lines (48 loc) · 1.71 KB
/
automagic_settings.h
File metadata and controls
55 lines (48 loc) · 1.71 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
49
50
51
52
53
54
55
#ifndef RME_AUTOMAGIC_SETTINGS_H_
#define RME_AUTOMAGIC_SETTINGS_H_
#include <wx/dialog.h>
#include <wx/checkbox.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/statbox.h>
#include <wx/spinctrl.h>
class AutomagicSettingsDialog : public wxDialog {
public:
AutomagicSettingsDialog(wxWindow* parent);
virtual ~AutomagicSettingsDialog();
// Get the current settings from the dialog
bool IsAutomagicEnabled() const;
bool IsSameGroundTypeBorderEnabled() const;
bool IsWallsRepelBordersEnabled() const;
bool IsLayerCarpetsEnabled() const;
bool IsForceRoofOuterBordersEnabled() const;
bool IsBorderizeDeleteEnabled() const;
// New custom border methods
bool IsCustomBorderEnabled() const;
int GetCustomBorderId() const;
protected:
// Event handlers
void OnClickOK(wxCommandEvent& event);
void OnClickCancel(wxCommandEvent& event);
void OnAutomagicCheck(wxCommandEvent& event);
void OnSameGroundTypeCheck(wxCommandEvent& event);
void OnClose(wxCloseEvent& event);
void OnCustomBorderCheck(wxCommandEvent& event); // New event handler
// UI elements
wxCheckBox* automagic_enabled_checkbox;
wxCheckBox* same_ground_type_checkbox;
wxCheckBox* walls_repel_borders_checkbox;
wxCheckBox* layer_carpets_checkbox;
wxCheckBox* force_roof_outer_borders_checkbox;
wxCheckBox* borderize_delete_checkbox;
// New UI elements for custom border
wxCheckBox* custom_border_checkbox;
wxSpinCtrl* custom_border_id_field;
wxStaticText* custom_border_id_label;
wxStdDialogButtonSizer* buttons_sizer;
wxButton* ok_button;
wxButton* cancel_button;
DECLARE_EVENT_TABLE()
};
#endif // RME_AUTOMAGIC_SETTINGS_H_