KiCad PCB EDA Suite
Loading...
Searching...
No Matches
git_ui_utils.h File Reference
#include <mutex>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  KIGIT
 

Functions

void KIGIT::ShowBusyMessage (wxWindow *aParent)
 Show a busy message for a user action. UI thread only.
 
std::unique_lock< std::mutex > KIGIT::TryLockAction (KIGIT_COMMON &aCommon, wxWindow *aParent)
 Try the action lock and show a busy message if it is unavailable.
 
void KIGIT::SortBranchesForDisplay (std::vector< KIGIT_BRANCH_INFO > &aBranches)
 Put the current branch first, then local and remote branches with the newest tips first.
 
wxString KIGIT::RelativeDate (const wxDateTime &aWhen)
 "just now", "3 hours ago", or the ISO date once it is more than a month old.
 
void KIGIT::UnsplitKeepingSash (wxSplitterWindow *aSplitter, wxWindow *aPane, int &aSashPos)
 Close a splitter's second pane, keeping the sash where the user left it for next time.
 
void KIGIT::MarkDestructive (wxButton *aButton)
 Paint a button's text the diff's red, for one that throws something away.
 
wxString KIGIT::SelectedText (wxListCtrl *aList, int aColumn)
 The text of the selected row in a report list, or empty when nothing is selected.
 
bool KIGIT::ValidateIdentity (const wxString &aName, const wxString &aEmail, wxString &aError)
 Check a name and email for recording commits. False leaves the reason in aError.