Commit 1ee86d4a authored by charras's avatar charras

code cleanup and enhancements about hotkeys

parent e1412214
...@@ -199,22 +199,22 @@ static struct hotkey_name_descr s_Hotkey_Name_List[] = ...@@ -199,22 +199,22 @@ static struct hotkey_name_descr s_Hotkey_Name_List[] =
* return the key name from the key code * return the key name from the key code
* Only some wxWidgets key values are handled for function key ( see * Only some wxWidgets key values are handled for function key ( see
* s_Hotkey_Name_List[] ) * s_Hotkey_Name_List[] )
* @param key = key code (ascii value, or wxWidgets value for function keys) * @param aKeycode = key code (ascii value, or wxWidgets value for function keys)
* @return the key name in a wxString * @return the key name in a wxString
*/ */
wxString ReturnKeyNameFromKeyCode( int keycode ) wxString ReturnKeyNameFromKeyCode( int aKeycode )
{ {
wxString keyname, modifier, fullkeyname; wxString keyname, modifier, fullkeyname;
int ii; int ii;
if( (keycode & GR_KB_CTRL) != 0 ) if( (aKeycode & GR_KB_CTRL) != 0 )
modifier << wxT( "Ctrl+" ); modifier << wxT( "Ctrl+" );
if( (keycode & GR_KB_ALT) != 0 ) if( (aKeycode & GR_KB_ALT) != 0 )
modifier << wxT( "Alt+" ); modifier << wxT( "Alt+" );
if( (keycode & GR_KB_SHIFT) != 0 ) if( (aKeycode & GR_KB_SHIFT) != 0 )
modifier << wxT( "Shift+" ); modifier << wxT( "Shift+" );
keycode &= ~( GR_KB_CTRL | GR_KB_ALT | GR_KB_SHIFT ); aKeycode &= ~( GR_KB_CTRL | GR_KB_ALT | GR_KB_SHIFT );
for( ii = 0; ; ii++ ) for( ii = 0; ; ii++ )
{ {
if( s_Hotkey_Name_List[ii].m_KeyCode == 0 ) if( s_Hotkey_Name_List[ii].m_KeyCode == 0 )
...@@ -222,7 +222,7 @@ wxString ReturnKeyNameFromKeyCode( int keycode ) ...@@ -222,7 +222,7 @@ wxString ReturnKeyNameFromKeyCode( int keycode )
keyname = wxT( "<unknown>" ); keyname = wxT( "<unknown>" );
break; break;
} }
if( s_Hotkey_Name_List[ii].m_KeyCode == keycode ) if( s_Hotkey_Name_List[ii].m_KeyCode == aKeycode )
{ {
keyname = s_Hotkey_Name_List[ii].m_Name; keyname = s_Hotkey_Name_List[ii].m_Name;
break; break;
...@@ -236,12 +236,15 @@ wxString ReturnKeyNameFromKeyCode( int keycode ) ...@@ -236,12 +236,15 @@ wxString ReturnKeyNameFromKeyCode( int keycode )
/** function AddHotkeyName /** function AddHotkeyName
* Add the key name from the Command id value ( m_Idcommand member value) * Add the key name from the Command id value ( m_Idcommand member value)
* @param List = pointer to a Ki_HotkeyInfo list of commands * @param aText = a wxString. returns aText + key name
* @param CommandId = Command Id value * @param aList = pointer to a Ki_HotkeyInfo list of commands
* @return text (key name) in a wxString if found or text without modification * @param aCommandId = Command Id value
* @param aIsShortCut = true to add <tab><keyname> (active shortcuts in menus)
* = false to add <spaces><(keyname)>
* @return a wxString (aTest + key name) if key found or aText without modification
*/ */
wxString AddHotkeyName( const wxString& aText, Ki_HotkeyInfo** aList, wxString AddHotkeyName( const wxString& aText, Ki_HotkeyInfo** aList,
int aCommandId ) int aCommandId , bool aIsShortCut )
{ {
wxString msg = aText; wxString msg = aText;
wxString keyname; wxString keyname;
...@@ -249,21 +252,28 @@ wxString AddHotkeyName( const wxString& aText, Ki_HotkeyInfo** aList, ...@@ -249,21 +252,28 @@ wxString AddHotkeyName( const wxString& aText, Ki_HotkeyInfo** aList,
keyname = ReturnKeyNameFromCommandId( aList, aCommandId ); keyname = ReturnKeyNameFromCommandId( aList, aCommandId );
if( !keyname.IsEmpty() ) if( !keyname.IsEmpty() )
{
if ( aIsShortCut )
msg << wxT( "\t" ) << keyname; msg << wxT( "\t" ) << keyname;
else
msg << wxT( " <" ) << keyname << wxT(">");
}
return msg; return msg;
} }
/** function AddHotkeyName /** function AddHotkeyName
* Add the key name from the Command id value ( m_Idcommand member value) * Add the key name from the Command id value ( m_Idcommand member value)
* @param List = pointer to a Ki_HotkeyInfoSectionDescriptor* DescrList of * @param aText = a wxString. returns aText + key name
* commands * @param aList = pointer to a Ki_HotkeyInfoSectionDescriptor DescrList of commands
* @param CommandId = Command Id value * @param aCommandId = Command Id value
* @return text (key name) in a wxString if found or text without modification * @param aIsShortCut = true to add <tab><keyname> (active shortcuts in menus)
* = false to add <spaces><(keyname)>
* @return a wxString (aTest + key name) if key found or aText without modification
*/ */
wxString AddHotkeyName( const wxString& aText, wxString AddHotkeyName( const wxString& aText,
struct Ki_HotkeyInfoSectionDescriptor* aDescList, struct Ki_HotkeyInfoSectionDescriptor* aDescList,
int aCommandId ) int aCommandId,
bool aIsShortCut )
{ {
wxString msg = aText; wxString msg = aText;
wxString keyname; wxString keyname;
...@@ -277,7 +287,10 @@ wxString AddHotkeyName( const wxString& aText, ...@@ -277,7 +287,10 @@ wxString AddHotkeyName( const wxString& aText,
keyname = ReturnKeyNameFromCommandId( List, aCommandId ); keyname = ReturnKeyNameFromCommandId( List, aCommandId );
if( !keyname.IsEmpty() ) if( !keyname.IsEmpty() )
{ {
if ( aIsShortCut )
msg << wxT( "\t" ) << keyname; msg << wxT( "\t" ) << keyname;
else
msg << wxT( " <" ) << keyname << wxT(">");
break; break;
} }
} }
...@@ -289,18 +302,18 @@ wxString AddHotkeyName( const wxString& aText, ...@@ -289,18 +302,18 @@ wxString AddHotkeyName( const wxString& aText,
/** function ReturnKeyNameFromCommandId /** function ReturnKeyNameFromCommandId
* return the key name from the Command id value ( m_Idcommand member value) * return the key name from the Command id value ( m_Idcommand member value)
* @param List = pointer to a Ki_HotkeyInfo list of commands * @param aList = pointer to a Ki_HotkeyInfo list of commands
* @param CommandId = Command Id value * @param aCommandId = Command Id value
* @return the key name in a wxString * @return the key name in a wxString
*/ */
wxString ReturnKeyNameFromCommandId( Ki_HotkeyInfo** List, int CommandId ) wxString ReturnKeyNameFromCommandId( Ki_HotkeyInfo** aList, int aCommandId )
{ {
wxString keyname; wxString keyname;
for( ; *List != NULL; List++ ) for( ; *aList != NULL; aList++ )
{ {
Ki_HotkeyInfo* hk_decr = *List; Ki_HotkeyInfo* hk_decr = *aList;
if( hk_decr->m_Idcommand == CommandId ) if( hk_decr->m_Idcommand == aCommandId )
{ {
keyname = ReturnKeyNameFromKeyCode( hk_decr->m_KeyCode ); keyname = ReturnKeyNameFromKeyCode( hk_decr->m_KeyCode );
break; break;
......
...@@ -52,13 +52,20 @@ ...@@ -52,13 +52,20 @@
*/ */
/* Fit on Screen */ /* Fit on Screen */
static Ki_HotkeyInfo HkZoomAuto( wxT( "Fit on Screen" ), HK_ZOOM_AUTO, #if !defined( __WXMAC__ )
WXK_HOME ); static Ki_HotkeyInfo HkZoomAuto( wxT( "Fit on Screen" ), HK_ZOOM_AUTO, WXK_HOME );
#else
static Ki_HotkeyInfo HkZoomAuto( wxT( "Zoom Auto" ), HK_ZOOM_AUTO, GR_KB_CTRL + '0' );
#endif
static Ki_HotkeyInfo HkZoomCenter( wxT( "Zoom Center" ), HK_ZOOM_CENTER, WXK_F4 );
static Ki_HotkeyInfo HkZoomCenter( wxT( "Zoom Center" ), HK_ZOOM_CENTER, /* Refresh Screen */
WXK_F4 ); #if !defined( __WXMAC__ )
static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, WXK_F3 );
WXK_F3 ); #else
static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, GR_KB_CTRL + 'R' );
#endif
/* Zoom In */ /* Zoom In */
#if !defined( __WXMAC__ ) #if !defined( __WXMAC__ )
...@@ -127,6 +134,9 @@ static Ki_HotkeyInfo HkMove2Drag( wxT( "Switch move block to drag block" ), ...@@ -127,6 +134,9 @@ static Ki_HotkeyInfo HkMove2Drag( wxT( "Switch move block to drag block" ),
static Ki_HotkeyInfo HkInsert( wxT( "Repeat Last Item" ), HK_REPEAT_LAST, static Ki_HotkeyInfo HkInsert( wxT( "Repeat Last Item" ), HK_REPEAT_LAST,
WXK_INSERT ); WXK_INSERT );
static Ki_HotkeyInfo HkDelete( wxT( "Delete Item" ), HK_DELETE, WXK_DELETE ); static Ki_HotkeyInfo HkDelete( wxT( "Delete Item" ), HK_DELETE, WXK_DELETE );
static Ki_HotkeyInfo HkFindItem( wxT( "Find Item" ), HK_FIND_ITEM, 'F'
+ GR_KB_CTRL );
static Ki_HotkeyInfo HkNextSearch( wxT( "Next Search" ), HK_NEXT_SEARCH, static Ki_HotkeyInfo HkNextSearch( wxT( "Next Search" ), HK_NEXT_SEARCH,
WXK_F5 ); WXK_F5 );
...@@ -156,6 +166,7 @@ Ki_HotkeyInfo* s_Common_Hotkey_List[] = ...@@ -156,6 +166,7 @@ Ki_HotkeyInfo* s_Common_Hotkey_List[] =
// List of hotkey descriptors for schematic // List of hotkey descriptors for schematic
Ki_HotkeyInfo* s_Schematic_Hotkey_List[] = Ki_HotkeyInfo* s_Schematic_Hotkey_List[] =
{ {
&HkFindItem,
&HkNextSearch, &HkNextSearch,
&HkDelete, &HkDelete,
&HkInsert, &HkInsert,
...@@ -325,6 +336,15 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey, ...@@ -325,6 +336,15 @@ void WinEDA_SchematicFrame::OnHotKey( wxDC* DC, int hotkey,
RepeatDrawItem( DC ); RepeatDrawItem( DC );
break; break;
case HK_FIND_ITEM:
if( !ItemInEdit )
{
wxCommandEvent evt;
evt.SetId( ID_FIND_ITEMS );
Process_Special_Functions( evt );
}
break;
case HK_NEXT_SEARCH: case HK_NEXT_SEARCH:
if( !ItemInEdit ) if( !ItemInEdit )
{ {
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
// for shared hotkeys id // for shared hotkeys id
enum hotkey_id_commnand { enum hotkey_id_commnand {
HK_NEXT_SEARCH = HK_COMMON_END, HK_NEXT_SEARCH = HK_COMMON_END,
HK_FIND_ITEM,
HK_DELETE, HK_DELETE,
HK_REPEAT_LAST, HK_REPEAT_LAST,
HK_EDIT_PIN, HK_EDIT_PIN,
......
...@@ -79,7 +79,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -79,7 +79,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
/* Save as... */ /* Save as... */
item = new wxMenuItem( filesMenu, ID_SAVE_ONE_SHEET_AS, item = new wxMenuItem( filesMenu, ID_SAVE_ONE_SHEET_AS,
_( "Save Current Sheet &as\tShift+Ctrl+S" ), _( "Save Current Sheet &as" ),
_( "Save current schematic sheet as..." ) ); _( "Save current schematic sheet as..." ) );
item->SetBitmap( save_as_xpm ); item->SetBitmap( save_as_xpm );
filesMenu->Append( item ); filesMenu->Append( item );
...@@ -88,7 +88,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -88,7 +88,7 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
filesMenu->AppendSeparator(); filesMenu->AppendSeparator();
/* Print */ /* Print */
item = new wxMenuItem( filesMenu, wxID_PRINT, _( "P&rint\tCtrl+P" ), item = new wxMenuItem( filesMenu, wxID_PRINT, _( "P&rint" ),
_( "Print schematic" ) ); _( "Print schematic" ) );
item->SetBitmap( print_button ); item->SetBitmap( print_button );
filesMenu->Append( item ); filesMenu->Append( item );
...@@ -181,7 +181,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -181,7 +181,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
editMenu->AppendSeparator(); editMenu->AppendSeparator();
/* Find */ /* Find */
item = new wxMenuItem( editMenu, ID_FIND_ITEMS, _( "&Find\tCtrl+F" ), text = AddHotkeyName( _( "&Find" ), s_Schematic_Hokeys_Descr, HK_FIND_ITEM );
item = new wxMenuItem( editMenu, ID_FIND_ITEMS, text,
_( "Find components and texts" ), wxITEM_NORMAL ); _( "Find components and texts" ), wxITEM_NORMAL );
item->SetBitmap( find_xpm ); item->SetBitmap( find_xpm );
editMenu->Append( item ); editMenu->Append( item );
...@@ -229,12 +230,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -229,12 +230,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
viewMenu->Append( item ); viewMenu->Append( item );
/* Fit on screen */ /* Fit on screen */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr, text = AddHotkeyName( _( "Fit on Screen" ), s_Schematic_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO );
#else
text = _( "Fit on Screen\tCtrl+0" );
#endif
item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text,
_( "Fit the schematic sheet on the screen" ), _( "Fit the schematic sheet on the screen" ),
...@@ -245,12 +242,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar() ...@@ -245,12 +242,8 @@ void WinEDA_SchematicFrame::ReCreateMenuBar()
viewMenu->AppendSeparator(); viewMenu->AppendSeparator();
/* Redraw view */ /* Redraw view */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Redraw" ), s_Schematic_Hokeys_Descr, text = AddHotkeyName( _( "Redraw" ), s_Schematic_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW );
#else
text = _( "Redraw\tCtrl+R" );
#endif
item = new wxMenuItem( viewMenu, ID_ZOOM_REDRAW, text, item = new wxMenuItem( viewMenu, ID_ZOOM_REDRAW, text,
_( "Redraw the schematic view" ), _( "Redraw the schematic view" ),
......
...@@ -133,11 +133,11 @@ void WinEDA_LibeditFrame::ReCreateHToolbar() ...@@ -133,11 +133,11 @@ void WinEDA_LibeditFrame::ReCreateHToolbar()
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Undo last command" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Undo last command" ), s_Schematic_Hokeys_Descr,
HK_UNDO ); HK_UNDO, false );
m_HToolBar->AddTool( wxID_UNDO, wxEmptyString, wxBitmap( undo_xpm ), m_HToolBar->AddTool( wxID_UNDO, wxEmptyString, wxBitmap( undo_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Redo the last command" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Redo the last command" ), s_Schematic_Hokeys_Descr,
HK_REDO ); HK_REDO, false );
m_HToolBar->AddTool( wxID_REDO, wxEmptyString, wxBitmap( redo_xpm ), m_HToolBar->AddTool( wxID_REDO, wxEmptyString, wxBitmap( redo_xpm ),
msg ); msg );
...@@ -156,20 +156,20 @@ void WinEDA_LibeditFrame::ReCreateHToolbar() ...@@ -156,20 +156,20 @@ void WinEDA_LibeditFrame::ReCreateHToolbar()
_( "Test for duplicate pins and off grid pins" ) ); _( "Test for duplicate pins and off grid pins" ) );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Zoom in" ), s_Libedit_Hokeys_Descr, HK_ZOOM_IN ); msg = AddHotkeyName( _( "Zoom in" ), s_Libedit_Hokeys_Descr, HK_ZOOM_IN, false );
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ), m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Zoom out" ), s_Libedit_Hokeys_Descr, HK_ZOOM_OUT ); msg = AddHotkeyName( _( "Zoom out" ), s_Libedit_Hokeys_Descr, HK_ZOOM_OUT, false );
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, wxBitmap( zoom_out_xpm ), m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, wxBitmap( zoom_out_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Redraw view" ), s_Libedit_Hokeys_Descr, msg = AddHotkeyName( _( "Redraw view" ), s_Libedit_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW, false );
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
wxBitmap( zoom_redraw_xpm ), msg ); wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Libedit_Hokeys_Descr, HK_ZOOM_AUTO ); msg = AddHotkeyName( _( "Zoom auto" ), s_Libedit_Hokeys_Descr, HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
wxBitmap( zoom_auto_xpm ), msg ); wxBitmap( zoom_auto_xpm ), msg );
......
...@@ -66,12 +66,12 @@ void WinEDA_SchematicFrame::ReCreateHToolbar() ...@@ -66,12 +66,12 @@ void WinEDA_SchematicFrame::ReCreateHToolbar()
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Undo last edition" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Undo last edition" ), s_Schematic_Hokeys_Descr,
HK_UNDO ); HK_UNDO, false );
m_HToolBar->AddTool( wxID_UNDO, wxEmptyString, m_HToolBar->AddTool( wxID_UNDO, wxEmptyString,
wxBitmap( undo_xpm ), msg ); wxBitmap( undo_xpm ), msg );
msg = AddHotkeyName( _( "Redo the last undo command" ), msg = AddHotkeyName( _( "Redo the last undo command" ),
s_Schematic_Hokeys_Descr, HK_REDO ); s_Schematic_Hokeys_Descr, HK_REDO, false );
m_HToolBar->AddTool( wxID_REDO, wxEmptyString, m_HToolBar->AddTool( wxID_REDO, wxEmptyString,
wxBitmap( redo_xpm ), msg ); wxBitmap( redo_xpm ), msg );
...@@ -87,28 +87,30 @@ void WinEDA_SchematicFrame::ReCreateHToolbar() ...@@ -87,28 +87,30 @@ void WinEDA_SchematicFrame::ReCreateHToolbar()
_( "Run pcbnew" ) ); _( "Run pcbnew" ) );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Zoom in" ), s_Schematic_Hokeys_Descr, HK_ZOOM_IN ); msg = AddHotkeyName( _( "Zoom in" ), s_Schematic_Hokeys_Descr, HK_ZOOM_IN, false );
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ), m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Zoom out" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom out" ), s_Schematic_Hokeys_Descr,
HK_ZOOM_OUT ); HK_ZOOM_OUT, false );
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, wxBitmap( zoom_out_xpm ), m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, wxBitmap( zoom_out_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Redraw view" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Redraw view" ), s_Schematic_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW, false );
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
wxBitmap( zoom_redraw_xpm ), msg ); wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Schematic_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom auto" ), s_Schematic_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ), m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, wxBitmap( zoom_auto_xpm ),
msg ); msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Find components and texts" ), s_Schematic_Hokeys_Descr,
HK_FIND_ITEM, false );
m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ), m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ),
_( "Find components and texts" ) ); msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
m_HToolBar->AddTool( ID_GET_NETLIST, wxEmptyString, wxBitmap( netlist_xpm ), m_HToolBar->AddTool( ID_GET_NETLIST, wxEmptyString, wxBitmap( netlist_xpm ),
......
...@@ -48,22 +48,22 @@ void WinEDA_ViewlibFrame::ReCreateHToolbar() ...@@ -48,22 +48,22 @@ void WinEDA_ViewlibFrame::ReCreateHToolbar()
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Zoom in" ), s_Viewlib_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom in" ), s_Viewlib_Hokeys_Descr,
HK_ZOOM_IN ); HK_ZOOM_IN, false );
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString,
wxBitmap( zoom_in_xpm ), msg ); wxBitmap( zoom_in_xpm ), msg );
msg = AddHotkeyName( _( "Zoom out" ), s_Viewlib_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom out" ), s_Viewlib_Hokeys_Descr,
HK_ZOOM_OUT ); HK_ZOOM_OUT, false );
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString,
wxBitmap( zoom_out_xpm ), msg ); wxBitmap( zoom_out_xpm ), msg );
msg = AddHotkeyName( _( "Redraw view" ), s_Viewlib_Hokeys_Descr, msg = AddHotkeyName( _( "Redraw view" ), s_Viewlib_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW, false );
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
wxBitmap( zoom_redraw_xpm ), msg ); wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Viewlib_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom auto" ), s_Viewlib_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
wxBitmap( zoom_auto_xpm ), msg ); wxBitmap( zoom_auto_xpm ), msg );
......
...@@ -64,12 +64,51 @@ extern int g_ConfigFileLocationChoice; ...@@ -64,12 +64,51 @@ extern int g_ConfigFileLocationChoice;
wxString ReturnHotkeyConfigFilePath( int choice ); wxString ReturnHotkeyConfigFilePath( int choice );
void AddHotkeyConfigMenu( wxMenu* menu ); void AddHotkeyConfigMenu( wxMenu* menu );
void HandleHotkeyConfigMenuSelection( WinEDA_DrawFrame* frame, int id ); void HandleHotkeyConfigMenuSelection( WinEDA_DrawFrame* frame, int id );
wxString ReturnKeyNameFromKeyCode( int keycode );
wxString ReturnKeyNameFromCommandId( Ki_HotkeyInfo** List, int CommandId ); /** function ReturnKeyNameFromKeyCode
wxString AddHotkeyName( const wxString& text, Ki_HotkeyInfo** List, int CommandId ); * return the key name from the key code
wxString AddHotkeyName( const wxString& text, * Only some wxWidgets key values are handled for function key ( see
struct Ki_HotkeyInfoSectionDescriptor* DescrList, * s_Hotkey_Name_List[] )
int CommandId ); * @param aKeycode = key code (ascii value, or wxWidgets value for function keys)
* @return the key name in a wxString
*/
wxString ReturnKeyNameFromKeyCode( int aKeycode );
/** function ReturnKeyNameFromCommandId
* return the key name from the Command id value ( m_Idcommand member value)
* @param aList = pointer to a Ki_HotkeyInfo list of commands
* @param aCommandId = Command Id value
* @return the key name in a wxString
*/
wxString ReturnKeyNameFromCommandId( Ki_HotkeyInfo** aList, int aCommandId );
/** function AddHotkeyName
* Add the key name from the Command id value ( m_Idcommand member value)
* @param aText = a wxString. returns aText + key name
* @param aList = pointer to a Ki_HotkeyInfo list of commands
* @param aCommandId = Command Id value
* @param aIsShortCut = true to add <tab><keyname> (active shortcuts in menus)
* = false to add <spaces><(keyname)>
* @return a wxString (aTest + key name) if key found or aText without modification
*/
wxString AddHotkeyName( const wxString& aText, Ki_HotkeyInfo** aList,
int aCommandId,
bool aIsShortCut = true);
/** function AddHotkeyName
* Add the key name from the Command id value ( m_Idcommand member value)
* @param aText = a wxString. returns aText + key name
* @param aList = pointer to a Ki_HotkeyInfoSectionDescriptor DescrList of commands
* @param aCommandId = Command Id value
* @param aIsShortCut = true to add <tab><keyname> (active shortcuts in menus)
* = false to add <spaces><(keyname)>
* @return a wxString (aTest + key name) if key found or aText without modification
*/
wxString AddHotkeyName( const wxString& aText,
struct Ki_HotkeyInfoSectionDescriptor* aDescrList,
int aCommandId,
bool aIsShortCut = true);
void DisplayHotkeyList( WinEDA_DrawFrame* frame, void DisplayHotkeyList( WinEDA_DrawFrame* frame,
struct Ki_HotkeyInfoSectionDescriptor* List ); struct Ki_HotkeyInfoSectionDescriptor* List );
Ki_HotkeyInfo* GetDescriptorFromHotkey( int key, Ki_HotkeyInfo** List ); Ki_HotkeyInfo* GetDescriptorFromHotkey( int key, Ki_HotkeyInfo** List );
......
No preview for this file type
...@@ -2,8 +2,8 @@ msgid "" ...@@ -2,8 +2,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: kicad\n" "Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-02-15 08:46+0100\n" "POT-Creation-Date: 2010-02-16 11:02+0100\n"
"PO-Revision-Date: 2010-02-15 09:19+0100\n" "PO-Revision-Date: 2010-02-16 11:04+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n" "Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
...@@ -744,12 +744,12 @@ msgstr "X Pos" ...@@ -744,12 +744,12 @@ msgstr "X Pos"
msgid "Y pos" msgid "Y pos"
msgstr "Y pos" msgstr "Y pos"
#: pcbnew/hotkeys.cpp:595 #: pcbnew/hotkeys.cpp:607
#, c-format #, c-format
msgid "Footprint %s found, but locked" msgid "Footprint %s found, but locked"
msgstr "Module %s trouvé, mais verrouillé" msgstr "Module %s trouvé, mais verrouillé"
#: pcbnew/hotkeys.cpp:789 #: pcbnew/hotkeys.cpp:801
msgid "Delete module?" msgid "Delete module?"
msgstr "Effacer Module?" msgstr "Effacer Module?"
...@@ -5942,8 +5942,8 @@ msgid "Supplier and ref" ...@@ -5942,8 +5942,8 @@ msgid "Supplier and ref"
msgstr "Fournisseur et réf." msgstr "Fournisseur et réf."
#: pcbnew/menubar_pcbframe.cpp:39 #: pcbnew/menubar_pcbframe.cpp:39
msgid "&New\tCtrl+N" msgid "&New"
msgstr "&Nouveau\tCtrl+N" msgstr "&Nouveau"
#: pcbnew/menubar_pcbframe.cpp:40 #: pcbnew/menubar_pcbframe.cpp:40
msgid "Clear current board and initialize a new one" msgid "Clear current board and initialize a new one"
...@@ -5982,8 +5982,8 @@ msgid "Save current board" ...@@ -5982,8 +5982,8 @@ msgid "Save current board"
msgstr "Sauver le C.I. actuel" msgstr "Sauver le C.I. actuel"
#: pcbnew/menubar_pcbframe.cpp:76 #: pcbnew/menubar_pcbframe.cpp:76
msgid "Save as...\tShift+Ctrl+S" msgid "Save as..."
msgstr "Sauver sous...\tCtrl S" msgstr "Sauver sous..."
#: pcbnew/menubar_pcbframe.cpp:77 #: pcbnew/menubar_pcbframe.cpp:77
msgid "Save the current board as.." msgid "Save the current board as.."
...@@ -6094,8 +6094,8 @@ msgid "Export board" ...@@ -6094,8 +6094,8 @@ msgid "Export board"
msgstr "Exporter le C.I." msgstr "Exporter le C.I."
#: pcbnew/menubar_pcbframe.cpp:189 #: pcbnew/menubar_pcbframe.cpp:189
msgid "&Print\tCtrl+P" msgid "&Print"
msgstr "Imprime&r\tCtrl+O" msgstr "&Imprimer"
#: pcbnew/menubar_pcbframe.cpp:190 #: pcbnew/menubar_pcbframe.cpp:190
msgid "Print pcb board" msgid "Print pcb board"
...@@ -6149,230 +6149,209 @@ msgstr "&Quitter" ...@@ -6149,230 +6149,209 @@ msgstr "&Quitter"
msgid "Quit PCBNew" msgid "Quit PCBNew"
msgstr "Quitter PCBnew" msgstr "Quitter PCBnew"
#: pcbnew/menubar_pcbframe.cpp:244 #: pcbnew/menubar_pcbframe.cpp:243
msgid "Undo" msgid "Undo"
msgstr "Undo" msgstr "Undo"
#: pcbnew/menubar_pcbframe.cpp:246 #: pcbnew/menubar_pcbframe.cpp:250
#, fuzzy
msgid "Undo\tCtrl+Z"
msgstr "&Ouvrir\tCtrl+O"
#: pcbnew/menubar_pcbframe.cpp:255
msgid "Redo" msgid "Redo"
msgstr "Redo" msgstr "Redo"
#: pcbnew/menubar_pcbframe.cpp:257 #: pcbnew/menubar_pcbframe.cpp:260
msgid "Redo\tShift+Ctrl+Z"
msgstr ""
#: pcbnew/menubar_pcbframe.cpp:269
msgid "&Find" msgid "&Find"
msgstr "&Chercher" msgstr "&Chercher"
#: pcbnew/menubar_pcbframe.cpp:271 #: pcbnew/menubar_pcbframe.cpp:262
msgid "Find\tCtrl+F"
msgstr "Chercher\tCtrl+F"
#: pcbnew/menubar_pcbframe.cpp:275
msgid "Find components and text in current loaded board" msgid "Find components and text in current loaded board"
msgstr "Recherche de composants et textes sur le circuit" msgstr "Recherche de composants et textes sur le circuit"
#: pcbnew/menubar_pcbframe.cpp:284 #: pcbnew/menubar_pcbframe.cpp:271
msgid "Global &Deletions" msgid "Global &Deletions"
msgstr "Effacements &Généraux" msgstr "Effacements &Généraux"
#: pcbnew/menubar_pcbframe.cpp:285 #: pcbnew/menubar_pcbframe.cpp:272
msgid "Delete tracks, modules, texts... on board" msgid "Delete tracks, modules, texts... on board"
msgstr "Effacer pistes, modules, textes... sur le C.I." msgstr "Effacer pistes, modules, textes... sur le C.I."
#: pcbnew/menubar_pcbframe.cpp:291 #: pcbnew/menubar_pcbframe.cpp:278
msgid "&Cleanup Tracks and Vias" msgid "&Cleanup Tracks and Vias"
msgstr "&Nettoyer Pistes et Vias" msgstr "&Nettoyer Pistes et Vias"
#: pcbnew/menubar_pcbframe.cpp:292 #: pcbnew/menubar_pcbframe.cpp:279
msgid "Clean stubs, vias, delete break points, or connect dangling tracks to pads and vias" msgid "Clean stubs, vias, delete break points, or connect dangling tracks to pads and vias"
msgstr "Nettoyer bouts de pistes, vias, points inutiles, ou connecter extrémités de pistes mal connectées au centre de pads ou vias" msgstr "Nettoyer bouts de pistes, vias, points inutiles, ou connecter extrémités de pistes mal connectées au centre de pads ou vias"
#: pcbnew/menubar_pcbframe.cpp:298 #: pcbnew/menubar_pcbframe.cpp:285
msgid "&Swap Layers" msgid "&Swap Layers"
msgstr "&Permutte Couches" msgstr "&Permutte Couches"
#: pcbnew/menubar_pcbframe.cpp:299 #: pcbnew/menubar_pcbframe.cpp:286
msgid "Swap tracks on copper layers or drawings on others layers" msgid "Swap tracks on copper layers or drawings on others layers"
msgstr "Permutation de couches" msgstr "Permutation de couches"
#: pcbnew/menubar_pcbframe.cpp:321 #: pcbnew/menubar_pcbframe.cpp:308
#: pcbnew/menubar_pcbframe.cpp:322 #: pcbnew/menubar_pcbframe.cpp:309
msgid "Zoom In" msgid "Zoom In"
msgstr "Zoom +" msgstr "Zoom +"
#: pcbnew/menubar_pcbframe.cpp:329 #: pcbnew/menubar_pcbframe.cpp:316
msgid "Zoom Out" msgid "Zoom Out"
msgstr "Zoom -" msgstr "Zoom -"
#: pcbnew/menubar_pcbframe.cpp:336 #: pcbnew/menubar_pcbframe.cpp:322
msgid "Fit on Screen" msgid "Fit on Screen"
msgstr "Ajuster à l'Ecran " msgstr "Ajuster à l'Ecran "
#: pcbnew/menubar_pcbframe.cpp:339 #: pcbnew/menubar_pcbframe.cpp:326
msgid "Fit on Screen\tCtrl+0"
msgstr ""
#: pcbnew/menubar_pcbframe.cpp:343
msgid "Zoom to fit the board on the screen" msgid "Zoom to fit the board on the screen"
msgstr "Zoom pour ajuster le circuit impriméà l'écran" msgstr "Zoom pour ajuster le circuit impriméà l'écran"
#: pcbnew/menubar_pcbframe.cpp:352 #: pcbnew/menubar_pcbframe.cpp:334
msgid "Redraw" msgid "Redraw"
msgstr "Redessin de l'écran" msgstr "Redessin de l'écran"
#: pcbnew/menubar_pcbframe.cpp:355 #: pcbnew/menubar_pcbframe.cpp:338
msgid "Redraw\tCtrl+R"
msgstr "Redessiner\tCtrl+R"
#: pcbnew/menubar_pcbframe.cpp:359
msgid "Redraw the screen of the board" msgid "Redraw the screen of the board"
msgstr "Redessiner l'écran du circuit imprimé" msgstr "Redessiner l'écran du circuit imprimé"
#: pcbnew/menubar_pcbframe.cpp:368 #: pcbnew/menubar_pcbframe.cpp:347
msgid "&List Nets" msgid "&List Nets"
msgstr "Liste Equipots" msgstr "Liste Equipots"
#: pcbnew/menubar_pcbframe.cpp:369 #: pcbnew/menubar_pcbframe.cpp:348
msgid "View a list of nets with names and id's" msgid "View a list of nets with names and id's"
msgstr "Lister les équipotentielles (noms et numéros d'identification)" msgstr "Lister les équipotentielles (noms et numéros d'identification)"
#: pcbnew/menubar_pcbframe.cpp:388 #: pcbnew/menubar_pcbframe.cpp:367
msgid "&Library" msgid "&Library"
msgstr "&Librairie" msgstr "&Librairie"
#: pcbnew/menubar_pcbframe.cpp:389 #: pcbnew/menubar_pcbframe.cpp:368
msgid "Setting libraries, directories and others..." msgid "Setting libraries, directories and others..."
msgstr "Sélectionner les librairies, répertoires et autres" msgstr "Sélectionner les librairies, répertoires et autres"
#: pcbnew/menubar_pcbframe.cpp:397 #: pcbnew/menubar_pcbframe.cpp:376
#: pcbnew/dialog_general_options.cpp:251 #: pcbnew/dialog_general_options.cpp:251
msgid "Hide &Layers Manager" msgid "Hide &Layers Manager"
msgstr "Cacher le &Gestionnaire de Couches" msgstr "Cacher le &Gestionnaire de Couches"
#: pcbnew/menubar_pcbframe.cpp:403 #: pcbnew/menubar_pcbframe.cpp:382
msgid "&General" msgid "&General"
msgstr "&Général " msgstr "&Général "
#: pcbnew/menubar_pcbframe.cpp:404 #: pcbnew/menubar_pcbframe.cpp:383
msgid "Select general options for PCBnew" msgid "Select general options for PCBnew"
msgstr " Sélection options générales pour PCBNEW" msgstr " Sélection options générales pour PCBNEW"
#: pcbnew/menubar_pcbframe.cpp:410 #: pcbnew/menubar_pcbframe.cpp:389
msgid "&Display" msgid "&Display"
msgstr "&Affichage" msgstr "&Affichage"
#: pcbnew/menubar_pcbframe.cpp:411 #: pcbnew/menubar_pcbframe.cpp:390
msgid "Select how items (pads, tracks texts ... ) are displayed" msgid "Select how items (pads, tracks texts ... ) are displayed"
msgstr "Sélectionner comment les éléments (pads, pistes, textes ...) sont affichés" msgstr "Sélectionner comment les éléments (pads, pistes, textes ...) sont affichés"
#: pcbnew/menubar_pcbframe.cpp:420 #: pcbnew/menubar_pcbframe.cpp:399
msgid "Adjust user grid dimensions" msgid "Adjust user grid dimensions"
msgstr "Ajuster taille grille utilisateur" msgstr "Ajuster taille grille utilisateur"
#: pcbnew/menubar_pcbframe.cpp:426 #: pcbnew/menubar_pcbframe.cpp:405
msgid "Texts and Drawings" msgid "Texts and Drawings"
msgstr "Textes et Tracés" msgstr "Textes et Tracés"
#: pcbnew/menubar_pcbframe.cpp:427 #: pcbnew/menubar_pcbframe.cpp:406
msgid "Adjust dimensions for texts and drawings" msgid "Adjust dimensions for texts and drawings"
msgstr "Ajuster dimensions pour textes et graphiques" msgstr "Ajuster dimensions pour textes et graphiques"
#: pcbnew/menubar_pcbframe.cpp:433 #: pcbnew/menubar_pcbframe.cpp:412
msgid "Adjust default pad characteristics" msgid "Adjust default pad characteristics"
msgstr "Ajuster les caractéristiques par défaut des pads" msgstr "Ajuster les caractéristiques par défaut des pads"
#: pcbnew/menubar_pcbframe.cpp:439 #: pcbnew/menubar_pcbframe.cpp:418
msgid "Pads Mask Clearance" msgid "Pads Mask Clearance"
msgstr "Marge Masque des Pads" msgstr "Marge Masque des Pads"
#: pcbnew/menubar_pcbframe.cpp:440 #: pcbnew/menubar_pcbframe.cpp:419
msgid "Adjust the global clearance between pads and the solder resist mask" msgid "Adjust the global clearance between pads and the solder resist mask"
msgstr "Ajuster la marge globale entre pads et le masque de vernis épargne" msgstr "Ajuster la marge globale entre pads et le masque de vernis épargne"
#: pcbnew/menubar_pcbframe.cpp:447 #: pcbnew/menubar_pcbframe.cpp:426
msgid "&Save" msgid "&Save"
msgstr "&Sauver" msgstr "&Sauver"
#: pcbnew/menubar_pcbframe.cpp:448 #: pcbnew/menubar_pcbframe.cpp:427
msgid "Save dimension preferences" msgid "Save dimension preferences"
msgstr "Sauver les préférences de dimension" msgstr "Sauver les préférences de dimension"
#: pcbnew/menubar_pcbframe.cpp:454 #: pcbnew/menubar_pcbframe.cpp:433
msgid "Di&mensions" msgid "Di&mensions"
msgstr "Di&mensions" msgstr "Di&mensions"
#: pcbnew/menubar_pcbframe.cpp:455 #: pcbnew/menubar_pcbframe.cpp:434
msgid "Global dimensions preferences" msgid "Global dimensions preferences"
msgstr "Préférences générales de dimensions" msgstr "Préférences générales de dimensions"
#: pcbnew/menubar_pcbframe.cpp:468 #: pcbnew/menubar_pcbframe.cpp:447
msgid "&Save Preferences" msgid "&Save Preferences"
msgstr "&Sauver Préférences" msgstr "&Sauver Préférences"
#: pcbnew/menubar_pcbframe.cpp:469 #: pcbnew/menubar_pcbframe.cpp:448
msgid "Save application preferences" msgid "Save application preferences"
msgstr "Sauver les préférences de l'application" msgstr "Sauver les préférences de l'application"
#: pcbnew/menubar_pcbframe.cpp:474 #: pcbnew/menubar_pcbframe.cpp:453
msgid "&Read Preferences" msgid "&Read Preferences"
msgstr "&Lire Préférences" msgstr "&Lire Préférences"
#: pcbnew/menubar_pcbframe.cpp:475 #: pcbnew/menubar_pcbframe.cpp:454
msgid "Read application preferences" msgid "Read application preferences"
msgstr "Lire les préférences de l'application" msgstr "Lire les préférences de l'application"
#: pcbnew/menubar_pcbframe.cpp:487 #: pcbnew/menubar_pcbframe.cpp:466
msgid "Design Rules" msgid "Design Rules"
msgstr "Règles de Conception" msgstr "Règles de Conception"
#: pcbnew/menubar_pcbframe.cpp:488 #: pcbnew/menubar_pcbframe.cpp:467
msgid "Open the design rules editor" msgid "Open the design rules editor"
msgstr "Ouvrir la fenêtre de dialogue de l'éditeur de règles de conception" msgstr "Ouvrir la fenêtre de dialogue de l'éditeur de règles de conception"
#: pcbnew/menubar_pcbframe.cpp:493 #: pcbnew/menubar_pcbframe.cpp:472
msgid "&Layers Setup" msgid "&Layers Setup"
msgstr "&Options Couches" msgstr "&Options Couches"
#: pcbnew/menubar_pcbframe.cpp:494 #: pcbnew/menubar_pcbframe.cpp:473
msgid "Enable and set layer properties" msgid "Enable and set layer properties"
msgstr "Activer les couches et ajuster leur propriétés" msgstr "Activer les couches et ajuster leur propriétés"
#: pcbnew/menubar_pcbframe.cpp:504 #: pcbnew/menubar_pcbframe.cpp:483
msgid "Open the PCBnew manual" msgid "Open the PCBnew manual"
msgstr "Ouvrir la documentation de PCPnew" msgstr "Ouvrir la documentation de PCPnew"
#: pcbnew/menubar_pcbframe.cpp:512 #: pcbnew/menubar_pcbframe.cpp:491
msgid "&About" msgid "&About"
msgstr "&Au Sujet de" msgstr "&Au Sujet de"
#: pcbnew/menubar_pcbframe.cpp:513 #: pcbnew/menubar_pcbframe.cpp:492
msgid "About PCBnew printed circuit board designer" msgid "About PCBnew printed circuit board designer"
msgstr "Au Sujet de PCBnew outil de conception de C.I." msgstr "Au Sujet de PCBnew outil de conception de C.I."
#: pcbnew/menubar_pcbframe.cpp:522 #: pcbnew/menubar_pcbframe.cpp:501
msgid "&File" msgid "&File"
msgstr "&Fichiers" msgstr "&Fichiers"
#: pcbnew/menubar_pcbframe.cpp:523 #: pcbnew/menubar_pcbframe.cpp:502
msgid "&Edit" msgid "&Edit"
msgstr "&Editer" msgstr "&Editer"
#: pcbnew/menubar_pcbframe.cpp:524 #: pcbnew/menubar_pcbframe.cpp:503
msgid "&View" msgid "&View"
msgstr "&Affichage" msgstr "&Affichage"
#: pcbnew/menubar_pcbframe.cpp:525 #: pcbnew/menubar_pcbframe.cpp:504
msgid "&Preferences" msgid "&Preferences"
msgstr "&Préférences" msgstr "&Préférences"
#: pcbnew/menubar_pcbframe.cpp:526 #: pcbnew/menubar_pcbframe.cpp:505
msgid "&Design Rules" msgid "&Design Rules"
msgstr "&Règles de Conception" msgstr "&Règles de Conception"
...@@ -8249,11 +8228,11 @@ msgstr "&Fermer" ...@@ -8249,11 +8228,11 @@ msgstr "&Fermer"
msgid "&Accept Offset" msgid "&Accept Offset"
msgstr "&Accepter Offset" msgstr "&Accepter Offset"
#: eeschema/hotkeys.cpp:344 #: eeschema/hotkeys.cpp:364
msgid "Add Component" msgid "Add Component"
msgstr "Ajout Composant" msgstr "Ajout Composant"
#: eeschema/hotkeys.cpp:369 #: eeschema/hotkeys.cpp:389
msgid "Add Wire" msgid "Add Wire"
msgstr "Ajouter Fils" msgstr "Ajouter Fils"
...@@ -8410,12 +8389,12 @@ msgid "Place a bus" ...@@ -8410,12 +8389,12 @@ msgid "Place a bus"
msgstr "Placer un bus" msgstr "Placer un bus"
#: eeschema/tool_sch.cpp:175 #: eeschema/tool_sch.cpp:175
#: eeschema/menubar.cpp:296 #: eeschema/menubar.cpp:289
msgid "Place a wire to bus entry" msgid "Place a wire to bus entry"
msgstr "Placer une Entrée de Bus (type fil vers bus)" msgstr "Placer une Entrée de Bus (type fil vers bus)"
#: eeschema/tool_sch.cpp:179 #: eeschema/tool_sch.cpp:179
#: eeschema/menubar.cpp:303 #: eeschema/menubar.cpp:296
msgid "Place a bus to bus entry" msgid "Place a bus to bus entry"
msgstr "Placer une Entrée de Bus (type bus vers bus)" msgstr "Placer une Entrée de Bus (type bus vers bus)"
...@@ -8424,7 +8403,7 @@ msgid "Place no connect flag" ...@@ -8424,7 +8403,7 @@ msgid "Place no connect flag"
msgstr "Placer symbole de non connexion" msgstr "Placer symbole de non connexion"
#: eeschema/tool_sch.cpp:188 #: eeschema/tool_sch.cpp:188
#: eeschema/menubar.cpp:315 #: eeschema/menubar.cpp:308
msgid "Place net name" msgid "Place net name"
msgstr "Place nom de net" msgstr "Place nom de net"
...@@ -8441,7 +8420,7 @@ msgid "Place a junction" ...@@ -8441,7 +8420,7 @@ msgid "Place a junction"
msgstr "Placer une jonction" msgstr "Placer une jonction"
#: eeschema/tool_sch.cpp:202 #: eeschema/tool_sch.cpp:202
#: eeschema/menubar.cpp:338 #: eeschema/menubar.cpp:331
msgid "Place a hierarchical label. This label will be seen as a pin sheet in the sheet symbol" msgid "Place a hierarchical label. This label will be seen as a pin sheet in the sheet symbol"
msgstr "Placer un label hiérachique. Ce label sera vu comme une pin dans la feuille mère symbole" msgstr "Placer un label hiérachique. Ce label sera vu comme une pin dans la feuille mère symbole"
...@@ -8855,6 +8834,10 @@ msgstr "Miroir Bloc ||" ...@@ -8855,6 +8834,10 @@ msgstr "Miroir Bloc ||"
msgid "Copy to Clipboard" msgid "Copy to Clipboard"
msgstr "Copie dans Presse papier" msgstr "Copie dans Presse papier"
#: eeschema/menubar.cpp:44
msgid "&New\tCtrl+N"
msgstr "&Nouveau\tCtrl+N"
#: eeschema/menubar.cpp:52 #: eeschema/menubar.cpp:52
msgid "Open an existing schematic project" msgid "Open an existing schematic project"
msgstr "Ouvrir un projet schématique existant" msgstr "Ouvrir un projet schématique existant"
...@@ -8880,17 +8863,16 @@ msgid "Save only current schematic sheet" ...@@ -8880,17 +8863,16 @@ msgid "Save only current schematic sheet"
msgstr "Sauver seulement la feuille active" msgstr "Sauver seulement la feuille active"
#: eeschema/menubar.cpp:82 #: eeschema/menubar.cpp:82
msgid "Save Current Sheet &as\tShift+Ctrl+S" msgid "Save Current Sheet &as"
msgstr "Sauver Feuille Courante &sous\tShift+Ctrl+S" msgstr "Sauver la Feuille &Courante sous"
#: eeschema/menubar.cpp:83 #: eeschema/menubar.cpp:83
msgid "Save current schematic sheet as..." msgid "Save current schematic sheet as..."
msgstr "Sauver la feuille active sous ..." msgstr "Sauver la feuille active sous ..."
#: eeschema/menubar.cpp:91 #: eeschema/menubar.cpp:91
#, fuzzy msgid "P&rint"
msgid "P&rint\tCtrl+P" msgstr "Imp&rimer"
msgstr "&Ouvrir\tCtrl+O"
#: eeschema/menubar.cpp:99 #: eeschema/menubar.cpp:99
msgid "Plot PostScript" msgid "Plot PostScript"
...@@ -8940,175 +8922,171 @@ msgstr "Tracer les feuilles schématiques en format HPGL, POSTSCRIPT ou SVG" ...@@ -8940,175 +8922,171 @@ msgstr "Tracer les feuilles schématiques en format HPGL, POSTSCRIPT ou SVG"
msgid "Quit EESchema" msgid "Quit EESchema"
msgstr "Quitter EESchema" msgstr "Quitter EESchema"
#: eeschema/menubar.cpp:184 #: eeschema/menubar.cpp:194
msgid "&Find\tCtrl+F"
msgstr "&Chercher\tCtrl+F"
#: eeschema/menubar.cpp:193
msgid "Backannotate" msgid "Backannotate"
msgstr "Rétro Annotation" msgstr "Rétro Annotation"
#: eeschema/menubar.cpp:194 #: eeschema/menubar.cpp:195
msgid "Back annotated footprint fields" msgid "Back annotated footprint fields"
msgstr "Rétroannotation des champs modules" msgstr "Rétroannotation des champs modules"
#: eeschema/menubar.cpp:240 #: eeschema/menubar.cpp:237
msgid "Fit the schematic sheet on the screen" msgid "Fit the schematic sheet on the screen"
msgstr "Ajuster la feuille de schéma à l'écran" msgstr "Ajuster la feuille de schéma à l'écran"
#: eeschema/menubar.cpp:256 #: eeschema/menubar.cpp:249
msgid "Redraw the schematic view" msgid "Redraw the schematic view"
msgstr "Redessin de l'écran" msgstr "Redessin de l'écran"
#: eeschema/menubar.cpp:270 #: eeschema/menubar.cpp:263
msgid "&Component" msgid "&Component"
msgstr "&Composant" msgstr "&Composant"
#: eeschema/menubar.cpp:271 #: eeschema/menubar.cpp:264
msgid "Place the component" msgid "Place the component"
msgstr "Placer le Composant" msgstr "Placer le Composant"
#: eeschema/menubar.cpp:276 #: eeschema/menubar.cpp:269
msgid "&Power port" msgid "&Power port"
msgstr "Power Symbole" msgstr "Power Symbole"
#: eeschema/menubar.cpp:277 #: eeschema/menubar.cpp:270
msgid "Place the power port" msgid "Place the power port"
msgstr "Placer le Symbole Power" msgstr "Placer le Symbole Power"
#: eeschema/menubar.cpp:282 #: eeschema/menubar.cpp:275
msgid "&Wire" msgid "&Wire"
msgstr "&Fil" msgstr "&Fil"
#: eeschema/menubar.cpp:283 #: eeschema/menubar.cpp:276
msgid "Place the wire" msgid "Place the wire"
msgstr "Place fil" msgstr "Place fil"
#: eeschema/menubar.cpp:288 #: eeschema/menubar.cpp:281
msgid "&Bus" msgid "&Bus"
msgstr "&Bus" msgstr "&Bus"
#: eeschema/menubar.cpp:289 #: eeschema/menubar.cpp:282
msgid "Place bus" msgid "Place bus"
msgstr "Place bus" msgstr "Place bus"
#: eeschema/menubar.cpp:295 #: eeschema/menubar.cpp:288
msgid "W&ire to bus entry" msgid "W&ire to bus entry"
msgstr "Entrées de bus (type fil vers bus)" msgstr "Entrées de bus (type fil vers bus)"
#: eeschema/menubar.cpp:302 #: eeschema/menubar.cpp:295
msgid "B&us to bus entry" msgid "B&us to bus entry"
msgstr "Entrées de bus (type bus vers bus)" msgstr "Entrées de bus (type bus vers bus)"
#: eeschema/menubar.cpp:308 #: eeschema/menubar.cpp:301
msgid "No connect flag" msgid "No connect flag"
msgstr "Symbole de Non Connexion" msgstr "Symbole de Non Connexion"
#: eeschema/menubar.cpp:309 #: eeschema/menubar.cpp:302
msgid "Place a no connect flag" msgid "Place a no connect flag"
msgstr "Placer un Symbole de Non Connexion" msgstr "Placer un Symbole de Non Connexion"
#: eeschema/menubar.cpp:314 #: eeschema/menubar.cpp:307
msgid "Net name" msgid "Net name"
msgstr "Net Name" msgstr "Net Name"
#: eeschema/menubar.cpp:320 #: eeschema/menubar.cpp:313
msgid "Global label" msgid "Global label"
msgstr "Label Global" msgstr "Label Global"
#: eeschema/menubar.cpp:321 #: eeschema/menubar.cpp:314
msgid "Place a global label. Warning: all global labels with the same name are connected in whole hierarchy" msgid "Place a global label. Warning: all global labels with the same name are connected in whole hierarchy"
msgstr "Placer un label global. Attention: tous les labels globaux avec le même nom sont connectés dans toute la hiérarchie" msgstr "Placer un label global. Attention: tous les labels globaux avec le même nom sont connectés dans toute la hiérarchie"
#: eeschema/menubar.cpp:327 #: eeschema/menubar.cpp:320
msgid "Junction" msgid "Junction"
msgstr "Jonction" msgstr "Jonction"
#: eeschema/menubar.cpp:328 #: eeschema/menubar.cpp:321
msgid "Place junction" msgid "Place junction"
msgstr "Place jonction" msgstr "Place jonction"
#: eeschema/menubar.cpp:337 #: eeschema/menubar.cpp:330
msgid "Hierarchical label" msgid "Hierarchical label"
msgstr "Label Hiérarchique" msgstr "Label Hiérarchique"
#: eeschema/menubar.cpp:345 #: eeschema/menubar.cpp:338
msgid "Hierarchical sheet" msgid "Hierarchical sheet"
msgstr "Feuille Hiérrachique" msgstr "Feuille Hiérrachique"
#: eeschema/menubar.cpp:346 #: eeschema/menubar.cpp:339
msgid "Create a hierarchical sheet" msgid "Create a hierarchical sheet"
msgstr "Créer une Feuille Hiérachique" msgstr "Créer une Feuille Hiérachique"
#: eeschema/menubar.cpp:352 #: eeschema/menubar.cpp:345
msgid "Import Hierarchical Label" msgid "Import Hierarchical Label"
msgstr "Importer Label Hiérarchique" msgstr "Importer Label Hiérarchique"
#: eeschema/menubar.cpp:353 #: eeschema/menubar.cpp:346
msgid "Place a pin sheet created by importing a hierarchical label from sheet" msgid "Place a pin sheet created by importing a hierarchical label from sheet"
msgstr "Placer une pin hiérarchique créée par importation d'un label hiérarchique de la feuille" msgstr "Placer une pin hiérarchique créée par importation d'un label hiérarchique de la feuille"
#: eeschema/menubar.cpp:360 #: eeschema/menubar.cpp:353
msgid "Add Hierarchical Pin to Sheet" msgid "Add Hierarchical Pin to Sheet"
msgstr "Ajouter Pins de Hiérarchie dans feuille" msgstr "Ajouter Pins de Hiérarchie dans feuille"
#: eeschema/menubar.cpp:361 #: eeschema/menubar.cpp:354
msgid "Place a hierarchical pin to sheet" msgid "Place a hierarchical pin to sheet"
msgstr "Addition de pins de hiérarchie dans les feuilles symboles de hiérarchie" msgstr "Addition de pins de hiérarchie dans les feuilles symboles de hiérarchie"
#: eeschema/menubar.cpp:371 #: eeschema/menubar.cpp:364
msgid "Graphic line or polygon" msgid "Graphic line or polygon"
msgstr "Ligne ou polygone graphique" msgstr "Ligne ou polygone graphique"
#: eeschema/menubar.cpp:372 #: eeschema/menubar.cpp:365
msgid "Place graphic lines or polygons" msgid "Place graphic lines or polygons"
msgstr "Placer lignes ou polygones graphiques" msgstr "Placer lignes ou polygones graphiques"
#: eeschema/menubar.cpp:379 #: eeschema/menubar.cpp:372
msgid "Graphic text" msgid "Graphic text"
msgstr "Texte graphique" msgstr "Texte graphique"
#: eeschema/menubar.cpp:380 #: eeschema/menubar.cpp:373
msgid "Place graphic text for comment" msgid "Place graphic text for comment"
msgstr "Placer textes graphiques en commentaire." msgstr "Placer textes graphiques en commentaire."
#: eeschema/menubar.cpp:394 #: eeschema/menubar.cpp:387
msgid "Library preferences" msgid "Library preferences"
msgstr "Préférences pour Librairie" msgstr "Préférences pour Librairie"
#: eeschema/menubar.cpp:399 #: eeschema/menubar.cpp:392
msgid "&Colors" msgid "&Colors"
msgstr "&Couleurs" msgstr "&Couleurs"
#: eeschema/menubar.cpp:400 #: eeschema/menubar.cpp:393
msgid "Color preferences" msgid "Color preferences"
msgstr "Préférences de couleurs" msgstr "Préférences de couleurs"
#: eeschema/menubar.cpp:405 #: eeschema/menubar.cpp:398
msgid "&Options" msgid "&Options"
msgstr "&Options" msgstr "&Options"
#: eeschema/menubar.cpp:406 #: eeschema/menubar.cpp:399
msgid "Eeschema general options and preferences" msgid "Eeschema general options and preferences"
msgstr "Options et préférences générales de Eeschema" msgstr "Options et préférences générales de Eeschema"
#: eeschema/menubar.cpp:420 #: eeschema/menubar.cpp:413
msgid "&Save preferences" msgid "&Save preferences"
msgstr "&Sauver Préférences" msgstr "&Sauver Préférences"
#: eeschema/menubar.cpp:426 #: eeschema/menubar.cpp:419
msgid "&Read preferences" msgid "&Read preferences"
msgstr "&Lire Préférences" msgstr "&Lire Préférences"
#: eeschema/menubar.cpp:438 #: eeschema/menubar.cpp:431
msgid "Open the eeschema manual" msgid "Open the eeschema manual"
msgstr "Ouvrir la documentation de eeschema" msgstr "Ouvrir la documentation de eeschema"
#: eeschema/menubar.cpp:446 #: eeschema/menubar.cpp:439
msgid "About eeschema schematic designer" msgid "About eeschema schematic designer"
msgstr "Au sujet de Eeschema (outil de conception schématique)" msgstr "Au sujet de Eeschema (outil de conception schématique)"
#: eeschema/menubar.cpp:459 #: eeschema/menubar.cpp:452
msgid "&Place" msgid "&Place"
msgstr "&Placer" msgstr "&Placer"
...@@ -9869,11 +9847,11 @@ msgstr "Conflit en librairie <%s>" ...@@ -9869,11 +9847,11 @@ msgstr "Conflit en librairie <%s>"
#: eeschema/class_library.cpp:274 #: eeschema/class_library.cpp:274
#, c-format #, c-format
msgid "and appears in alias list of current component <%s>." msgid "and appears in alias list of current component <%s>."
msgstr "" msgstr "et apparait sur la liste d'alias du composant courant <%s>."
#: eeschema/class_library.cpp:277 #: eeschema/class_library.cpp:277
msgid "All old aliases will be removed. Continue ?" msgid "All old aliases will be removed. Continue ?"
msgstr "" msgstr "Tous les anciens alias vont être supprimés. Continuer ?"
#: eeschema/class_library.cpp:531 #: eeschema/class_library.cpp:531
msgid "The component library file name is not set." msgid "The component library file name is not set."
...@@ -10350,67 +10328,67 @@ msgstr "" ...@@ -10350,67 +10328,67 @@ msgstr ""
"(Comme sm* pour autoriser tous les noms d'empreintes commençant par sm)." "(Comme sm* pour autoriser tous les noms d'empreintes commençant par sm)."
#: eeschema/dialog_edit_component_in_lib_base.cpp:228 #: eeschema/dialog_edit_component_in_lib_base.cpp:228
#: eeschema/edit_component_in_lib.cpp:476 #: eeschema/edit_component_in_lib.cpp:416
msgid "Footprint Filter" msgid "Footprint Filter"
msgstr "Filtrage Modules" msgstr "Filtrage Modules"
#: eeschema/edit_component_in_lib.cpp:145 #: eeschema/edit_component_in_lib.cpp:85
#, c-format #, c-format
msgid "Alias <%s> not found for component <%s> in library <%s>." msgid "Alias <%s> not found for component <%s> in library <%s>."
msgstr "Alias <%s> non trouvé pour le component <%s> en librairie <%s>." msgstr "Alias <%s> non trouvé pour le component <%s> en librairie <%s>."
#: eeschema/edit_component_in_lib.cpp:150 #: eeschema/edit_component_in_lib.cpp:90
msgid "Component Library Error" msgid "Component Library Error"
msgstr "Erreur en Librairie de Composanr" msgstr "Erreur en Librairie de Composanr"
#: eeschema/edit_component_in_lib.cpp:266 #: eeschema/edit_component_in_lib.cpp:206
#: eeschema/edit_component_in_lib.cpp:336 #: eeschema/edit_component_in_lib.cpp:276
#, c-format #, c-format
msgid "Alias <%s> cannot be removed while it is being edited!" msgid "Alias <%s> cannot be removed while it is being edited!"
msgstr "L'alias <%s> ne peut être supprimé tant qu'il est en cours d'édition!" msgstr "L'alias <%s> ne peut être supprimé tant qu'il est en cours d'édition!"
#: eeschema/edit_component_in_lib.cpp:275 #: eeschema/edit_component_in_lib.cpp:215
msgid "Remove all aliases from list?" msgid "Remove all aliases from list?"
msgstr "Supprimer tous les alias de la liste?" msgstr "Supprimer tous les alias de la liste?"
#: eeschema/edit_component_in_lib.cpp:300 #: eeschema/edit_component_in_lib.cpp:240
msgid "New alias:" msgid "New alias:"
msgstr "Nouvel alias" msgstr "Nouvel alias"
#: eeschema/edit_component_in_lib.cpp:301 #: eeschema/edit_component_in_lib.cpp:241
msgid "Component Alias" msgid "Component Alias"
msgstr "Alias de Composant" msgstr "Alias de Composant"
#: eeschema/edit_component_in_lib.cpp:311 #: eeschema/edit_component_in_lib.cpp:251
#, c-format #, c-format
msgid "Alias or component name <%s> already exists in library <%s>." msgid "Alias or component name <%s> already exists in library <%s>."
msgstr "Alias ou nom de composant <%s> déjà existant en librairie <%s>." msgstr "Alias ou nom de composant <%s> déjà existant en librairie <%s>."
#: eeschema/edit_component_in_lib.cpp:365 #: eeschema/edit_component_in_lib.cpp:305
msgid "Delete extra parts from component?" msgid "Delete extra parts from component?"
msgstr "Supprimer les parts supplémentaires du composant?" msgstr "Supprimer les parts supplémentaires du composant?"
#: eeschema/edit_component_in_lib.cpp:386 #: eeschema/edit_component_in_lib.cpp:326
msgid "Add new pins for alternate body style ( DeMorgan ) to component?" msgid "Add new pins for alternate body style ( DeMorgan ) to component?"
msgstr "Ajouter les nouvelles pins pour la forme alternative (DeMorgan) au composant?" msgstr "Ajouter les nouvelles pins pour la forme alternative (DeMorgan) au composant?"
#: eeschema/edit_component_in_lib.cpp:393 #: eeschema/edit_component_in_lib.cpp:333
msgid "Delete alternate body style (DeMorgan) draw items from component?" msgid "Delete alternate body style (DeMorgan) draw items from component?"
msgstr "Supprimer les éléments de la représentation alternative (DeMorgan) du composant?" msgstr "Supprimer les éléments de la représentation alternative (DeMorgan) du composant?"
#: eeschema/edit_component_in_lib.cpp:417 #: eeschema/edit_component_in_lib.cpp:357
msgid "Doc Files" msgid "Doc Files"
msgstr "Fichiers de Doc" msgstr "Fichiers de Doc"
#: eeschema/edit_component_in_lib.cpp:453 #: eeschema/edit_component_in_lib.cpp:393
msgid "Ok to Delete FootprintFilter LIST" msgid "Ok to Delete FootprintFilter LIST"
msgstr "Ok pour effacer la LISTE des filtres de modules" msgstr "Ok pour effacer la LISTE des filtres de modules"
#: eeschema/edit_component_in_lib.cpp:476 #: eeschema/edit_component_in_lib.cpp:416
msgid "Add Footprint Filter" msgid "Add Footprint Filter"
msgstr "Ajouter Filtre Modules" msgstr "Ajouter Filtre Modules"
#: eeschema/edit_component_in_lib.cpp:489 #: eeschema/edit_component_in_lib.cpp:429
#, c-format #, c-format
msgid "Foot print filter <%s> is already defined." msgid "Foot print filter <%s> is already defined."
msgstr "Filtre de module <%s> déjà défini." msgstr "Filtre de module <%s> déjà défini."
...@@ -10489,15 +10467,15 @@ msgstr "&Nom de la feuille:" ...@@ -10489,15 +10467,15 @@ msgstr "&Nom de la feuille:"
msgid "&Text size:" msgid "&Text size:"
msgstr "&Taille du texte:" msgstr "&Taille du texte:"
#: eeschema/dialog_edit_component_in_lib.cpp:51 #: eeschema/dialog_edit_component_in_lib.cpp:52
msgid "Library Component Properties" msgid "Library Component Properties"
msgstr "Propriétés du Composant Librairie" msgstr "Propriétés du Composant Librairie"
#: eeschema/dialog_edit_component_in_lib.cpp:55 #: eeschema/dialog_edit_component_in_lib.cpp:56
msgid "Properties for " msgid "Properties for "
msgstr "Propriétés pour " msgstr "Propriétés pour "
#: eeschema/dialog_edit_component_in_lib.cpp:59 #: eeschema/dialog_edit_component_in_lib.cpp:60
msgid " (alias of " msgid " (alias of "
msgstr " (alias de " msgstr " (alias de "
...@@ -11986,10 +11964,6 @@ msgstr "Sauver Couches sous..." ...@@ -11986,10 +11964,6 @@ msgstr "Sauver Couches sous..."
msgid "Save current layers as.." msgid "Save current layers as.."
msgstr "Sauver couches courantes sous.." msgstr "Sauver couches courantes sous.."
#: gerbview/tool_gerber.cpp:67
msgid "P&rint"
msgstr "Imp&rimer"
#: gerbview/tool_gerber.cpp:67 #: gerbview/tool_gerber.cpp:67
msgid "Print gerber" msgid "Print gerber"
msgstr "Imprimer gerber" msgstr "Imprimer gerber"
...@@ -12184,7 +12158,7 @@ msgstr "DCodes" ...@@ -12184,7 +12158,7 @@ msgstr "DCodes"
#: gerbview/class_gerbview_layer_widget.cpp:65 #: gerbview/class_gerbview_layer_widget.cpp:65
msgid "Show DCodes identification" msgid "Show DCodes identification"
msgstr "" msgstr "Afficher numéros de D-Code"
#: gerbview/class_gerbview_layer_widget.cpp:118 #: gerbview/class_gerbview_layer_widget.cpp:118
msgid "Show All Layers" msgid "Show All Layers"
...@@ -13054,6 +13028,27 @@ msgstr "Options d'Affichage" ...@@ -13054,6 +13028,27 @@ msgstr "Options d'Affichage"
msgid "Page Settings" msgid "Page Settings"
msgstr "Ajustage opt Page" msgstr "Ajustage opt Page"
#~ msgid "Save as...\tShift+Ctrl+S"
#~ msgstr "Sauver sous...\tCtrl S"
#~ msgid "&Print\tCtrl+P"
#~ msgstr "Imprime&r\tCtrl+P"
#~ msgid "Save Current Sheet &as\tShift+Ctrl+S"
#~ msgstr "Sauver Feuille Courante &sous\tShift+Ctrl+S"
#, fuzzy
#~ msgid "P&rint\tCtrl+P"
#~ msgstr "&Ouvrir\tCtrl+O"
#~ msgid "&Find\tCtrl+F"
#~ msgstr "&Chercher\tCtrl+F"
#, fuzzy
#~ msgid "Undo\tCtrl+Z"
#~ msgstr "&Ouvrir\tCtrl+O"
#~ msgid "Find\tCtrl+F"
#~ msgstr "Chercher\tCtrl+F"
#~ msgid "Redraw\tCtrl+R"
#~ msgstr "Redessiner\tCtrl+R"
#, fuzzy #, fuzzy
#~ msgid "Zoom In\tCtrl++" #~ msgid "Zoom In\tCtrl++"
#~ msgstr "Zoom +" #~ msgstr "Zoom +"
...@@ -13249,10 +13244,6 @@ msgstr "Ajustage opt Page" ...@@ -13249,10 +13244,6 @@ msgstr "Ajustage opt Page"
#~ msgstr "&Chercher" #~ msgstr "&Chercher"
#~ msgid "&Tracks" #~ msgid "&Tracks"
#~ msgstr "&Pistes" #~ msgstr "&Pistes"
#~ msgid "&New"
#~ msgstr "&Nouveau"
#~ msgid "Save as..."
#~ msgstr "Sauver sous..."
#~ msgid "Show board in the 3D viewer" #~ msgid "Show board in the 3D viewer"
#~ msgstr "Visualisation du circuit en 3D" #~ msgstr "Visualisation du circuit en 3D"
#~ msgid "Show No Copper Layers" #~ msgid "Show No Copper Layers"
......
...@@ -87,9 +87,21 @@ static Ki_HotkeyInfo HkDelete( wxT( "Delete Track or Footprint" ), HK_DELETE, ...@@ -87,9 +87,21 @@ static Ki_HotkeyInfo HkDelete( wxT( "Delete Track or Footprint" ), HK_DELETE,
static Ki_HotkeyInfo HkResetLocalCoord( wxT( "Reset local coord." ), static Ki_HotkeyInfo HkResetLocalCoord( wxT( "Reset local coord." ),
HK_RESET_LOCAL_COORD, ' ' ); HK_RESET_LOCAL_COORD, ' ' );
/* Fit on Screen */
#if !defined( __WXMAC__ )
static Ki_HotkeyInfo HkZoomAuto( wxT( "Zoom Auto" ), HK_ZOOM_AUTO, WXK_HOME ); static Ki_HotkeyInfo HkZoomAuto( wxT( "Zoom Auto" ), HK_ZOOM_AUTO, WXK_HOME );
#else
static Ki_HotkeyInfo HkZoomAuto( wxT( "Zoom Auto" ), HK_ZOOM_AUTO, GR_KB_CTRL + '0' );
#endif
static Ki_HotkeyInfo HkZoomCenter( wxT( "Zoom Center" ), HK_ZOOM_CENTER, WXK_F4 ); static Ki_HotkeyInfo HkZoomCenter( wxT( "Zoom Center" ), HK_ZOOM_CENTER, WXK_F4 );
/* Refresh Screen */
#if !defined( __WXMAC__ )
static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, WXK_F3 ); static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, WXK_F3 );
#else
static Ki_HotkeyInfo HkZoomRedraw( wxT( "Zoom Redraw" ), HK_ZOOM_REDRAW, GR_KB_CTRL + 'R' );
#endif
/* Zoom In */ /* Zoom In */
#if !defined( __WXMAC__ ) #if !defined( __WXMAC__ )
......
...@@ -36,7 +36,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -36,7 +36,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
wxMenu* filesMenu = new wxMenu; wxMenu* filesMenu = new wxMenu;
/* New Board */ /* New Board */
item = new wxMenuItem( filesMenu, ID_NEW_BOARD, _( "&New\tCtrl+N" ), item = new wxMenuItem( filesMenu, ID_NEW_BOARD, _( "&New" ),
_( "Clear current board and initialize a new one" ) ); _( "Clear current board and initialize a new one" ) );
item->SetBitmap( new_xpm ); item->SetBitmap( new_xpm );
filesMenu->Append( item ); filesMenu->Append( item );
...@@ -73,7 +73,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -73,7 +73,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
/* Save As */ /* Save As */
item = new wxMenuItem( filesMenu, ID_SAVE_BOARD_AS, item = new wxMenuItem( filesMenu, ID_SAVE_BOARD_AS,
_( "Save as...\tShift+Ctrl+S" ), _( "Save as..." ),
_( "Save the current board as.." ) ); _( "Save the current board as.." ) );
item->SetBitmap( save_as_xpm ); item->SetBitmap( save_as_xpm );
filesMenu->Append( item ); filesMenu->Append( item );
...@@ -186,7 +186,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -186,7 +186,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
filesMenu->AppendSeparator(); filesMenu->AppendSeparator();
/* Print */ /* Print */
item = new wxMenuItem( filesMenu, ID_GEN_PRINT, _( "&Print\tCtrl+P" ), item = new wxMenuItem( filesMenu, ID_GEN_PRINT, _( "&Print" ),
_( "Print pcb board" ) ); _( "Print pcb board" ) );
item->SetBitmap( print_button ); item->SetBitmap( print_button );
filesMenu->Append( item ); filesMenu->Append( item );
...@@ -240,22 +240,14 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -240,22 +240,14 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
wxMenu* editMenu = new wxMenu; wxMenu* editMenu = new wxMenu;
/* Undo */ /* Undo */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Undo" ), s_Pcbnew_Editor_Hokeys_Descr, HK_UNDO ); text = AddHotkeyName( _( "Undo" ), s_Pcbnew_Editor_Hokeys_Descr, HK_UNDO );
#else
text = _( "Undo\tCtrl+Z" );
#endif
item = new wxMenuItem( editMenu, wxID_UNDO, text, item = new wxMenuItem( editMenu, wxID_UNDO, text,
_( "Undo last edition" ), wxITEM_NORMAL ); _( "Undo last edition" ), wxITEM_NORMAL );
item->SetBitmap( undo_xpm ); item->SetBitmap( undo_xpm );
editMenu->Append( item ); editMenu->Append( item );
/* Redo */ /* Redo */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Redo" ), s_Pcbnew_Editor_Hokeys_Descr, HK_REDO ); text = AddHotkeyName( _( "Redo" ), s_Pcbnew_Editor_Hokeys_Descr, HK_REDO );
#else
text = _( "Redo\tShift+Ctrl+Z" );
#endif
item = new wxMenuItem( editMenu, wxID_REDO, text, item = new wxMenuItem( editMenu, wxID_REDO, text,
_( "Redo the last undo command" ), wxITEM_NORMAL ); _( "Redo the last undo command" ), wxITEM_NORMAL );
item->SetBitmap( redo_xpm ); item->SetBitmap( redo_xpm );
...@@ -265,12 +257,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -265,12 +257,7 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
editMenu->AppendSeparator(); editMenu->AppendSeparator();
/* Find */ /* Find */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "&Find" ), s_Pcbnew_Editor_Hokeys_Descr, HK_FIND_ITEM ); text = AddHotkeyName( _( "&Find" ), s_Pcbnew_Editor_Hokeys_Descr, HK_FIND_ITEM );
#else
text = _( "Find\tCtrl+F" );
#endif
item = new wxMenuItem( editMenu, ID_FIND_ITEMS, text, item = new wxMenuItem( editMenu, ID_FIND_ITEMS, text,
_( "Find components and text in current loaded board" ) ); _( "Find components and text in current loaded board" ) );
item->SetBitmap( find_xpm ); item->SetBitmap( find_xpm );
...@@ -332,12 +319,8 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -332,12 +319,8 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
viewMenu->Append( item ); viewMenu->Append( item );
/* Fit on Screen */ /* Fit on Screen */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Fit on Screen" ), s_Pcbnew_Editor_Hokeys_Descr, text = AddHotkeyName( _( "Fit on Screen" ), s_Pcbnew_Editor_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO );
#else
text = _( "Fit on Screen\tCtrl+0" );
#endif
item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text, item = new wxMenuItem( viewMenu, ID_ZOOM_PAGE, text,
_( "Zoom to fit the board on the screen" ), _( "Zoom to fit the board on the screen" ),
...@@ -348,12 +331,8 @@ void WinEDA_PcbFrame::ReCreateMenuBar() ...@@ -348,12 +331,8 @@ void WinEDA_PcbFrame::ReCreateMenuBar()
viewMenu->AppendSeparator(); viewMenu->AppendSeparator();
/* Redraw view */ /* Redraw view */
#if !defined( __WXMAC__)
text = AddHotkeyName( _( "Redraw" ), s_Pcbnew_Editor_Hokeys_Descr, text = AddHotkeyName( _( "Redraw" ), s_Pcbnew_Editor_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW );
#else
text = _( "Redraw\tCtrl+R" );
#endif
item = new wxMenuItem( viewMenu, ID_ZOOM_REDRAW, text, item = new wxMenuItem( viewMenu, ID_ZOOM_REDRAW, text,
_( "Redraw the screen of the board" ), _( "Redraw the screen of the board" ),
......
...@@ -101,22 +101,22 @@ void WinEDA_ModuleEditFrame::ReCreateHToolbar() ...@@ -101,22 +101,22 @@ void WinEDA_ModuleEditFrame::ReCreateHToolbar()
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Zoom in" ), s_Module_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom in" ), s_Module_Editor_Hokeys_Descr,
HK_ZOOM_IN ); HK_ZOOM_IN, false );
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString,
wxBitmap( zoom_in_xpm ), msg ); wxBitmap( zoom_in_xpm ), msg );
msg = AddHotkeyName( _( "Zoom out" ), s_Module_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom out" ), s_Module_Editor_Hokeys_Descr,
HK_ZOOM_OUT ); HK_ZOOM_OUT, false );
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString,
wxBitmap( zoom_out_xpm ), msg ); wxBitmap( zoom_out_xpm ), msg );
msg = AddHotkeyName( _( "Redraw view" ), s_Module_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Redraw view" ), s_Module_Editor_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW, false );
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
wxBitmap( zoom_redraw_xpm ), msg ); wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Module_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom auto" ), s_Module_Editor_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
wxBitmap( zoom_auto_xpm ), msg ); wxBitmap( zoom_auto_xpm ), msg );
......
...@@ -236,29 +236,29 @@ void WinEDA_PcbFrame::ReCreateHToolbar() ...@@ -236,29 +236,29 @@ void WinEDA_PcbFrame::ReCreateHToolbar()
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Zoom in" ), s_Board_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom in" ), s_Board_Editor_Hokeys_Descr,
HK_ZOOM_IN ); HK_ZOOM_IN, false );
m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ), m_HToolBar->AddTool( ID_ZOOM_IN, wxEmptyString, wxBitmap( zoom_in_xpm ),
msg ); msg );
msg = AddHotkeyName( _( "Zoom out" ), s_Board_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom out" ), s_Board_Editor_Hokeys_Descr,
HK_ZOOM_OUT ); HK_ZOOM_OUT, false );
m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_OUT, wxEmptyString,
wxBitmap( zoom_out_xpm ), msg ); wxBitmap( zoom_out_xpm ), msg );
msg = AddHotkeyName( _( "Redraw view" ), s_Board_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Redraw view" ), s_Board_Editor_Hokeys_Descr,
HK_ZOOM_REDRAW ); HK_ZOOM_REDRAW, false );
m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_REDRAW, wxEmptyString,
wxBitmap( zoom_redraw_xpm ), msg ); wxBitmap( zoom_redraw_xpm ), msg );
msg = AddHotkeyName( _( "Zoom auto" ), s_Board_Editor_Hokeys_Descr, msg = AddHotkeyName( _( "Zoom auto" ), s_Board_Editor_Hokeys_Descr,
HK_ZOOM_AUTO ); HK_ZOOM_AUTO, false );
m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString, m_HToolBar->AddTool( ID_ZOOM_PAGE, wxEmptyString,
wxBitmap( zoom_auto_xpm ), msg ); wxBitmap( zoom_auto_xpm ), msg );
m_HToolBar->AddSeparator(); m_HToolBar->AddSeparator();
msg = AddHotkeyName( _( "Find components and texts" ), msg = AddHotkeyName( _( "Find components and texts" ),
s_Board_Editor_Hokeys_Descr, s_Board_Editor_Hokeys_Descr,
HK_FIND_ITEM ); HK_FIND_ITEM, false );
m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ), m_HToolBar->AddTool( ID_FIND_ITEMS, wxEmptyString, wxBitmap( find_xpm ),
msg ); msg );
...@@ -740,14 +740,10 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent ) ...@@ -740,14 +740,10 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent )
if( g_TabOneLayerMask[layer] & layer_mask ) if( g_TabOneLayerMask[layer] & layer_mask )
{ {
wxString msg = GetBoard()->GetLayerName( layer ); wxString msg = GetBoard()->GetLayerName( layer );
msg << wxT(" ");
msg = AddHotkeyName( msg, s_Board_Editor_Hokeys_Descr, msg = AddHotkeyName( msg, s_Board_Editor_Hokeys_Descr,
HK_SwitchLayer[layer] ); HK_SwitchLayer[layer], false );
/* we are using tabs in AddHotkeyName message.
* this is not handled by m_SelLayerBox.
* so we replace them by 3 spaces
*/
msg.Replace( wxT( "\t"), wxT( " " ) );
m_SelLayerBox->Append( msg ); m_SelLayerBox->Append( msg );
//D(printf("appending layername=%s, ndx=%d, layer=%d\n", CONV_TO_UTF8(msg), listNdx, layer );) //D(printf("appending layername=%s, ndx=%d, layer=%d\n", CONV_TO_UTF8(msg), listNdx, layer );)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment