KiCad PCB EDA Suite
project_tree_pane.cpp File Reference
#include <stack>
#include <wx/regex.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include <bitmaps.h>
#include <bitmap_store.h>
#include <gestfich.h>
#include <macros.h>
#include <menus_helpers.h>
#include <trace_helpers.h>
#include <wildcards_and_files_ext.h>
#include <kiplatform/environment.h>
#include <core/kicad_algo.h>
#include <paths.h>
#include <launch_ext.h>
#include <wx/dcclient.h>
#include <wx/settings.h>
#include "project_tree_item.h"
#include "project_tree.h"
#include "pgm_kicad.h"
#include "kicad_id.h"
#include "kicad_manager_frame.h"
#include "project_tree_pane.h"

Go to the source code of this file.

Functions

std::vector< wxString > getProjects (const wxDir &dir)
 

Variables

static const wxChar * s_allowedExtensionsToList []
 

Function Documentation

◆ getProjects()

std::vector< wxString > getProjects ( const wxDir &  dir)

Definition at line 286 of file project_tree_pane.cpp.

287{
288 std::vector<wxString> projects;
289 wxString dir_filename;
290 bool haveFile = dir.GetFirst( &dir_filename );
291
292 while( haveFile )
293 {
294 wxFileName file( dir_filename );
295
296 if( file.GetExt() == LegacyProjectFileExtension || file.GetExt() == ProjectFileExtension )
297 projects.push_back( file.GetName() );
298
299 haveFile = dir.GetNext( &dir_filename );
300 }
301
302 return projects;
303}
const std::string LegacyProjectFileExtension
const std::string ProjectFileExtension

References LegacyProjectFileExtension, and ProjectFileExtension.

Referenced by PROJECT_TREE_PANE::addItemToProjectTree(), PROJECT_TREE_PANE::onExpand(), and PROJECT_TREE_PANE::ReCreateTreePrj().

Variable Documentation

◆ s_allowedExtensionsToList

const wxChar* s_allowedExtensionsToList[]
static

Definition at line 70 of file project_tree_pane.cpp.

Referenced by PROJECT_TREE_PANE::PROJECT_TREE_PANE().