Add toggleHV45Mode item to the measure tool's context menu

The behavior of the measure tool is influenced by the
horizontal/vertical/45-degree mode, but the context menu of the measure
tool lacks an option to toggle this mode. In contrast, the drawing
tools are also affected by this mode, and their context menu has the
item to toggle this mode.
This commit is contained in:
wh201906 2024-03-16 21:18:05 +08:00
parent 88c1fa3e26
commit 806daecf85
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,9 @@ bool PCB_VIEWER_TOOLS::Init()
ctxMenu.AddItem( ACTIONS::cancelInteractive, activeToolCondition, 1 );
ctxMenu.AddSeparator( 1 );
ctxMenu.AddCheckItem( PCB_ACTIONS::toggleHV45Mode, activeToolCondition, 2 );
ctxMenu.AddSeparator( activeToolCondition, 2 );
frame()->AddStandardSubMenus( m_menu );
return true;