KiCad PCB EDA Suite
|
PROJECT_TREE This is the class to show (as a tree) the files in the project directory. More...
#include <project_tree.h>
Public Member Functions | |
PROJECT_TREE_PANE * | GetProjectTreePane () const |
PROJECT_TREE (PROJECT_TREE_PANE *parent) | |
~PROJECT_TREE () | |
void | LoadIcons () |
void | GetItemsRecursively (const wxTreeItemId &aParentId, std::vector< wxTreeItemId > &aItems) |
void | SetGitRepo (git_repository *aRepo) |
git_repository * | GetGitRepo () const |
KIGIT_COMMON * | GitCommon () const |
Private Member Functions | |
int | OnCompareItems (const wxTreeItemId &item1, const wxTreeItemId &item2) override |
Private Attributes | |
PROJECT_TREE_PANE * | m_projectTreePane |
wxImageList * | m_imageList |
wxImageList * | m_statusImageList |
std::unique_ptr< KIGIT_COMMON > | m_gitCommon |
PROJECT_TREE This is the class to show (as a tree) the files in the project directory.
Definition at line 42 of file project_tree.h.
PROJECT_TREE::PROJECT_TREE | ( | PROJECT_TREE_PANE * | parent | ) |
Definition at line 45 of file project_tree.cpp.
References KIUI::GetControlFont(), ID_PROJECT_TREE, LoadIcons(), m_gitCommon, m_imageList, m_projectTreePane, m_statusImageList, and PLATFORM_STYLE.
PROJECT_TREE::~PROJECT_TREE | ( | ) |
Definition at line 62 of file project_tree.cpp.
|
inline |
Definition at line 63 of file project_tree.h.
References m_gitCommon.
void PROJECT_TREE::GetItemsRecursively | ( | const wxTreeItemId & | aParentId, |
std::vector< wxTreeItemId > & | aItems ) |
Definition at line 211 of file project_tree.cpp.
References GetItemsRecursively().
Referenced by GetItemsRecursively().
|
inline |
Definition at line 53 of file project_tree.h.
References m_projectTreePane.
|
inline |
Definition at line 65 of file project_tree.h.
References m_gitCommon.
Referenced by KICAD_MANAGER_CONTROL::NewFromRepository().
void PROJECT_TREE::LoadIcons | ( | ) |
Definition at line 70 of file project_tree.cpp.
References directory, editor, file_cir, file_drl, file_gerber_job, file_html, file_pdf, file_pos, file_svg, git_add, git_changed_ahead, git_conflict, git_delete, git_good_check, git_modified, git_out_of_date, KIGIT_COMMON::GIT_STATUS_LAST, icon_cvpcb_24, icon_eeschema_24, icon_gerbview_24, icon_pagelayout_editor_24, icon_pcbnew_24, KiBitmap(), KiBitmapBundle(), library, m_imageList, m_statusImageList, MAX, module, netlist, project, project_kicad, tools, unknown, and zip.
Referenced by PROJECT_TREE().
|
overrideprivate |
Definition at line 225 of file project_tree.cpp.
References DIRECTORY, PROJECT_TREE_ITEM::GetFileName(), PROJECT_TREE_ITEM::GetType(), and PROJECT_TREE_ITEM::IsRootFile().
|
inline |
Definition at line 62 of file project_tree.h.
References m_gitCommon.
|
private |
Definition at line 50 of file project_tree.h.
Referenced by GetGitRepo(), GitCommon(), PROJECT_TREE(), and SetGitRepo().
|
private |
Definition at line 48 of file project_tree.h.
Referenced by LoadIcons(), and PROJECT_TREE().
|
private |
Definition at line 47 of file project_tree.h.
Referenced by GetProjectTreePane(), and PROJECT_TREE().
|
private |
Definition at line 49 of file project_tree.h.
Referenced by LoadIcons(), and PROJECT_TREE().