KiCad PCB EDA Suite
Loading...
Searching...
No Matches
constraint_rules_list_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
12CONSTRAINT_RULES_LIST_BASE::CONSTRAINT_RULES_LIST_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* mainSizer;
15 mainSizer = new wxBoxSizer( wxVERTICAL );
16
17 m_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxSize( -1,140 ), wxLC_REPORT|wxLC_SINGLE_SEL );
18 m_list->SetToolTip( _("The rules for this constraint, in the order they are read. Select one to load it into the form below.") );
19
20 mainSizer->Add( m_list, 1, wxBOTTOM|wxEXPAND, 4 );
21
22 m_emptyLabel = new wxStaticText( this, wxID_ANY, _("No rules yet."), wxDefaultPosition, wxDefaultSize, 0 );
23 m_emptyLabel->Wrap( -1 );
24 mainSizer->Add( m_emptyLabel, 0, wxBOTTOM|wxLEFT, 4 );
25
26 wxBoxSizer* tableButtons;
27 tableButtons = new wxBoxSizer( wxHORIZONTAL );
28
29 m_upBtn = new wxButton( this, wxID_ANY, _("Move Up"), wxDefaultPosition, wxDefaultSize, 0 );
30 m_upBtn->SetToolTip( _("Move the selected rule one place earlier. Rules are read from top to bottom and the last one that matches decides the value, so a rule lower down wins.") );
31
32 tableButtons->Add( m_upBtn, 0, wxRIGHT, 4 );
33
34 m_downBtn = new wxButton( this, wxID_ANY, _("Move Down"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_downBtn->SetToolTip( _("Move the selected rule one place later. Rules are read from top to bottom and the last one that matches decides the value, so a rule lower down wins.") );
36
37 tableButtons->Add( m_downBtn, 0, wxRIGHT, 4 );
38
39 m_duplicateBtn = new wxButton( this, wxID_ANY, _("Duplicate"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_duplicateBtn->SetToolTip( _("Copy the selected rule and place the copy after it.") );
41
42 tableButtons->Add( m_duplicateBtn, 0, wxRIGHT, 4 );
43
44 m_removeBtn = new wxButton( this, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_removeBtn->SetToolTip( _("Delete the selected rule.") );
46
47 tableButtons->Add( m_removeBtn, 0, wxRIGHT, 4 );
48
49
50 mainSizer->Add( tableButtons, 0, wxBOTTOM, 4 );
51
52 m_editorHost = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
53 m_editorSizer = new wxBoxSizer( wxVERTICAL );
54
55
56 m_editorHost->SetSizer( m_editorSizer );
57 m_editorHost->Layout();
59 mainSizer->Add( m_editorHost, 0, wxEXPAND|wxTOP, 8 );
60
61 wxBoxSizer* formButtons;
62 formButtons = new wxBoxSizer( wxHORIZONTAL );
63
64 m_primaryBtn = new wxButton( this, wxID_ANY, _("Add Rule"), wxDefaultPosition, wxDefaultSize, 0 );
65 formButtons->Add( m_primaryBtn, 0, wxRIGHT, 4 );
66
67 m_newBtn = new wxButton( this, wxID_ANY, _("New Rule"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_newBtn->SetToolTip( _("Empty the form so another rule can be written. Anything typed and not added is discarded.") );
69
70 formButtons->Add( m_newBtn, 0, wxRIGHT, 4 );
71
72
73 mainSizer->Add( formButtons, 0, wxBOTTOM|wxTOP, 6 );
74
75
76 this->SetSizer( mainSizer );
77 this->Layout();
78 mainSizer->Fit( this );
79}
80
const char * name
CONSTRAINT_RULES_LIST_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)
#define _(s)