KiCad PCB EDA Suite
ABOUT_APP_INFO Class Reference

An object of this class is meant to be used to store application specific information like who has contributed in which area of the application, the license, copyright and other descriptive information. More...

#include <aboutinfo.h>

Public Member Functions

 ABOUT_APP_INFO ()
 
virtual ~ABOUT_APP_INFO ()
 
void AddDeveloper (const CONTRIBUTOR *developer)
 
void AddDocWriter (const CONTRIBUTOR *docwriter)
 
void AddArtist (const CONTRIBUTOR *artist)
 
void AddTranslator (const CONTRIBUTOR *translator)
 
void AddPackager (const CONTRIBUTOR *packager)
 
CONTRIBUTORS GetDevelopers ()
 
CONTRIBUTORS GetDocWriters ()
 
CONTRIBUTORS GetArtists ()
 
CONTRIBUTORS GetTranslators ()
 
CONTRIBUTORS GetPackagers ()
 
void SetDescription (const wxString &text)
 
wxString & GetDescription ()
 
void SetLicense (const wxString &text)
 
wxString & GetLicense ()
 
void SetCopyright (const wxString &text)
 
wxString GetCopyright ()
 
void SetAppName (const wxString &name)
 
wxString & GetAppName ()
 
void SetBuildVersion (const wxString &version)
 
wxString & GetBuildVersion ()
 
void SetLibVersion (const wxString &version)
 
wxString & GetLibVersion ()
 
void SetAppIcon (const wxIcon &aIcon)
 
wxIcon & GetAppIcon ()
 
wxBitmap * CreateKiBitmap (BITMAP_DEF aBitmap)
 

Wrapper to manage memory allocation for bitmaps

More...
 

Private Attributes

CONTRIBUTORS developers
 
CONTRIBUTORS docwriters
 
CONTRIBUTORS artists
 
CONTRIBUTORS translators
 
CONTRIBUTORS packagers
 
wxString description
 
wxString license
 
wxString copyright
 
wxString appName
 
wxString buildVersion
 
wxString libVersion
 
wxIcon m_appIcon
 
std::vector< std::unique_ptr< wxBitmap > > m_bitmaps
 

Bitmaps to be freed when the dialog is closed

More...
 

Detailed Description

An object of this class is meant to be used to store application specific information like who has contributed in which area of the application, the license, copyright and other descriptive information.

Definition at line 44 of file aboutinfo.h.

Constructor & Destructor Documentation

ABOUT_APP_INFO::ABOUT_APP_INFO ( )
inline

Definition at line 47 of file aboutinfo.h.

47 {};
virtual ABOUT_APP_INFO::~ABOUT_APP_INFO ( )
inlinevirtual

Definition at line 48 of file aboutinfo.h.

48 {};

Member Function Documentation

void ABOUT_APP_INFO::AddArtist ( const CONTRIBUTOR artist)
inline

Definition at line 62 of file aboutinfo.h.

References artists.

63  {
64  if( artist != NULL )
65  artists.Add( artist );
66  }
CONTRIBUTORS artists
Definition: aboutinfo.h:117
void ABOUT_APP_INFO::AddDeveloper ( const CONTRIBUTOR developer)
inline

Definition at line 50 of file aboutinfo.h.

References developers.

51  {
52  if( developer != NULL )
53  developers.Add( developer );
54  }
CONTRIBUTORS developers
Definition: aboutinfo.h:115
void ABOUT_APP_INFO::AddDocWriter ( const CONTRIBUTOR docwriter)
inline

Definition at line 56 of file aboutinfo.h.

References docwriters.

57  {
58  if( docwriter != NULL )
59  docwriters.Add( docwriter );
60  }
CONTRIBUTORS docwriters
Definition: aboutinfo.h:116
void ABOUT_APP_INFO::AddPackager ( const CONTRIBUTOR packager)
inline

Definition at line 74 of file aboutinfo.h.

References packagers.

75  {
76  if( packager != NULL )
77  packagers.Add( packager );
78  }
CONTRIBUTORS packagers
Definition: aboutinfo.h:119
void ABOUT_APP_INFO::AddTranslator ( const CONTRIBUTOR translator)
inline

Definition at line 68 of file aboutinfo.h.

References translators.

69  {
70  if( translator != NULL )
71  translators.Add( translator );
72  }
CONTRIBUTORS translators
Definition: aboutinfo.h:118
wxBitmap* ABOUT_APP_INFO::CreateKiBitmap ( BITMAP_DEF  aBitmap)
inline

Wrapper to manage memory allocation for bitmaps

Definition at line 108 of file aboutinfo.h.

References KiBitmapNew(), and m_bitmaps.

109  {
110  m_bitmaps.emplace_back( KiBitmapNew( aBitmap ) );
111  return m_bitmaps.back().get();
112  }
wxBitmap * KiBitmapNew(BITMAP_DEF aBitmap)
Function KiBitmapNew allocates a wxBitmap on heap from a memory record, held in a BITMAP_DEF...
Definition: bitmap.cpp:184
std::vector< std::unique_ptr< wxBitmap > > m_bitmaps
Bitmaps to be freed when the dialog is closed
Definition: aboutinfo.h:132
wxIcon& ABOUT_APP_INFO::GetAppIcon ( )
inline

Definition at line 105 of file aboutinfo.h.

References m_appIcon.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT().

105 { return m_appIcon; }
wxIcon m_appIcon
Definition: aboutinfo.h:129
wxString& ABOUT_APP_INFO::GetAppName ( )
inline

Definition at line 96 of file aboutinfo.h.

References appName.

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

96 { return appName; }
wxString appName
Definition: aboutinfo.h:125
CONTRIBUTORS ABOUT_APP_INFO::GetArtists ( )
inline

Definition at line 82 of file aboutinfo.h.

References artists.

Referenced by DIALOG_ABOUT::createNotebooks().

82 { return artists; }
CONTRIBUTORS artists
Definition: aboutinfo.h:117
wxString& ABOUT_APP_INFO::GetBuildVersion ( )
inline

Definition at line 99 of file aboutinfo.h.

References buildVersion.

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

99 { return buildVersion; }
wxString buildVersion
Definition: aboutinfo.h:126
wxString ABOUT_APP_INFO::GetCopyright ( )
inline

Definition at line 93 of file aboutinfo.h.

References copyright.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT().

93 { return copyright; }
wxString copyright
Definition: aboutinfo.h:124
wxString& ABOUT_APP_INFO::GetDescription ( )
inline

Definition at line 87 of file aboutinfo.h.

References description.

Referenced by DIALOG_ABOUT::createNotebooks().

87 { return description; }
wxString description
Definition: aboutinfo.h:121
CONTRIBUTORS ABOUT_APP_INFO::GetDevelopers ( )
inline

Definition at line 80 of file aboutinfo.h.

References developers.

Referenced by DIALOG_ABOUT::createNotebooks().

80 { return developers; }
CONTRIBUTORS developers
Definition: aboutinfo.h:115
CONTRIBUTORS ABOUT_APP_INFO::GetDocWriters ( )
inline

Definition at line 81 of file aboutinfo.h.

References docwriters.

Referenced by DIALOG_ABOUT::createNotebooks().

81 { return docwriters; }
CONTRIBUTORS docwriters
Definition: aboutinfo.h:116
wxString& ABOUT_APP_INFO::GetLibVersion ( )
inline

Definition at line 102 of file aboutinfo.h.

References libVersion.

Referenced by DIALOG_ABOUT::DIALOG_ABOUT().

102 { return libVersion; }
wxString libVersion
Definition: aboutinfo.h:127
wxString& ABOUT_APP_INFO::GetLicense ( )
inline

Definition at line 90 of file aboutinfo.h.

References license.

Referenced by DIALOG_ABOUT::createNotebooks().

90 { return license; }
wxString license
Definition: aboutinfo.h:122
CONTRIBUTORS ABOUT_APP_INFO::GetPackagers ( )
inline

Definition at line 84 of file aboutinfo.h.

References packagers.

Referenced by DIALOG_ABOUT::createNotebooks().

84 { return packagers; }
CONTRIBUTORS packagers
Definition: aboutinfo.h:119
CONTRIBUTORS ABOUT_APP_INFO::GetTranslators ( )
inline

Definition at line 83 of file aboutinfo.h.

References translators.

Referenced by DIALOG_ABOUT::createNotebooks().

83 { return translators; }
CONTRIBUTORS translators
Definition: aboutinfo.h:118
void ABOUT_APP_INFO::SetAppIcon ( const wxIcon &  aIcon)
inline

Definition at line 104 of file aboutinfo.h.

References m_appIcon.

104 { m_appIcon = aIcon; }
wxIcon m_appIcon
Definition: aboutinfo.h:129
void ABOUT_APP_INFO::SetAppName ( const wxString &  name)
inline

Definition at line 95 of file aboutinfo.h.

References appName, and name.

95 { appName = name; }
wxString appName
Definition: aboutinfo.h:125
const char * name
Definition: DXF_plotter.cpp:61
void ABOUT_APP_INFO::SetBuildVersion ( const wxString &  version)
inline

Definition at line 98 of file aboutinfo.h.

References buildVersion.

98 { buildVersion = version; }
wxString buildVersion
Definition: aboutinfo.h:126
void ABOUT_APP_INFO::SetCopyright ( const wxString &  text)
inline

Definition at line 92 of file aboutinfo.h.

References copyright.

92 { copyright = text; }
wxString copyright
Definition: aboutinfo.h:124
void ABOUT_APP_INFO::SetDescription ( const wxString &  text)
inline

Definition at line 86 of file aboutinfo.h.

References description.

86 { description = text; }
wxString description
Definition: aboutinfo.h:121
void ABOUT_APP_INFO::SetLibVersion ( const wxString &  version)
inline

Definition at line 101 of file aboutinfo.h.

References libVersion.

101 { libVersion = version; }
wxString libVersion
Definition: aboutinfo.h:127
void ABOUT_APP_INFO::SetLicense ( const wxString &  text)
inline

Definition at line 89 of file aboutinfo.h.

References license.

89 { license = text; }
wxString license
Definition: aboutinfo.h:122

Member Data Documentation

wxString ABOUT_APP_INFO::appName
private

Definition at line 125 of file aboutinfo.h.

Referenced by GetAppName(), and SetAppName().

CONTRIBUTORS ABOUT_APP_INFO::artists
private

Definition at line 117 of file aboutinfo.h.

Referenced by AddArtist(), and GetArtists().

wxString ABOUT_APP_INFO::buildVersion
private

Definition at line 126 of file aboutinfo.h.

Referenced by GetBuildVersion(), and SetBuildVersion().

wxString ABOUT_APP_INFO::copyright
private

Definition at line 124 of file aboutinfo.h.

Referenced by GetCopyright(), and SetCopyright().

wxString ABOUT_APP_INFO::description
private

Definition at line 121 of file aboutinfo.h.

Referenced by GetDescription(), and SetDescription().

CONTRIBUTORS ABOUT_APP_INFO::developers
private

Definition at line 115 of file aboutinfo.h.

Referenced by AddDeveloper(), and GetDevelopers().

CONTRIBUTORS ABOUT_APP_INFO::docwriters
private

Definition at line 116 of file aboutinfo.h.

Referenced by AddDocWriter(), and GetDocWriters().

wxString ABOUT_APP_INFO::libVersion
private

Definition at line 127 of file aboutinfo.h.

Referenced by GetLibVersion(), and SetLibVersion().

wxString ABOUT_APP_INFO::license
private

Definition at line 122 of file aboutinfo.h.

Referenced by GetLicense(), and SetLicense().

wxIcon ABOUT_APP_INFO::m_appIcon
private

Definition at line 129 of file aboutinfo.h.

Referenced by GetAppIcon(), and SetAppIcon().

std::vector<std::unique_ptr<wxBitmap> > ABOUT_APP_INFO::m_bitmaps
private

Bitmaps to be freed when the dialog is closed

Definition at line 132 of file aboutinfo.h.

Referenced by CreateKiBitmap().

CONTRIBUTORS ABOUT_APP_INFO::packagers
private

Definition at line 119 of file aboutinfo.h.

Referenced by AddPackager(), and GetPackagers().

CONTRIBUTORS ABOUT_APP_INFO::translators
private

Definition at line 118 of file aboutinfo.h.

Referenced by AddTranslator(), and GetTranslators().


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