|
KiCad PCB EDA Suite
|
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>
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. | |
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.
| PANEL_GIT_REMOTES::PANEL_GIT_REMOTES | ( | wxWindow * | aParent, |
| GIT_ADVANCED_DIALOG * | aDialog, | ||
| EDA_BASE_FRAME * | aFrame ) |
Definition at line 35 of file panel_git_remotes.cpp.
References _, hideRemoteDetail(), PANEL_GIT_REMOTES_BASE::m_addRemoteButton, m_dialog, PANEL_GIT_REMOTES_BASE::m_editUrlButton, m_fillingRemotes, m_frame, PANEL_GIT_REMOTES_BASE::m_remoteDetail, m_remoteSashPos, PANEL_GIT_REMOTES_BASE::m_remotesList, PANEL_GIT_REMOTES_BASE::m_remotesSplitter, PANEL_GIT_REMOTES_BASE::m_removeRemoteButton, KIGIT::MarkDestructive(), onAddRemote(), onEditRemote(), onRemoveRemote(), PANEL_GIT_REMOTES_BASE::PANEL_GIT_REMOTES_BASE(), and showRemoteDetail().
|
private |
Definition at line 157 of file panel_git_remotes.cpp.
References _, PANEL_GIT_REMOTES_BASE::m_remoteDetail, PANEL_GIT_REMOTES_BASE::m_remoteFetched, PANEL_GIT_REMOTES_BASE::m_remoteListPanel, m_remoteSashPos, PANEL_GIT_REMOTES_BASE::m_remotesList, PANEL_GIT_REMOTES_BASE::m_remotesSplitter, PANEL_GIT_REMOTES_BASE::m_remoteTitle, PANEL_GIT_REMOTES_BASE::m_remoteUrl, and KIGIT::RelativeDate().
Referenced by showRemoteDetail().
|
private |
Definition at line 184 of file panel_git_remotes.cpp.
References PANEL_GIT_REMOTES_BASE::m_remoteDetail, m_remoteSashPos, PANEL_GIT_REMOTES_BASE::m_remotesSplitter, and KIGIT::UnsplitKeepingSash().
Referenced by PANEL_GIT_REMOTES(), Populate(), and showRemoteDetail().
|
private |
Definition at line 207 of file panel_git_remotes.cpp.
References _, KIGIT_COMMON::AddRemote(), DIALOG_GIT_REMOTE::GetName(), DIALOG_GIT_REMOTE::GetUrl(), m_dialog, name, runRemoteAction(), and DIALOG_SHIM::ShowModal().
Referenced by PANEL_GIT_REMOTES().
|
private |
Definition at line 229 of file panel_git_remotes.cpp.
References _, DIALOG_GIT_REMOTE::GetUrl(), m_dialog, PANEL_GIT_REMOTES_BASE::m_remotesList, name, runRemoteAction(), KIGIT::SelectedText(), KIGIT_COMMON::SetRemoteUrl(), and DIALOG_SHIM::ShowModal().
Referenced by PANEL_GIT_REMOTES().
|
private |
Definition at line 261 of file panel_git_remotes.cpp.
References _, IsOK(), m_dialog, PANEL_GIT_REMOTES_BASE::m_remotesList, name, KIGIT_COMMON::RemoveRemote(), runRemoteAction(), and KIGIT::SelectedText().
Referenced by PANEL_GIT_REMOTES().
| 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().
|
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().
|
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().
|
protectedinherited |
Definition at line 49 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), and PANEL_GIT_REMOTES_BASE().
|
private |
Definition at line 60 of file panel_git_remotes.h.
Referenced by onAddRemote(), onEditRemote(), onRemoveRemote(), PANEL_GIT_REMOTES(), Populate(), and runRemoteAction().
|
protectedinherited |
Definition at line 47 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), and PANEL_GIT_REMOTES_BASE().
|
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().
|
private |
Definition at line 61 of file panel_git_remotes.h.
Referenced by PANEL_GIT_REMOTES(), and Populate().
|
private |
Definition at line 65 of file panel_git_remotes.h.
Referenced by showRemoteDetail().
|
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().
|
protectedinherited |
Definition at line 42 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES_BASE(), and PANEL_GIT_REMOTES::Populate().
|
protectedinherited |
Definition at line 43 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), PANEL_GIT_REMOTES::hideRemoteDetail(), PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), and PANEL_GIT_REMOTES_BASE().
|
protectedinherited |
Definition at line 46 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), and PANEL_GIT_REMOTES_BASE().
|
protectedinherited |
Definition at line 40 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), and PANEL_GIT_REMOTES_BASE().
|
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().
|
protectedinherited |
Definition at line 41 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), PANEL_GIT_REMOTES::onEditRemote(), PANEL_GIT_REMOTES::onRemoveRemote(), PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), PANEL_GIT_REMOTES_BASE(), and PANEL_GIT_REMOTES::Populate().
|
protectedinherited |
Definition at line 39 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), PANEL_GIT_REMOTES::hideRemoteDetail(), PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), and PANEL_GIT_REMOTES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), and PANEL_GIT_REMOTES_BASE().
|
protectedinherited |
Definition at line 45 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::fillRemoteDetail(), and PANEL_GIT_REMOTES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_git_remotes_base.h.
Referenced by PANEL_GIT_REMOTES::PANEL_GIT_REMOTES(), and PANEL_GIT_REMOTES_BASE().