KiCad PCB EDA Suite
Loading...
Searching...
No Matches
local_history.cpp File Reference
#include <local_history.h>
#include <history_lock.h>
#include <lockfile.h>
#include <settings/common_settings.h>
#include <pgm_base.h>
#include <trace_helpers.h>
#include <git2.h>
#include <wx/filename.h>
#include <wx/filefn.h>
#include <wx/ffile.h>
#include <wx/dir.h>
#include <wx/datetime.h>
#include <wx/log.h>
#include <wx/msgdlg.h>
#include <wx/choicdlg.h>
#include <vector>
#include <string>
#include <memory>
#include <algorithm>
#include <set>
#include <map>
#include <functional>
#include <cstring>

Go to the source code of this file.

Functions

static wxString historyPath (const wxString &aProjectPath)
 
static size_t dirSizeRecursive (const wxString &path)
 

Variables

static std::set< wxString > s_pendingFiles
 
static std::vector< std::function< void(const wxString &, std::vector< wxString > &)> > s_savers
 

Function Documentation

◆ dirSizeRecursive()

static size_t dirSizeRecursive ( const wxString & path)
static

Definition at line 651 of file local_history.cpp.

References dirSizeRecursive(), name, and path.

Referenced by dirSizeRecursive(), and LOCAL_HISTORY::EnforceSizeLimit().

◆ historyPath()

static wxString historyPath ( const wxString & aProjectPath)
static

Definition at line 50 of file local_history.cpp.

Variable Documentation

◆ s_pendingFiles

std::set<wxString> s_pendingFiles
static

◆ s_savers

std::vector<std::function<void(const wxString&, std::vector<wxString>&)> > s_savers
static