KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_spacemouse_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_SPACEMOUSE_BASE::PANEL_SPACEMOUSE_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* bSizer10;
15 bSizer10 = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bSizer1;
18 bSizer1 = new wxBoxSizer( wxVERTICAL );
19
20 m_panRotateLabel = new wxStaticText( this, wxID_ANY, _("Pan and Rotate"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_panRotateLabel->Wrap( -1 );
22 bSizer1->Add( m_panRotateLabel, 0, wxTOP|wxRIGHT|wxLEFT, 13 );
23
24 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
25 bSizer1->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
26
27 wxBoxSizer* bSizer8;
28 bSizer8 = new wxBoxSizer( wxVERTICAL );
29
30 m_gbSizer = new wxGridBagSizer( 1, 10 );
31 m_gbSizer->SetFlexibleDirection( wxBOTH );
32 m_gbSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 m_gbSizer->SetEmptyCellSize( wxSize( -1,16 ) );
34
35 m_rotationSpeedLabel = new wxStaticText( this, wxID_ANY, _("Rotation speed:"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_rotationSpeedLabel->Wrap( -1 );
37 m_gbSizer->Add( m_rotationSpeedLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
38
39 m_rotationSpeed = new wxSlider( this, wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
40 m_rotationSpeed->SetToolTip( _("How far to zoom in for each rotation of the mouse wheel") );
41 m_rotationSpeed->SetMinSize( wxSize( 160,-1 ) );
42
43 m_gbSizer->Add( m_rotationSpeed, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_BOTTOM|wxRIGHT|wxLEFT, 5 );
44
45 m_checkEnablePanH = new wxCheckBox( this, wxID_ANY, _("Reverse rotation direction"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_checkEnablePanH->SetToolTip( _("Swap the direction of rotation") );
47
48 m_gbSizer->Add( m_checkEnablePanH, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
49
50 m_panSpeedLabel = new wxStaticText( this, wxID_ANY, _("Pan speed:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_panSpeedLabel->Wrap( -1 );
52 m_gbSizer->Add( m_panSpeedLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
53
54 m_autoPanSpeed = new wxSlider( this, wxID_ANY, 5, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL );
55 m_autoPanSpeed->SetToolTip( _("How fast to pan when moving an object off the edge of the screen") );
56 m_autoPanSpeed->SetMinSize( wxSize( 160,-1 ) );
57
58 m_gbSizer->Add( m_autoPanSpeed, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxEXPAND|wxALIGN_BOTTOM|wxRIGHT|wxLEFT, 5 );
59
60 m_reverseY = new wxCheckBox( this, wxID_ANY, _("Reverse vertical pan direction"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_gbSizer->Add( m_reverseY, wxGBPosition( 4, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
62
63 m_reverseX = new wxCheckBox( this, wxID_ANY, _("Reverse horizontal pan direction"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_gbSizer->Add( m_reverseX, wxGBPosition( 5, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP, 3 );
65
66 m_reverseZ = new wxCheckBox( this, wxID_ANY, _("Reverse zoom direction"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_gbSizer->Add( m_reverseZ, wxGBPosition( 7, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
68
69
70 m_gbSizer->AddGrowableCol( 1 );
71 m_gbSizer->AddGrowableRow( 0 );
72 m_gbSizer->AddGrowableRow( 3 );
73
74 bSizer8->Add( m_gbSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
75
76
77 bSizer1->Add( bSizer8, 0, wxEXPAND|wxRIGHT, 10 );
78
79
80 bSizer10->Add( bSizer1, 1, 0, 5 );
81
82
83 this->SetSizer( bSizer10 );
84 this->Layout();
85 bSizer10->Fit( this );
86}
87
const char * name
PANEL_SPACEMOUSE_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)
wxStaticText * m_rotationSpeedLabel
RESETTABLE_PANEL(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
#define _(s)