see changelog

This commit is contained in:
charras 2010-02-17 17:47:12 +00:00
parent 98ea05d057
commit bab4564dff
2 changed files with 38 additions and 4 deletions

View File

@ -4,6 +4,19 @@ KiCad ChangeLog 2010
Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with
email address. email address.
2010-Feb-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
kicad:
* Building the tree project can be *very* long if there are a lot of
* subdirectories in the working directory.
* Unfornately, this happens easily if the project file *.pro
* is in the home directory
* when subdirs are not loaded, double click on a directory to load its files and subdirs
* #define ADD_FILES_IN_SUBDIRS was used ubtil now.
* is now commented, so one must double click on a subdir name to load its files
* See treeprj_frme.cpp for more info
2010-Feb-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr> 2010-Feb-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================ ================================================================================
Eeschema, libedit: fixed last problems when editing alias info. Eeschema, libedit: fixed last problems when editing alias info.

View File

@ -8,6 +8,7 @@
#include <pyhandler.h> #include <pyhandler.h>
#endif #endif
#include <wx/wupdlock.h>
#include "fctsys.h" #include "fctsys.h"
#include "gr_basic.h" #include "gr_basic.h"
#include "common.h" #include "common.h"
@ -26,9 +27,18 @@
#include "wx/dir.h" #include "wx/dir.h"
// Comment this if you do no want to load subdirs files in the tree project /* Comment this if you do no want to load subdirs files in the tree project
// UnComment this to load subdirs files in the tree project * UnComment this to load subdirs files in the tree project
#define ADD_FILES_IN_SUBDIRS * Building the tree project can be *very* long if there are a lot of subdirectories
* in the working directory.
* Unfornately, this happens easily if the project file *.pro is in the home directory
* when subdirs are not built, double click on a directory to load its files and subdirs
*/
// #define ADD_FILES_IN_SUBDIRS
// TODO: a better way could be to load current dir and first subdirs, and load
// load subdir filenames on opening a subdir
// list of files extensions listed in the tree project window // list of files extensions listed in the tree project window
// *.sch files are always allowed, do not add here // *.sch files are always allowed, do not add here
@ -724,6 +734,13 @@ bool WinEDA_PrjFrame::AddFile( const wxString& name, wxTreeItemId& root )
// Check the file type // Check the file type
TreeFileType type = TREE_UNKNOWN; TreeFileType type = TREE_UNKNOWN;
// Skip not visible files and dirs
wxFileName fn(name);
// Files/dirs names starting by "." are not visible files under unices.
// Skip them also under Windows
if( fn.GetName().StartsWith(wxT(".") ) )
return false;
if( wxDirExists( name ) ) if( wxDirExists( name ) )
{ {
type = TREE_DIRECTORY; type = TREE_DIRECTORY;
@ -845,7 +862,7 @@ bool WinEDA_PrjFrame::AddFile( const wxString& name, wxTreeItemId& root )
#ifdef KICAD_PYTHON #ifdef KICAD_PYTHON
PyHandler::GetInstance()->TriggerEvent( wxT( "kicad::TreeAddFile" ), PyHandler::GetInstance()->TriggerEvent( wxT( "kicad::TreeAddFile" ),
PyHandler::Convert( name ) ); PyHandler::Convert( name ) );
#endif /* KICAD_YTHON */ #endif /* KICAD_PYTHON */
// When enabled This section adds dirs and files found in the subdirs // When enabled This section adds dirs and files found in the subdirs
@ -892,6 +909,10 @@ void WinEDA_PrjFrame::ReCreateTreePrj()
else else
m_TreeProject->DeleteAllItems(); m_TreeProject->DeleteAllItems();
// Do not update the frame while building the project tree
// This can take a while if there is a lot of files and directories in CWD
wxWindowUpdateLocker noUpdateTree( this );
if( !m_Parent->m_ProjectFileName.IsOk() ) if( !m_Parent->m_ProjectFileName.IsOk() )
{ {
fn.Clear(); fn.Clear();