KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_simulator_preferences_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bMainSizer;
15 bMainSizer = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bScrollSizer;
18 bScrollSizer = new wxBoxSizer( wxVERTICAL );
19
20 m_lblScrollHeading = new wxStaticText( this, wxID_ANY, _("Scroll Gestures"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_lblScrollHeading->Wrap( -1 );
22 bScrollSizer->Add( m_lblScrollHeading, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 13 );
23
24 m_scrollLine = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
25 bScrollSizer->Add( m_scrollLine, 0, wxEXPAND|wxBOTTOM, 5 );
26
27 wxBoxSizer* bScrollMargins;
28 bScrollMargins = new wxBoxSizer( wxHORIZONTAL );
29
30 wxBoxSizer* bScrollSizerLeft;
31 bScrollSizerLeft = new wxBoxSizer( wxVERTICAL );
32
33 m_lblVScrollMovement = new wxStaticText( this, wxID_ANY, _("Vertical touchpad or scroll wheel movement:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_lblVScrollMovement->Wrap( -1 );
35 bScrollSizerLeft->Add( m_lblVScrollMovement, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
36
37
38 bScrollSizerLeft->Add( 0, 5, 0, wxEXPAND, 5 );
39
40 wxFlexGridSizer* fgVScroll;
41 fgVScroll = new wxFlexGridSizer( 0, 2, 5, 0 );
42 fgVScroll->AddGrowableCol( 0 );
43 fgVScroll->SetFlexibleDirection( wxBOTH );
44 fgVScroll->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
45
46 m_lblVScrollModifier = new wxStaticText( this, wxID_ANY, _("Modifier"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_lblVScrollModifier->Wrap( -1 );
48 fgVScroll->Add( m_lblVScrollModifier, 0, wxALIGN_BOTTOM, 5 );
49
50 m_lblVScrollAction = new wxStaticText( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_lblVScrollAction->Wrap( -1 );
52 fgVScroll->Add( m_lblVScrollAction, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
53
54 m_lblVScrollUnmodified = new wxStaticText( this, wxID_ANY, _("None:"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_lblVScrollUnmodified->Wrap( -1 );
56 fgVScroll->Add( m_lblVScrollUnmodified, 0, wxALIGN_CENTER_VERTICAL, 5 );
57
58 wxArrayString m_choiceVScrollUnmodifiedChoices;
59 m_choiceVScrollUnmodified = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollUnmodifiedChoices, 0 );
60 m_choiceVScrollUnmodified->SetSelection( 0 );
61 fgVScroll->Add( m_choiceVScrollUnmodified, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
62
63 m_lblVScrollCtrl = new wxStaticText( this, wxID_ANY, _("Ctrl:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_lblVScrollCtrl->Wrap( -1 );
65 fgVScroll->Add( m_lblVScrollCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
66
67 wxArrayString m_choiceVScrollCtrlChoices;
68 m_choiceVScrollCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollCtrlChoices, 0 );
69 m_choiceVScrollCtrl->SetSelection( 0 );
70 fgVScroll->Add( m_choiceVScrollCtrl, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
71
72 m_lblVScrollShift = new wxStaticText( this, wxID_ANY, _("Shift:"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_lblVScrollShift->Wrap( -1 );
74 fgVScroll->Add( m_lblVScrollShift, 0, wxALIGN_CENTER_VERTICAL, 5 );
75
76 wxArrayString m_choiceVScrollShiftChoices;
77 m_choiceVScrollShift = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollShiftChoices, 0 );
78 m_choiceVScrollShift->SetSelection( 0 );
79 fgVScroll->Add( m_choiceVScrollShift, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
80
81 m_lblVScrollAlt = new wxStaticText( this, wxID_ANY, _("Alt:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_lblVScrollAlt->Wrap( -1 );
83 fgVScroll->Add( m_lblVScrollAlt, 0, wxALIGN_CENTER_VERTICAL, 5 );
84
85 wxArrayString m_choiceVScrollAltChoices;
86 m_choiceVScrollAlt = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVScrollAltChoices, 0 );
87 m_choiceVScrollAlt->SetSelection( 0 );
88 fgVScroll->Add( m_choiceVScrollAlt, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
89
90
91 bScrollSizerLeft->Add( fgVScroll, 0, wxRIGHT|wxLEFT, 24 );
92
93
94 bScrollSizerLeft->Add( 0, 20, 0, wxEXPAND, 5 );
95
96 m_lblHScrollMovement = new wxStaticText( this, wxID_ANY, _("Horizontal touchpad movement:"), wxDefaultPosition, wxDefaultSize, 0 );
97 m_lblHScrollMovement->Wrap( -1 );
98 bScrollSizerLeft->Add( m_lblHScrollMovement, 0, wxALL, 5 );
99
100
101 bScrollSizerLeft->Add( 0, 5, 0, wxEXPAND, 5 );
102
103 wxFlexGridSizer* fgHScroll;
104 fgHScroll = new wxFlexGridSizer( 0, 2, 0, 0 );
105 fgHScroll->AddGrowableCol( 0 );
106 fgHScroll->SetFlexibleDirection( wxBOTH );
107 fgHScroll->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
108
109 m_lblHScrollModifier = new wxStaticText( this, wxID_ANY, _("Modifier"), wxDefaultPosition, wxDefaultSize, 0 );
110 m_lblHScrollModifier->Wrap( -1 );
111 fgHScroll->Add( m_lblHScrollModifier, 0, wxALIGN_BOTTOM, 5 );
112
113 m_lblHScrollAction = new wxStaticText( this, wxID_ANY, _("Action"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_lblHScrollAction->Wrap( -1 );
115 fgHScroll->Add( m_lblHScrollAction, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5 );
116
117 m_lblHScrollAny = new wxStaticText( this, wxID_ANY, _("Any:"), wxDefaultPosition, wxDefaultSize, 0 );
118 m_lblHScrollAny->Wrap( -1 );
119 fgHScroll->Add( m_lblHScrollAny, 0, wxALIGN_CENTER_VERTICAL, 5 );
120
121 wxArrayString m_choiceHScrollChoices;
122 m_choiceHScroll = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceHScrollChoices, 0 );
123 m_choiceHScroll->SetSelection( 0 );
124 fgHScroll->Add( m_choiceHScroll, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
125
126
127 bScrollSizerLeft->Add( fgHScroll, 0, wxRIGHT|wxLEFT, 24 );
128
129
130 bScrollMargins->Add( bScrollSizerLeft, 1, wxEXPAND|wxLEFT, 5 );
131
132 wxBoxSizer* bScrollSizerRight;
133 bScrollSizerRight = new wxBoxSizer( wxVERTICAL );
134
135 m_btnMouseDefaults = new wxButton( this, wxID_ANY, _("Reset to Mouse Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
136 bScrollSizerRight->Add( m_btnMouseDefaults, 0, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
137
138 m_btnTrackpadDefaults = new wxButton( this, wxID_ANY, _("Reset to Trackpad Defaults"), wxDefaultPosition, wxDefaultSize, 0 );
139 bScrollSizerRight->Add( m_btnTrackpadDefaults, 0, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
140
141
142 bScrollMargins->Add( bScrollSizerRight, 0, wxEXPAND|wxLEFT, 50 );
143
144
145 bScrollSizer->Add( bScrollMargins, 1, wxEXPAND|wxTOP|wxRIGHT, 10 );
146
147
148 bMainSizer->Add( bScrollSizer, 1, wxEXPAND|wxRIGHT, 10 );
149
150
151 this->SetSizer( bMainSizer );
152 this->Layout();
153 bMainSizer->Fit( this );
154
155 // Connect Events
156 m_btnMouseDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SIMULATOR_PREFERENCES_BASE::onMouseDefaults ), NULL, this );
157 m_btnTrackpadDefaults->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SIMULATOR_PREFERENCES_BASE::onTrackpadDefaults ), NULL, this );
158}
159
161{
162 // Disconnect Events
163 m_btnMouseDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SIMULATOR_PREFERENCES_BASE::onMouseDefaults ), NULL, this );
164 m_btnTrackpadDefaults->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SIMULATOR_PREFERENCES_BASE::onTrackpadDefaults ), NULL, this );
165
166}
const char * name
Definition: DXF_plotter.cpp:57
virtual void onTrackpadDefaults(wxCommandEvent &event)
virtual void onMouseDefaults(wxCommandEvent &event)
PANEL_SIMULATOR_PREFERENCES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
A wxPanel that is designed to be reset in a standard manner.
#define _(s)