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 );
98 if( dlg.ShowModal() != wxID_OK )
121 wxMessageBox( wxT(
"Not yet available" ) );
153 if( selection.GetSize() == 1 )
157 std::vector<MSG_PANEL_ITEM> msgItems;
161 DS_DATA_ITEM* dataItem = static_cast<DS_DRAW_ITEM_BASE*>( item )->GetPeer();
166 std::vector<MSG_PANEL_ITEM> msgItems;
void ToPrinter(bool doPreview)
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.
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.
void setTransitions() override
< Set up handlers for various events.
void OnModify()
Must be called after a change in order to set the "modify" flag.
int Save(const TOOL_EVENT &aEvent)
#define MAX_PAGE_SIZE_EESCHEMA_MILS
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
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.
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 DS_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)
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
int ShowInspector(const TOOL_EVENT &aEvent)
static TOOL_ACTION saveAs
Drawing sheet structure type definitions.
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.
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 CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
void CopyPrmsFromGeneralToPanel()
int Open(const TOOL_EVENT &aEvent)
static TOOL_ACTION layoutNormalMode
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)