KiCad PCB EDA Suite
Loading...
Searching...
No Matches
project_tree_pane.cpp File Reference
#include <stack>
#include <dialogs/git/git_status_entries.h>
#include <dialogs/git/git_transfer.h>
#include <git/git_backend.h>
#include <wx/regex.h>
#include <wx/richmsgdlg.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/msgdlg.h>
#include <wx/textdlg.h>
#include <wx/timer.h>
#include <wx/wupdlock.h>
#include <wx/log.h>
#include <wx/dcclient.h>
#include <wx/progdlg.h>
#include <wx/settings.h>
#include <wx/weakref.h>
#include <frame_type.h>
#include <kiway.h>
#include <mail_type.h>
#include <settings/settings_manager.h>
#include <settings/common_settings.h>
#include <advanced_config.h>
#include <bitmaps.h>
#include <bitmap_store.h>
#include <confirm.h>
#include <dialogs/git/dialog_git_credentials.h>
#include <dialogs/git/git_credentials_prompt.h>
#include <dialogs/git/git_ui_utils.h>
#include <widgets/wx_progress_reporters.h>
#include <dialogs/git/dialog_git_switch.h>
#include <gestfich.h>
#include <macros.h>
#include <trace_helpers.h>
#include <wildcards_and_files_ext.h>
#include <kiplatform/environment.h>
#include <core/kicad_algo.h>
#include <paths.h>
#include <project/project_local_settings.h>
#include <scoped_set_reset.h>
#include <string_utils.h>
#include <thread_pool.h>
#include <launch_ext.h>
#include <wx_log_utils.h>
#include <git/git_pull_handler.h>
#include <git/kicad_git_compat.h>
#include <git/git_init_handler.h>
#include <git/git_status_handler.h>
#include <git/kicad_git_common.h>
#include <git/kicad_git_memory.h>
#include <git/project_git_utils.h>
#include <dialogs/git/dialog_git_repository.h>
#include "project_tree_item.h"
#include "project_tree.h"
#include "pgm_kicad.h"
#include "kicad_id.h"
#include "kicad_manager_frame.h"
#include "project_tree_pane.h"
#include <widgets/kistatusbar.h>
#include <kiplatform/io.h>
#include <kiplatform/secrets.h>

Go to the source code of this file.

Enumerations

enum  project_tree_ids {
  ID_PROJECT_TXTEDIT = 8700 , ID_PROJECT_SWITCH_TO_OTHER , ID_PROJECT_NEWDIR , ID_PROJECT_OPEN_DIR ,
  ID_PROJECT_DELETE , ID_PROJECT_RENAME , ID_GIT_INITIALIZE_PROJECT , ID_GIT_REMOTE_SETTINGS ,
  ID_GIT_REMOVE_VCS , ID_GIT_SWITCH_BRANCH , ID_GIT_SWITCH_QUICK1 , ID_GIT_SWITCH_QUICK2 ,
  ID_GIT_SWITCH_QUICK3 , ID_GIT_SWITCH_QUICK4 , ID_GIT_SWITCH_QUICK5 , ID_JOBS_RUN
}
 The frame that shows the tree list of files and subdirectories inside the working directory. More...
 

Functions

static bool gitTaskStillRunning (const std::future< void > &aTask)
 
 wxDECLARE_EVENT (UPDATE_ICONS, wxCommandEvent)
 
std::vector< wxString > getProjects (const wxDir &dir)
 
static bool promptForGitCredentials (wxWindow *aParent, KIGIT_COMMON *aCommon, const wxString &aExplanation)
 
static void saveAcceptedRemoteSettings (PROJECT &aProject, const RemoteConfig &aConfig)
 

Variables

static const wxChar * s_allowedExtensionsToList []
 

Enumeration Type Documentation

◆ project_tree_ids

The frame that shows the tree list of files and subdirectories inside the working directory.

Files are filtered (see s_allowedExtensionsToList) so only useful files are shown.

Enumerator
ID_PROJECT_TXTEDIT 
ID_PROJECT_SWITCH_TO_OTHER 
ID_PROJECT_NEWDIR 
ID_PROJECT_OPEN_DIR 
ID_PROJECT_DELETE 
ID_PROJECT_RENAME 
ID_GIT_INITIALIZE_PROJECT 
ID_GIT_REMOTE_SETTINGS 
ID_GIT_REMOVE_VCS 
ID_GIT_SWITCH_BRANCH 
ID_GIT_SWITCH_QUICK1 
ID_GIT_SWITCH_QUICK2 
ID_GIT_SWITCH_QUICK3 
ID_GIT_SWITCH_QUICK4 
ID_GIT_SWITCH_QUICK5 
ID_JOBS_RUN 

Definition at line 165 of file project_tree_pane.cpp.

Function Documentation

◆ getProjects()

std::vector< wxString > getProjects ( const wxDir & dir)

◆ gitTaskStillRunning()

static bool gitTaskStillRunning ( const std::future< void > & aTask)
static

◆ promptForGitCredentials()

static bool promptForGitCredentials ( wxWindow * aParent,
KIGIT_COMMON * aCommon,
const wxString & aExplanation )
static

◆ saveAcceptedRemoteSettings()

◆ wxDECLARE_EVENT()

wxDECLARE_EVENT ( UPDATE_ICONS ,
wxCommandEvent  )

References wxDECLARE_EVENT().

Variable Documentation

◆ s_allowedExtensionsToList

const wxChar* s_allowedExtensionsToList[]
static

Definition at line 114 of file project_tree_pane.cpp.

Referenced by PROJECT_TREE_PANE::PROJECT_TREE_PANE().