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(750, 471), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
 
 ~dialog_about_base ()
 

Protected Attributes

wxStaticBitmap * m_bitmapApp
 
wxStaticText * m_staticTextAppTitle
 
wxStaticText * m_staticTextCopyright
 
wxStaticText * m_staticTextBuildVersion
 
wxStaticText * m_staticTextLibVersion
 
wxAuiNotebook * m_auiNotebook
 
wxButton * copyVersionInfo
 
wxButton * ok
 

Detailed Description

Class dialog_about_base.

Definition at line 34 of file dialog_about_base.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file dialog_about_base.cpp.

References copyVersionInfo, m_auiNotebook, m_bitmapApp, m_staticTextAppTitle, m_staticTextBuildVersion, m_staticTextCopyright, m_staticTextLibVersion, and ok.

12  : wxDialog( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15 
16  wxBoxSizer* bSizer1;
17  bSizer1 = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizer3;
20  bSizer3 = new wxBoxSizer( wxHORIZONTAL );
21 
22 
23  bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
24 
25  m_bitmapApp = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
26  bSizer3->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  bSizer3->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
51 
52 
53  bSizer3->Add( 0, 0, 2, wxEXPAND, 5 );
54 
55 
56  bSizer1->Add( bSizer3, 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  bSizer1->Add( m_auiNotebook, 2, wxALL|wxEXPAND, 5 );
63 
64  wxBoxSizer* bSizer4;
65  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
66 
67 
68  bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
69 
70  copyVersionInfo = new wxButton( this, wxID_COPY, _("Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
71  bSizer4->Add( copyVersionInfo, 0, wxALL, 5 );
72 
73  ok = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
74  ok->SetDefault();
75  bSizer4->Add( ok, 0, wxALL, 5 );
76 
77 
78  bSizer1->Add( bSizer4, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
79 
80 
81  this->SetSizer( bSizer1 );
82  this->Layout();
83 }
wxButton * copyVersionInfo
wxStaticText * m_staticTextBuildVersion
wxAuiNotebook * m_auiNotebook
wxStaticText * m_staticTextLibVersion
wxStaticBitmap * m_bitmapApp
wxStaticText * m_staticTextAppTitle
wxStaticText * m_staticTextCopyright
dialog_about_base::~dialog_about_base ( )

Definition at line 85 of file dialog_about_base.cpp.

86 {
87 }

Member Data Documentation

wxButton* dialog_about_base::copyVersionInfo
protected

Definition at line 45 of file dialog_about_base.h.

Referenced by dialog_about_base(), and dialog_about::OnCopyVersionInfo().

wxAuiNotebook* dialog_about_base::m_auiNotebook
protected
wxStaticBitmap* dialog_about_base::m_bitmapApp
protected

Definition at line 39 of file dialog_about_base.h.

Referenced by dialog_about::dialog_about(), and dialog_about_base().

wxStaticText* dialog_about_base::m_staticTextAppTitle
protected

Definition at line 40 of file dialog_about_base.h.

Referenced by dialog_about::dialog_about(), and dialog_about_base().

wxStaticText* dialog_about_base::m_staticTextBuildVersion
protected

Definition at line 42 of file dialog_about_base.h.

Referenced by dialog_about::dialog_about(), and dialog_about_base().

wxStaticText* dialog_about_base::m_staticTextCopyright
protected

Definition at line 41 of file dialog_about_base.h.

Referenced by dialog_about::dialog_about(), and dialog_about_base().

wxStaticText* dialog_about_base::m_staticTextLibVersion
protected

Definition at line 43 of file dialog_about_base.h.

Referenced by dialog_about::dialog_about(), and dialog_about_base().

wxButton* dialog_about_base::ok
protected

Definition at line 46 of file dialog_about_base.h.

Referenced by dialog_about_base().


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