KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_locked_items_query_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.9.0 Jun 3 2020)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_LOCKED_ITEMS_QUERY_BASE::DIALOG_LOCKED_ITEMS_QUERY_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( wxDefaultSize, wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxFlexGridSizer* fgSizer4;
20 fgSizer4 = new wxFlexGridSizer( 0, 2, 10, 0 );
21 fgSizer4->SetFlexibleDirection( wxBOTH );
22 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
23
24 m_icon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
25 fgSizer4->Add( m_icon, 0, wxALL|wxALIGN_CENTER_VERTICAL, 10 );
26
27 wxBoxSizer* bSizer4;
28 bSizer4 = new wxBoxSizer( wxVERTICAL );
29
30 m_messageLine1 = new wxStaticText( this, wxID_ANY, _("The selection contains %d locked items."), wxDefaultPosition, wxDefaultSize, 0 );
31 m_messageLine1->Wrap( -1 );
32 bSizer4->Add( m_messageLine1, 0, wxALL, 5 );
33
34 m_messageLine2 = new wxStaticText( this, wxID_ANY, _("These items will be skipped unless you override the locks."), wxDefaultPosition, wxDefaultSize, 0 );
35 m_messageLine2->Wrap( -1 );
36 bSizer4->Add( m_messageLine2, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
37
38
39 fgSizer4->Add( bSizer4, 1, wxEXPAND|wxRIGHT, 5 );
40
41
42 fgSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
43
44 m_doNotShowBtn = new wxCheckBox( this, wxID_ANY, _("Remember decision for this session."), wxDefaultPosition, wxDefaultSize, 0 );
45 m_doNotShowBtn->SetToolTip( _("Remember the option selected for the remainder of this session.\nThis dialog will not be shown again until KiCad is restarted.") );
46
47 fgSizer4->Add( m_doNotShowBtn, 0, wxALL, 5 );
48
49
50 bSizerMain->Add( fgSizer4, 1, wxEXPAND|wxALL, 5 );
51
52 wxBoxSizer* bButtonSizer;
53 bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
54
55 m_overrideBtn = new wxButton( this, wxID_ANY, _("Override Locks"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_overrideBtn->SetToolTip( _("Override locks and apply the operation on all the items selected.\nAny locked items will remain locked after the operation is complete.") );
57
58 bButtonSizer->Add( m_overrideBtn, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
59
60 m_sdbSizer = new wxStdDialogButtonSizer();
61 m_sdbSizerOK = new wxButton( this, wxID_OK );
62 m_sdbSizer->AddButton( m_sdbSizerOK );
63 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
64 m_sdbSizer->AddButton( m_sdbSizerCancel );
65 m_sdbSizer->Realize();
66
67 bButtonSizer->Add( m_sdbSizer, 1, wxBOTTOM|wxTOP, 5 );
68
69
70 bSizerMain->Add( bButtonSizer, 0, wxEXPAND, 5 );
71
72
73 this->SetSizer( bSizerMain );
74 this->Layout();
75 bSizerMain->Fit( this );
76
77 // Connect Events
78 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::OnInitDlg ) );
79 m_overrideBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOverrideLocks ), NULL, this );
80}
81
83{
84 // Disconnect Events
85 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::OnInitDlg ) );
86 m_overrideBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOverrideLocks ), NULL, this );
87
88}
virtual void onOverrideLocks(wxCommandEvent &event)
DIALOG_LOCKED_ITEMS_QUERY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Locked Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnInitDlg(wxInitDialogEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
#define _(s)