About dialog: small changes. EDA_HOTKEY class: better ctor.
This commit is contained in:
parent
0cd747668f
commit
713e8d93f3
|
@ -171,31 +171,38 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
|
||||||
description << wxT( "</p>" );
|
description << wxT( "</p>" );
|
||||||
|
|
||||||
description << wxT( "<p><b><u>" )
|
description << wxT( "<p><b><u>" )
|
||||||
<< _( "Contribute to KiCad" )
|
<< _( "Bug tracker" )
|
||||||
<< wxT( "</u></b>" ); // bold & underlined font caption
|
<< wxT( "</u></b>" ); // bold & underlined font caption
|
||||||
|
|
||||||
// bullet-ed list with some http links
|
// bullet-ed list with some http links
|
||||||
description << wxT( "<ul>" );
|
description << wxT( "<ul>" );
|
||||||
description << wxT( "<li>" )
|
description << wxT( "<li>" )
|
||||||
<<HtmlHyperlink( wxT( "https://bugs.launchpad.net/kicad" ),
|
<<HtmlHyperlink( wxT( "https://bugs.launchpad.net/kicad/+bugs?orderby=-id&start=0" ),
|
||||||
_( "Report bugs if you found any" ) )
|
_( "Report or examine bugs" ) )
|
||||||
<< wxT( "</li>" );
|
<< wxT( "</li>" );
|
||||||
description << wxT( "<li>" )
|
description << wxT( "</ul></p>" );
|
||||||
<< HtmlHyperlink( wxT( "https://blueprints.launchpad.net/kicad" ),
|
|
||||||
_( "File an idea for improvement" ) )
|
|
||||||
<< wxT( "</li>" );
|
|
||||||
description << wxT( "<li>" )
|
|
||||||
<< HtmlHyperlink( wxT( "http://www.kicadlib.org/Kicad_related_links.html" ),
|
|
||||||
_( "KiCad links to user groups, tutorials and much more" ) )
|
|
||||||
<< wxT( "</li>" );
|
|
||||||
description << wxT( "</ul>" );
|
|
||||||
|
|
||||||
description << wxT( "</p>" );
|
description << wxT( "<p><b><u>" )
|
||||||
|
<< _( "KiCad user group and community" )
|
||||||
|
<< wxT( "</u></b>" ); // bold & underlined font caption
|
||||||
|
|
||||||
|
description << wxT( "<ul>" );
|
||||||
|
description << wxT( "<li>" )
|
||||||
|
<< HtmlHyperlink( wxT( "https://groups.yahoo.com/neo/groups/kicad-users/info" ),
|
||||||
|
_( "KiCad user group" ) )
|
||||||
|
<< wxT( "</li>" );
|
||||||
|
|
||||||
|
description << wxT( "<li>" )
|
||||||
|
<< HtmlHyperlink( wxT( "https://forum.kicad.info" ),
|
||||||
|
_( "KiCad forum" ) )
|
||||||
|
<< wxT( "</li>" );
|
||||||
|
|
||||||
|
description << wxT( "</ul></p>" );
|
||||||
|
|
||||||
info.SetDescription( description );
|
info.SetDescription( description );
|
||||||
|
|
||||||
|
|
||||||
/* License information also HTML formatted */
|
// License information also HTML formatted:
|
||||||
wxString license;
|
wxString license;
|
||||||
license
|
license
|
||||||
<< wxT( "<div align='center'>" )
|
<< wxT( "<div align='center'>" )
|
||||||
|
|
|
@ -56,23 +56,15 @@ wxString g_CommonSectionTag( wxT( "[common]" ) );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
EDA_HOTKEY::EDA_HOTKEY( const wxChar* infomsg, int idcommand, int keycode, int idmenuevent ) :
|
EDA_HOTKEY::EDA_HOTKEY( const wxChar* infomsg, int idcommand, int keycode, int idmenuevent ) :
|
||||||
m_DefaultKeyCode( keycode ) // initialize DefaultKeyCode
|
m_defaultKeyCode( keycode ), m_KeyCode( keycode ), m_InfoMsg( infomsg ),
|
||||||
|
m_Idcommand( idcommand ), m_IdMenuEvent( idmenuevent )
|
||||||
{
|
{
|
||||||
m_KeyCode = keycode; // Key code (ascii value for ascii keys
|
|
||||||
|
|
||||||
// or wxWidgets code for function key
|
|
||||||
m_InfoMsg = infomsg; // info message.
|
|
||||||
m_Idcommand = idcommand; // internal id for the corresponding
|
|
||||||
|
|
||||||
// command (see hotkey_id_commnand list)
|
|
||||||
m_IdMenuEvent = idmenuevent; // id to call the corresponding event
|
|
||||||
// (if any) (see id.h)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
EDA_HOTKEY::EDA_HOTKEY( const EDA_HOTKEY* base ) :
|
EDA_HOTKEY::EDA_HOTKEY( const EDA_HOTKEY* base )
|
||||||
m_DefaultKeyCode( base->m_DefaultKeyCode ) // initialize DefaultKeyCode
|
|
||||||
{
|
{
|
||||||
|
m_defaultKeyCode = base->m_defaultKeyCode; // initialize default key code
|
||||||
m_KeyCode = base->m_KeyCode;
|
m_KeyCode = base->m_KeyCode;
|
||||||
m_InfoMsg = base->m_InfoMsg;
|
m_InfoMsg = base->m_InfoMsg;
|
||||||
m_Idcommand = base->m_Idcommand;
|
m_Idcommand = base->m_Idcommand;
|
||||||
|
|
|
@ -57,7 +57,8 @@ extern wxString g_CommonSectionTag;
|
||||||
class EDA_HOTKEY
|
class EDA_HOTKEY
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
const int m_DefaultKeyCode; // Key code assigned upon object construction, to be used as default value
|
int m_defaultKeyCode; // Key code assigned upon object construction, to be used as default value
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int m_KeyCode; // Key code (ascii value for ascii keys or wxWidgets code for function key
|
int m_KeyCode; // Key code (ascii value for ascii keys or wxWidgets code for function key
|
||||||
wxString m_InfoMsg; // info message.
|
wxString m_InfoMsg; // info message.
|
||||||
|
@ -67,7 +68,7 @@ public:
|
||||||
public:
|
public:
|
||||||
EDA_HOTKEY( const wxChar* infomsg, int idcommand, int keycode, int idmenuevent = 0 );
|
EDA_HOTKEY( const wxChar* infomsg, int idcommand, int keycode, int idmenuevent = 0 );
|
||||||
EDA_HOTKEY( const EDA_HOTKEY* base);
|
EDA_HOTKEY( const EDA_HOTKEY* base);
|
||||||
void ResetKeyCodeToDefault() { m_KeyCode = m_DefaultKeyCode; }
|
void ResetKeyCodeToDefault() { m_KeyCode = m_defaultKeyCode; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue