You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
4.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Oct 26 2018)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_locked_items_query_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_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 )
  10. {
  11. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizerMain;
  13. bSizerMain = new wxBoxSizer( wxVERTICAL );
  14. wxFlexGridSizer* fgSizer4;
  15. fgSizer4 = new wxFlexGridSizer( 0, 2, 10, 0 );
  16. fgSizer4->SetFlexibleDirection( wxBOTH );
  17. fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  18. m_icon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
  19. fgSizer4->Add( m_icon, 0, wxALL|wxALIGN_CENTER_VERTICAL, 10 );
  20. wxBoxSizer* bSizer4;
  21. bSizer4 = new wxBoxSizer( wxVERTICAL );
  22. m_messageLine1 = new wxStaticText( this, wxID_ANY, _("The selection contains %d locked items."), wxDefaultPosition, wxDefaultSize, 0 );
  23. m_messageLine1->Wrap( -1 );
  24. bSizer4->Add( m_messageLine1, 0, wxALL, 5 );
  25. m_messageLine2 = new wxStaticText( this, wxID_ANY, _("These items will be skipped unless you override the locks."), wxDefaultPosition, wxDefaultSize, 0 );
  26. m_messageLine2->Wrap( -1 );
  27. bSizer4->Add( m_messageLine2, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  28. fgSizer4->Add( bSizer4, 1, wxEXPAND|wxRIGHT, 5 );
  29. fgSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
  30. m_doNotShowBtn = new wxCheckBox( this, wxID_ANY, _("Remember decision for this session."), wxDefaultPosition, wxDefaultSize, 0 );
  31. m_doNotShowBtn->SetToolTip( _("Remember the option selected for the remainder of this session.\nThis dialog will not be shown again until KiCad is restarted.") );
  32. fgSizer4->Add( m_doNotShowBtn, 0, wxALL, 5 );
  33. bSizerMain->Add( fgSizer4, 1, wxEXPAND|wxALL, 5 );
  34. wxBoxSizer* bButtonSizer;
  35. bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
  36. m_overrideBtn = new wxButton( this, wxID_ANY, _("Override Locks"), wxDefaultPosition, wxDefaultSize, 0 );
  37. 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.") );
  38. bButtonSizer->Add( m_overrideBtn, 0, wxALL, 10 );
  39. m_sdbSizer = new wxStdDialogButtonSizer();
  40. m_sdbSizerOK = new wxButton( this, wxID_OK );
  41. m_sdbSizer->AddButton( m_sdbSizerOK );
  42. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  43. m_sdbSizer->AddButton( m_sdbSizerCancel );
  44. m_sdbSizer->Realize();
  45. bButtonSizer->Add( m_sdbSizer, 1, wxALL, 5 );
  46. bSizerMain->Add( bButtonSizer, 0, wxEXPAND|wxALL, 5 );
  47. this->SetSizer( bSizerMain );
  48. this->Layout();
  49. bSizerMain->Fit( this );
  50. // Connect Events
  51. this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::OnInitDlg ) );
  52. m_overrideBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOverrideLocks ), NULL, this );
  53. m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onCancelClick ), NULL, this );
  54. m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOkClick ), NULL, this );
  55. }
  56. DIALOG_LOCKED_ITEMS_QUERY_BASE::~DIALOG_LOCKED_ITEMS_QUERY_BASE()
  57. {
  58. // Disconnect Events
  59. this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::OnInitDlg ) );
  60. m_overrideBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOverrideLocks ), NULL, this );
  61. m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onCancelClick ), NULL, this );
  62. m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LOCKED_ITEMS_QUERY_BASE::onOkClick ), NULL, this );
  63. }