summaryrefslogtreecommitdiff
path: root/pcbnew/dialogs/dialog_general_options_BoardEditor_base.h
blob: 6bb5bb08c01678e7a6dedf6b8e50a9ca20f8cd44 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 17 2015)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifndef __DIALOG_GENERAL_OPTIONS_BOARDEDITOR_BASE_H__
#define __DIALOG_GENERAL_OPTIONS_BOARDEDITOR_BASE_H__

#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class DIALOG_SHIM;

#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/radiobox.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/spinctrl.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/statbox.h>
#include <wx/statline.h>
#include <wx/button.h>
#include <wx/dialog.h>

///////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE
///////////////////////////////////////////////////////////////////////////////
class DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE : public DIALOG_SHIM
{
	private:

	protected:
		enum
		{
			wxID_POLAR_CTRL = 1000,
			wxID_UNITS,
			wxID_CURSOR_SHAPE,
			wxID_DRC_ONOFF,
			wxID_GENERAL_RATSNEST,
			wxID_RATSNEST_MODULE,
			wxID_TRACK_AUTODEL,
			wxID_TRACKS45,
			wxID_SEGMENTS45,
			wxID_MAGNETIC_TRACKS,
			wxID_MIDDLEBUTTONPAN,
			wxID_AUTOPAN
		};

		wxRadioBox* m_PolarDisplay;
		wxRadioBox* m_UnitsSelection;
		wxRadioBox* m_CursorShape;
		wxStaticText* m_staticTextmaxlinks;
		wxSpinCtrl* m_MaxShowLinks;
		wxStaticText* m_staticTextautosave;
		wxSpinCtrl* m_SaveTime;
		wxStaticText* m_stMaxUndoItems;
		wxSpinCtrl* m_spinMaxUndoItems;
		wxStaticText* m_staticTextRotationAngle;
		wxTextCtrl* m_RotationAngle;
		wxCheckBox* m_DrcOn;
		wxCheckBox* m_ShowGlobalRatsnest;
		wxCheckBox* m_ShowModuleRatsnest;
		wxCheckBox* m_TrackAutodel;
		wxCheckBox* m_Track_45_Only_Ctrl;
		wxCheckBox* m_Segments_45_Only_Ctrl;
		wxCheckBox* m_Track_DoubleSegm_Ctrl;
		wxRadioBox* m_MagneticPadOptCtrl;
		wxRadioBox* m_MagneticTrackOptCtrl;
		wxCheckBox* m_ZoomCenterOpt;
		wxCheckBox* m_MiddleButtonPANOpt;
		wxCheckBox* m_OptMiddleButtonPanLimited;
		wxCheckBox* m_MousewheelPANOpt;
		wxCheckBox* m_AutoPANOpt;
		wxCheckBox* m_DumpZonesWhenFilling;
		wxStaticLine* m_staticline1;
		wxStdDialogButtonSizer* m_sdbSizer;
		wxButton* m_sdbSizerOK;
		wxButton* m_sdbSizerCancel;

		// Virtual event handlers, overide them in your derived class
		virtual void OnMiddleBtnPanEnbl( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
		virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }


	public:

		DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("General Settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
		~DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE();

};

#endif //__DIALOG_GENERAL_OPTIONS_BOARDEDITOR_BASE_H__