27 #ifndef BASE_EDIT_FRAME_H 28 #define BASE_EDIT_FRAME_H 43 const wxString& aTitle,
const wxPoint& aPos,
const wxSize& aSize,
44 long aStyle,
const wxString& aFrameName );
48 bool TryBefore( wxEvent& aEvent )
override;
64 const wxString& aProposedName = wxEmptyString );
67 const wxString& aProposedName = wxEmptyString );
226 wxString
createNewLibrary(
const wxString& aLibName,
const wxString& aProposedName,
void RollbackFromUndo()
Perform an undo of the last edit without logging a corresponding redo.
void RestoreCopyFromUndoList(wxCommandEvent &aEvent)
Undo the last edit:
PCB_BASE_EDIT_FRAME(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aTitle, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aFrameName)
void SetObjectVisible(GAL_LAYER_ID aLayer, bool aVisible=true)
void SaveCopyInUndoList(EDA_ITEM *aItemToCopy, UNDO_REDO aTypeCommand) override
Create a new entry in undo list of commands.
void ActivateGalCanvas() override
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD.
wxString GetDesignRulesPath()
Return the absolute path to the design rules file for the currently-loaded board.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
APPEARANCE_CONTROLS * m_appearancePanel
void handleActivateEvent(wxActivateEvent &aEvent) override
Handle a window activation event.
A progress reporter interface for use in multi-threaded environments.
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
virtual void SetBoard(BOARD *aBoard, PROGRESS_REPORTER *aReporter=nullptr) override
Set the #m_Pcb member in such as way as to ensure deleting any previous BOARD.
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
virtual void OnEditItemRequest(BOARD_ITEM *aItem)=0
Install the corresponding dialog editor for the given item.
void UndoRedoBlock(bool aBlock=true)
Enable/disable undo and redo operations.
void PutDataInPreviousState(PICKED_ITEMS_LIST *aList)
Used in undo or redo command.
APPEARANCE_CONTROLS * GetAppearancePanel()
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...
void unitsChangeRefresh() override
Called when when the units setting has changed to allow for any derived classes to handle refreshing ...
virtual void OnLayerAlphaChanged()
Notify the frame that the layer Alpha is being changed.
void ShowTextPropertiesDialog(BOARD_ITEM *aText)
void doCloseWindow() override
Classes used in Pcbnew, CvPcb and GerbView.
bool TryBefore(wxEvent &aEvent) override
wxString CreateNewProjectLibrary(const wxString &aLibName=wxEmptyString, const wxString &aProposedName=wxEmptyString)
wxString CreateNewLibrary(const wxString &aLibName=wxEmptyString, const wxString &aProposedName=wxEmptyString)
If a library name is given, creates a new footprint library in the project folder with the given name...
void ClearUndoORRedoList(UNDO_REDO_LIST whichList, int aItemCount=-1) override
Free the undo or redo list from List element.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
bool AddLibrary(const wxString &aLibName=wxEmptyString, FP_LIB_TABLE *aTable=nullptr)
Add an existing library to either the global or project library table.
A holder to handle information on schematic or board items.
bool UndoRedoBlocked() const
Check if the undo and redo operations are currently blocked.
UNDO_REDO_LIST
Specifies whether we are interacting with the undo or redo stacks.
void ShowGraphicItemPropertiesDialog(BOARD_ITEM *aItem)
int GetRotationAngle() const
Return the angle used for rotate operations.
void SetGridVisibility(bool aVisible) override
Override this function in the PCB_BASE_EDIT_FRAME to refill the layer widget.
Common, abstract interface for edit frames.
FP_LIB_TABLE * selectLibTable(bool aOptional=false)
Prompts a user to select global or project library tables.
PANEL_SELECTION_FILTER * m_selectionFilterPanel
Information pertinent to a Pcbnew printed circuit board.
void RestoreCopyFromRedoList(wxCommandEvent &aEvent)
Redo the last edit:
A base class for most all the KiCad significant classes used in schematics and boards.
Color settings are a bit different than most of the settings objects in that there can be more than o...
virtual ~PCB_BASE_EDIT_FRAME()
Abstract interface for BOARD_ITEMs capable of storing other items inside.
void SetRotationAngle(int aRotationAngle)
Set the angle used for rotate operations.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
COLOR_SETTINGS * GetColorSettings() const override
Helper to retrieve the current color settings.
wxString createNewLibrary(const wxString &aLibName, const wxString &aProposedName, FP_LIB_TABLE *aTable)
Create a new library in the given table (presumed to be either the global or project library table).