KiCad PCB EDA Suite
DIALOG_ABOUT_BASE Class Reference

Class DIALOG_ABOUT_BASE. More...

#include <dialog_about_base.h>

Inheritance diagram for DIALOG_ABOUT_BASE:
DIALOG_ABOUT

Public Member Functions

 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)
 
 ~DIALOG_ABOUT_BASE ()
 

Protected Member Functions

virtual void onCopyVersionInfo (wxCommandEvent &event)
 
virtual void onReportBug (wxCommandEvent &event)
 
virtual void onDonateClick (wxCommandEvent &event)
 
virtual void OnNotebookPageChanged (wxNotebookEvent &event)
 

Protected Attributes

wxStaticBitmap * m_bitmapApp
 
wxStaticText * m_staticTextAppTitle
 
wxStaticText * m_staticTextCopyright
 
wxStaticText * m_staticTextBuildVersion
 
wxStaticText * m_staticTextLibVersion
 
wxButton * m_btCopyVersionInfo
 
wxButton * m_btReportBug
 
wxButton * m_btDonate
 
wxNotebook * m_notebook
 
wxButton * m_btOk
 

Detailed Description

Class DIALOG_ABOUT_BASE.

Definition at line 33 of file dialog_about_base.h.

Constructor & Destructor Documentation

◆ DIALOG_ABOUT_BASE()

DIALOG_ABOUT_BASE::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 
)

Definition at line 12 of file dialog_about_base.cpp.

12 : 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_staticTextCopyright = new wxStaticText( this, wxID_ANY, _("Copyright Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
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_CENTER_HORIZONTAL );
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_CENTER_HORIZONTAL );
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 wxBoxSizer* bSizer5;
53 bSizer5 = new wxBoxSizer( wxVERTICAL );
54
55
56 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
57
58 m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("&Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
60
61 bSizer5->Add( m_btCopyVersionInfo, 0, wxALL|wxEXPAND, 5 );
62
63 m_btReportBug = new wxButton( this, wxID_COPY, _("&Report Bug"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_btReportBug->SetToolTip( _("Report a problem with KiCad") );
65
66 bSizer5->Add( m_btReportBug, 0, wxALL|wxEXPAND, 5 );
67
68 m_btDonate = new wxButton( this, wxID_COPY, _("Donate"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_btDonate->SetToolTip( _("Donate to KiCad") );
70
71 bSizer5->Add( m_btDonate, 0, wxALL|wxEXPAND, 5 );
72
73
74 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
75
76
77 bSizerTitle->Add( bSizer5, 0, wxEXPAND, 10 );
78
79
80 bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
81
82
83 bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
84
85 m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
86 m_notebook->SetMinSize( wxSize( 750,350 ) );
87
88
89 bSizerMain->Add( m_notebook, 2, wxEXPAND | wxALL, 5 );
90
91 wxBoxSizer* bSizerButtons;
92 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
93
94 m_btOk = new wxButton( this, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
95
96 m_btOk->SetDefault();
97 bSizerButtons->Add( m_btOk, 0, wxALL, 5 );
98
99
100 bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
101
102
103 this->SetSizer( bSizerMain );
104 this->Layout();
105
106 // Connect Events
107 m_btCopyVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
108 m_btReportBug->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
109 m_btDonate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onDonateClick ), NULL, this );
110 m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
111}
virtual void onDonateClick(wxCommandEvent &event)
wxStaticText * m_staticTextBuildVersion
wxStaticBitmap * m_bitmapApp
wxStaticText * m_staticTextCopyright
virtual void onCopyVersionInfo(wxCommandEvent &event)
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)

References _, m_bitmapApp, m_btCopyVersionInfo, m_btDonate, m_btOk, m_btReportBug, m_notebook, m_staticTextAppTitle, m_staticTextBuildVersion, m_staticTextCopyright, m_staticTextLibVersion, onCopyVersionInfo(), onDonateClick(), OnNotebookPageChanged(), and onReportBug().

◆ ~DIALOG_ABOUT_BASE()

DIALOG_ABOUT_BASE::~DIALOG_ABOUT_BASE ( )

Definition at line 113 of file dialog_about_base.cpp.

114{
115 // Disconnect Events
116 m_btCopyVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
117 m_btReportBug->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
118 m_btDonate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onDonateClick ), NULL, this );
119 m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
120
121}

References m_btCopyVersionInfo, m_btDonate, m_btReportBug, m_notebook, onCopyVersionInfo(), onDonateClick(), OnNotebookPageChanged(), and onReportBug().

Member Function Documentation

◆ onCopyVersionInfo()

virtual void DIALOG_ABOUT_BASE::onCopyVersionInfo ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in DIALOG_ABOUT.

Definition at line 50 of file dialog_about_base.h.

50{ event.Skip(); }

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

◆ onDonateClick()

virtual void DIALOG_ABOUT_BASE::onDonateClick ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in DIALOG_ABOUT.

Definition at line 52 of file dialog_about_base.h.

52{ event.Skip(); }

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

◆ OnNotebookPageChanged()

virtual void DIALOG_ABOUT_BASE::OnNotebookPageChanged ( wxNotebookEvent &  event)
inlineprotectedvirtual

Reimplemented in DIALOG_ABOUT.

Definition at line 53 of file dialog_about_base.h.

53{ event.Skip(); }

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

◆ onReportBug()

virtual void DIALOG_ABOUT_BASE::onReportBug ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in DIALOG_ABOUT.

Definition at line 51 of file dialog_about_base.h.

51{ event.Skip(); }

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

Member Data Documentation

◆ m_bitmapApp

wxStaticBitmap* DIALOG_ABOUT_BASE::m_bitmapApp
protected

Definition at line 38 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and DIALOG_ABOUT_BASE().

◆ m_btCopyVersionInfo

wxButton* DIALOG_ABOUT_BASE::m_btCopyVersionInfo
protected

◆ m_btDonate

wxButton* DIALOG_ABOUT_BASE::m_btDonate
protected

Definition at line 45 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

◆ m_btOk

wxButton* DIALOG_ABOUT_BASE::m_btOk
protected

Definition at line 47 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT_BASE().

◆ m_btReportBug

wxButton* DIALOG_ABOUT_BASE::m_btReportBug
protected

Definition at line 44 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT_BASE(), and ~DIALOG_ABOUT_BASE().

◆ m_notebook

wxNotebook* DIALOG_ABOUT_BASE::m_notebook
protected

◆ m_staticTextAppTitle

wxStaticText* DIALOG_ABOUT_BASE::m_staticTextAppTitle
protected

Definition at line 39 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and DIALOG_ABOUT_BASE().

◆ m_staticTextBuildVersion

wxStaticText* DIALOG_ABOUT_BASE::m_staticTextBuildVersion
protected

Definition at line 41 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and DIALOG_ABOUT_BASE().

◆ m_staticTextCopyright

wxStaticText* DIALOG_ABOUT_BASE::m_staticTextCopyright
protected

Definition at line 40 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and DIALOG_ABOUT_BASE().

◆ m_staticTextLibVersion

wxStaticText* DIALOG_ABOUT_BASE::m_staticTextLibVersion
protected

Definition at line 42 of file dialog_about_base.h.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT(), and DIALOG_ABOUT_BASE().


The documentation for this class was generated from the following files: