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.

97 lines
4.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version May 6 2016)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_about_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_ABOUT_BASE::DIALOG_ABOUT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
  12. wxBoxSizer* bSizerMain;
  13. bSizerMain = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bSizerTitle;
  15. bSizerTitle = new wxBoxSizer( wxHORIZONTAL );
  16. bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
  17. m_bitmapApp = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
  18. bSizerTitle->Add( m_bitmapApp, 1, wxALIGN_CENTER|wxALL, 5 );
  19. wxBoxSizer* b_apptitleSizer;
  20. b_apptitleSizer = new wxBoxSizer( wxVERTICAL );
  21. m_staticTextAppTitle = new wxStaticText( this, wxID_ANY, _("App Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
  22. m_staticTextAppTitle->Wrap( -1 );
  23. m_staticTextAppTitle->SetFont( wxFont( 14, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
  24. b_apptitleSizer->Add( m_staticTextAppTitle, 0, wxALIGN_CENTER|wxALL, 5 );
  25. m_staticTextCopyright = new wxStaticText( this, wxID_ANY, _("Copyright Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
  26. m_staticTextCopyright->Wrap( -1 );
  27. b_apptitleSizer->Add( m_staticTextCopyright, 0, wxALIGN_CENTER|wxALL, 1 );
  28. m_staticTextBuildVersion = new wxStaticText( this, wxID_ANY, _("Build Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
  29. m_staticTextBuildVersion->Wrap( -1 );
  30. b_apptitleSizer->Add( m_staticTextBuildVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
  31. m_staticTextLibVersion = new wxStaticText( this, wxID_ANY, _("Lib Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
  32. m_staticTextLibVersion->Wrap( -1 );
  33. b_apptitleSizer->Add( m_staticTextLibVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
  34. bSizerTitle->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
  35. bSizerTitle->Add( 0, 0, 2, wxEXPAND, 5 );
  36. bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
  37. m_auiNotebook = new wxAuiNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_SCROLL_BUTTONS|wxAUI_NB_TAB_FIXED_WIDTH );
  38. m_auiNotebook->SetMinSize( wxSize( 750,350 ) );
  39. bSizerMain->Add( m_auiNotebook, 2, wxALL|wxEXPAND, 5 );
  40. wxBoxSizer* bSizerButtons;
  41. bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
  42. m_btShowVersionInfo = new wxButton( this, wxID_COPY, _("Show Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
  43. bSizerButtons->Add( m_btShowVersionInfo, 0, wxALL, 5 );
  44. m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
  45. m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
  46. bSizerButtons->Add( m_btCopyVersionInfo, 0, wxALL, 5 );
  47. m_btOk = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
  48. m_btOk->SetDefault();
  49. bSizerButtons->Add( m_btOk, 0, wxALL, 5 );
  50. bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
  51. this->SetSizer( bSizerMain );
  52. this->Layout();
  53. // Connect Events
  54. m_btShowVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onShowVersionInfo ), NULL, this );
  55. m_btCopyVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
  56. }
  57. DIALOG_ABOUT_BASE::~DIALOG_ABOUT_BASE()
  58. {
  59. // Disconnect Events
  60. m_btShowVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onShowVersionInfo ), NULL, this );
  61. m_btCopyVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
  62. }