Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
bab4564d
Commit
bab4564d
authored
Feb 17, 2010
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
see changelog
parent
98ea05d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
4 deletions
+38
-4
CHANGELOG.txt
CHANGELOG.txt
+13
-0
treeprj_frame.cpp
kicad/treeprj_frame.cpp
+25
-4
No files found.
CHANGELOG.txt
View file @
bab4564d
...
@@ -4,6 +4,19 @@ KiCad ChangeLog 2010
...
@@ -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.
...
...
kicad/treeprj_frame.cpp
View file @
bab4564d
...
@@ -8,6 +8,7 @@
...
@@ -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 @@
...
@@ -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 )
...
@@ -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 )
...
@@ -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_
P
YTHON */
// 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()
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment