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
63cf8c53
Commit
63cf8c53
authored
Sep 21, 2007
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes about hotkeys in onrightclick.cpp
parent
0a2ed094
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
728 additions
and
753 deletions
+728
-753
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+661
-702
class_module.cpp
pcbnew/class_module.cpp
+1
-1
onrightclick.cpp
pcbnew/onrightclick.cpp
+66
-50
No files found.
internat/fr/kicad.mo
View file @
63cf8c53
No preview for this file type
internat/fr/kicad.po
View file @
63cf8c53
This diff is collapsed.
Click to expand it.
pcbnew/class_module.cpp
View file @
63cf8c53
...
...
@@ -1129,7 +1129,7 @@ void MODULE::Display_Infos( WinEDA_DrawFrame* frame )
pos
+=
4
;
msg
=
wxT
(
".."
);
if
(
IsLocked
()
)
msg
[
0
]
=
'
F
'
;
msg
[
0
]
=
'
L
'
;
if
(
m_ModuleStatus
&
MODULE_is_PLACED
)
msg
[
1
]
=
'P'
;
Affiche_1_Parametre
(
frame
,
pos
,
_
(
"Stat"
),
msg
,
MAGENTA
);
...
...
pcbnew/onrightclick.cpp
View file @
63cf8c53
...
...
@@ -10,10 +10,8 @@
#include "common.h"
#include "pcbnew.h"
#include "autorout.h"
#include "id.h"
#include "protos.h"
#include "hotkeys.h"
/* Bitmaps */
#include "bitmaps.h"
...
...
@@ -117,6 +115,7 @@ void WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
int
flags
=
0
;
bool
locate_track
=
FALSE
;
bool
BlockActive
=
(
m_CurrentScreen
->
BlockLocate
.
m_Command
!=
BLOCK_IDLE
);
wxClientDC
dc
(
DrawPanel
);
BOARD_ITEM
*
item
=
GetCurItem
();
...
...
@@ -165,8 +164,10 @@ void WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
!
item
||
!
item
->
m_Flags
)
{
item
=
PcbGeneralLocateAndDisplay
();
SetCurItem
(
item
);
}
item
=
GetCurItem
();
if
(
item
)
flags
=
item
->
m_Flags
;
else
...
...
@@ -185,12 +186,14 @@ void WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
!
((
MODULE
*
)
item
)
->
IsLocked
()
)
{
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FIXE_MODULE
,
_
(
"Lock Module"
),
msg
=
AddHotkeyName
(
_
(
"Lock Module"
),
s_Board_Editor_Hokeys_Descr
,
HK_LOCK_UNLOCK_FOOTPRINT
);
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FIXE_MODULE
,
msg
,
Locked_xpm
);
}
else
{
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FREE_MODULE
,
_
(
"Unlock Module"
),
msg
=
AddHotkeyName
(
_
(
"Unlock Module"
),
s_Board_Editor_Hokeys_Descr
,
HK_LOCK_UNLOCK_FOOTPRINT
);
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_AUTOPLACE_FREE_MODULE
,
msg
,
Unlocked_xpm
);
}
...
...
@@ -307,8 +310,10 @@ void WinEDA_PcbFrame::OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu )
if
(
!
flags
)
{
msg
=
AddHotkeyName
(
_
(
"Get and Move Footprint"
),
s_Board_Editor_Hokeys_Descr
,
HK_GET_AND_MOVE_FOOTPRINT
);
ADD_MENUITEM
(
aPopMenu
,
ID_POPUP_PCB_GET_AND_MOVE_MODULE_REQUEST
,
_
(
"Get and Move Footprint"
)
,
Move_Module_xpm
);
msg
,
Move_Module_xpm
);
}
/* Traitement des fonctions specifiques */
...
...
@@ -454,15 +459,15 @@ void WinEDA_PcbFrame::createPopUpBlockMenu( wxMenu* menu )
}
/********************************************************************/
/********************************************************************
**********
/
void
WinEDA_PcbFrame
::
createPopupMenuForTracks
(
TRACK
*
Track
,
wxMenu
*
PopMenu
)
/*******************************************************************/
/*******************************************************************
***********
/
/* Create command lines for a popup menu, for track editing
*/
{
wxPoint
cursorPosition
=
GetScreen
()
->
m_Curseur
;
wxString
msg
;
int
flags
=
Track
->
m_Flags
;
if
(
flags
==
0
)
...
...
@@ -471,6 +476,7 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
{
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_MOVE_TRACK_NODE
,
_
(
"Drag Via"
),
move_xpm
);
wxMenu
*
via_mnu
=
new
wxMenu
();
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
via_mnu
,
ID_POPUP_PCB_VIA_EDITING
,
_
(
"Edit Via"
),
edit_xpm
);
ADD_MENUITEM
(
via_mnu
,
ID_POPUP_PCB_VIA_HOLE_TO_DEFAULT
,
...
...
@@ -523,8 +529,12 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
else
// Edition in progress
{
if
(
flags
&
IS_NEW
)
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_END_TRACK
,
_
(
"End Track (end)"
),
apply_xpm
);
PopMenu
->
Append
(
ID_POPUP_PCB_PLACE_VIA
,
_
(
"Place Via (V)"
)
);
{
msg
=
AddHotkeyName
(
_
(
"End Track"
),
s_Board_Editor_Hokeys_Descr
,
HK_END_TRACK
);
ADD_MENUITEM
(
PopMenu
,
ID_POPUP_PCB_END_TRACK
,
msg
,
apply_xpm
);
}
msg
=
AddHotkeyName
(
_
(
"Place Via"
),
s_Board_Editor_Hokeys_Descr
,
HK_ADD_VIA
);
PopMenu
->
Append
(
ID_POPUP_PCB_PLACE_VIA
,
msg
);
}
// track Width control :
...
...
@@ -551,12 +561,14 @@ void WinEDA_PcbFrame::createPopupMenuForTracks( TRACK* Track, wxMenu* PopMenu )
track_mnu
=
new
wxMenu
;
ADD_MENUITEM_WITH_SUBMENU
(
PopMenu
,
track_mnu
,
ID_POPUP_PCB_DELETE_TRACK_MNU
,
_
(
"Delete"
),
delete_xpm
);
msg
=
AddHotkeyName
(
_
(
"Delete Segment"
),
s_Board_Editor_Hokeys_Descr
,
HK_BACK_SPACE
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACKSEG
,
_
(
"Delete Segment (backspace)"
)
,
Delete_Line_xpm
);
msg
,
Delete_Line_xpm
);
if
(
!
flags
)
{
msg
=
AddHotkeyName
(
_
(
"Delete Track"
),
s_Board_Editor_Hokeys_Descr
,
HK_DELETE
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACK
,
_
(
"Delete Track (delete)"
)
,
Delete_Track_xpm
);
msg
,
Delete_Track_xpm
);
ADD_MENUITEM
(
track_mnu
,
ID_POPUP_PCB_DELETE_TRACKNET
,
_
(
"Delete Net"
),
Delete_Net_xpm
);
}
...
...
@@ -593,25 +605,29 @@ void WinEDA_PcbFrame::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* men
{
wxMenu
*
sub_menu_footprint
;
int
flags
=
aModule
->
m_Flags
;
wxString
msg
=
aModule
->
MenuText
(
m_Pcb
);
wxString
msg
;
sub_menu_footprint
=
new
wxMenu
;
msg
=
aModule
->
MenuText
(
m_Pcb
);
ADD_MENUITEM_WITH_SUBMENU
(
menu
,
sub_menu_footprint
,
-
1
,
msg
,
module_xpm
);
if
(
!
flags
)
{
msg
=
AddHotkeyName
(
_
(
"Move"
),
s_Board_Editor_Hokeys_Descr
,
HK_MOVE_FOOTPRINT
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_MOVE_MODULE_REQUEST
,
_
(
"Move (M)"
),
Move_Module_xpm
);
msg
,
Move_Module_xpm
);
msg
=
AddHotkeyName
(
_
(
"Drag"
),
s_Board_Editor_Hokeys_Descr
,
HK_DRAG_FOOTPRINT
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_DRAG_MODULE_REQUEST
,
_
(
"Drag (G)"
)
,
Drag_Module_xpm
);
msg
,
Drag_Module_xpm
);
}
msg
=
AddHotkeyName
(
_
(
"Rotate +"
),
s_Board_Editor_Hokeys_Descr
,
HK_ROTATE_FOOTPRINT
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_ROTATE_MODULE_CLOCKWISE
,
_
(
"Rotate + (R)"
)
,
rotate_module_pos_xpm
);
msg
,
rotate_module_pos_xpm
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_ROTATE_MODULE_COUNTERCLOCKWISE
,
_
(
"Rotate -"
),
rotate_module_neg_xpm
);
msg
=
AddHotkeyName
(
_
(
"Flip"
),
s_Board_Editor_Hokeys_Descr
,
HK_FLIP_FOOTPRINT
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_CHANGE_SIDE_MODULE
,
_
(
"Flip (S)"
)
,
invert_module_xpm
);
msg
,
invert_module_xpm
);
ADD_MENUITEM
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE
,
_
(
"Edit"
),
Edit_Module_xpm
);
...
...
@@ -722,9 +738,9 @@ void WinEDA_PcbFrame::createPopUpMenuForFpPads( D_PAD* Pad, wxMenu* menu )
}
/*************************************************************/
/*************************************************************
****************
/
void
WinEDA_PcbFrame
::
createPopUpMenuForTexts
(
TEXTE_PCB
*
Text
,
wxMenu
*
menu
)
/*************************************************************/
/*************************************************************
****************
/
/* Create pop menu for pcb texts */
{
wxMenu
*
sub_menu_Text
;
...
...
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