44 m_frame = getEditFrame<PL_EDITOR_FRAME>();
52 m_frame = getEditFrame<PL_EDITOR_FRAME>();
58 wxCommandEvent evt( wxEVT_NULL, wxID_NEW );
66 wxCommandEvent evt( wxEVT_NULL, wxID_OPEN );
74 wxCommandEvent evt( wxEVT_NULL, wxID_SAVE );
82 wxCommandEvent evt( wxEVT_NULL, wxID_SAVEAS );
96 if( dlg.ShowModal() != wxID_OK )
118 wxMessageBox( wxT(
"Not yet available" ) );
150 if( selection.GetSize() == 1 )
158 WS_DATA_ITEM* dataItem = static_cast<WS_DRAW_ITEM_BASE*>( item )->GetPeer();
void ToPrinter(bool doPreview)
Function ToPrinter Open a dialog frame to print layers.
PROPERTIES_FRAME * GetPropertiesFrame()
static const TOOL_EVENT SelectedEvent
static TOOL_ACTION showInspector
void HardRedraw() override
Refresh the library tree and redraw the window.
Work sheet structure type definitions.
static TOOL_ACTION layoutEditMode
static const TOOL_EVENT UnselectedEvent
PL_EDITOR_FRAME * m_frame
This file is part of the common library.
int SaveAs(const TOOL_EVENT &aEvent)
void SetWksFileName(const wxString &aFilename)
static const TOOL_EVENT SelectedItemsModified
Selected items were moved, this can be very high frequency on the canvas, use with care.
static WS_DATA_MODEL & GetTheInstance()
static function: returns the instance of WS_DATA_MODEL used in the application
void setTransitions() override
Sets up handlers for various events.
int Save(const TOOL_EVENT &aEvent)
wxString GetCurrentFileName() const override
void EnableWksFileNamePicker(bool aEnable)
void SetMsgPanel(const std::vector< MSG_PANEL_ITEM > &aList)
Clear the message panel and populates it with the contents of aList.
void CopyPrmsFromItemToPanel(WS_DATA_ITEM *aItem)
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.
void ShowDesignInspector()
Show the dialog displaying the list of WS_DATA_ITEM items in the page layout.
static TOOL_ACTION previewSettings
static const TOOL_EVENT ClearedEvent
Selected item had a property changed (except movement)
int PageSetup(const TOOL_EVENT &aEvent)
int Print(const TOOL_EVENT &aEvent)
int Plot(const TOOL_EVENT &aEvent)
virtual void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
int ShowInspector(const TOOL_EVENT &aEvent)
static TOOL_ACTION saveAs
int TitleBlockDisplayMode(const TOOL_EVENT &aEvent)
int New(const TOOL_EVENT &aEvent)
A base class for most all the KiCad significant classes used in schematics and boards.
std::vector< MSG_PANEL_ITEM > MSG_PANEL_ITEMS
void SaveCopyInUndoList()
Save a copy of the description (in a S expr string) for Undo/redo commands.
bool Init() override
Init() is called once upon a registration of the tool.
int UpdateMessagePanel(const TOOL_EVENT &aEvent)
Update the message panel and the Properties frame, after change (selection, move, edit ....
void CopyPrmsFromGeneralToPanel()
int Open(const TOOL_EVENT &aEvent)
static TOOL_ACTION layoutNormalMode
#define MAX_PAGE_SIZE_MILS
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
const PL_EDITOR_LAYOUT & GetPageLayout() const
void RollbackFromUndo()
Apply the last command in Undo List without stacking a Redo.
void Files_io(wxCommandEvent &event)