本文整理汇总了C++中SCH_EDIT_FRAME::GetUserLibraryPath方法的典型用法代码示例。如果您正苦于以下问题:C++ SCH_EDIT_FRAME::GetUserLibraryPath方法的具体用法?C++ SCH_EDIT_FRAME::GetUserLibraryPath怎么用?C++ SCH_EDIT_FRAME::GetUserLibraryPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SCH_EDIT_FRAME
的用法示例。
在下文中一共展示了SCH_EDIT_FRAME::GetUserLibraryPath方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCancelClick
void DIALOG_EESCHEMA_CONFIG::OnCancelClick( wxCommandEvent& event )
{
SEARCH_STACK& lib_search = Prj().SchSearchS();
// Recreate the user lib path
if( m_LibPathChanged )
{
for( unsigned ii = 0; ii < m_listUserPaths->GetCount(); ii++ )
lib_search.RemovePaths( m_listUserPaths->GetString(ii) );
lib_search.AddPaths( m_Parent->GetUserLibraryPath(), 1 );
}
EndModal( wxID_CANCEL );
}
示例2: Init
void DIALOG_EESCHEMA_CONFIG::Init()
{
wxString msg;
SetFocus();
m_LibListChanged = false;
m_LibPathChanged = false;
m_UserLibDirBufferImg = m_Parent->GetUserLibraryPath();
m_ListLibr->InsertItems( m_Parent->GetComponentLibraries(), 0 );
// Load user libs paths:
wxStringTokenizer tokenizer( m_UserLibDirBufferImg, wxT( ";\n\r" ) );
while( tokenizer.HasMoreTokens() )
{
wxString path = tokenizer.GetNextToken();
if( wxFileName::DirExists( path ) )
m_listUserPaths->Append( path );
}
// Display actual libraries paths:
SEARCH_STACK& libpaths = Prj().SchSearchS();
for( unsigned ii = 0; ii < libpaths.GetCount(); ii++ )
{
m_DefaultLibraryPathslistBox->Append( libpaths[ii] );
}
// select the first path after the current path project
if ( libpaths.GetCount() > 1 )
m_DefaultLibraryPathslistBox->Select( 1 );
m_sdbSizer1OK->SetDefault();
}