From 713e8d93f398f06cde97f71793fe9b5e79d2da32 Mon Sep 17 00:00:00 2001
From: jean-pierre charras
Date: Tue, 29 Mar 2016 19:51:53 +0200
Subject: [PATCH] About dialog: small changes. EDA_HOTKEY class: better ctor.
---
common/dialog_about/AboutDialog_main.cpp | 35 ++++++++++++++----------
common/hotkeys_basic.cpp | 16 +++--------
include/hotkeys_basic.h | 5 ++--
3 files changed, 28 insertions(+), 28 deletions(-)
diff --git a/common/dialog_about/AboutDialog_main.cpp b/common/dialog_about/AboutDialog_main.cpp
index bb4c315dd9..499b04e10e 100644
--- a/common/dialog_about/AboutDialog_main.cpp
+++ b/common/dialog_about/AboutDialog_main.cpp
@@ -171,31 +171,38 @@ static void InitKiCadAboutNew( AboutAppInfo& info )
description << wxT( "
" );
description << wxT( "" )
- << _( "Contribute to KiCad" )
+ << _( "Bug tracker" )
<< wxT( "" ); // bold & underlined font caption
// bullet-ed list with some http links
description << wxT( "
" );
description << wxT( "- " )
- <" );
- description << wxT( "
- " )
- << HtmlHyperlink( wxT( "https://blueprints.launchpad.net/kicad" ),
- _( "File an idea for improvement" ) )
- << wxT( "
" );
- description << wxT( "- " )
- << HtmlHyperlink( wxT( "http://www.kicadlib.org/Kicad_related_links.html" ),
- _( "KiCad links to user groups, tutorials and much more" ) )
- << wxT( "
" );
- description << wxT( "
" );
+ description << wxT( "" );
- description << wxT( "" );
+ description << wxT( "" )
+ << _( "KiCad user group and community" )
+ << wxT( "" ); // bold & underlined font caption
+
+ description << wxT( "
" );
+ description << wxT( "- " )
+ << HtmlHyperlink( wxT( "https://groups.yahoo.com/neo/groups/kicad-users/info" ),
+ _( "KiCad user group" ) )
+ << wxT( "
" );
+
+ description << wxT( "- " )
+ << HtmlHyperlink( wxT( "https://forum.kicad.info" ),
+ _( "KiCad forum" ) )
+ << wxT( "
" );
+
+ description << wxT( "
" );
info.SetDescription( description );
- /* License information also HTML formatted */
+ // License information also HTML formatted:
wxString license;
license
<< wxT( "" )
diff --git a/common/hotkeys_basic.cpp b/common/hotkeys_basic.cpp
index 40e7a8247f..b9d86449b4 100644
--- a/common/hotkeys_basic.cpp
+++ b/common/hotkeys_basic.cpp
@@ -56,23 +56,15 @@ wxString g_CommonSectionTag( wxT( "[common]" ) );
*/
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 ) :
- m_DefaultKeyCode( base->m_DefaultKeyCode ) // initialize DefaultKeyCode
+EDA_HOTKEY::EDA_HOTKEY( const EDA_HOTKEY* base )
{
+ m_defaultKeyCode = base->m_defaultKeyCode; // initialize default key code
m_KeyCode = base->m_KeyCode;
m_InfoMsg = base->m_InfoMsg;
m_Idcommand = base->m_Idcommand;
diff --git a/include/hotkeys_basic.h b/include/hotkeys_basic.h
index b08311ba65..1b9ad9f0d2 100644
--- a/include/hotkeys_basic.h
+++ b/include/hotkeys_basic.h
@@ -57,7 +57,8 @@ extern wxString g_CommonSectionTag;
class EDA_HOTKEY
{
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:
int m_KeyCode; // Key code (ascii value for ascii keys or wxWidgets code for function key
wxString m_InfoMsg; // info message.
@@ -67,7 +68,7 @@ public:
public:
EDA_HOTKEY( const wxChar* infomsg, int idcommand, int keycode, int idmenuevent = 0 );
EDA_HOTKEY( const EDA_HOTKEY* base);
- void ResetKeyCodeToDefault() { m_KeyCode = m_DefaultKeyCode; }
+ void ResetKeyCodeToDefault() { m_KeyCode = m_defaultKeyCode; }
};