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

const wxString GerberFileExtensionWildCard (wxT(".((gbr|gbrjob|(gb|gt)[alops])|pho)"))
 
std::vector< wxString > getProjects (const wxDir &dir)
 

Variables

static const wxChar * s_allowedExtensionsToList []
 

Function Documentation

◆ GerberFileExtensionWildCard()

const wxString GerberFileExtensionWildCard ( wxT(".((gbr|gbrjob|(gb|gt)[alops])|pho)")  )

◆ getProjects()

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

Definition at line 289 of file project_tree_pane.cpp.

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

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().