20#ifndef PANEL_GIT_BRANCHES_H
21#define PANEL_GIT_BRANCHES_H
63 void startForcePush( std::shared_ptr<KIGIT_COMMON> aCommon,
const wxString& aExpectedBranch,
64 const wxString& aExpectedHeadOid );
The base frame for deriving all KiCad main window classes.
The advanced Git window: a non-modal dialog with a top bar naming the repository and branch and a sid...
Read repository state without blocking the UI.
PANEL_GIT_BRANCHES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void StopTransfer()
Ask a force push still running to stop. It finishes on its own.
PANEL_GIT_BRANCHES(wxWindow *aParent, GIT_ADVANCED_DIALOG *aDialog, EDA_BASE_FRAME *aFrame)
void fillBranchDetail(const KIGIT_BRANCH_DETAIL &aDetail)
int m_branchSashPos
Where the user left the sash between the list and its detail pane.
KIGIT_QUERY m_listQuery
List and detail reads share the session lock without waiting on the UI thread.
void showBranchDetail(const wxString &aBranch)
Fill the detail pane with aBranch, or hide it when the name is empty or gone.
GIT_ADVANCED_DIALOG * m_dialog
KIGIT_QUERY m_detailQuery
void reloadBranches()
Refill the list after the search text changed.
void onForcePush()
Force push the current branch, after an explicit confirmation.
void Populate()
Fill the list from the repository's branches. The repository is read on a worker.
std::vector< bool > m_branchIsRemote
Whether each listed row is a remote-tracking branch.
void startForcePush(std::shared_ptr< KIGIT_COMMON > aCommon, const wxString &aExpectedBranch, const wxString &aExpectedHeadOid)
KIGIT_TRANSFER m_push
The force push this page started.
~PANEL_GIT_BRANCHES() override
KIGIT_QUERY m_actionQuery
Reads needed before an action's confirmation, separate from list refreshes.
bool m_fillingBranches
True while the list is being refilled, when its selection events are its own.