KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Properties | List of all members
pcbnew.SETTINGS_MANAGER Class Reference
Inheritance diagram for pcbnew.SETTINGS_MANAGER:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, aHeadless=False)
 
def IsOK (self)
 
def SetKiway (self, aKiway)
 
def Load (self, *args)
 
def Save (self, *args)
 
def FlushAndRelease (self, aSettings, aSave=True)
 
def GetColorSettings (self, *args)
 
def GetColorSettingsList (self)
 
def SaveColorSettings (self, *args)
 
def AddNewColorSettings (self, aFilename)
 
def GetMigratedColorSettings (self)
 
def GetCommonSettings (self)
 
def GetPathForSettingsFile (self, aSettings)
 
def MigrateIfNeeded (self)
 
def SetMigrationSource (self, aSource)
 
def SetMigrateLibraryTables (self, aMigrate=True)
 
def GetPreviousVersionPaths (self, aName=None)
 
def ReloadColorSettings (self)
 
def LoadProject (self, aFullPath, aSetActive=True)
 
def UnloadProject (self, aProject, aSave=True)
 
def IsProjectOpen (self)
 
def Prj (self)
 
def GetProject (self, aFullPath)
 
def GetOpenProjects (self)
 
def SaveProject (self, *args)
 
def SaveProjectAs (self, aFullPath, aProject=None)
 
def SaveProjectCopy (self, aFullPath, aProject=None)
 
def GetProjectBackupsPath (self)
 
def BackupProject (self, aReporter)
 
def TriggerBackupIfNeeded (self, aReporter)
 

Static Public Member Functions

def IsSettingsPathValid (aPath)
 
def GetColorSettingsPath ()
 
def GetSettingsVersion ()
 
def GetUserSettingsPath ()
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Proxy of C++ SETTINGS_MANAGER class.

Definition at line 3979 of file pcbnew.py.

Constructor & Destructor Documentation

◆ __init__()

def pcbnew.SETTINGS_MANAGER.__init__ (   self,
  aHeadless = False 
)
__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER

Definition at line 3985 of file pcbnew.py.

Member Function Documentation

◆ AddNewColorSettings()

def pcbnew.SETTINGS_MANAGER.AddNewColorSettings (   self,
  aFilename 
)
AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *

Definition at line 4028 of file pcbnew.py.

◆ BackupProject()

def pcbnew.SETTINGS_MANAGER.BackupProject (   self,
  aReporter 
)
BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool

Definition at line 4104 of file pcbnew.py.

◆ FlushAndRelease()

def pcbnew.SETTINGS_MANAGER.FlushAndRelease (   self,
  aSettings,
  aSave = True 
)
FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)

Definition at line 4012 of file pcbnew.py.

◆ GetColorSettings()

def pcbnew.SETTINGS_MANAGER.GetColorSettings (   self,
args 
)
GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS

Definition at line 4016 of file pcbnew.py.

◆ GetColorSettingsList()

def pcbnew.SETTINGS_MANAGER.GetColorSettingsList (   self)
GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >

Definition at line 4020 of file pcbnew.py.

◆ GetColorSettingsPath()

def pcbnew.SETTINGS_MANAGER.GetColorSettingsPath ( )
static
GetColorSettingsPath() -> wxString

Definition at line 4118 of file pcbnew.py.

◆ GetCommonSettings()

def pcbnew.SETTINGS_MANAGER.GetCommonSettings (   self)
GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *

Definition at line 4036 of file pcbnew.py.

◆ GetMigratedColorSettings()

def pcbnew.SETTINGS_MANAGER.GetMigratedColorSettings (   self)
GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *

Definition at line 4032 of file pcbnew.py.

◆ GetOpenProjects()

def pcbnew.SETTINGS_MANAGER.GetOpenProjects (   self)
GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >

Definition at line 4084 of file pcbnew.py.

◆ GetPathForSettingsFile()

def pcbnew.SETTINGS_MANAGER.GetPathForSettingsFile (   self,
  aSettings 
)
GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString

Definition at line 4040 of file pcbnew.py.

◆ GetPreviousVersionPaths()

def pcbnew.SETTINGS_MANAGER.GetPreviousVersionPaths (   self,
  aName = None 
)
GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool

Definition at line 4056 of file pcbnew.py.

◆ GetProject()

def pcbnew.SETTINGS_MANAGER.GetProject (   self,
  aFullPath 
)
GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *

Definition at line 4080 of file pcbnew.py.

◆ GetProjectBackupsPath()

def pcbnew.SETTINGS_MANAGER.GetProjectBackupsPath (   self)
GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString

Definition at line 4100 of file pcbnew.py.

◆ GetSettingsVersion()

def pcbnew.SETTINGS_MANAGER.GetSettingsVersion ( )
static
GetSettingsVersion() -> string

Definition at line 4123 of file pcbnew.py.

◆ GetUserSettingsPath()

def pcbnew.SETTINGS_MANAGER.GetUserSettingsPath ( )
static
GetUserSettingsPath() -> wxString

Definition at line 4128 of file pcbnew.py.

Here is the caller graph for this function:

◆ IsOK()

def pcbnew.SETTINGS_MANAGER.IsOK (   self)
IsOK(SETTINGS_MANAGER self) -> bool

Definition at line 3990 of file pcbnew.py.

◆ IsProjectOpen()

def pcbnew.SETTINGS_MANAGER.IsProjectOpen (   self)
IsProjectOpen(SETTINGS_MANAGER self) -> bool

Definition at line 4072 of file pcbnew.py.

◆ IsSettingsPathValid()

def pcbnew.SETTINGS_MANAGER.IsSettingsPathValid (   aPath)
static
IsSettingsPathValid(wxString aPath) -> bool

Definition at line 4113 of file pcbnew.py.

◆ Load()

def pcbnew.SETTINGS_MANAGER.Load (   self,
args 
)
    Load(SETTINGS_MANAGER self)
    Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)

Definition at line 3998 of file pcbnew.py.

Here is the caller graph for this function:

◆ LoadProject()

def pcbnew.SETTINGS_MANAGER.LoadProject (   self,
  aFullPath,
  aSetActive = True 
)
LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool

Definition at line 4064 of file pcbnew.py.

◆ MigrateIfNeeded()

def pcbnew.SETTINGS_MANAGER.MigrateIfNeeded (   self)
MigrateIfNeeded(SETTINGS_MANAGER self) -> bool

Definition at line 4044 of file pcbnew.py.

◆ Prj()

def pcbnew.SETTINGS_MANAGER.Prj (   self)
Prj(SETTINGS_MANAGER self) -> PROJECT &

Definition at line 4076 of file pcbnew.py.

◆ ReloadColorSettings()

def pcbnew.SETTINGS_MANAGER.ReloadColorSettings (   self)
ReloadColorSettings(SETTINGS_MANAGER self)

Definition at line 4060 of file pcbnew.py.

◆ Save()

def pcbnew.SETTINGS_MANAGER.Save (   self,
args 
)
    Save(SETTINGS_MANAGER self)
    Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)

Definition at line 4005 of file pcbnew.py.

Here is the caller graph for this function:

◆ SaveColorSettings()

def pcbnew.SETTINGS_MANAGER.SaveColorSettings (   self,
args 
)
SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")

Definition at line 4024 of file pcbnew.py.

◆ SaveProject()

def pcbnew.SETTINGS_MANAGER.SaveProject (   self,
args 
)
SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool

Definition at line 4088 of file pcbnew.py.

◆ SaveProjectAs()

def pcbnew.SETTINGS_MANAGER.SaveProjectAs (   self,
  aFullPath,
  aProject = None 
)
SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)

Definition at line 4092 of file pcbnew.py.

◆ SaveProjectCopy()

def pcbnew.SETTINGS_MANAGER.SaveProjectCopy (   self,
  aFullPath,
  aProject = None 
)
SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)

Definition at line 4096 of file pcbnew.py.

◆ SetKiway()

def pcbnew.SETTINGS_MANAGER.SetKiway (   self,
  aKiway 
)
SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)

Definition at line 3994 of file pcbnew.py.

◆ SetMigrateLibraryTables()

def pcbnew.SETTINGS_MANAGER.SetMigrateLibraryTables (   self,
  aMigrate = True 
)
SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)

Definition at line 4052 of file pcbnew.py.

◆ SetMigrationSource()

def pcbnew.SETTINGS_MANAGER.SetMigrationSource (   self,
  aSource 
)
SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)

Definition at line 4048 of file pcbnew.py.

◆ TriggerBackupIfNeeded()

def pcbnew.SETTINGS_MANAGER.TriggerBackupIfNeeded (   self,
  aReporter 
)
TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool

Definition at line 4108 of file pcbnew.py.

◆ UnloadProject()

def pcbnew.SETTINGS_MANAGER.UnloadProject (   self,
  aProject,
  aSave = True 
)
UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool

Definition at line 4068 of file pcbnew.py.

Property Documentation

◆ thisown

pcbnew.SETTINGS_MANAGER.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static

Definition at line 3982 of file pcbnew.py.


The documentation for this class was generated from the following file: