libedit: Make context menu follow context
This commit is contained in:
parent
ed79ef8feb
commit
7bdb98f961
|
@ -370,12 +370,12 @@ TOOL_ACTION ACTIONS::refreshPreview( "common.Control.refreshPreview",
|
||||||
|
|
||||||
TOOL_ACTION ACTIONS::pinLibrary( "common.Control.pinLibrary",
|
TOOL_ACTION ACTIONS::pinLibrary( "common.Control.pinLibrary",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Pin Library" ), "Keep the library at the top of the list",
|
_( "Pin" ), "Keep the library at the top of the list",
|
||||||
flag_xpm );
|
flag_xpm );
|
||||||
|
|
||||||
TOOL_ACTION ACTIONS::unpinLibrary( "common.Control.unpinLibrary",
|
TOOL_ACTION ACTIONS::unpinLibrary( "common.Control.unpinLibrary",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Unpin Library" ), "No longer keep the library at the top of the list",
|
_( "Unpin" ), "No longer keep the library at the top of the list",
|
||||||
flag_remove_xpm );
|
flag_remove_xpm );
|
||||||
|
|
||||||
TOOL_ACTION ACTIONS::panUp( "common.Control.panUp",
|
TOOL_ACTION ACTIONS::panUp( "common.Control.panUp",
|
||||||
|
|
|
@ -113,27 +113,27 @@ TOOL_ACTION EE_ACTIONS::newSymbol( "eeschema.SymbolLibraryControl.newSymbol",
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::editSymbol( "eeschema.SymbolLibraryControl.editSymbol",
|
TOOL_ACTION EE_ACTIONS::editSymbol( "eeschema.SymbolLibraryControl.editSymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Edit Symbol" ), _( "Show selected symbol on editor canvas" ),
|
_( "Edit" ), _( "Show selected symbol on editor canvas" ),
|
||||||
edit_xpm );
|
edit_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::duplicateSymbol( "eeschema.SymbolLibraryControl.duplicateSymbol",
|
TOOL_ACTION EE_ACTIONS::duplicateSymbol( "eeschema.SymbolLibraryControl.duplicateSymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Duplicate Symbol" ), _( "Make a copy of the selected symbol" ),
|
_( "Duplicate" ), _( "Make a copy of the selected symbol" ),
|
||||||
duplicate_xpm );
|
duplicate_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::deleteSymbol( "eeschema.SymbolLibraryControl.deleteSymbol",
|
TOOL_ACTION EE_ACTIONS::deleteSymbol( "eeschema.SymbolLibraryControl.deleteSymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Delete Symbol" ), _( "Remove the selected symbol from its library" ),
|
_( "Delete" ), _( "Remove the selected symbol from its library" ),
|
||||||
delete_xpm );
|
delete_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::cutSymbol( "eeschema.SymbolLibraryControl.cutSymbol",
|
TOOL_ACTION EE_ACTIONS::cutSymbol( "eeschema.SymbolLibraryControl.cutSymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Cut Symbol" ), "",
|
_( "Cut" ), "",
|
||||||
cut_xpm );
|
cut_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::copySymbol( "eeschema.SymbolLibraryControl.copySymbol",
|
TOOL_ACTION EE_ACTIONS::copySymbol( "eeschema.SymbolLibraryControl.copySymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Copy Symbol" ), "",
|
_( "Copy" ), "",
|
||||||
copy_xpm );
|
copy_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::pasteSymbol( "eeschema.SymbolLibraryControl.pasteSymbol",
|
TOOL_ACTION EE_ACTIONS::pasteSymbol( "eeschema.SymbolLibraryControl.pasteSymbol",
|
||||||
|
@ -148,7 +148,7 @@ TOOL_ACTION EE_ACTIONS::importSymbol( "eeschema.SymbolLibraryControl.importSymbo
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::exportSymbol( "eeschema.SymbolLibraryControl.exportSymbol",
|
TOOL_ACTION EE_ACTIONS::exportSymbol( "eeschema.SymbolLibraryControl.exportSymbol",
|
||||||
AS_GLOBAL, 0, "",
|
AS_GLOBAL, 0, "",
|
||||||
_( "Export Symbol..." ), _( "Export a symbol to a new library file" ),
|
_( "Export..." ), _( "Export a symbol to a new library file" ),
|
||||||
export_part_xpm );
|
export_part_xpm );
|
||||||
|
|
||||||
TOOL_ACTION EE_ACTIONS::addSymbolToSchematic( "eeschema.SymbolLibraryControl.addSymbolToSchematic",
|
TOOL_ACTION EE_ACTIONS::addSymbolToSchematic( "eeschema.SymbolLibraryControl.addSymbolToSchematic",
|
||||||
|
|
|
@ -68,14 +68,12 @@ bool LIB_CONTROL::Init()
|
||||||
ctxMenu.AddItem( ACTIONS::unpinLibrary, pinnedLibSelectedCondition );
|
ctxMenu.AddItem( ACTIONS::unpinLibrary, pinnedLibSelectedCondition );
|
||||||
ctxMenu.AddSeparator();
|
ctxMenu.AddSeparator();
|
||||||
|
|
||||||
ctxMenu.AddItem( ACTIONS::newLibrary, SELECTION_CONDITIONS::ShowAlways );
|
|
||||||
ctxMenu.AddItem( ACTIONS::addLibrary, SELECTION_CONDITIONS::ShowAlways );
|
|
||||||
ctxMenu.AddItem( ACTIONS::save, libSelectedCondition );
|
ctxMenu.AddItem( ACTIONS::save, libSelectedCondition );
|
||||||
ctxMenu.AddItem( ACTIONS::saveAs, libSelectedCondition );
|
ctxMenu.AddItem( ACTIONS::saveAs, libSelectedCondition );
|
||||||
ctxMenu.AddItem( ACTIONS::revert, libSelectedCondition );
|
ctxMenu.AddItem( ACTIONS::revert, libSelectedCondition );
|
||||||
|
|
||||||
ctxMenu.AddSeparator();
|
ctxMenu.AddSeparator();
|
||||||
ctxMenu.AddItem( EE_ACTIONS::newSymbol, SELECTION_CONDITIONS::ShowAlways );
|
ctxMenu.AddItem( EE_ACTIONS::newSymbol, libSelectedCondition );
|
||||||
ctxMenu.AddItem( EE_ACTIONS::editSymbol, symbolSelectedCondition );
|
ctxMenu.AddItem( EE_ACTIONS::editSymbol, symbolSelectedCondition );
|
||||||
|
|
||||||
ctxMenu.AddSeparator();
|
ctxMenu.AddSeparator();
|
||||||
|
@ -88,10 +86,10 @@ bool LIB_CONTROL::Init()
|
||||||
ctxMenu.AddSeparator();
|
ctxMenu.AddSeparator();
|
||||||
ctxMenu.AddItem( EE_ACTIONS::cutSymbol, symbolSelectedCondition );
|
ctxMenu.AddItem( EE_ACTIONS::cutSymbol, symbolSelectedCondition );
|
||||||
ctxMenu.AddItem( EE_ACTIONS::copySymbol, symbolSelectedCondition );
|
ctxMenu.AddItem( EE_ACTIONS::copySymbol, symbolSelectedCondition );
|
||||||
ctxMenu.AddItem( EE_ACTIONS::pasteSymbol, SELECTION_CONDITIONS::ShowAlways );
|
ctxMenu.AddItem( EE_ACTIONS::pasteSymbol, libSelectedCondition );
|
||||||
|
|
||||||
ctxMenu.AddSeparator();
|
ctxMenu.AddSeparator();
|
||||||
ctxMenu.AddItem( EE_ACTIONS::importSymbol, SELECTION_CONDITIONS::ShowAlways );
|
ctxMenu.AddItem( EE_ACTIONS::importSymbol, libSelectedCondition );
|
||||||
ctxMenu.AddItem( EE_ACTIONS::exportSymbol, symbolSelectedCondition );
|
ctxMenu.AddItem( EE_ACTIONS::exportSymbol, symbolSelectedCondition );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue