KiCad PCB EDA Suite
dialog_about_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
8 #include "dialog_about_base.h"
9 
11 
12 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 )
13 {
14  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizerTitle;
20  bSizerTitle = new wxBoxSizer( wxHORIZONTAL );
21 
22 
23  bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
24 
25  m_bitmapApp = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
26  bSizerTitle->Add( m_bitmapApp, 1, wxALIGN_CENTER|wxALL, 5 );
27 
28  wxBoxSizer* b_apptitleSizer;
29  b_apptitleSizer = new wxBoxSizer( wxVERTICAL );
30 
31  m_staticTextAppTitle = new wxStaticText( this, wxID_ANY, _("App Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
32  m_staticTextAppTitle->Wrap( -1 );
33  m_staticTextAppTitle->SetFont( wxFont( 14, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
34 
35  b_apptitleSizer->Add( m_staticTextAppTitle, 0, wxALIGN_CENTER|wxALL, 5 );
36 
37  m_staticTextCopyright = new wxStaticText( this, wxID_ANY, _("Copyright Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
38  m_staticTextCopyright->Wrap( -1 );
39  b_apptitleSizer->Add( m_staticTextCopyright, 0, wxALIGN_CENTER|wxALL, 1 );
40 
41  m_staticTextBuildVersion = new wxStaticText( this, wxID_ANY, _("Build Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
42  m_staticTextBuildVersion->Wrap( -1 );
43  b_apptitleSizer->Add( m_staticTextBuildVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
44 
45  m_staticTextLibVersion = new wxStaticText( this, wxID_ANY, _("Lib Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
46  m_staticTextLibVersion->Wrap( -1 );
47  b_apptitleSizer->Add( m_staticTextLibVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
48 
49 
50  bSizerTitle->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
51 
52 
53  bSizerTitle->Add( 0, 0, 2, wxEXPAND, 5 );
54 
55 
56  bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
57 
58  m_auiNotebook = new wxAuiNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_SCROLL_BUTTONS|wxAUI_NB_TAB_FIXED_WIDTH );
59  m_auiNotebook->SetMinSize( wxSize( 750,350 ) );
60 
61 
62  bSizerMain->Add( m_auiNotebook, 2, wxALL|wxEXPAND, 5 );
63 
64  wxBoxSizer* bSizerButtons;
65  bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
66 
67  m_btShowVersionInfo = new wxButton( this, wxID_COPY, _("Show Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
68  bSizerButtons->Add( m_btShowVersionInfo, 0, wxALL, 5 );
69 
70  m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
71  m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
72 
73  bSizerButtons->Add( m_btCopyVersionInfo, 0, wxALL, 5 );
74 
75  m_btOk = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
76  m_btOk->SetDefault();
77  bSizerButtons->Add( m_btOk, 0, wxALL, 5 );
78 
79 
80  bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
81 
82 
83  this->SetSizer( bSizerMain );
84  this->Layout();
85 
86  // Connect Events
87  m_btShowVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onShowVersionInfo ), NULL, this );
88  m_btCopyVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
89 }
90 
92 {
93  // Disconnect Events
94  m_btShowVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onShowVersionInfo ), NULL, this );
95  m_btCopyVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
96 
97 }
wxAuiNotebook * m_auiNotebook
virtual void onShowVersionInfo(wxCommandEvent &event)
wxStaticText * m_staticTextAppTitle
virtual void onCopyVersionInfo(wxCommandEvent &event)
DIALOG_ABOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("About"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(750, 471), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_staticTextLibVersion
wxStaticBitmap * m_bitmapApp
wxStaticText * m_staticTextBuildVersion
wxStaticText * m_staticTextCopyright
wxButton * m_btShowVersionInfo
wxButton * m_btCopyVersionInfo