Libedit: add "create new lib" in file menu (was only available from the main toolbar)
Make also "Save Lib" shortcut modifiable by user, like other shortcuts.
This commit is contained in:
parent
d5bf465dc6
commit
010c10853c
|
@ -37,6 +37,8 @@
|
||||||
#include "hotkeys.h"
|
#include "hotkeys.h"
|
||||||
#include "libeditframe.h"
|
#include "libeditframe.h"
|
||||||
|
|
||||||
|
extern int CreateNewLibAndSavePartId;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief (Re)Create the menubar for the component editor frame
|
* @brief (Re)Create the menubar for the component editor frame
|
||||||
|
@ -71,9 +73,9 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
|
|
||||||
// Save current library
|
// Save current library
|
||||||
|
text = AddHotkeyName( _( "&Save Current Library" ), g_Libedit_Hokeys_Descr, HK_SAVE_LIB );
|
||||||
AddMenuItem( fileMenu,
|
AddMenuItem( fileMenu,
|
||||||
ID_LIBEDIT_SAVE_CURRENT_LIB,
|
ID_LIBEDIT_SAVE_CURRENT_LIB, text,
|
||||||
_( "&Save Current Library\tCtrl+S" ),
|
|
||||||
_( "Save the current active library" ),
|
_( "Save the current active library" ),
|
||||||
KiBitmap( save_xpm ) );
|
KiBitmap( save_xpm ) );
|
||||||
|
|
||||||
|
@ -84,6 +86,12 @@ void LIB_EDIT_FRAME::ReCreateMenuBar()
|
||||||
_( "Save current active library as..." ),
|
_( "Save current active library as..." ),
|
||||||
KiBitmap( save_as_xpm ) );
|
KiBitmap( save_as_xpm ) );
|
||||||
|
|
||||||
|
AddMenuItem( fileMenu,
|
||||||
|
CreateNewLibAndSavePartId,
|
||||||
|
_( "Create &New Library and Save Current Component" ),
|
||||||
|
_( "Save current component to new library" ),
|
||||||
|
KiBitmap( new_library_xpm ) );
|
||||||
|
|
||||||
// Separator
|
// Separator
|
||||||
fileMenu->AppendSeparator();
|
fileMenu->AppendSeparator();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue