26 #ifndef _PL_EDITOR_FRAME_H 27 #define _PL_EDITOR_FRAME_H 58 bool OpenProjectFiles(
const std::vector<wxString>& aFileSet,
int aCtl )
override;
91 void OnExit( wxCommandEvent& aEvent );
195 void Files_io( wxCommandEvent& event );
void OnFileHistory(wxCommandEvent &event)
void ToPrinter(bool doPreview)
Open a dialog frame to print layers.
virtual void PrintPage(const RENDER_SETTINGS *aSettings) override
Print a page.
PROPERTIES_FRAME * GetPropertiesFrame()
void HardRedraw() override
Refresh the library tree and redraw the window.
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
const PAGE_INFO & GetPageSettings() const override
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void ClearUndoORRedoList(UNDO_REDO_LIST whichList, int aItemCount=-1) override
Remove the aItemCount of old commands from aList and delete commands, pickers and picked items if nee...
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void SetTitleBlock(const TITLE_BLOCK &aTitleBlock) override
void ReCreateVToolbar() override
Create or update the right vertical toolbar.
wxPoint ReturnCoordOriginCorner() const
Calculate the position (in page, in iu) of the corner used as coordinate origin of items.
void ReCreateMenuBar() override
Recreates the menu bar.
PROPERTIES_FRAME display properties of the current item.
The main window used in the drawing sheet editor.
void UpdateStatusBar() override
Update the status bar information.
bool canCloseWindow(wxCloseEvent &aCloseEvent) override
void OnClearFileHistory(wxCommandEvent &aEvent)
PL_EDITOR_LAYOUT & GetPageLayout()
void GetLayoutFromRedoList()
Redo the last edit:
bool SaveDrawingSheetFile(const wxString &aFullFileName)
Save the current layout in a .kicad_wks drawing sheet file.
void UpdateToolbarControlSizes() override
Update the sizes of any controls in the toolbars of the frame.
The base class for create windows for drawing purpose.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
const wxSize GetPageSizeIU() const override
Works off of GetPageSettings() to return the size of the paper page in the internal units of this par...
void OnModify()
Must be called after a change in order to set the "modify" flag.
bool InsertDrawingSheetFile(const wxString &aFullFileName)
Load a .kicad_wks drawing sheet file, and add items to the current layout list.
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification event that some of the common (suite-wide) settings have changed.
wxString GetCurrentFileName() const override
void SetPageSettings(const PAGE_INFO &) override
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
PL_EDITOR_FRAME(KIWAY *aKiway, wxWindow *aParent)
bool OpenProjectFiles(const std::vector< wxString > &aFileSet, int aCtl) override
Open a project or set of files given by aFileList.
void OnExit(wxCommandEvent &aEvent)
Event handler for the wxID_EXIT and wxID_CLOSE events.
Describe the page size and margins of a paper page on which to eventually print or plot.
bool saveCurrentPageLayout()
void OnSelectCoordOriginCorner(wxCommandEvent &event)
Called when the user select one of the 4 page corner as corner reference (or the left top paper corne...
void ShowDesignInspector()
Show the dialog displaying the list of DS_DATA_ITEM items in the page layout.
bool IsContentModified() const override
Get if the drawing sheet has been modified but not saved.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
const TITLE_BLOCK & GetTitleBlock() const override
int m_propertiesFrameWidth
SELECTION & GetCurrentSelection() override
Get the current selection from the canvas area.
void doCloseWindow() override
PL_EDITOR_LAYOUT m_pageLayout
bool GetPageNumberOption() const
Drawing sheet editor can show the title block using a page number 1 or another number.
const wxPoint & GetGridOrigin() const override
Return the absolute coordinates of the origin of the snap grid.
void OnSelectPage(wxCommandEvent &event)
void InstallPreferences(PAGED_DIALOG *aParent, PANEL_HOTKEYS_EDITOR *aHotkeysPanel) override
Allow a frame to load its preference panels (if any) into the preferences dialog.
wxChoice * m_pageSelectBox
UNDO_REDO_LIST
Specifies whether we are interacting with the undo or redo stacks.
void SetContentModified(bool aModified=true)
void SetCurrentFileName(const wxString &aName)
Store the current layout description file filename.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void ReCreateOptToolbar() override
Create or update the left vertical toolbar.
void UpdateTitleAndInfo()
Display the short filename (if exists) loaded file on the caption of the main window.
Drawing sheet structure type definitions.
PROPERTIES_FRAME * m_propertiesPagelayout
The last filename chosen to be proposed to the user.
void DisplayGridMsg() override
Display current grid size in the status bar.
void SetGridOrigin(const wxPoint &aPoint) override
void OnNewDrawingSheet()
Must be called to initialize parameters when a new drawing sheet is loaded.
void SaveCopyInUndoList()
Save a copy of the description (in a S expr string) for Undo/redo commands.
const BOX2I GetDocumentExtents(bool aIncludeAllVisible=true) const override
Returns bbox of document with option to not include some items.
void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
BASE_SCREEN class implementation.
const PL_EDITOR_LAYOUT & GetPageLayout() const
void RollbackFromUndo()
Apply the last command in Undo List without stacking a Redo.
DS_DATA_ITEM * AddDrawingSheetItem(int aType)
Add a new item to the drawing sheet item list.
virtual BASE_SCREEN * GetScreen() const
Return a pointer to a BASE_SCREEN or one of its derivatives.
void OnSelectTitleBlockDisplayMode(wxCommandEvent &event)
Toggle the display mode between the normal mode and the editor mode: In normal mode,...
void GetLayoutFromUndoList()
Undo the last edit:
void ReCreateHToolbar() override
wxChoice * m_originSelectBox
bool LoadDrawingSheetFile(const wxString &aFullFileName)
Load a .kicad_wks drawing sheet file.
void Files_io(wxCommandEvent &event)