KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_about_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#include "dialog_about_base.h"
9
11
12DIALOG_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_CENTER_HORIZONTAL );
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_staticTextBuildVersion = new wxStaticText( this, wxID_ANY, _("Build Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
38 m_staticTextBuildVersion->Wrap( -1 );
39 b_apptitleSizer->Add( m_staticTextBuildVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
40
41 m_staticTextLibVersion = new wxStaticText( this, wxID_ANY, _("Lib Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
42 m_staticTextLibVersion->Wrap( -1 );
43 b_apptitleSizer->Add( m_staticTextLibVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
44
45
46 bSizerTitle->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
47
48 wxBoxSizer* bSizer5;
49 bSizer5 = new wxBoxSizer( wxVERTICAL );
50
51
52 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
53
54 m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("&Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
56
57 bSizer5->Add( m_btCopyVersionInfo, 0, wxALL|wxEXPAND, 5 );
58
59 m_btReportBug = new wxButton( this, wxID_COPY, _("&Report Bug"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_btReportBug->SetToolTip( _("Report a problem with KiCad") );
61
62 bSizer5->Add( m_btReportBug, 0, wxALL|wxEXPAND, 5 );
63
64 m_btDonate = new wxButton( this, wxID_COPY, _("Donate"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_btDonate->SetToolTip( _("Donate to KiCad") );
66
67 bSizer5->Add( m_btDonate, 0, wxALL|wxEXPAND, 5 );
68
69
70 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
71
72
73 bSizerTitle->Add( bSizer5, 0, wxEXPAND, 10 );
74
75
76 bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
77
78
79 bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
80
81 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
82 m_notebook->SetMinSize( wxSize( 750,350 ) );
83
84
85 bSizerMain->Add( m_notebook, 2, wxEXPAND | wxALL, 5 );
86
87 wxBoxSizer* bSizerButtons;
88 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
89
90 m_btOk = new wxButton( this, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
91
92 m_btOk->SetDefault();
93 bSizerButtons->Add( m_btOk, 0, wxALL, 5 );
94
95
96 bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
97
98
99 this->SetSizer( bSizerMain );
100 this->Layout();
101
102 // Connect Events
103 m_btCopyVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
104 m_btReportBug->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
105 m_btDonate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onDonateClick ), NULL, this );
106 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
107}
108
110{
111 // Disconnect Events
112 m_btCopyVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
113 m_btReportBug->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
114 m_btDonate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onDonateClick ), NULL, this );
115 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
116
117}
virtual void onDonateClick(wxCommandEvent &event)
wxStaticText * m_staticTextBuildVersion
wxStaticBitmap * m_bitmapApp
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(570, 500), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_staticTextLibVersion
wxButton * m_btCopyVersionInfo
wxNotebook * m_notebook
wxStaticText * m_staticTextAppTitle
wxButton * m_btReportBug
virtual void onReportBug(wxCommandEvent &event)
virtual void OnNotebookPageChanged(wxNotebookEvent &event)
#define _(s)