KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_resolve_field_case_conflicts_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
12DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxSize( 600,400 ), wxDefaultSize );
15
16 wxBoxSizer* m_mainSizer;
17 m_mainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_headerLabel = new wxStaticText( this, wxID_ANY, _("Some symbols have user fields whose names differ only in case. Choose how to resolve each before opening the table."), wxDefaultPosition, wxDefaultSize, 0 );
20 m_headerLabel->Wrap( 580 );
21 m_mainSizer->Add( m_headerLabel, 0, wxALL|wxEXPAND, 10 );
22
23 m_conflictsGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
24
25 // Grid
26 m_conflictsGrid->CreateGrid( 0, 5 );
27 m_conflictsGrid->EnableEditing( true );
28 m_conflictsGrid->EnableGridLines( true );
29 m_conflictsGrid->EnableDragGridSize( false );
30 m_conflictsGrid->SetMargins( 0, 0 );
31
32 // Columns
33 m_conflictsGrid->SetColSize( 0, 60 );
34 m_conflictsGrid->SetColSize( 1, 80 );
35 m_conflictsGrid->SetColSize( 2, 140 );
36 m_conflictsGrid->SetColSize( 3, 160 );
37 m_conflictsGrid->SetColSize( 4, 140 );
38 m_conflictsGrid->EnableDragColMove( false );
39 m_conflictsGrid->EnableDragColSize( true );
40 m_conflictsGrid->SetColLabelValue( 0, _("Reference") );
41 m_conflictsGrid->SetColLabelValue( 1, _("Sheet") );
42 m_conflictsGrid->SetColLabelValue( 2, _("Field") );
43 m_conflictsGrid->SetColLabelValue( 3, _("Value") );
44 m_conflictsGrid->SetColLabelValue( 4, _("Action") );
45 m_conflictsGrid->SetColLabelSize( 22 );
46 m_conflictsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
47
48 // Rows
49 m_conflictsGrid->EnableDragRowSize( false );
50 m_conflictsGrid->SetRowLabelSize( 0 );
51 m_conflictsGrid->SetRowLabelAlignment( wxALIGN_RIGHT, wxALIGN_CENTER );
52
53 // Label Appearance
54
55 // Cell Defaults
56 m_conflictsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
57 m_conflictsGrid->SetMinSize( wxSize( 600,200 ) );
58
59 m_mainSizer->Add( m_conflictsGrid, 1, wxALL|wxEXPAND, 10 );
60
61 wxBoxSizer* m_bulkApplySizer;
62 m_bulkApplySizer = new wxBoxSizer( wxHORIZONTAL );
63
64 m_bulkApplyCheckbox = new wxCheckBox( this, wxID_ANY, _("Apply same choice to all conflicts of the same field name"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_bulkApplyCheckbox->SetValue(true);
66 m_bulkApplySizer->Add( m_bulkApplyCheckbox, 0, wxALIGN_CENTER_VERTICAL, 5 );
67
68
69 m_bulkApplySizer->Add( 0, 0, 1, wxEXPAND, 0 );
70
71 m_separatorLabel = new wxStaticText( this, wxID_ANY, _("Join separator:"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_separatorLabel->Wrap( -1 );
73 m_bulkApplySizer->Add( m_separatorLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
74
75 m_separatorCtrl = new wxTextCtrl( this, wxID_ANY, _("; "), wxDefaultPosition, wxSize( 80,-1 ), 0 );
76 #ifdef __WXGTK__
77 if ( !m_separatorCtrl->HasFlag( wxTE_MULTILINE ) )
78 {
79 m_separatorCtrl->SetMaxLength( 8 );
80 }
81 #else
82 m_separatorCtrl->SetMaxLength( 8 );
83 #endif
84 m_separatorCtrl->SetToolTip( _("String inserted between values when the \"Join\" action is selected.") );
85
86 m_bulkApplySizer->Add( m_separatorCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
87
88
89 m_mainSizer->Add( m_bulkApplySizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
90
91 m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
92 m_mainSizer->Add( m_staticline, 0, wxEXPAND|wxLEFT|wxRIGHT, 10 );
93
94 m_stdButtonsSizer = new wxStdDialogButtonSizer();
95 m_stdButtonsSizerOK = new wxButton( this, wxID_OK );
97 m_stdButtonsSizerCancel = new wxButton( this, wxID_CANCEL );
99 m_stdButtonsSizer->Realize();
100
101 m_mainSizer->Add( m_stdButtonsSizer, 0, wxALL|wxEXPAND, 5 );
102
103
104 this->SetSizer( m_mainSizer );
105 this->Layout();
106 m_mainSizer->Fit( this );
107
108 this->Centre( wxBOTH );
109
110 // Connect Events
111 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onInitDialog ) );
112 m_conflictsGrid->Connect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onActionCellChanged ), NULL, this );
113 m_bulkApplyCheckbox->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onBulkApplyToggled ), NULL, this );
114 m_stdButtonsSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onApplyAndContinue ), NULL, this );
115}
116
118{
119 // Disconnect Events
120 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onInitDialog ) );
121 m_conflictsGrid->Disconnect( wxEVT_GRID_CELL_CHANGED, wxGridEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onActionCellChanged ), NULL, this );
122 m_bulkApplyCheckbox->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onBulkApplyToggled ), NULL, this );
123 m_stdButtonsSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE::onApplyAndContinue ), NULL, this );
124
125}
DIALOG_RESOLVE_FIELD_CASE_CONFLICTS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Resolve Field Name Conflicts"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)