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

The advanced git window's Remotes page: the list beside the selected remote's detail, with the actions that add, edit and remove a remote. More...

#include <panel_git_remotes.h>

Inheritance diagram for PANEL_GIT_REMOTES:
PANEL_GIT_REMOTES_BASE

Public Member Functions

 PANEL_GIT_REMOTES (wxWindow *aParent, GIT_ADVANCED_DIALOG *aDialog, EDA_BASE_FRAME *aFrame)
 
void Populate ()
 Fill the list from the repository's remotes. The repository is read on a worker.
 

Protected Attributes

wxSplitterWindow * m_remotesSplitter
 
wxPanel * m_remoteListPanel
 
wxListCtrl * m_remotesList
 
wxStaticText * m_remoteCount
 
wxPanel * m_remoteDetail
 
wxStaticText * m_remoteTitle
 
wxTextCtrl * m_remoteUrl
 
wxStaticText * m_remoteFetched
 
wxButton * m_editUrlButton
 
wxButton * m_removeRemoteButton
 
wxButton * m_addRemoteButton
 

Private Member Functions

void showRemoteDetail (const wxString &aRemote)
 Fill the detail pane with aRemote, or hide it when the name is empty.
 
void fillRemoteDetail (const wxString &aRemote, const wxDateTime &aFetched)
 
void hideRemoteDetail ()
 
void runRemoteAction (const std::function< bool(KIGIT_COMMON &)> &aMutation, const wxString &aError)
 Run a change to the remotes, then refresh the cached remote so a later push uses it.
 
void onAddRemote ()
 
void onEditRemote ()
 
void onRemoveRemote ()
 

Private Attributes

GIT_ADVANCED_DIALOG * m_dialog
 
EDA_BASE_FRAME * m_frame
 
KIGIT_QUERY m_listQuery
 The list and its shared fetch timestamp are read together on a worker.
 
wxDateTime m_lastFetched
 
int m_remoteSashPos = 0
 Where the user left the sash between the list and its detail pane.
 
bool m_fillingRemotes = false
 True while the list is being refilled, when its selection events are its own.
 

Detailed Description

The advanced git window's Remotes page: the list beside the selected remote's detail, with the actions that add, edit and remove a remote.

Definition at line 39 of file panel_git_remotes.h.

Constructor & Destructor Documentation

◆ PANEL_GIT_REMOTES()

Member Function Documentation

◆ fillRemoteDetail()

◆ hideRemoteDetail()

void PANEL_GIT_REMOTES::hideRemoteDetail ( )
private

◆ onAddRemote()

void PANEL_GIT_REMOTES::onAddRemote ( )
private

◆ onEditRemote()

◆ onRemoveRemote()

void PANEL_GIT_REMOTES::onRemoveRemote ( )
private

◆ Populate()

void PANEL_GIT_REMOTES::Populate ( )

Fill the list from the repository's remotes. The repository is read on a worker.

Definition at line 84 of file panel_git_remotes.cpp.

References _, hideRemoteDetail(), m_dialog, m_fillingRemotes, m_frame, m_listQuery, PANEL_GIT_REMOTES_BASE::m_remoteCount, PANEL_GIT_REMOTES_BASE::m_remotesList, and showRemoteDetail().

◆ runRemoteAction()

void PANEL_GIT_REMOTES::runRemoteAction ( const std::function< bool(KIGIT_COMMON &)> & aMutation,
const wxString & aError )
private

Run a change to the remotes, then refresh the cached remote so a later push uses it.

Definition at line 190 of file panel_git_remotes.cpp.

References m_dialog, and KIGIT_COMMON::UpdateCurrentBranchInfo().

Referenced by onAddRemote(), onEditRemote(), and onRemoveRemote().

◆ showRemoteDetail()

void PANEL_GIT_REMOTES::showRemoteDetail ( const wxString & aRemote)
private

Fill the detail pane with aRemote, or hide it when the name is empty.

Definition at line 144 of file panel_git_remotes.cpp.

References fillRemoteDetail(), hideRemoteDetail(), and m_lastFetched.

Referenced by PANEL_GIT_REMOTES(), and Populate().

Member Data Documentation

◆ m_addRemoteButton

wxButton* PANEL_GIT_REMOTES_BASE::m_addRemoteButton
protectedinherited

◆ m_dialog

GIT_ADVANCED_DIALOG* PANEL_GIT_REMOTES::m_dialog
private

◆ m_editUrlButton

wxButton* PANEL_GIT_REMOTES_BASE::m_editUrlButton
protectedinherited

◆ m_fillingRemotes

bool PANEL_GIT_REMOTES::m_fillingRemotes = false
private

True while the list is being refilled, when its selection events are its own.

Definition at line 71 of file panel_git_remotes.h.

Referenced by PANEL_GIT_REMOTES(), and Populate().

◆ m_frame

EDA_BASE_FRAME* PANEL_GIT_REMOTES::m_frame
private

Definition at line 61 of file panel_git_remotes.h.

Referenced by PANEL_GIT_REMOTES(), and Populate().

◆ m_lastFetched

wxDateTime PANEL_GIT_REMOTES::m_lastFetched
private

Definition at line 65 of file panel_git_remotes.h.

Referenced by showRemoteDetail().

◆ m_listQuery

KIGIT_QUERY PANEL_GIT_REMOTES::m_listQuery
private

The list and its shared fetch timestamp are read together on a worker.

Definition at line 64 of file panel_git_remotes.h.

Referenced by Populate().

◆ m_remoteCount

wxStaticText* PANEL_GIT_REMOTES_BASE::m_remoteCount
protectedinherited

Definition at line 42 of file panel_git_remotes_base.h.

Referenced by PANEL_GIT_REMOTES_BASE(), and PANEL_GIT_REMOTES::Populate().

◆ m_remoteDetail

wxPanel* PANEL_GIT_REMOTES_BASE::m_remoteDetail
protectedinherited

◆ m_remoteFetched

wxStaticText* PANEL_GIT_REMOTES_BASE::m_remoteFetched
protectedinherited

◆ m_remoteListPanel

wxPanel* PANEL_GIT_REMOTES_BASE::m_remoteListPanel
protectedinherited

◆ m_remoteSashPos

int PANEL_GIT_REMOTES::m_remoteSashPos = 0
private

Where the user left the sash between the list and its detail pane.

Definition at line 68 of file panel_git_remotes.h.

Referenced by fillRemoteDetail(), hideRemoteDetail(), and PANEL_GIT_REMOTES().

◆ m_remotesList

◆ m_remotesSplitter

wxSplitterWindow* PANEL_GIT_REMOTES_BASE::m_remotesSplitter
protectedinherited

◆ m_remoteTitle

wxStaticText* PANEL_GIT_REMOTES_BASE::m_remoteTitle
protectedinherited

◆ m_remoteUrl

wxTextCtrl* PANEL_GIT_REMOTES_BASE::m_remoteUrl
protectedinherited

◆ m_removeRemoteButton

wxButton* PANEL_GIT_REMOTES_BASE::m_removeRemoteButton
protectedinherited

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