← Back to team overview

kicad-developers team mailing list archive

adding "Show board in 3D viewer" button in pcbnew mainToolBar (patch)

 

attached there is a minimal patch to add
"Show board in 3D viewer" button in pcbnew mainToolBar
... a useful button :)

Maurice
--- tool_pcb-base.cpp	2015-07-06 18:06:49.428075200 +0200
+++ tool_pcb.cpp	2015-07-06 18:06:03.111271500 +0200
@@ -237,6 +237,10 @@
                             _( "Open footprint viewer" ) );
 
     m_mainToolBar->AddSeparator();
+	m_mainToolBar->AddTool( ID_MENU_PCB_SHOW_3D_FRAME, wxEmptyString, KiBitmap( three_d_xpm ),
+                            _( "Show board in 3D viewer" ) );
+
+    m_mainToolBar->AddSeparator();
     msg = AddHotkeyName( HELP_UNDO, g_Board_Editor_Hokeys_Descr, HK_UNDO, IS_COMMENT );
     m_mainToolBar->AddTool( wxID_UNDO, wxEmptyString, KiBitmap( undo_xpm ), msg );
     msg = AddHotkeyName( HELP_REDO, g_Board_Editor_Hokeys_Descr, HK_REDO, IS_COMMENT );

Follow ups