Add identifying info per request
We don't use e-mail addresses for contributors in the about box these days. The field is re-purposed as an optional additional field to allow for disambiguation of contributors, should they request it.
This commit is contained in:
parent
9ce255dc77
commit
430310bb75
|
@ -633,7 +633,7 @@ static void buildKicadAboutBanner( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aInf
|
||||||
|
|
||||||
#define MODELS_3D_CONTRIBUTION _( "3D models by" )
|
#define MODELS_3D_CONTRIBUTION _( "3D models by" )
|
||||||
aInfo.AddLibrarian( new CONTRIBUTOR( "Scripts by Maui",
|
aInfo.AddLibrarian( new CONTRIBUTOR( "Scripts by Maui",
|
||||||
wxEmptyString,
|
"https://github.com/easyw",
|
||||||
"https://gitlab.com/kicad/libraries/kicad-packages3D-generator",
|
"https://gitlab.com/kicad/libraries/kicad-packages3D-generator",
|
||||||
MODELS_3D_CONTRIBUTION,
|
MODELS_3D_CONTRIBUTION,
|
||||||
aInfo.CreateKiBitmap( three_d_xpm ) ) );
|
aInfo.CreateKiBitmap( three_d_xpm ) ) );
|
||||||
|
|
|
@ -153,7 +153,7 @@ private:
|
||||||
* - Name
|
* - Name
|
||||||
*
|
*
|
||||||
* Each contributor can have optional information assigned like:
|
* Each contributor can have optional information assigned like:
|
||||||
* - EMail address
|
* - Extra identifying information
|
||||||
* - A category
|
* - A category
|
||||||
* - A category specific icon
|
* - A category specific icon
|
||||||
*/
|
*/
|
||||||
|
@ -161,7 +161,7 @@ class CONTRIBUTOR
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CONTRIBUTOR( const wxString& aName,
|
CONTRIBUTOR( const wxString& aName,
|
||||||
const wxString& aEmail = wxEmptyString,
|
const wxString& aExtra = wxEmptyString,
|
||||||
const wxString& aUrl = wxEmptyString,
|
const wxString& aUrl = wxEmptyString,
|
||||||
const wxString& aCategory = wxEmptyString,
|
const wxString& aCategory = wxEmptyString,
|
||||||
wxBitmap* aIcon = NULL )
|
wxBitmap* aIcon = NULL )
|
||||||
|
@ -169,7 +169,7 @@ public:
|
||||||
m_checked = false;
|
m_checked = false;
|
||||||
m_name = aName;
|
m_name = aName;
|
||||||
m_url = aUrl,
|
m_url = aUrl,
|
||||||
m_email = aEmail;
|
m_extra = aExtra;
|
||||||
m_category = aCategory;
|
m_category = aCategory;
|
||||||
m_icon = aIcon;
|
m_icon = aIcon;
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ public:
|
||||||
m_checked = false;
|
m_checked = false;
|
||||||
m_name = aName;
|
m_name = aName;
|
||||||
m_url = wxEmptyString,
|
m_url = wxEmptyString,
|
||||||
m_email = wxEmptyString;
|
m_extra = wxEmptyString;
|
||||||
m_category = aCategory;
|
m_category = aCategory;
|
||||||
m_icon = aIcon;
|
m_icon = aIcon;
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ public:
|
||||||
virtual ~CONTRIBUTOR() {}
|
virtual ~CONTRIBUTOR() {}
|
||||||
|
|
||||||
wxString& GetName() { return m_name; }
|
wxString& GetName() { return m_name; }
|
||||||
wxString& GetEMail() { return m_email; }
|
wxString& GetExtra() { return m_extra; }
|
||||||
wxString& GetUrl() { return m_url; }
|
wxString& GetUrl() { return m_url; }
|
||||||
wxString& GetCategory() { return m_category; }
|
wxString& GetCategory() { return m_category; }
|
||||||
wxBitmap* GetIcon() { return m_icon; }
|
wxBitmap* GetIcon() { return m_icon; }
|
||||||
|
@ -198,7 +198,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxString m_name;
|
wxString m_name;
|
||||||
wxString m_email;
|
wxString m_extra;
|
||||||
wxString m_url;
|
wxString m_url;
|
||||||
wxString m_category;
|
wxString m_category;
|
||||||
wxBitmap* m_icon;
|
wxBitmap* m_icon;
|
||||||
|
|
|
@ -184,10 +184,10 @@ void DIALOG_ABOUT::createNotebookPage( wxNotebook* aParent, const wxString& aCap
|
||||||
}
|
}
|
||||||
|
|
||||||
// Email address of contributor at third column
|
// Email address of contributor at third column
|
||||||
if ( contributor->GetEMail() != wxEmptyString )
|
if ( contributor->GetExtra() != wxEmptyString )
|
||||||
{
|
{
|
||||||
wxStaticText* hyperlink = wxStaticTextMail( m_scrolledWindow1,
|
wxStaticText* hyperlink = wxStaticTextRef( m_scrolledWindow1,
|
||||||
contributor->GetEMail() );
|
contributor->GetExtra() );
|
||||||
fgSizer1->Add( hyperlink, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
fgSizer1->Add( hyperlink, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -307,10 +307,10 @@ void DIALOG_ABOUT::createNotebookPageByCategory( wxNotebook* aParent, const wxSt
|
||||||
fgSizer1->Add( ctrl, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
fgSizer1->Add( ctrl, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
||||||
|
|
||||||
// Email address of contributor at third column
|
// Email address of contributor at third column
|
||||||
if( sub_contributor->GetEMail() != wxEmptyString )
|
if( sub_contributor->GetExtra() != wxEmptyString )
|
||||||
{
|
{
|
||||||
wxStaticText* mail = wxStaticTextMail( m_scrolledWindow1,
|
wxStaticText* mail = wxStaticTextRef( m_scrolledWindow1,
|
||||||
sub_contributor->GetEMail() );
|
sub_contributor->GetExtra() );
|
||||||
fgSizer1->Add( mail, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
fgSizer1->Add( mail, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -360,10 +360,10 @@ void DIALOG_ABOUT::createNotebookPageByCategory( wxNotebook* aParent, const wxSt
|
||||||
}
|
}
|
||||||
|
|
||||||
// Email address of contributor at third column
|
// Email address of contributor at third column
|
||||||
if ( contributor->GetEMail() != wxEmptyString )
|
if ( contributor->GetExtra() != wxEmptyString )
|
||||||
{
|
{
|
||||||
wxStaticText* mail = wxStaticTextMail( m_scrolledWindow1,
|
wxStaticText* mail = wxStaticTextRef( m_scrolledWindow1,
|
||||||
contributor->GetEMail() );
|
contributor->GetExtra() );
|
||||||
fgSizer1->Add( mail, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
fgSizer1->Add( mail, 0, wxALIGN_LEFT|wxBOTTOM, 2 );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -436,10 +436,10 @@ void DIALOG_ABOUT::createNotebookHtmlPage( wxNotebook* aParent, const wxString&
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wxStaticText* DIALOG_ABOUT::wxStaticTextMail( wxScrolledWindow* aParent, const wxString& aEmail )
|
wxStaticText* DIALOG_ABOUT::wxStaticTextRef( wxScrolledWindow* aParent, const wxString& aReference )
|
||||||
{
|
{
|
||||||
wxStaticText* text = new wxStaticText( aParent, wxID_ANY,
|
wxStaticText* text = new wxStaticText( aParent, wxID_ANY,
|
||||||
wxT( "<" ) + aEmail + wxT( ">" ) );
|
wxT( "(" ) + aReference + wxT( ")" ) );
|
||||||
|
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
|
@ -89,7 +89,7 @@ private:
|
||||||
const wxString& aHtmlMessage,
|
const wxString& aHtmlMessage,
|
||||||
bool aSelection = false );
|
bool aSelection = false );
|
||||||
|
|
||||||
wxStaticText* wxStaticTextMail( wxScrolledWindow* aParent, const wxString& email );
|
wxStaticText* wxStaticTextRef( wxScrolledWindow* aParent, const wxString& aReference );
|
||||||
wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
|
wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue