37#include <wx/wupdlock.h>
56 wxCommandEvent evt( wxEVT_NULL, wxID_NEW );
64 wxCommandEvent evt( wxEVT_NULL, wxID_OPEN );
72 wxCommandEvent evt( wxEVT_NULL, wxID_SAVE );
80 wxCommandEvent evt( wxEVT_NULL, wxID_SAVEAS );
119 wxMessageBox( wxT(
"Not yet available" ) );
126 m_frame->ShowDesignInspector();
149 wxWindowUpdateLocker updateLock(
m_frame->GetPropertiesFrame() );
151 if( selection.GetSize() == 1 )
154 std::vector<MSG_PANEL_ITEM> msgItems;
157 msgItems.emplace_back(
_(
"UUID" ), *uuid );
160 m_frame->SetMsgPanel( msgItems );
163 m_frame->GetPropertiesFrame()->CopyPrmsFromItemToPanel( dataItem );
168 m_frame->GetPropertiesFrame()->CopyPrmsFromItemToPanel(
nullptr );
171 m_frame->GetPropertiesFrame()->CopyPrmsFromGeneralToPanel();
180 m_frame->GetCanvas()->ForceRefresh();
constexpr EDA_IU_SCALE drawSheetIUScale
static TOOL_ACTION saveAs
static TOOL_ACTION gridResetOrigin
void EnableWksFileNamePicker(bool aEnable)
void SetWksFileName(const wxString &aFilename)
Drawing sheet structure type definitions.
static DS_DATA_MODEL & GetTheInstance()
Return the instance of DS_DATA_MODEL used in the application.
Base class to handle basic graphic items.
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
static const TOOL_EVENT ClearedEvent
static const TOOL_EVENT SelectedEvent
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
static const TOOL_EVENT UnselectedEvent
static TOOL_ACTION showInspector
static TOOL_ACTION previewSettings
static TOOL_ACTION layoutNormalMode
static TOOL_ACTION layoutEditMode
int PageSetup(const TOOL_EVENT &aEvent)
int SaveAs(const TOOL_EVENT &aEvent)
int TitleBlockDisplayMode(const TOOL_EVENT &aEvent)
bool Init() override
Init() is called once upon a registration of the tool.
int New(const TOOL_EVENT &aEvent)
int GridResetOrigin(const TOOL_EVENT &aEvent)
int UpdateMessagePanel(const TOOL_EVENT &aEvent)
Update the message panel and the Properties frame, after change (selection, move, edit ....
int Print(const TOOL_EVENT &aEvent)
int Save(const TOOL_EVENT &aEvent)
PL_EDITOR_FRAME * m_frame
int ShowInspector(const TOOL_EVENT &aEvent)
int Open(const TOOL_EVENT &aEvent)
int Plot(const TOOL_EVENT &aEvent)
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
void setTransitions() override
< Set up handlers for various events.
This file is part of the common library.
std::optional< wxString > GetMsgPanelDisplayUuid(const KIID &aKiid)
Get a formatted UUID string for display in the message panel, according to the current advanced confi...
#define MAX_PAGE_SIZE_EESCHEMA_MILS
VECTOR2< int32_t > VECTOR2I