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 |
In case of folders: extensions of files inside. | |
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 |
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(), SCH_EDIT_FRAME::OnImportProject(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), and PANEL_FP_LIB_TABLE::setupGrid().
bool IO_BASE::IO_FILE_DESC::m_CanRead |
Whether the IO can read this file type.
Definition at line 48 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 44 of file io_base.h.
Referenced by FileFilter().
std::vector<std::string> IO_BASE::IO_FILE_DESC::m_ExtensionsInDir |
In case of folders: extensions of files inside.
Definition at line 46 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.
Definition at line 45 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 47 of file io_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), IO_BASE::CanReadLibrary(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), and PANEL_FP_LIB_TABLE::setupGrid().