KiCad PCB EDA Suite
Loading...
Searching...
No Matches
STARTWIZARD_PROVIDER_LIBRARIES Class Reference

#include <startwizard_provider_libraries.h>

Inheritance diagram for STARTWIZARD_PROVIDER_LIBRARIES:
STARTWIZARD_PROVIDER

Public Member Functions

 STARTWIZARD_PROVIDER_LIBRARIES ()
 
virtual ~STARTWIZARD_PROVIDER_LIBRARIES ()
 
wxString Name () const override
 
bool NeedsUserInput () const override
 
wxPanel * GetWizardPanel (wxWindow *aParent, STARTWIZARD *aWizard) override
 
void Finish () override
 
void ApplyDefaults () override
 Apply whatever actions and settings should happen if the user cancels the startup wizard.
 
const wxString & GetPageName () const
 
bool WasShown () const
 
void SetWasShown (bool aShown)
 

Static Public Member Functions

static KICOMMON_API bool MigrateBuiltInLibraries (LIBRARY_TABLE &aTable, LIBRARY_TABLE_TYPE aType, const wxString &aStockPath, bool aStockPathValid)
 Migrates built-in (stock) library references in an imported global library table to the current version.
 

Private Attributes

std::shared_ptr< STARTWIZARD_PROVIDER_LIBRARIES_MODELm_model
 
wxString m_pageName
 
bool m_wasShown
 

Detailed Description

Definition at line 44 of file startwizard_provider_libraries.h.

Constructor & Destructor Documentation

◆ STARTWIZARD_PROVIDER_LIBRARIES()

STARTWIZARD_PROVIDER_LIBRARIES::STARTWIZARD_PROVIDER_LIBRARIES ( )

◆ ~STARTWIZARD_PROVIDER_LIBRARIES()

virtual STARTWIZARD_PROVIDER_LIBRARIES::~STARTWIZARD_PROVIDER_LIBRARIES ( )
inlinevirtual

Definition at line 49 of file startwizard_provider_libraries.h.

Member Function Documentation

◆ ApplyDefaults()

void STARTWIZARD_PROVIDER_LIBRARIES::ApplyDefaults ( )
overridevirtual

Apply whatever actions and settings should happen if the user cancels the startup wizard.

Reimplemented from STARTWIZARD_PROVIDER.

Definition at line 356 of file startwizard_provider_libraries.cpp.

References LIBRARY_MANAGER::CreateGlobalTable(), and LIBRARY_MANAGER::InvalidGlobalTables().

◆ Finish()

◆ GetPageName()

const wxString & STARTWIZARD_PROVIDER::GetPageName ( ) const
inlineinherited

Definition at line 47 of file startwizard_provider.h.

References m_pageName.

◆ GetWizardPanel()

wxPanel * STARTWIZARD_PROVIDER_LIBRARIES::GetWizardPanel ( wxWindow * aParent,
STARTWIZARD * aWizard )
overridevirtual

Reimplemented from STARTWIZARD_PROVIDER.

Definition at line 236 of file startwizard_provider_libraries.cpp.

References LIBRARY_MANAGER::InvalidGlobalTables(), and m_model.

◆ MigrateBuiltInLibraries()

bool STARTWIZARD_PROVIDER_LIBRARIES::MigrateBuiltInLibraries ( LIBRARY_TABLE & aTable,
LIBRARY_TABLE_TYPE aType,
const wxString & aStockPath,
bool aStockPathValid )
static

Migrates built-in (stock) library references in an imported global library table to the current version.

Direct stock rows are removed and re-added as a single chained reference, and an existing chained reference is repointed at the latest stock table. If the imported table referenced no stock libraries, none are added.

Parameters
aTableis the imported table to migrate in place
aTypeis the table type (symbol or footprint)
aStockPathis the (unexpanded) URI of the current stock library table
aStockPathValidis true if aStockPath resolves to a valid table on disk
Returns
true if the table was modified and should be saved

Definition at line 244 of file startwizard_provider_libraries.cpp.

References _, LIBRARY_MANAGER::IsTableValid(), LIBRARY_TABLE::MakeRow(), LIBRARY_TABLE::Rows(), LIBRARY_TABLE_ROW::SetDescription(), LIBRARY_TABLE_ROW::SetNickname(), LIBRARY_TABLE_ROW::SetType(), LIBRARY_TABLE_ROW::SetURI(), SYMBOL, LIBRARY_TABLE_ROW::TABLE_TYPE_NAME, and traceLibraries.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and Finish().

◆ Name()

wxString STARTWIZARD_PROVIDER_LIBRARIES::Name ( ) const
inlineoverridevirtual

Implements STARTWIZARD_PROVIDER.

Definition at line 51 of file startwizard_provider_libraries.h.

◆ NeedsUserInput()

bool STARTWIZARD_PROVIDER_LIBRARIES::NeedsUserInput ( ) const
overridevirtual

Reimplemented from STARTWIZARD_PROVIDER.

Definition at line 230 of file startwizard_provider_libraries.cpp.

References LIBRARY_MANAGER::GlobalTablesValid().

◆ SetWasShown()

void STARTWIZARD_PROVIDER::SetWasShown ( bool aShown)
inlineinherited

Definition at line 50 of file startwizard_provider.h.

References m_wasShown.

◆ WasShown()

bool STARTWIZARD_PROVIDER::WasShown ( ) const
inlineinherited

Definition at line 49 of file startwizard_provider.h.

References m_wasShown.

Member Data Documentation

◆ m_model

std::shared_ptr<STARTWIZARD_PROVIDER_LIBRARIES_MODEL> STARTWIZARD_PROVIDER_LIBRARIES::m_model
private

Definition at line 77 of file startwizard_provider_libraries.h.

Referenced by Finish(), and GetWizardPanel().

◆ m_pageName

wxString STARTWIZARD_PROVIDER::m_pageName
privateinherited

Definition at line 58 of file startwizard_provider.h.

Referenced by GetPageName(), and STARTWIZARD_PROVIDER().

◆ m_wasShown

bool STARTWIZARD_PROVIDER::m_wasShown
privateinherited

Definition at line 59 of file startwizard_provider.h.

Referenced by SetWasShown(), STARTWIZARD_PROVIDER(), and WasShown().


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