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.

104 lines
4.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Dec 30 2017)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_update_fields_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_UPDATE_FIELDS_BASE::DIALOG_UPDATE_FIELDS_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* m_mainSizer;
  13. m_mainSizer = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bUpperSizer;
  15. bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
  16. wxStaticBoxSizer* sbSizer2;
  17. sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Fields to Update:") ), wxVERTICAL );
  18. wxArrayString m_fieldsBoxChoices;
  19. m_fieldsBox = new wxCheckListBox( sbSizer2->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fieldsBoxChoices, wxLB_NEEDED_SB );
  20. m_fieldsBox->SetMinSize( wxSize( -1,150 ) );
  21. sbSizer2->Add( m_fieldsBox, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  22. wxBoxSizer* m_selBtnSizer;
  23. m_selBtnSizer = new wxBoxSizer( wxHORIZONTAL );
  24. m_selAllBtn = new wxButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Select All"), wxDefaultPosition, wxDefaultSize, 0 );
  25. m_selBtnSizer->Add( m_selAllBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  26. m_selNoneBtn = new wxButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Select None"), wxDefaultPosition, wxDefaultSize, 0 );
  27. m_selBtnSizer->Add( m_selNoneBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  28. sbSizer2->Add( m_selBtnSizer, 0, wxEXPAND, 5 );
  29. bUpperSizer->Add( sbSizer2, 1, wxEXPAND|wxTOP|wxLEFT, 10 );
  30. wxStaticBoxSizer* sbSizer1;
  31. sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Options:") ), wxVERTICAL );
  32. m_removeExtraBox = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Remove fields not in library"), wxDefaultPosition, wxDefaultSize, 0 );
  33. m_removeExtraBox->SetToolTip( _("Removes fields that do not occur in the original library symbols") );
  34. sbSizer1->Add( m_removeExtraBox, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
  35. m_resetEmpty = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Reset fields which are empty in library"), wxDefaultPosition, wxDefaultSize, 0 );
  36. m_resetEmpty->SetToolTip( _("Do not clear existing entries if library field is empty") );
  37. sbSizer1->Add( m_resetEmpty, 0, wxALL, 5 );
  38. sbSizer1->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
  39. m_resetVisibility = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Reset field visibilities"), wxDefaultPosition, wxDefaultSize, 0 );
  40. sbSizer1->Add( m_resetVisibility, 0, wxALL, 5 );
  41. m_resetSizeAndStyle = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Reset field text sizes and styles"), wxDefaultPosition, wxDefaultSize, 0 );
  42. sbSizer1->Add( m_resetSizeAndStyle, 0, wxALL, 5 );
  43. m_resetPosition = new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY, _("Reset field positions"), wxDefaultPosition, wxDefaultSize, 0 );
  44. sbSizer1->Add( m_resetPosition, 0, wxALL, 5 );
  45. bUpperSizer->Add( sbSizer1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
  46. m_mainSizer->Add( bUpperSizer, 1, wxEXPAND, 5 );
  47. m_sdbSizer = new wxStdDialogButtonSizer();
  48. m_sdbSizerOK = new wxButton( this, wxID_OK );
  49. m_sdbSizer->AddButton( m_sdbSizerOK );
  50. m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
  51. m_sdbSizer->AddButton( m_sdbSizerCancel );
  52. m_sdbSizer->Realize();
  53. m_mainSizer->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
  54. this->SetSizer( m_mainSizer );
  55. this->Layout();
  56. m_mainSizer->Fit( this );
  57. this->Centre( wxBOTH );
  58. // Connect Events
  59. m_selAllBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UPDATE_FIELDS_BASE::onSelectAll ), NULL, this );
  60. m_selNoneBtn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UPDATE_FIELDS_BASE::onSelectNone ), NULL, this );
  61. }
  62. DIALOG_UPDATE_FIELDS_BASE::~DIALOG_UPDATE_FIELDS_BASE()
  63. {
  64. // Disconnect Events
  65. m_selAllBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UPDATE_FIELDS_BASE::onSelectAll ), NULL, this );
  66. m_selNoneBtn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_UPDATE_FIELDS_BASE::onSelectNone ), NULL, this );
  67. }