45 m_frame = getEditFrame<PL_EDITOR_FRAME>();
53 m_frame = getEditFrame<PL_EDITOR_FRAME>();
59 wxCommandEvent evt( wxEVT_NULL, wxID_NEW );
67 wxCommandEvent evt( wxEVT_NULL, wxID_OPEN );
75 wxCommandEvent evt( wxEVT_NULL, wxID_SAVE );
83 wxCommandEvent evt( wxEVT_NULL, wxID_SAVEAS );
122 wxMessageBox( wxT(
"Not yet available" ) );
154 if( selection.GetSize() == 1 )
158 std::vector<MSG_PANEL_ITEM> msgItems;
constexpr EDA_IU_SCALE drawSheetIUScale
static TOOL_ACTION saveAs
void EnableWksFileNamePicker(bool aEnable)
void SetWksFileName(const wxString &aFilename)
Drawing sheet structure type definitions.
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
Base class to handle basic graphic items.
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
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 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.
void ShowDesignInspector()
Show the dialog displaying the list of DS_DATA_ITEM items in the page layout.
void OnModify() override
Must be called after a change in order to set the "modify" flag.
void Files_io(wxCommandEvent &event)
void ToPrinter(bool doPreview)
Open a dialog frame to print layers.
void UpdateMsgPanelInfo()
Display the size of the sheet to the message panel.
wxString GetCurrentFileName() const override
void RollbackFromUndo()
Apply the last command in Undo List without stacking a Redo.
void SaveCopyInUndoList()
Save a copy of the description (in a S expr string) for Undo/redo commands.
void HardRedraw() override
Refresh the library tree and redraw the window.
PROPERTIES_FRAME * GetPropertiesFrame()
void CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
void CopyPrmsFromGeneralToPanel()
This file is part of the common library.
#define MAX_PAGE_SIZE_EESCHEMA_MILS