| 
    KiCad PCB EDA Suite
    
   | 
 
Container that describes file type info. More...
#include <io_base.h>
Public Member Functions | |
| IO_FILE_DESC (const wxString &aDescription, const std::vector< std::string > &aFileExtensions, const std::vector< std::string > &aExtsInFolder={}, bool aIsFile=true, bool aCanRead=true, bool aCanWrite=true) | |
| IO_FILE_DESC () | |
| wxString | FileFilter () const | 
| operator bool () const | |
Public Attributes | |
| wxString | m_Description | 
| Description shown in the file picker dialog.   | |
| std::vector< std::string > | m_FileExtensions | 
| Filter used for file pickers if m_IsFile is true.   | |
| std::vector< std::string > | m_ExtensionsInDir | 
| bool | m_IsFile | 
| Whether the library is a folder or a file.   | |
| bool | m_CanRead | 
| Whether the IO can read this file type.   | |
| bool | m_CanWrite | 
| Whether the IO can write this file type.   | |
      
  | 
  inline | 
Definition at line 57 of file io_base.h.
Referenced by IO_FILE_DESC().
      
  | 
  inline | 
Definition at line 66 of file io_base.h.
References IO_FILE_DESC().
| wxString IO_BASE::IO_FILE_DESC::FileFilter | ( | ) | const | 
Definition at line 40 of file io_base.cpp.
References AddFileExtListToFilter(), m_Description, and m_FileExtensions.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), SYMBOL_EDIT_FRAME::ImportSymbol(), and SCH_EDIT_FRAME::OnImportProject().
      
  | 
  inline | 
Definition at line 73 of file io_base.h.
References m_Description.
| bool IO_BASE::IO_FILE_DESC::m_CanRead | 
Whether the IO can read this file type.
Definition at line 54 of file io_base.h.
Referenced by AskLoadBoardFileName(), and SCH_EDIT_FRAME::OnImportProject().
| bool IO_BASE::IO_FILE_DESC::m_CanWrite | 
| wxString IO_BASE::IO_FILE_DESC::m_Description | 
Description shown in the file picker dialog.
Definition at line 46 of file io_base.h.
Referenced by FileFilter(), and operator bool().
| std::vector<std::string> IO_BASE::IO_FILE_DESC::m_ExtensionsInDir | 
Definition at line 52 of file io_base.h.
Referenced by IO_BASE::CanReadLibrary().
| std::vector<std::string> IO_BASE::IO_FILE_DESC::m_FileExtensions | 
Filter used for file pickers if m_IsFile is true.
In case of folders: extensions of files inside.
Definition at line 49 of file io_base.h.
Referenced by AskLoadBoardFileName(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), PCB_IO::CanReadBoard(), PCB_IO::CanReadFootprint(), IO_BASE::CanReadLibrary(), SCH_IO::CanReadSchematicFile(), FileFilter(), FOOTPRINT_EDIT_FRAME::ImportFootprint(), SYMBOL_EDIT_FRAME::ImportSymbol(), and SCH_EDIT_FRAME::OnImportProject().
| bool IO_BASE::IO_FILE_DESC::m_IsFile | 
Whether the library is a folder or a file.
Definition at line 53 of file io_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), and IO_BASE::CanReadLibrary().