27#include <wx/wupdlock.h>
40 wxLogTrace(
m_logTrace, wxT(
"EDA_3D_VIEWER_FRAME::ReCreateMainToolbar" ) );
42 wxWindowUpdateLocker
dummy(
this );
59 wxString::Format(
_(
"Viewports (%s+Tab):" ), keyName ) );
64 for( std::pair<const wxString, VIEWPORT3D>& pair :
m_viewports )
65 m_cbViewports->Append( pair.first,
static_cast<void*
>( &pair.second ) );
71 m_cbViewports->SetToolTip( wxString::Format(
_(
"Save and restore view orientation and zoom.\n"
72 "Use %s+Tab to activate selector.\n"
73 "Successive Tabs while holding %s down will "
74 "cycle through viewports in the popup." ),
88 _(
"Copy 3D image to clipboard" ) );
93 _(
"Render current view using Raytracing" ), wxITEM_CHECK );
@ ID_TOOL_SCREENCOPY_TOCLIBBOARD
wxBitmap KiScaledBitmap(BITMAPS aBitmap, wxWindow *aWindow, int aHeight, bool aQuantized)
Construct a wxBitmap from a memory record, scaling it if device DPI demands it.
static TOOL_ACTION zoomRedraw
static TOOL_ACTION zoomOutCenter
static TOOL_ACTION zoomFitScreen
static TOOL_ACTION zoomInCenter
static TOOL_ACTION rotateXCCW
static TOOL_ACTION showNotInPosFile
static TOOL_ACTION showTHT
static TOOL_ACTION rotateZCCW
static TOOL_ACTION rotateZCW
static TOOL_ACTION rotateYCCW
static TOOL_ACTION rotateXCW
static TOOL_ACTION showDNP
static TOOL_ACTION toggleOrtho
static TOOL_ACTION moveLeft
static TOOL_ACTION showSMD
static TOOL_ACTION moveUp
static TOOL_ACTION flipView
static TOOL_ACTION moveDown
static TOOL_ACTION moveRight
static TOOL_ACTION showVirtual
static TOOL_ACTION rotateYCW
ACTION_TOOLBAR * m_mainToolBar
wxStaticText * m_viewportsLabel
void ReCreateMainToolbar()
VIEWPORT3D * m_lastSelectedViewport
std::map< wxString, VIEWPORT3D > m_viewports
static constexpr int KICAD_AUI_TB_STYLE
< Default style flags used for wxAUI toolbars.
Declaration of the eda_3d_viewer class.
#define VIEWPORT_SWITCH_KEY
static const wxChar * m_logTrace
Trace mask used to enable or disable the trace output of this class.
wxString KeyNameFromKeyCode(int aKeycode, bool *aIsFound)
Return the key name from the key code.
std::vector< FAB_LAYER_COLOR > dummy