Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
2cfe92de
Commit
2cfe92de
authored
Sep 20, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotkey enhancement
parent
542b9441
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
335 additions
and
301 deletions
+335
-301
change_log.txt
change_log.txt
+1
-1
hotkeys_basic.cpp
common/hotkeys_basic.cpp
+44
-0
eeconfig.cpp
eeschema/eeconfig.cpp
+1
-12
gerbview_config.cpp
gerbview/gerbview_config.cpp
+1
-12
hotkeys_basic.h
include/hotkeys_basic.h
+2
-1
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+285
-269
pcbcfg.cpp
pcbnew/pcbcfg.cpp
+1
-6
No files found.
change_log.txt
View file @
2cfe92de
...
...
@@ -4,7 +4,7 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2007-sept-
19
UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
2007-sept-
20
UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+ all
* hotkeys handling finished
...
...
common/hotkeys_basic.cpp
View file @
2cfe92de
...
...
@@ -639,4 +639,48 @@ void AddHotheyConfigMenu( wxMenu* menu )
_
(
"Hotkey config location"
),
_
(
"Hotkey config file location selection (home directory or kicad tree)"
),
right_xpm
);
submenu_hkcfg
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
,
g_ConfigFileLocationChoice
==
0
);
submenu_hkcfg
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
,
g_ConfigFileLocationChoice
==
1
);
}
/************************************************************************/
void
HandleHotheyConfigMenuSelection
(
WinEDA_DrawFrame
*
frame
,
int
id
)
/************************************************************************/
/* called on hotkey file location selecton menu
* @param frame = current WinEDA_DrawFrame
* @param id = selected menu id
* @return g_ConfigFileLocationChoice (global) = new selection
*/
{
wxMenuBar
*
menu
=
frame
->
GetMenuBar
();
switch
(
id
)
{
case
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
:
if
(
g_ConfigFileLocationChoice
!=
0
)
{
g_ConfigFileLocationChoice
=
0
;
menu
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
,
true
);
menu
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
,
false
);
frame
->
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
break
;
case
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
:
if
(
g_ConfigFileLocationChoice
!=
1
)
{
g_ConfigFileLocationChoice
=
1
;
menu
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
,
false
);
menu
->
Check
(
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
,
true
);
frame
->
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
break
;
default
:
break
;
}
}
eeschema/eeconfig.cpp
View file @
2cfe92de
...
...
@@ -99,19 +99,8 @@ wxString FullFileName;
}
case
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
:
if
(
g_ConfigFileLocationChoice
!=
0
)
{
g_ConfigFileLocationChoice
=
0
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
break
;
case
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
:
if
(
g_ConfigFileLocationChoice
!=
1
)
{
g_ConfigFileLocationChoice
=
1
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
HandleHotheyConfigMenuSelection
(
this
,
id
);
break
;
default
:
...
...
gerbview/gerbview_config.cpp
View file @
2cfe92de
...
...
@@ -68,19 +68,8 @@ void WinEDA_GerberFrame::Process_Config( wxCommandEvent& event )
break
;
case
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
:
if
(
g_ConfigFileLocationChoice
!=
0
)
{
g_ConfigFileLocationChoice
=
0
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
break
;
case
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
:
if
(
g_ConfigFileLocationChoice
!=
1
)
{
g_ConfigFileLocationChoice
=
1
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
}
HandleHotheyConfigMenuSelection
(
this
,
id
);
break
;
default
:
...
...
include/hotkeys_basic.h
View file @
2cfe92de
...
...
@@ -91,7 +91,8 @@ COMMON_GLOBL int g_ConfigFileLocationChoice; /* 0 = files are in Home directo
/* Functions:
*/
wxString
ReturnHotkeyConfigFilePath
(
int
choice
);
void
AddHotheyConfigMenu
(
wxMenu
*
menu
);
void
AddHotheyConfigMenu
(
wxMenu
*
menu
);
void
HandleHotheyConfigMenuSelection
(
WinEDA_DrawFrame
*
frame
,
int
id
);
wxString
ReturnKeyNameFromKeyCode
(
int
keycode
);
wxString
ReturnKeyNameFromCommandId
(
Ki_HotkeyInfo
**
List
,
int
CommandId
);
wxString
AddHotkeyName
(
const
wxString
&
text
,
Ki_HotkeyInfo
**
List
,
int
CommandId
);
...
...
internat/fr/kicad.mo
View file @
2cfe92de
No preview for this file type
internat/fr/kicad.po
View file @
2cfe92de
This diff is collapsed.
Click to expand it.
pcbnew/pcbcfg.cpp
View file @
2cfe92de
...
...
@@ -107,13 +107,8 @@ wxString FullFileName;
}
case
ID_PREFERENCES_HOTKEY_PATH_IS_HOME
:
g_ConfigFileLocationChoice
=
0
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
break
;
case
ID_PREFERENCES_HOTKEY_PATH_IS_KICAD
:
g_ConfigFileLocationChoice
=
1
;
m_Parent
->
m_EDA_CommonConfig
->
Write
(
HOTKEY_CFG_PATH_OPT
,
g_ConfigFileLocationChoice
);
HandleHotheyConfigMenuSelection
(
this
,
id
);
break
;
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment