|
| MIGRATION_TRAVERSER (const wxString &aSrcDir, const wxString &aDestDir, bool aMigrateTables) |
|
wxString | GetErrors () |
|
wxDirTraverseResult | OnFile (const wxString &aSrcFilePath) override |
|
wxDirTraverseResult | OnDir (const wxString &dirPath) override |
|
Definition at line 407 of file settings_manager.cpp.
◆ MIGRATION_TRAVERSER()
MIGRATION_TRAVERSER::MIGRATION_TRAVERSER |
( |
const wxString & |
aSrcDir, |
|
|
const wxString & |
aDestDir, |
|
|
bool |
aMigrateTables |
|
) |
| |
|
inline |
◆ GetErrors()
wxString MIGRATION_TRAVERSER::GetErrors |
( |
| ) |
|
|
inline |
◆ OnDir()
wxDirTraverseResult MIGRATION_TRAVERSER::OnDir |
( |
const wxString & |
dirPath | ) |
|
|
inlineoverride |
Definition at line 457 of file settings_manager.cpp.
459 wxFileName dir( dirPath );
462 if( dir.GetName() ==
"colors" ||
463 dir.GetName() ==
"3d" )
466 wxString
path = dir.GetPath();
471 wxMkdir( dir.GetFullPath() );
473 return wxDIR_CONTINUE;
References m_dest, m_src, and path.
◆ OnFile()
wxDirTraverseResult MIGRATION_TRAVERSER::OnFile |
( |
const wxString & |
aSrcFilePath | ) |
|
|
inlineoverride |
Definition at line 425 of file settings_manager.cpp.
427 wxFileName file( aSrcFilePath );
430 file.GetName() == wxT(
"fp-lib-table" ) ) )
432 return wxDIR_CONTINUE;
436 if( file.GetFullName() == wxT(
"installed_packages.json" ) )
437 return wxDIR_CONTINUE;
441 if( file.GetExt() == wxT(
"hotkeys" ) )
442 return wxDIR_CONTINUE;
444 wxString
path = file.GetPath();
447 file.SetPath(
path );
449 wxLogTrace(
traceSettings, wxT(
"Copying %s to %s" ), aSrcFilePath, file.GetFullPath() );
454 return wxDIR_CONTINUE;
void KiCopyFile(const wxString &aSrcPath, const wxString &aDestPath, wxString &aErrors)
const wxChar *const traceSettings
Flag to enable debug output of settings operations and management.
References KiCopyFile(), m_dest, m_errors, m_migrateTables, m_src, path, and traceSettings.
◆ m_dest
wxString MIGRATION_TRAVERSER::m_dest |
|
private |
◆ m_errors
wxString MIGRATION_TRAVERSER::m_errors |
|
private |
◆ m_migrateTables
bool MIGRATION_TRAVERSER::m_migrateTables |
|
private |
◆ m_src
wxString MIGRATION_TRAVERSER::m_src |
|
private |
The documentation for this class was generated from the following file: