27#include <wx/snglinst.h> 
   61                              int aCtlBits = 0 )
 override 
   83            return new PANEL_PL_EDITOR_COLOR_SETTINGS( aParent );
 
   90            std::vector<TOOL_ACTION*>            actions;
 
   91            std::vector<ACTION_TOOLBAR_CONTROL*> controls;
 
   94                actions.push_back( action );
 
   97                controls.push_back( control );
 
   99            return new PANEL_TOOLBAR_CUSTOMIZATION( aParent, cfg, tb, actions, controls );
 
 
  129    void SaveFileAs( 
const wxString& aProjectBasePath, 
const wxString& aSrcProjectName,
 
  130                     const wxString& aNewProjectBasePath, 
const wxString& aNewProjectName,
 
  131                     const wxString& aSrcFilePath, wxString& aErrors ) 
override;
 
 
 
  167                        const wxString& aNewProjectBasePath, 
const wxString& aNewProjectName,
 
  168                        const wxString& aSrcFilePath, wxString& aErrors )
 
  170    wxFileName destFile( aSrcFilePath );
 
  171    wxString   destPath = destFile.GetPathWithSep();
 
  172    wxUniChar  pathSep = wxFileName::GetPathSeparator();
 
  173    wxString   ext = destFile.GetExt();
 
  175    if( destPath.StartsWith( aProjectBasePath + pathSep ) )
 
  177        destPath.Replace( aProjectBasePath, aNewProjectBasePath, 
false );
 
  178        destFile.SetPath( destPath );
 
  181    if( ext == 
"kicad_wks" )
 
  183        if( destFile.GetName() == aSrcProjectName )
 
  184            destFile.SetName( aNewProjectName );
 
  186        KiCopyFile( aSrcFilePath, destFile.GetFullPath(), aErrors );
 
  190        wxFAIL_MSG( 
"Unexpected filetype for Pcbnew::SaveFileAs()" );
 
 
 
constexpr EDA_IU_SCALE drawSheetIUScale
 
static std::list< TOOL_ACTION * > & GetActionList()
Return list of TOOL_ACTIONs.
 
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
 
The base frame for deriving all KiCad main window classes.
 
KIFACE_BASE(const char *aKifaceName, KIWAY::FACE_T aId)
 
void InitSettings(APP_SETTINGS_BASE *aSettings)
 
void end_common()
Common things to do for a top program module, during OnKifaceEnd();.
 
APP_SETTINGS_BASE * KifaceSettings() const
 
bool start_common(int aCtlBits)
Common things to do for a top program module, during OnKifaceStart().
 
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
 
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
 
FACE_T
Known KIFACE implementations.
 
Container for data for KiCad programs.
 
virtual SETTINGS_MANAGER & GetSettingsManager() const
 
The main window used in the drawing sheet editor.
 
T * RegisterSettings(T *aSettings, bool aLoadNow=true)
Take ownership of the pointer passed in.
 
UNITS_PROVIDER(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits)
 
EDA_UNITS GetUserUnits() const
 
void SetUserUnits(EDA_UNITS aUnits)
 
This file is part of the common library.
 
@ PANEL_DS_DISPLAY_OPTIONS
 
void KiCopyFile(const wxString &aSrcPath, const wxString &aDestPath, wxString &aErrors)
 
PGE::IFACE KIFACE_BASE, UNITS_PROVIDER kiface("pl_editor", KIWAY::FACE_PL_EDITOR)
 
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
 
T * GetToolbarSettings(const wxString &aFilename)
 
T * GetAppSettings(const char *aFilename)
 
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits, KIWAY *aKiway) override
Typically start_common() is called from here.
 
Implement a participant in the KIWAY alchemy.
 
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits, KIWAY *aKiway) override
Typically start_common() is called from here.
 
IFACE(const char *aName, KIWAY::FACE_T aType)
 
void SaveFileAs(const wxString &aProjectBasePath, const wxString &aSrcProjectName, const wxString &aNewProjectBasePath, const wxString &aNewProjectName, const wxString &aSrcFilePath, wxString &aErrors) override
Saving a file under a different name is delegated to the various KIFACEs because the project doesn't ...
 
void * IfaceOrAddress(int aDataId) override
Return a pointer to the requested object.
 
wxWindow * CreateKiWindow(wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
Create a wxWindow for the current project.
 
void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.