2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_eeschema_config.cpp
|
2008-04-09 17:27:59 +00:00
|
|
|
// Purpose:
|
2007-06-05 12:10:51 +00:00
|
|
|
// Author: jean-pierre Charras
|
|
|
|
// Created: 17/02/2006 21:14:46
|
2009-04-06 10:56:17 +00:00
|
|
|
// Copyright: Kicad Team
|
|
|
|
// Licence: GPL
|
2007-06-05 12:10:51 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "appl_wxstruct.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "common.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "confirm.h"
|
|
|
|
#include "gestfich.h"
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "program.h"
|
|
|
|
#include "general.h"
|
|
|
|
#include "protos.h"
|
|
|
|
#include "netlist.h"
|
2010-02-16 16:21:52 +00:00
|
|
|
#include "libeditframe.h"
|
|
|
|
#include "viewlib_frame.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-09-22 12:27:57 +00:00
|
|
|
#include <wx/tokenzr.h>
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
#include "dialog_eeschema_config_fbp.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
class DIALOG_EESCHEMA_CONFIG : public DIALOG_EESCHEMA_CONFIG_FBP
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-06 10:56:17 +00:00
|
|
|
private:
|
|
|
|
WinEDA_SchematicFrame* m_Parent;
|
|
|
|
bool m_LibListChanged;
|
2009-04-18 14:14:40 +00:00
|
|
|
bool m_LibPathChanged;
|
2009-05-01 18:06:03 +00:00
|
|
|
wxString m_UserLibDirBufferImg; // Copy of original g_UserLibDirBuffer
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
private:
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-14 16:45:22 +00:00
|
|
|
// event handlers, overiding the fbp handlers
|
2009-04-06 10:56:17 +00:00
|
|
|
void Init();
|
2009-04-14 16:45:22 +00:00
|
|
|
void OnCloseWindow( wxCloseEvent& event );
|
|
|
|
void OnRemoveLibClick( wxCommandEvent& event );
|
|
|
|
void OnAddOrInsertLibClick( wxCommandEvent& event );
|
2009-04-18 14:14:40 +00:00
|
|
|
void OnAddOrInsertPath( wxCommandEvent& event );
|
2009-04-14 16:45:22 +00:00
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
|
|
|
void OnRemoveUserPath( wxCommandEvent& event );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
public:
|
|
|
|
DIALOG_EESCHEMA_CONFIG( WinEDA_SchematicFrame * parent );
|
|
|
|
~DIALOG_EESCHEMA_CONFIG() {};
|
|
|
|
};
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/******************************************************************/
|
|
|
|
void WinEDA_SchematicFrame::InstallConfigFrame( const wxPoint& pos )
|
|
|
|
/******************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-12 14:39:54 +00:00
|
|
|
DIALOG_EESCHEMA_CONFIG CfgFrame( this );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-12 14:39:54 +00:00
|
|
|
CfgFrame.ShowModal();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/*******************************************************************************/
|
|
|
|
DIALOG_EESCHEMA_CONFIG::DIALOG_EESCHEMA_CONFIG( WinEDA_SchematicFrame* parent )
|
|
|
|
: DIALOG_EESCHEMA_CONFIG_FBP( parent )
|
|
|
|
/*******************************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-06 10:56:17 +00:00
|
|
|
wxString msg;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
m_Parent = parent;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
Init();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
msg = _( "from " ) + wxGetApp().m_CurrentOptionFile;
|
|
|
|
SetTitle( msg );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
if( GetSizer() )
|
|
|
|
GetSizer()->SetSizeHints( this );
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/***********************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::Init()
|
|
|
|
/***********************************/
|
|
|
|
{
|
2009-05-01 18:06:03 +00:00
|
|
|
wxString msg;
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
SetFocus();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-18 14:14:40 +00:00
|
|
|
m_LibListChanged = false;
|
|
|
|
m_LibPathChanged = false;
|
2009-05-01 18:06:03 +00:00
|
|
|
m_UserLibDirBufferImg = m_Parent->m_UserLibraryPath;
|
2008-04-09 17:27:59 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-29 17:09:00 +00:00
|
|
|
m_ListLibr->InsertItems( m_Parent->m_ComponentLibFiles, 0 );
|
2009-04-18 14:14:40 +00:00
|
|
|
|
|
|
|
// Load user libs paths:
|
|
|
|
wxStringTokenizer Token( m_UserLibDirBufferImg, wxT( ";\n\r" ) );
|
|
|
|
while( Token.HasMoreTokens() )
|
|
|
|
{
|
|
|
|
wxString path = Token.GetNextToken();
|
|
|
|
if( wxFileName::DirExists( path ) )
|
|
|
|
m_listUserPaths->Append(path);
|
|
|
|
}
|
2009-04-12 14:39:54 +00:00
|
|
|
|
|
|
|
// Display actual libraries paths:
|
|
|
|
wxPathList libpaths = wxGetApp().GetLibraryPathList();
|
|
|
|
for( unsigned ii = 0; ii < libpaths.GetCount(); ii++ )
|
|
|
|
{
|
|
|
|
m_DefaultLibraryPathslistBox->Append( libpaths[ii]);
|
|
|
|
}
|
2009-04-18 14:14:40 +00:00
|
|
|
|
|
|
|
// select the first path afer the current path project
|
|
|
|
if ( libpaths.GetCount() > 1 )
|
|
|
|
m_DefaultLibraryPathslistBox->Select( 1 );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/******************************************************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnCancelClick( wxCommandEvent& event )
|
|
|
|
/******************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-18 14:14:40 +00:00
|
|
|
// Recreate the user lib path
|
|
|
|
if ( m_LibPathChanged )
|
|
|
|
{
|
|
|
|
for ( unsigned ii = 0; ii < m_ListLibr->GetCount(); ii ++ )
|
|
|
|
wxGetApp().RemoveLibraryPath( m_listUserPaths->GetString(ii)) ;
|
2009-04-29 17:09:00 +00:00
|
|
|
wxGetApp().InsertLibraryPath( m_Parent->m_UserLibraryPath, 1);
|
2009-04-18 14:14:40 +00:00
|
|
|
}
|
2009-05-01 18:06:03 +00:00
|
|
|
|
|
|
|
EndModal( wxID_CANCEL );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************/
|
2009-04-06 10:56:17 +00:00
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnOkClick( wxCommandEvent& event )
|
2007-06-05 12:10:51 +00:00
|
|
|
/**************************************************************/
|
|
|
|
{
|
2009-04-18 14:14:40 +00:00
|
|
|
// Recreate the user lib path
|
|
|
|
if ( m_LibPathChanged )
|
2009-04-10 13:39:03 +00:00
|
|
|
{
|
2009-04-29 17:09:00 +00:00
|
|
|
m_Parent->m_UserLibraryPath.Empty();
|
2009-04-18 14:14:40 +00:00
|
|
|
for ( unsigned ii = 0; ii < m_listUserPaths->GetCount(); ii ++ )
|
|
|
|
{
|
|
|
|
if ( ii > 0 )
|
2009-04-29 17:09:00 +00:00
|
|
|
m_Parent->m_UserLibraryPath << wxT(";");
|
|
|
|
m_Parent->m_UserLibraryPath << m_listUserPaths->GetString(ii);
|
2009-04-18 14:14:40 +00:00
|
|
|
}
|
2009-04-10 13:39:03 +00:00
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-05-01 18:06:03 +00:00
|
|
|
/* Set new active library list if the lib list of if default path list
|
|
|
|
* was modified
|
|
|
|
*/
|
2009-04-18 14:14:40 +00:00
|
|
|
if( m_LibListChanged || m_LibPathChanged )
|
2009-04-06 10:56:17 +00:00
|
|
|
{
|
|
|
|
// Recreate lib list
|
2009-04-29 17:09:00 +00:00
|
|
|
m_Parent->m_ComponentLibFiles.Clear();
|
2009-04-06 10:56:17 +00:00
|
|
|
for ( unsigned ii = 0; ii < m_ListLibr->GetCount(); ii ++ )
|
2009-04-29 17:09:00 +00:00
|
|
|
m_Parent->m_ComponentLibFiles.Add(m_ListLibr->GetString(ii) );
|
2009-04-06 18:54:57 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
// take new list in account
|
2009-09-18 14:56:05 +00:00
|
|
|
m_Parent->LoadLibraries();
|
2009-12-22 20:08:56 +00:00
|
|
|
// Clear (if needed) the current active library in libedit because it could be
|
|
|
|
// removed from memory
|
|
|
|
WinEDA_LibeditFrame::EnsureActiveLibExists();
|
2009-04-06 10:56:17 +00:00
|
|
|
}
|
2009-05-01 18:06:03 +00:00
|
|
|
|
2010-01-08 12:28:13 +00:00
|
|
|
m_Parent->SaveProjectFile( this, false );
|
2009-05-01 18:06:03 +00:00
|
|
|
EndModal( wxID_OK );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/**************************************************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnCloseWindow( wxCloseEvent& event )
|
|
|
|
/**************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-05-01 18:06:03 +00:00
|
|
|
EndModal( wxID_CANCEL );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-02-07 20:11:09 +00:00
|
|
|
|
2008-04-09 17:27:59 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/*********************************************************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnRemoveLibClick( wxCommandEvent& event )
|
|
|
|
/*********************************************************************/
|
2009-04-09 13:21:26 +00:00
|
|
|
/* Remove a library to the library list.
|
2009-04-29 17:09:00 +00:00
|
|
|
* The real list (m_Parent->m_ComponentLibFiles) is not changed, so the change can be cancelled
|
2009-04-09 13:21:26 +00:00
|
|
|
*/
|
2009-04-06 10:56:17 +00:00
|
|
|
{
|
|
|
|
int ii;
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
ii = m_ListLibr->GetSelection();
|
|
|
|
if( ii < 0 )
|
|
|
|
return;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
m_ListLibr->Delete(ii);
|
|
|
|
m_LibListChanged = TRUE;
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/**************************************************************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnAddOrInsertLibClick( wxCommandEvent& event )
|
|
|
|
/**************************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-09 13:21:26 +00:00
|
|
|
/* Insert or add a library to the library list:
|
|
|
|
* The new library is put in list before (insert button) the selection,
|
|
|
|
* or added (add button) to end of list
|
2009-04-29 17:09:00 +00:00
|
|
|
* The real list (m_Parent->m_ComponentLibFiles) is not changed, so the change
|
|
|
|
* can be cancelled
|
2009-04-06 10:56:17 +00:00
|
|
|
*/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-08 18:06:22 +00:00
|
|
|
int ii;
|
2009-04-12 14:39:54 +00:00
|
|
|
wxString libfilename;
|
2009-04-08 18:06:22 +00:00
|
|
|
wxFileName fn;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
ii = m_ListLibr->GetSelection();
|
2009-04-08 18:06:22 +00:00
|
|
|
if( ii == wxNOT_FOUND && event.GetId() != ID_ADD_LIB )
|
2009-04-06 10:56:17 +00:00
|
|
|
ii = 0;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-18 14:14:40 +00:00
|
|
|
wxString libpath;
|
|
|
|
libpath = m_DefaultLibraryPathslistBox->GetStringSelection();
|
2009-04-06 10:56:17 +00:00
|
|
|
if ( libpath.IsEmpty() )
|
2009-04-14 16:45:22 +00:00
|
|
|
libpath = wxGetApp().ReturnLastVisitedLibraryPath();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
wxFileDialog FilesDialog( this, _( "Library files:" ), libpath,
|
2009-04-08 18:06:22 +00:00
|
|
|
wxEmptyString, CompLibFileWildcard,
|
2009-04-06 10:56:17 +00:00
|
|
|
wxFD_DEFAULT_STYLE | wxFD_MULTIPLE );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-08 18:06:22 +00:00
|
|
|
if( FilesDialog.ShowModal() != wxID_OK )
|
2009-04-06 10:56:17 +00:00
|
|
|
return;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
wxArrayString Filenames;
|
|
|
|
FilesDialog.GetPaths( Filenames );
|
|
|
|
|
2009-04-14 16:45:22 +00:00
|
|
|
for( unsigned jj = 0; jj < Filenames.GetCount(); jj++ )
|
2009-04-06 10:56:17 +00:00
|
|
|
{
|
2009-04-08 18:06:22 +00:00
|
|
|
fn = Filenames[jj];
|
2009-04-14 16:45:22 +00:00
|
|
|
if ( jj == 0 )
|
|
|
|
wxGetApp().SaveLastVisitedLibraryPath( fn.GetPath() );
|
2009-04-08 18:06:22 +00:00
|
|
|
|
|
|
|
/* If the library path is already in the library search paths
|
|
|
|
* list, just add the library name to the list. Otherwise, add
|
2009-04-12 14:39:54 +00:00
|
|
|
* the library name with the full or relative path.
|
|
|
|
* the relative path, when possible is preferable,
|
2009-05-01 18:06:03 +00:00
|
|
|
* because it preserve use of default libraries paths, when the path
|
|
|
|
* is a sub path of these default paths
|
|
|
|
*/
|
2009-10-23 14:35:24 +00:00
|
|
|
libfilename = wxGetApp().ReturnFilenameWithRelativePathInLibPath( fn.GetFullPath() );
|
|
|
|
// Remove extension:
|
|
|
|
fn = libfilename;
|
|
|
|
fn.SetExt(wxEmptyString);
|
|
|
|
libfilename = fn.GetFullPath();
|
2009-04-06 10:56:17 +00:00
|
|
|
|
|
|
|
//Add or insert new library name, if not already in list
|
2009-04-12 14:39:54 +00:00
|
|
|
if( m_ListLibr->FindString( libfilename, fn.IsCaseSensitive() ) == wxNOT_FOUND )
|
2009-04-06 10:56:17 +00:00
|
|
|
{
|
|
|
|
m_LibListChanged = TRUE;
|
2009-04-08 18:06:22 +00:00
|
|
|
if( event.GetId() == ID_ADD_LIB )
|
2009-04-12 14:39:54 +00:00
|
|
|
m_ListLibr->Append( libfilename );
|
2009-04-08 18:06:22 +00:00
|
|
|
else
|
2009-04-12 14:39:54 +00:00
|
|
|
m_ListLibr->Insert( libfilename, ii++ );
|
2009-04-06 10:56:17 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2009-04-12 14:39:54 +00:00
|
|
|
wxString msg = wxT( "<" ) + libfilename + wxT( "> : " ) +
|
2009-04-08 18:06:22 +00:00
|
|
|
_( "Library already in use" );
|
2009-04-06 10:56:17 +00:00
|
|
|
DisplayError( this, msg );
|
|
|
|
}
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
/***********************************************************************/
|
2009-04-18 14:14:40 +00:00
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnAddOrInsertPath( wxCommandEvent& event )
|
2009-04-06 10:56:17 +00:00
|
|
|
/***********************************************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-04-18 14:14:40 +00:00
|
|
|
wxString path = wxGetApp().ReturnLastVisitedLibraryPath();
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-05-01 18:06:03 +00:00
|
|
|
bool select = EDA_DirectorySelector( _( "Default Path for Libraries" ),
|
|
|
|
path, wxDD_DEFAULT_STYLE,
|
|
|
|
this, wxDefaultPosition );
|
2008-04-09 17:27:59 +00:00
|
|
|
|
2009-04-06 10:56:17 +00:00
|
|
|
if( !select )
|
|
|
|
return;
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-04-18 14:14:40 +00:00
|
|
|
if( ! wxFileName::DirExists( path ) ) // Should not occurs
|
|
|
|
return;
|
|
|
|
|
|
|
|
// Add or insert path if not already in list
|
|
|
|
if( m_listUserPaths->FindString( path ) == wxNOT_FOUND )
|
|
|
|
{
|
|
|
|
int ipos = m_listUserPaths->GetCount();
|
|
|
|
if ( event.GetId() == wxID_INSERT_PATH )
|
|
|
|
{
|
|
|
|
if ( ipos ) ipos--;
|
|
|
|
int jj = m_listUserPaths->GetSelection();
|
|
|
|
if ( jj >= 0 )
|
|
|
|
ipos = jj;
|
|
|
|
}
|
2010-01-20 12:43:05 +00:00
|
|
|
|
|
|
|
// Ask the user if this is a relative path
|
|
|
|
int diag = wxMessageBox(
|
|
|
|
_( "Use a relative path?" ),
|
|
|
|
_( "Path type" ),
|
|
|
|
wxYES_NO | wxICON_QUESTION, this );
|
|
|
|
|
|
|
|
if( diag == wxYES )
|
|
|
|
{ // Make it relative
|
|
|
|
wxFileName fn = path;
|
|
|
|
fn.MakeRelativeTo( wxT(".") );
|
|
|
|
path = fn.GetPathWithSep() + fn.GetFullName();
|
|
|
|
}
|
|
|
|
|
2009-04-18 14:14:40 +00:00
|
|
|
m_listUserPaths->Insert(path, ipos);
|
|
|
|
m_LibPathChanged = true;
|
|
|
|
wxGetApp().InsertLibraryPath( path, ipos+1 );
|
|
|
|
|
|
|
|
// Display actual libraries paths:
|
|
|
|
wxPathList libpaths = wxGetApp().GetLibraryPathList();
|
|
|
|
m_DefaultLibraryPathslistBox->Clear();
|
|
|
|
for( unsigned ii = 0; ii < libpaths.GetCount(); ii++ )
|
|
|
|
{
|
|
|
|
m_DefaultLibraryPathslistBox->Append( libpaths[ii]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
DisplayError(this, _("Path already in use") );
|
|
|
|
|
2009-04-14 16:45:22 +00:00
|
|
|
wxGetApp().SaveLastVisitedLibraryPath( path );
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
2009-04-14 16:45:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************/
|
|
|
|
void DIALOG_EESCHEMA_CONFIG::OnRemoveUserPath( wxCommandEvent& event )
|
|
|
|
/***********************************************************************/
|
|
|
|
{
|
2009-04-18 14:14:40 +00:00
|
|
|
int ii = m_listUserPaths->GetSelection();
|
|
|
|
if ( ii < 0 )
|
|
|
|
ii = m_listUserPaths->GetCount()-1;
|
|
|
|
if ( ii >= 0 )
|
|
|
|
{
|
|
|
|
wxGetApp().RemoveLibraryPath( m_listUserPaths->GetStringSelection() );
|
|
|
|
m_listUserPaths->Delete( ii );
|
|
|
|
m_LibPathChanged = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Display actual libraries paths:
|
|
|
|
wxPathList libpaths = wxGetApp().GetLibraryPathList();
|
|
|
|
m_DefaultLibraryPathslistBox->Clear();
|
|
|
|
for( unsigned ii = 0; ii < libpaths.GetCount(); ii++ )
|
|
|
|
{
|
|
|
|
m_DefaultLibraryPathslistBox->Append( libpaths[ii]);
|
|
|
|
}
|
|
|
|
}
|