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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizer4;
20 fgSizer4 =
new wxFlexGridSizer( 0, 2, 10, 0 );
21 fgSizer4->SetFlexibleDirection( wxBOTH );
22 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24 m_icon =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
25 fgSizer4->Add(
m_icon, 0, wxALL|wxALIGN_CENTER_VERTICAL, 10 );
28 bSizer4 =
new wxBoxSizer( wxVERTICAL );
30 m_messageLine1 =
new wxStaticText(
this, wxID_ANY,
_(
"The selection contains %lu locked items."), wxDefaultPosition, wxDefaultSize, 0 );
34 m_messageLine2 =
new wxStaticText(
this, wxID_ANY,
_(
"These items will be skipped unless you override the locks."), wxDefaultPosition, wxDefaultSize, 0 );
39 fgSizer4->Add( bSizer4, 1, wxEXPAND|wxRIGHT, 5 );
42 fgSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
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.") );
50 bSizerMain->Add( fgSizer4, 1, wxEXPAND|wxALL, 5 );
52 wxBoxSizer* bButtonSizer;
53 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
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.") );
58 bButtonSizer->Add(
m_overrideBtn, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
67 bButtonSizer->Add(
m_sdbSizer, 1, wxBOTTOM|wxTOP, 5 );
70 bSizerMain->Add( bButtonSizer, 0, wxEXPAND, 5 );
73 this->SetSizer( bSizerMain );
75 bSizerMain->Fit(
this );
virtual void onOverrideLocks(wxCommandEvent &event)
wxStaticText * m_messageLine1
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)
~DIALOG_LOCKED_ITEMS_QUERY_BASE()
wxCheckBox * m_doNotShowBtn
virtual void OnInitDlg(wxInitDialogEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * m_messageLine2
wxButton * m_sdbSizerCancel
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...