KiCad PCB EDA Suite
|
#include <panel_git_repos.h>
Public Types | |
enum | COLS { COL_ACTIVE = 0 , COL_NAME , COL_PATH , COL_STATUS , COL_AUTH_TYPE , COL_USERNAME , COL_PASSWORD , COL_SSH_KEY , COL_SSH_PATH } |
Public Member Functions | |
PANEL_GIT_REPOS (wxWindow *parent) | |
~PANEL_GIT_REPOS () override | |
void | ResetPanel () override |
Reset the contents of this panel. | |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
virtual wxString | GetResetTooltip () const |
Get the tooltip the reset button should display when showing this panel. | |
wxString | GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. | |
Protected Attributes | |
wxStaticText * | m_staticText12 |
wxCheckBox * | m_cbDefault |
wxStaticText * | m_authorLabel |
wxTextCtrl * | m_author |
wxStaticText * | m_authorEmailLabel |
wxTextCtrl * | m_authorEmail |
wxStaticLine * | m_staticline3 |
wxStaticText * | m_staticText20 |
WX_GRID * | m_grid |
STD_BITMAP_BUTTON * | m_btnAddRepo |
STD_BITMAP_BUTTON * | m_btnEditRepo |
STD_BITMAP_BUTTON * | m_btnDelete |
Private Member Functions | |
void | onDefaultClick (wxCommandEvent &event) override |
void | onGridDClick (wxGridEvent &event) override |
void | onAddClick (wxCommandEvent &event) override |
void | onEditClick (wxCommandEvent &event) override |
void | onDeleteClick (wxCommandEvent &event) override |
Definition at line 26 of file panel_git_repos.h.
Enumerator | |
---|---|
COL_ACTIVE | |
COL_NAME | |
COL_PATH | |
COL_STATUS | |
COL_AUTH_TYPE | |
COL_USERNAME | |
COL_PASSWORD | |
COL_SSH_KEY | |
COL_SSH_PATH |
Definition at line 37 of file panel_git_repos.h.
PANEL_GIT_REPOS::PANEL_GIT_REPOS | ( | wxWindow * | parent | ) |
Definition at line 37 of file panel_git_repos.cpp.
References KiBitmapBundle(), PANEL_GIT_REPOS_BASE::m_btnAddRepo, PANEL_GIT_REPOS_BASE::m_btnDelete, PANEL_GIT_REPOS_BASE::m_btnEditRepo, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 46 of file panel_git_repos.cpp.
|
inlineoverrideinherited |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
Definition at line 72 of file resettable_panel.h.
References RESETTABLE_PANEL::GetResetTooltip().
|
inlinevirtualinherited |
Get the tooltip the reset button should display when showing this panel.
Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.
Definition at line 64 of file resettable_panel.h.
References _.
Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().
|
overrideprivatevirtual |
Reimplemented from PANEL_GIT_REPOS_BASE.
Definition at line 342 of file panel_git_repos.cpp.
References COL_AUTH_TYPE, COL_NAME, COL_PASSWORD, COL_PATH, COL_SSH_PATH, COL_USERNAME, DIALOG_GIT_REPOSITORY::GetPassword(), DIALOG_GIT_REPOSITORY::GetRepoName(), DIALOG_GIT_REPOSITORY::GetRepoSSHPath(), DIALOG_GIT_REPOSITORY::GetRepoType(), DIALOG_GIT_REPOSITORY::GetRepoURL(), DIALOG_GIT_REPOSITORY::GetUsername(), KIGIT_COMMON::GIT_CONN_HTTPS, KIGIT_COMMON::GIT_CONN_SSH, PANEL_GIT_REPOS_BASE::m_grid, and DIALOG_SHIM::ShowModal().
Referenced by onGridDClick().
|
overrideprivatevirtual |
Reimplemented from PANEL_GIT_REPOS_BASE.
Definition at line 277 of file panel_git_repos.cpp.
References PANEL_GIT_REPOS_BASE::m_author, PANEL_GIT_REPOS_BASE::m_authorEmail, PANEL_GIT_REPOS_BASE::m_authorEmailLabel, PANEL_GIT_REPOS_BASE::m_authorLabel, and PANEL_GIT_REPOS_BASE::m_cbDefault.
|
overrideprivatevirtual |
Reimplemented from PANEL_GIT_REPOS_BASE.
Definition at line 384 of file panel_git_repos.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_GIT_REPOS_BASE::m_grid.
|
overrideprivatevirtual |
Reimplemented from PANEL_GIT_REPOS_BASE.
Definition at line 376 of file panel_git_repos.cpp.
References PANEL_GIT_REPOS_BASE::m_grid, and onGridDClick().
|
overrideprivatevirtual |
Reimplemented from PANEL_GIT_REPOS_BASE.
Definition at line 286 of file panel_git_repos.cpp.
References COL_AUTH_TYPE, COL_NAME, COL_PASSWORD, COL_PATH, COL_SSH_PATH, COL_USERNAME, DIALOG_GIT_REPOSITORY::GetPassword(), DIALOG_GIT_REPOSITORY::GetRepoName(), DIALOG_GIT_REPOSITORY::GetRepoSSHPath(), DIALOG_GIT_REPOSITORY::GetRepoType(), DIALOG_GIT_REPOSITORY::GetRepoURL(), DIALOG_GIT_REPOSITORY::GetUsername(), KIGIT_COMMON::GIT_CONN_HTTPS, KIGIT_COMMON::GIT_CONN_LOCAL, KIGIT_COMMON::GIT_CONN_SSH, PANEL_GIT_REPOS_BASE::m_grid, onAddClick(), DIALOG_GIT_REPOSITORY::SetPassword(), DIALOG_GIT_REPOSITORY::SetRepoName(), DIALOG_GIT_REPOSITORY::SetRepoSSHPath(), DIALOG_GIT_REPOSITORY::SetRepoType(), DIALOG_GIT_REPOSITORY::SetRepoURL(), DIALOG_GIT_REPOSITORY::SetUsername(), and DIALOG_SHIM::ShowModal().
Referenced by onEditClick().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 51 of file panel_git_repos.cpp.
References PANEL_GIT_REPOS_BASE::m_author, PANEL_GIT_REPOS_BASE::m_authorEmail, PANEL_GIT_REPOS_BASE::m_cbDefault, and PANEL_GIT_REPOS_BASE::m_grid.
|
override |
Definition at line 96 of file panel_git_repos.cpp.
References COMMON_SETTINGS::GIT_REPOSITORY::active, COMMON_SETTINGS::GIT::authorEmail, COMMON_SETTINGS::GIT::authorName, COMMON_SETTINGS::GIT_REPOSITORY::authType, COMMON_SETTINGS::GIT_REPOSITORY::checkValid, COL_ACTIVE, COL_AUTH_TYPE, COL_NAME, COL_PASSWORD, COL_PATH, COL_SSH_PATH, COL_STATUS, COL_USERNAME, PGM_BASE::GetCommonSettings(), PANEL_GIT_REPOS_BASE::m_author, PANEL_GIT_REPOS_BASE::m_authorEmail, PANEL_GIT_REPOS_BASE::m_cbDefault, COMMON_SETTINGS::m_Git, PANEL_GIT_REPOS_BASE::m_grid, COMMON_SETTINGS::GIT_REPOSITORY::name, COMMON_SETTINGS::GIT_REPOSITORY::path, Pgm(), COMMON_SETTINGS::GIT::repositories, COMMON_SETTINGS::GIT_REPOSITORY::ssh_path, KIPLATFORM::SECRETS::StoreSecret(), COMMON_SETTINGS::GIT::useDefaultAuthor, and COMMON_SETTINGS::GIT_REPOSITORY::username.
|
override |
Definition at line 225 of file panel_git_repos.cpp.
References COMMON_SETTINGS::GIT_REPOSITORY::active, COMMON_SETTINGS::GIT::authorEmail, COMMON_SETTINGS::GIT::authorName, COMMON_SETTINGS::GIT_REPOSITORY::authType, COL_ACTIVE, COL_AUTH_TYPE, COL_NAME, COL_PASSWORD, COL_PATH, COL_SSH_PATH, COL_USERNAME, PGM_BASE::GetCommonSettings(), getDefaultAuthorAndEmail(), KIPLATFORM::SECRETS::GetSecret(), PANEL_GIT_REPOS_BASE::m_author, PANEL_GIT_REPOS_BASE::m_authorEmail, PANEL_GIT_REPOS_BASE::m_cbDefault, COMMON_SETTINGS::m_Git, PANEL_GIT_REPOS_BASE::m_grid, COMMON_SETTINGS::GIT_REPOSITORY::name, COMMON_SETTINGS::GIT_REPOSITORY::path, Pgm(), COMMON_SETTINGS::GIT::repositories, COMMON_SETTINGS::GIT_REPOSITORY::ssh_path, testRepositoryConnection(), COMMON_SETTINGS::GIT::useDefaultAuthor, and COMMON_SETTINGS::GIT_REPOSITORY::username.
|
protectedinherited |
Definition at line 48 of file panel_git_repos_base.h.
Referenced by onDefaultClick(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 50 of file panel_git_repos_base.h.
Referenced by onDefaultClick(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 49 of file panel_git_repos_base.h.
Referenced by onDefaultClick(), and PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_git_repos_base.h.
Referenced by onDefaultClick(), and PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), and PANEL_GIT_REPOS_BASE::~PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 56 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), and PANEL_GIT_REPOS_BASE::~PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), and PANEL_GIT_REPOS_BASE::~PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 46 of file panel_git_repos_base.h.
Referenced by onDefaultClick(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), ResetPanel(), TransferDataFromWindow(), TransferDataToWindow(), and PANEL_GIT_REPOS_BASE::~PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_git_repos_base.h.
Referenced by onAddClick(), onDeleteClick(), onEditClick(), onGridDClick(), PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE(), ResetPanel(), TransferDataFromWindow(), TransferDataToWindow(), and PANEL_GIT_REPOS_BASE::~PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 51 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 45 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_git_repos_base.h.
Referenced by PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE().