KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PROJECT_TREE_PANE Class Reference

Window to display the tree files. More...

#include <project_tree_pane.h>

Inheritance diagram for PROJECT_TREE_PANE:

Public Member Functions

 PROJECT_TREE_PANE (KICAD_MANAGER_FRAME *parent)
 
 ~PROJECT_TREE_PANE ()
 
void ReCreateTreePrj ()
 Create or modify the tree showing project file names.
 
void FileWatcherReset ()
 Reinit the watched paths Should be called after opening a new project to rebuild the list of watched paths.
 
void EmptyTreePrj ()
 Delete all m_TreeProject entries.
 
void WaitForGitOperations ()
 Give a running background git operation a chance to finish, asking the user to keep waiting or abandon.
 

Public Attributes

KICAD_MANAGER_FRAME * m_Parent
 
PROJECT_TREE * m_TreeProject
 

Protected Member Functions

std::vector< PROJECT_TREE_ITEM * > GetSelectedData ()
 Return the item data from item currently selected (highlighted)
 
PROJECT_TREE_ITEM * GetItemIdData (wxTreeItemId aId)
 Return the item data corresponding to a wxTreeItemId identifier.
 

Static Protected Member Functions

static wxString GetFileExt (TREE_FILE_TYPE type)
 

Private Member Functions

void onSelect (wxTreeEvent &Event)
 Called on a double click on an item.
 
void onExpand (wxTreeEvent &Event)
 Called on a click on the + or - button of an item with children.
 
void onRight (wxTreeEvent &Event)
 Called on a right click on an item.
 
void showContextMenu ()
 
void onOpenSelectedFileWithTextEditor (wxCommandEvent &event)
 Call the text editor to open the selected file in the tree project.
 
void onDeleteFile (wxCommandEvent &event)
 Delete the selected file or directory in the tree project.
 
void onRenameFile (wxCommandEvent &event)
 Rename the selected file or directory in the tree project.
 
void onOpenDirectory (wxCommandEvent &event)
 Handles the right-click menu for opening a directory in the current system file browser.
 
void onCreateNewDirectory (wxCommandEvent &event)
 Creates a new subdirectory inside the current kicad project directory the user is prompted to enter a directory name.
 
void onSwitchToSelectedProject (wxCommandEvent &event)
 Switch to a other project selected from the tree project (by selecting an other .pro file inside the current project folder)
 
void onIdle (wxIdleEvent &aEvent)
 Idle event handler, used process the selected items at a point in time when all other events have been consumed.
 
void onPaint (wxPaintEvent &aEvent)
 We don't have uniform borders so we have to draw them ourselves.
 
void onGitInitializeProject (wxCommandEvent &event)
 Initialize a new git repository in the current project directory.
 
void onGitRemoteSettings (wxCommandEvent &event)
 Configure (or change) the default remote on an already-initialized repository.
 
void showGitRemoteSettings (const wxString &aExistingURL, const wxString &aUsername, const wxString &aPassword)
 
void onGitHistory (wxCommandEvent &event)
 Open the advanced Git window on its History page.
 
void onGitSwitchBranch (wxCommandEvent &event)
 Switch to a different branch in the git repository.
 
void switchGitBranch (std::shared_ptr< KIGIT_COMMON > aCommon, const wxString &aBranchName, bool aCreate)
 
void onGitIgnore (wxCommandEvent &event)
 Add the selected files to, or take them out of, the project's ignored files.
 
void onGitEditIgnoreFile (wxCommandEvent &event)
 Open the project's ignore file, for rules the menu items cannot reach.
 
wxMenu * buildIgnoreSubmenu (const std::vector< PROJECT_TREE_ITEM * > &aSelection, bool &aUsable)
 Build the Ignore submenu for a selection, and remember what its items apply to.
 
void openInTextEditor (const std::vector< wxString > &aFileNames)
 Open files in the user's text editor, or explain that none is chosen.
 
void onGitRemoveVCS (wxCommandEvent &event)
 Remove the git repository from the current project directory.
 
void onRunSelectedJobsFile (wxCommandEvent &event)
 Run a selected jobs file.
 
void updateGitStatusIcons ()
 Updates the icons shown in the tree project to reflect the current git status.
 
void updateGitStatusIconMap (std::shared_ptr< KIGIT_COMMON > aGitCommon, const wxString &aProjectFullName)
 This is a threaded call that will change the map of git status icons for use in the main thread.
 
void updateTreeCache ()
 Updates the map of the wxtreeitemid to the name of each file for use in the thread.
 
void releaseGitRepo ()
 Releases the git repository handle, deferring the free to the orphan registry while a background git operation still holds the action mutex.
 
std::shared_ptr< KIGIT_COMMON > gitCommon () const
 The current project's git session, created empty on first use.
 
void syncGitListener ()
 Follow the project's git session with a refresh listener, so operations started from the version control panel or the advanced window update the tree's icons and branch label.
 
git_repository * gitRepo () const
 
bool hasLocalCommits ()
 Returns true if the current project has local commits that have not been pushed to the remote repository.
 
void shutdownFileWatcher ()
 Shutdown the file watcher.
 
wxTreeItemId addItemToProjectTree (const wxString &aName, const wxTreeItemId &aParent, std::vector< wxString > *aProjectNames, bool aRecurse)
 Add the file or directory aName to the project tree.
 
wxTreeItemId findSubdirTreeItem (const wxString &aSubDir)
 Search for the item in tree project which is the node of the subdirectory aSubDir.
 
void onFileSystemEvent (wxFileSystemWatcherEvent &event)
 called when a file or directory is modified/created/deleted The tree project is modified when a file or directory is created/deleted/renamed to reflect the file change
 
void onThemeChanged (wxSysColourChangedEvent &aEvent)
 
void onGitSyncTimer (wxTimerEvent &event)
 
void onGitStatusTimer (wxTimerEvent &event)
 
void gitStatusTimerHandler ()
 
void reportGitSyncResult (bool aFetched, std::optional< KIGIT_FAILURE > aKind, const wxString &aSummary)
 Background fetches have no window to answer, so each failure goes to the status bar's warnings once, and a transfer that succeeds clears them.
 

Private Attributes

bool m_isRenaming
 
wxTreeItemId m_root
 
std::vector< wxString > m_filters
 
wxFileSystemWatcher * m_watcher
 
PROJECT_TREE_ITEM * m_selectedItem
 
bool m_watcherNeedReset
 
wxString m_gitCurrentBranchName
 
wxTimer m_gitSyncTimer
 
wxTimer m_gitStatusTimer
 
std::future< void > m_gitSyncTask
 
std::future< void > m_gitStatusIconTask
 
std::weak_ptr< KIGIT_COMMON > m_gitListenerSession
 
std::vector< wxString > m_gitMenuBranches
 Preserve the shortcut targets while the context menu runs its event loop.
 
std::vector< GIT_IGNORE_TARGET > m_gitMenuIgnoreTargets
 
std::weak_ptr< KIGIT_COMMON > m_gitMenuSession
 
std::unique_ptr< KIGIT_QUERY > m_branchQuery
 Owns the branch-switch preflight and suppresses callbacks when the project closes.
 
std::mutex m_gitTreeCacheMutex
 
std::unordered_map< wxString, wxTreeItemId > m_gitTreeCache
 
std::mutex m_gitStatusMutex
 
std::map< wxTreeItemId, KIGIT_COMMON::GIT_STATUS > m_gitStatusIcons
 
bool m_gitIconsInitialized
 
std::map< wxString, unsigned int > m_gitLastStatus
 Raw status of every file in the last pass, so a change with no tree item still reaches the panels.
 

Friends

class PROJECT_TREE_ITEM
 

Detailed Description

Window to display the tree files.

Definition at line 55 of file project_tree_pane.h.

Constructor & Destructor Documentation

◆ PROJECT_TREE_PANE()

◆ ~PROJECT_TREE_PANE()

Member Function Documentation

◆ addItemToProjectTree()

wxTreeItemId PROJECT_TREE_PANE::addItemToProjectTree ( const wxString & aName,
const wxTreeItemId & aParent,
std::vector< wxString > * aProjectNames,
bool aRecurse )
private

Add the file or directory aName to the project tree.

Parameters
aName= the filename or the directory name to add in tree
aParent= the wxTreeItemId item where to add sub tree items
aProjectNames
aRecurse= true to add file or subdir names to the current tree item false to stop file add.
Returns
the Id for the new tree item

Definition at line 527 of file project_tree_pane.cpp.

References addItemToProjectTree(), alg::contains(), DIRECTORY, PROJECT_TREE_ITEM::GetDir(), GetFileExt(), PROJECT_TREE_ITEM::GetFileName(), GetItemIdData(), getProjects(), PROJECT_TREE_ITEM::GetType(), gitRepo(), KIPLATFORM::IO::IsFileHidden(), JSON_PROJECT, LEGACY_PROJECT, LEGACY_SCHEMATIC, m_filters, m_Parent, m_TreeProject, m_watcherNeedReset, MAX, path, PROJECT_TREE_ITEM, PROJECT_TREE_ITEM::SetPopulated(), PROJECT_TREE_ITEM::SetRootFile(), PROJECT_TREE_ITEM::SetState(), SEXPR_SCHEMATIC, and UNKNOWN.

Referenced by addItemToProjectTree(), onCreateNewDirectory(), onExpand(), onFileSystemEvent(), and ReCreateTreePrj().

◆ buildIgnoreSubmenu()

wxMenu * PROJECT_TREE_PANE::buildIgnoreSubmenu ( const std::vector< PROJECT_TREE_ITEM * > & aSelection,
bool & aUsable )
private

Build the Ignore submenu for a selection, and remember what its items apply to.

Parameters
aUsableReceives false when nothing in the submenu would take effect.

Definition at line 2326 of file project_tree_pane.cpp.

References _, gitCommon(), ID_GIT_EDIT_IGNORE_FILE, ID_GIT_IGNORE_EXTENSION, ID_GIT_IGNORE_PATH, ID_GIT_KEEP_EXTENSION, ID_GIT_KEEP_PATH, m_gitMenuIgnoreTargets, Prj(), and KIGIT::ProjectIgnoreFile().

Referenced by showContextMenu().

◆ EmptyTreePrj()

void PROJECT_TREE_PANE::EmptyTreePrj ( )

◆ FileWatcherReset()

void PROJECT_TREE_PANE::FileWatcherReset ( )

Reinit the watched paths Should be called after opening a new project to rebuild the list of watched paths.

Should be called after the main loop event handler is started

Definition at line 1592 of file project_tree_pane.cpp.

References _, KIPLATFORM::ENV::IsNetworkPath(), m_Parent, m_watcher, m_watcherNeedReset, text, TO_UTF8, tracePathsAndFiles, and wxFileSystemWatcher.

Referenced by onIdle().

◆ findSubdirTreeItem()

wxTreeItemId PROJECT_TREE_PANE::findSubdirTreeItem ( const wxString & aSubDir)
private

Search for the item in tree project which is the node of the subdirectory aSubDir.

Parameters
aSubDir= the directory to find in tree
Returns
the opaque reference to the tree item; if not found, return an invalid tree item so that wxTreeItemId::IsOk() can be used to test the returned value

Definition at line 1406 of file project_tree_pane.cpp.

References DIRECTORY, PROJECT_TREE_ITEM::GetFileName(), GetItemIdData(), PROJECT_TREE_ITEM::GetType(), PROJECT_TREE_ITEM::IsPopulated(), m_Parent, m_root, m_TreeProject, and PROJECT_TREE_ITEM.

Referenced by onFileSystemEvent().

◆ GetFileExt()

◆ GetItemIdData()

PROJECT_TREE_ITEM * PROJECT_TREE_PANE::GetItemIdData ( wxTreeItemId aId)
protected

Return the item data corresponding to a wxTreeItemId identifier.

Parameters
aId= the wxTreeItemId identifier.
Returns
a PROJECT_TREE_ITEM pointer corresponding to item id aId

Definition at line 1400 of file project_tree_pane.cpp.

References m_TreeProject, and PROJECT_TREE_ITEM.

Referenced by addItemToProjectTree(), findSubdirTreeItem(), GetSelectedData(), onExpand(), onFileSystemEvent(), onGitInitializeProject(), onIdle(), updateGitStatusIcons(), and updateTreeCache().

◆ GetSelectedData()

std::vector< PROJECT_TREE_ITEM * > PROJECT_TREE_PANE::GetSelectedData ( )
protected

Return the item data from item currently selected (highlighted)

Note
This is not necessary the "clicked" item. When expanding and collapsing an item this item is not selected.

Definition at line 1376 of file project_tree_pane.cpp.

References GetItemIdData(), m_TreeProject, PROJECT_TREE_ITEM, and traceGit.

Referenced by onCreateNewDirectory(), onDeleteFile(), onOpenDirectory(), onOpenSelectedFileWithTextEditor(), onRenameFile(), onSelect(), onSwitchToSelectedProject(), and showContextMenu().

◆ gitCommon()

std::shared_ptr< KIGIT_COMMON > PROJECT_TREE_PANE::gitCommon ( ) const
private

◆ gitRepo()

git_repository * PROJECT_TREE_PANE::gitRepo ( ) const
private

◆ gitStatusTimerHandler()

◆ hasLocalCommits()

bool PROJECT_TREE_PANE::hasLocalCommits ( )
private

Returns true if the current project has local commits that have not been pushed to the remote repository.

◆ onCreateNewDirectory()

void PROJECT_TREE_PANE::onCreateNewDirectory ( wxCommandEvent & event)
private

Creates a new subdirectory inside the current kicad project directory the user is prompted to enter a directory name.

Definition at line 429 of file project_tree_pane.cpp.

References _, addItemToProjectTree(), GetSelectedData(), m_Parent, and PROJECT_TREE_ITEM.

◆ onDeleteFile()

void PROJECT_TREE_PANE::onDeleteFile ( wxCommandEvent & event)
private

Delete the selected file or directory in the tree project.

Definition at line 1226 of file project_tree_pane.cpp.

References GetSelectedData(), and PROJECT_TREE_ITEM.

◆ onExpand()

void PROJECT_TREE_PANE::onExpand ( wxTreeEvent & Event)
private

◆ onFileSystemEvent()

void PROJECT_TREE_PANE::onFileSystemEvent ( wxFileSystemWatcherEvent & event)
private

called when a file or directory is modified/created/deleted The tree project is modified when a file or directory is created/deleted/renamed to reflect the file change

Definition at line 1464 of file project_tree_pane.cpp.

References addItemToProjectTree(), findSubdirTreeItem(), PROJECT_TREE_ITEM::GetFileName(), GetItemIdData(), m_gitStatusTimer, m_isRenaming, m_TreeProject, m_watcher, PROJECT_TREE_ITEM, and traceGit.

Referenced by PROJECT_TREE_PANE(), and ~PROJECT_TREE_PANE().

◆ onGitEditIgnoreFile()

void PROJECT_TREE_PANE::onGitEditIgnoreFile ( wxCommandEvent & event)
private

Open the project's ignore file, for rules the menu items cannot reach.

Definition at line 2414 of file project_tree_pane.cpp.

References openInTextEditor(), Prj(), and KIGIT::ProjectIgnoreFile().

◆ onGitHistory()

void PROJECT_TREE_PANE::onGitHistory ( wxCommandEvent & event)
private

Open the advanced Git window on its History page.

Definition at line 2086 of file project_tree_pane.cpp.

References m_Parent.

◆ onGitIgnore()

void PROJECT_TREE_PANE::onGitIgnore ( wxCommandEvent & event)
private

Add the selected files to, or take them out of, the project's ignored files.

Definition at line 2397 of file project_tree_pane.cpp.

References ChangeGitIgnore(), ID_GIT_IGNORE_EXTENSION, ID_GIT_IGNORE_PATH, ID_GIT_KEEP_EXTENSION, ID_GIT_KEEP_PATH, IGNORE_EXTENSION, IGNORE_PATH, KEEP_EXTENSION, KEEP_PATH, m_gitMenuIgnoreTargets, and m_Parent.

◆ onGitInitializeProject()

void PROJECT_TREE_PANE::onGitInitializeProject ( wxCommandEvent & event)
private

◆ onGitRemoteSettings()

void PROJECT_TREE_PANE::onGitRemoteSettings ( wxCommandEvent & event)
private

◆ onGitRemoveVCS()

void PROJECT_TREE_PANE::onGitRemoveVCS ( wxCommandEvent & event)
private

◆ onGitStatusTimer()

void PROJECT_TREE_PANE::onGitStatusTimer ( wxTimerEvent & event)
private

Definition at line 2871 of file project_tree_pane.cpp.

References gitStatusTimerHandler(), m_TreeProject, Pgm(), and traceGit.

Referenced by PROJECT_TREE_PANE(), and ~PROJECT_TREE_PANE().

◆ onGitSwitchBranch()

void PROJECT_TREE_PANE::onGitSwitchBranch ( wxCommandEvent & event)
private

◆ onGitSyncTimer()

◆ onIdle()

void PROJECT_TREE_PANE::onIdle ( wxIdleEvent & aEvent)
private

Idle event handler, used process the selected items at a point in time when all other events have been consumed.

Definition at line 1278 of file project_tree_pane.cpp.

References PROJECT_TREE_ITEM::Activate(), FileWatcherReset(), GetItemIdData(), m_selectedItem, m_TreeProject, m_watcherNeedReset, and PROJECT_TREE_ITEM.

◆ onOpenDirectory()

void PROJECT_TREE_PANE::onOpenDirectory ( wxCommandEvent & event)
private

Handles the right-click menu for opening a directory in the current system file browser.

Definition at line 401 of file project_tree_pane.cpp.

References PATHS::GetDefaultUserProjectsPath(), GetSelectedData(), LaunchExternal(), m_Parent, and PROJECT_TREE_ITEM.

◆ onOpenSelectedFileWithTextEditor()

void PROJECT_TREE_PANE::onOpenSelectedFileWithTextEditor ( wxCommandEvent & event)
private

Call the text editor to open the selected file in the tree project.

Definition at line 1215 of file project_tree_pane.cpp.

References GetSelectedData(), openInTextEditor(), and PROJECT_TREE_ITEM.

◆ onPaint()

void PROJECT_TREE_PANE::onPaint ( wxPaintEvent & aEvent)
private

We don't have uniform borders so we have to draw them ourselves.

Definition at line 1926 of file project_tree_pane.cpp.

References dc, and rect().

◆ onRenameFile()

void PROJECT_TREE_PANE::onRenameFile ( wxCommandEvent & event)
private

Rename the selected file or directory in the tree project.

Definition at line 1235 of file project_tree_pane.cpp.

References _, GetSelectedData(), m_isRenaming, and m_TreeProject.

◆ onRight()

void PROJECT_TREE_PANE::onRight ( wxTreeEvent & Event)
private

Called on a right click on an item.

Definition at line 867 of file project_tree_pane.cpp.

References m_TreeProject, and showContextMenu().

◆ onRunSelectedJobsFile()

void PROJECT_TREE_PANE::onRunSelectedJobsFile ( wxCommandEvent & event)
private

Run a selected jobs file.

Definition at line 2737 of file project_tree_pane.cpp.

◆ onSelect()

void PROJECT_TREE_PANE::onSelect ( wxTreeEvent & Event)
private

Called on a double click on an item.

Definition at line 1264 of file project_tree_pane.cpp.

References GetSelectedData(), and m_selectedItem.

◆ onSwitchToSelectedProject()

void PROJECT_TREE_PANE::onSwitchToSelectedProject ( wxCommandEvent & event)
private

Switch to a other project selected from the tree project (by selecting an other .pro file inside the current project folder)

Definition at line 388 of file project_tree_pane.cpp.

References GetSelectedData(), and m_Parent.

◆ onThemeChanged()

void PROJECT_TREE_PANE::onThemeChanged ( wxSysColourChangedEvent & aEvent)
private

Definition at line 1917 of file project_tree_pane.cpp.

References m_TreeProject.

Referenced by PROJECT_TREE_PANE(), and ~PROJECT_TREE_PANE().

◆ openInTextEditor()

void PROJECT_TREE_PANE::openInTextEditor ( const std::vector< wxString > & aFileNames)
private

Open files in the user's text editor, or explain that none is chosen.

Definition at line 1197 of file project_tree_pane.cpp.

References _, ExecuteFile(), PGM_BASE::GetTextEditor(), and Pgm().

Referenced by onGitEditIgnoreFile(), and onOpenSelectedFileWithTextEditor().

◆ ReCreateTreePrj()

◆ releaseGitRepo()

void PROJECT_TREE_PANE::releaseGitRepo ( )
private

Releases the git repository handle, deferring the free to the orphan registry while a background git operation still holds the action mutex.

Definition at line 1866 of file project_tree_pane.cpp.

References m_branchQuery, m_gitMenuBranches, m_gitMenuIgnoreTargets, m_gitMenuSession, Prj(), and PROJECT::ReleaseGitCommon().

Referenced by onGitRemoveVCS(), and ReCreateTreePrj().

◆ reportGitSyncResult()

void PROJECT_TREE_PANE::reportGitSyncResult ( bool aFetched,
std::optional< KIGIT_FAILURE > aKind,
const wxString & aSummary )
private

Background fetches have no window to answer, so each failure goes to the status bar's warnings once, and a transfer that succeeds clears them.

Definition at line 2810 of file project_tree_pane.cpp.

References KISTATUSBAR::AddWarningMessages(), CANCELLED, KIGIT::ClearSyncWarnings(), KISTATUSBAR::GetWarningMessages(), m_Parent, RPT_SEVERITY_WARNING, KI_ERROR::SetSeverity(), KI_ERROR::SetTitle(), and KIGIT::SYNC_WARNING_SOURCE.

Referenced by onGitSyncTimer().

◆ showContextMenu()

◆ showGitRemoteSettings()

◆ shutdownFileWatcher()

void PROJECT_TREE_PANE::shutdownFileWatcher ( )
private

Shutdown the file watcher.

Used when closing to prevent post-free access into the project tree. (Using the destructor doesn't work as wxWidgets defers destruction in some cases.)

Definition at line 376 of file project_tree_pane.cpp.

References m_watcher.

Referenced by EmptyTreePrj(), and ~PROJECT_TREE_PANE().

◆ switchGitBranch()

void PROJECT_TREE_PANE::switchGitBranch ( std::shared_ptr< KIGIT_COMMON > aCommon,
const wxString & aBranchName,
bool aCreate )
private

◆ syncGitListener()

void PROJECT_TREE_PANE::syncGitListener ( )
private

Follow the project's git session with a refresh listener, so operations started from the version control panel or the advanced window update the tree's icons and branch label.

Definition at line 1882 of file project_tree_pane.cpp.

References KIGIT::ClearSyncWarnings(), gitCommon(), m_branchQuery, m_gitListenerSession, m_gitMenuBranches, m_gitMenuIgnoreTargets, m_gitMenuSession, m_gitStatusTimer, m_Parent, and m_TreeProject.

Referenced by ReCreateTreePrj().

◆ updateGitStatusIconMap()

◆ updateGitStatusIcons()

void PROJECT_TREE_PANE::updateGitStatusIcons ( )
private

◆ updateTreeCache()

void PROJECT_TREE_PANE::updateTreeCache ( )
private

Updates the map of the wxtreeitemid to the name of each file for use in the thread.

Definition at line 2547 of file project_tree_pane.cpp.

References PROJECT_TREE_ITEM::GetFileName(), GetItemIdData(), m_gitTreeCache, m_gitTreeCacheMutex, m_TreeProject, PROJECT_TREE_ITEM, and traceGit.

Referenced by gitStatusTimerHandler().

◆ WaitForGitOperations()

void PROJECT_TREE_PANE::WaitForGitOperations ( )

Give a running background git operation a chance to finish, asking the user to keep waiting or abandon.

Call before the owning project is unloaded.

Definition at line 1792 of file project_tree_pane.cpp.

References _, git_repository, gitCommon(), gitRepo(), m_branchQuery, Prj(), PROJECT::ReleaseGitCommon(), and KIGIT::PROJECT_GIT_UTILS::RemoveVCS().

Friends And Related Symbol Documentation

◆ PROJECT_TREE_ITEM

Member Data Documentation

◆ m_branchQuery

std::unique_ptr<KIGIT_QUERY> PROJECT_TREE_PANE::m_branchQuery
private

Owns the branch-switch preflight and suppresses callbacks when the project closes.

Definition at line 331 of file project_tree_pane.h.

Referenced by EmptyTreePrj(), onGitSwitchBranch(), PROJECT_TREE_PANE(), releaseGitRepo(), switchGitBranch(), syncGitListener(), WaitForGitOperations(), and ~PROJECT_TREE_PANE().

◆ m_filters

std::vector<wxString> PROJECT_TREE_PANE::m_filters
private

Definition at line 311 of file project_tree_pane.h.

Referenced by addItemToProjectTree(), and PROJECT_TREE_PANE().

◆ m_gitCurrentBranchName

wxString PROJECT_TREE_PANE::m_gitCurrentBranchName
private

Definition at line 317 of file project_tree_pane.h.

Referenced by updateGitStatusIconMap(), and updateGitStatusIcons().

◆ m_gitIconsInitialized

bool PROJECT_TREE_PANE::m_gitIconsInitialized
private

◆ m_gitLastStatus

std::map<wxString, unsigned int> PROJECT_TREE_PANE::m_gitLastStatus
private

Raw status of every file in the last pass, so a change with no tree item still reaches the panels.

Definition at line 340 of file project_tree_pane.h.

Referenced by ReCreateTreePrj(), and updateGitStatusIconMap().

◆ m_gitListenerSession

std::weak_ptr<KIGIT_COMMON> PROJECT_TREE_PANE::m_gitListenerSession
private

Definition at line 323 of file project_tree_pane.h.

Referenced by syncGitListener(), and ~PROJECT_TREE_PANE().

◆ m_gitMenuBranches

std::vector<wxString> PROJECT_TREE_PANE::m_gitMenuBranches
private

Preserve the shortcut targets while the context menu runs its event loop.

Definition at line 326 of file project_tree_pane.h.

Referenced by EmptyTreePrj(), onGitSwitchBranch(), releaseGitRepo(), showContextMenu(), and syncGitListener().

◆ m_gitMenuIgnoreTargets

std::vector<GIT_IGNORE_TARGET> PROJECT_TREE_PANE::m_gitMenuIgnoreTargets
private

◆ m_gitMenuSession

std::weak_ptr<KIGIT_COMMON> PROJECT_TREE_PANE::m_gitMenuSession
private

◆ m_gitStatusIcons

std::map<wxTreeItemId, KIGIT_COMMON::GIT_STATUS> PROJECT_TREE_PANE::m_gitStatusIcons
private

◆ m_gitStatusIconTask

std::future<void> PROJECT_TREE_PANE::m_gitStatusIconTask
private

Definition at line 321 of file project_tree_pane.h.

Referenced by gitStatusTimerHandler(), and ~PROJECT_TREE_PANE().

◆ m_gitStatusMutex

std::mutex PROJECT_TREE_PANE::m_gitStatusMutex
private

◆ m_gitStatusTimer

◆ m_gitSyncTask

std::future<void> PROJECT_TREE_PANE::m_gitSyncTask
private

Definition at line 320 of file project_tree_pane.h.

Referenced by onGitSyncTimer(), and ~PROJECT_TREE_PANE().

◆ m_gitSyncTimer

wxTimer PROJECT_TREE_PANE::m_gitSyncTimer
private

◆ m_gitTreeCache

std::unordered_map<wxString, wxTreeItemId> PROJECT_TREE_PANE::m_gitTreeCache
private

Definition at line 334 of file project_tree_pane.h.

Referenced by ReCreateTreePrj(), updateGitStatusIconMap(), and updateTreeCache().

◆ m_gitTreeCacheMutex

std::mutex PROJECT_TREE_PANE::m_gitTreeCacheMutex
private

Definition at line 333 of file project_tree_pane.h.

Referenced by ReCreateTreePrj(), updateGitStatusIconMap(), and updateTreeCache().

◆ m_isRenaming

bool PROJECT_TREE_PANE::m_isRenaming
private

Definition at line 309 of file project_tree_pane.h.

Referenced by onFileSystemEvent(), onRenameFile(), and PROJECT_TREE_PANE().

◆ m_Parent

◆ m_root

wxTreeItemId PROJECT_TREE_PANE::m_root
private

Definition at line 310 of file project_tree_pane.h.

Referenced by findSubdirTreeItem(), and ReCreateTreePrj().

◆ m_selectedItem

PROJECT_TREE_ITEM* PROJECT_TREE_PANE::m_selectedItem
private

Definition at line 313 of file project_tree_pane.h.

Referenced by onIdle(), onSelect(), and PROJECT_TREE_PANE().

◆ m_TreeProject

◆ m_watcher

wxFileSystemWatcher* PROJECT_TREE_PANE::m_watcher
private

◆ m_watcherNeedReset

bool PROJECT_TREE_PANE::m_watcherNeedReset
private

The documentation for this class was generated from the following files: