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 | 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(), LoadIcons(), m_gitCommon, and m_projectTreePane.
PROJECT_TREE::~PROJECT_TREE | ( | ) |
Definition at line 62 of file project_tree.cpp.
References m_imageList, and m_statusImageList.
|
inline |
Definition at line 61 of file project_tree.h.
References m_gitCommon.
Referenced by PROJECT_TREE_PANE::canFileBeAddedToVCS(), PROJECT_TREE_PANE::EmptyTreePrj(), PROJECT_TREE_PANE::hasChangedFiles(), PROJECT_TREE_PANE::onGitCommit(), PROJECT_TREE_PANE::onGitFetch(), PROJECT_TREE_PANE::onGitPullProject(), PROJECT_TREE_PANE::onGitPushProject(), PROJECT_TREE_PANE::onGitRemoveFromIndex(), PROJECT_TREE_PANE::onGitRemoveVCS(), PROJECT_TREE_PANE::onGitResolveConflict(), PROJECT_TREE_PANE::onGitRevertLocal(), PROJECT_TREE_PANE::onGitSwitchBranch(), PROJECT_TREE_PANE::onGitSyncProject(), PROJECT_TREE_PANE::onRight(), PROJECT_TREE_PANE::ReCreateTreePrj(), and PROJECT_TREE_PANE::updateGitStatusIcons().
|
inline |
Definition at line 53 of file project_tree.h.
References m_projectTreePane.
|
inline |
Definition at line 63 of file project_tree.h.
References m_gitCommon.
Referenced by PROJECT_TREE_PANE::onGitInitializeProject(), PROJECT_TREE_PANE::onGitPullProject(), PROJECT_TREE_PANE::onGitPushProject(), PROJECT_TREE_PANE::onRight(), PROJECT_TREE_PANE::ReCreateTreePrj(), and PROJECT_TREE_PANE::updateGitStatusIcons().
void PROJECT_TREE::LoadIcons | ( | ) |
Definition at line 69 of file project_tree.cpp.
References KIGIT_COMMON::GIT_STATUS_LAST, KiBitmap(), KiBitmapBundle(), m_imageList, and m_statusImageList.
Referenced by PROJECT_TREE_PANE::onThemeChanged(), and PROJECT_TREE().
|
overrideprivate |
Definition at line 208 of file project_tree.cpp.
References PROJECT_TREE_ITEM::GetFileName(), PROJECT_TREE_ITEM::GetType(), and PROJECT_TREE_ITEM::IsRootFile().
|
inline |
Definition at line 60 of file project_tree.h.
References m_gitCommon.
Referenced by PROJECT_TREE_PANE::EmptyTreePrj(), PROJECT_TREE_PANE::onGitInitializeProject(), PROJECT_TREE_PANE::onGitRemoveVCS(), and PROJECT_TREE_PANE::ReCreateTreePrj().
|
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().