|
|
@ -25,6 +25,8 @@ |
|
|
#ifndef PROJECT_TREE_H |
|
|
#ifndef PROJECT_TREE_H |
|
|
#define PROJECT_TREE_H |
|
|
#define PROJECT_TREE_H |
|
|
|
|
|
|
|
|
|
|
|
#include <memory> |
|
|
|
|
|
|
|
|
#include <git/kicad_git_common.h> |
|
|
#include <git/kicad_git_common.h> |
|
|
|
|
|
|
|
|
#include <wx/treectrl.h> |
|
|
#include <wx/treectrl.h> |
|
|
@ -45,7 +47,7 @@ private: |
|
|
PROJECT_TREE_PANE* m_projectTreePane; |
|
|
PROJECT_TREE_PANE* m_projectTreePane; |
|
|
wxImageList* m_imageList; |
|
|
wxImageList* m_imageList; |
|
|
wxImageList* m_statusImageList; |
|
|
wxImageList* m_statusImageList; |
|
|
KIGIT_COMMON* m_gitCommon; |
|
|
|
|
|
|
|
|
std::unique_ptr<KIGIT_COMMON> m_gitCommon; |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
PROJECT_TREE_PANE* GetProjectTreePane() const { return m_projectTreePane; } |
|
|
PROJECT_TREE_PANE* GetProjectTreePane() const { return m_projectTreePane; } |
|
|
@ -58,7 +60,7 @@ public: |
|
|
void SetGitRepo( git_repository* aRepo ) { m_gitCommon->SetRepo( aRepo ); } |
|
|
void SetGitRepo( git_repository* aRepo ) { m_gitCommon->SetRepo( aRepo ); } |
|
|
git_repository* GetGitRepo() const { return m_gitCommon->GetRepo(); } |
|
|
git_repository* GetGitRepo() const { return m_gitCommon->GetRepo(); } |
|
|
|
|
|
|
|
|
KIGIT_COMMON* GitCommon() const { return m_gitCommon; } |
|
|
|
|
|
|
|
|
KIGIT_COMMON* GitCommon() const { return m_gitCommon.get(); } |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
/* overridden sort function */ |
|
|
/* overridden sort function */ |
|
|
|