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

The advanced git window's Tags page: the list beside the selected tag's detail, with the actions that create, check out and delete a tag. More...

#include <panel_git_tags.h>

Inheritance diagram for PANEL_GIT_TAGS:
PANEL_GIT_TAGS_BASE

Public Member Functions

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

Protected Attributes

wxSplitterWindow * m_tagsSplitter
 
wxPanel * m_tagListPanel
 
wxListCtrl * m_tagsList
 
wxStaticText * m_tagCount
 
wxPanel * m_tagDetail
 
wxStaticText * m_tagTitle
 
wxStaticText * m_tagCommit
 
wxStaticText * m_tagAuthor
 
wxStaticText * m_tagWhen
 
wxTextCtrl * m_tagMessage
 
wxButton * m_checkoutTagButton
 
wxButton * m_deleteTagButton
 
wxButton * m_createTagButton
 

Private Member Functions

void showTagDetail (const wxString &aTag)
 Fill the detail pane with aTag, or hide it when the name is empty or gone.
 
void fillTagDetail (const KIGIT_TAG_DETAIL &aDetail)
 
void hideTagDetail ()
 
void onNewTag ()
 
void onCheckoutTag ()
 
void onDeleteTag ()
 

Private Attributes

GIT_ADVANCED_DIALOG * m_dialog
 
EDA_BASE_FRAME * m_frame
 
KIGIT_QUERY m_listQuery
 List and detail reads share the session lock without waiting on the UI thread.
 
KIGIT_QUERY m_detailQuery
 
int m_tagSashPos = 0
 Where the user left the sash between the list and its detail pane.
 
bool m_fillingTags = false
 True while the list is being refilled, when its selection events are its own.
 

Detailed Description

The advanced git window's Tags page: the list beside the selected tag's detail, with the actions that create, check out and delete a tag.

Definition at line 35 of file panel_git_tags.h.

Constructor & Destructor Documentation

◆ PANEL_GIT_TAGS()

Member Function Documentation

◆ fillTagDetail()

◆ hideTagDetail()

◆ onCheckoutTag()

void PANEL_GIT_TAGS::onCheckoutTag ( )
private

◆ onDeleteTag()

void PANEL_GIT_TAGS::onDeleteTag ( )
private

◆ onNewTag()

void PANEL_GIT_TAGS::onNewTag ( )
private

◆ Populate()

void PANEL_GIT_TAGS::Populate ( )

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

Definition at line 83 of file panel_git_tags.cpp.

References _, hideTagDetail(), m_detailQuery, m_dialog, m_fillingTags, m_frame, m_listQuery, PANEL_GIT_TAGS_BASE::m_tagCount, PANEL_GIT_TAGS_BASE::m_tagsList, and showTagDetail().

◆ showTagDetail()

void PANEL_GIT_TAGS::showTagDetail ( const wxString & aTag)
private

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

Definition at line 138 of file panel_git_tags.cpp.

References hideTagDetail(), m_detailQuery, m_dialog, and m_frame.

Referenced by PANEL_GIT_TAGS(), and Populate().

Member Data Documentation

◆ m_checkoutTagButton

wxButton* PANEL_GIT_TAGS_BASE::m_checkoutTagButton
protectedinherited

Definition at line 49 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::PANEL_GIT_TAGS(), and PANEL_GIT_TAGS_BASE().

◆ m_createTagButton

wxButton* PANEL_GIT_TAGS_BASE::m_createTagButton
protectedinherited

Definition at line 51 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::PANEL_GIT_TAGS(), and PANEL_GIT_TAGS_BASE().

◆ m_deleteTagButton

wxButton* PANEL_GIT_TAGS_BASE::m_deleteTagButton
protectedinherited

Definition at line 50 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::PANEL_GIT_TAGS(), and PANEL_GIT_TAGS_BASE().

◆ m_detailQuery

KIGIT_QUERY PANEL_GIT_TAGS::m_detailQuery
private

Definition at line 58 of file panel_git_tags.h.

Referenced by hideTagDetail(), Populate(), and showTagDetail().

◆ m_dialog

GIT_ADVANCED_DIALOG* PANEL_GIT_TAGS::m_dialog
private

◆ m_fillingTags

bool PANEL_GIT_TAGS::m_fillingTags = false
private

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

Definition at line 64 of file panel_git_tags.h.

Referenced by PANEL_GIT_TAGS(), and Populate().

◆ m_frame

EDA_BASE_FRAME* PANEL_GIT_TAGS::m_frame
private

Definition at line 54 of file panel_git_tags.h.

Referenced by PANEL_GIT_TAGS(), Populate(), and showTagDetail().

◆ m_listQuery

KIGIT_QUERY PANEL_GIT_TAGS::m_listQuery
private

List and detail reads share the session lock without waiting on the UI thread.

Definition at line 57 of file panel_git_tags.h.

Referenced by Populate().

◆ m_tagAuthor

wxStaticText* PANEL_GIT_TAGS_BASE::m_tagAuthor
protectedinherited

Definition at line 46 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().

◆ m_tagCommit

wxStaticText* PANEL_GIT_TAGS_BASE::m_tagCommit
protectedinherited

Definition at line 45 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().

◆ m_tagCount

wxStaticText* PANEL_GIT_TAGS_BASE::m_tagCount
protectedinherited

Definition at line 42 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS_BASE(), and PANEL_GIT_TAGS::Populate().

◆ m_tagDetail

wxPanel* PANEL_GIT_TAGS_BASE::m_tagDetail
protectedinherited

◆ m_tagListPanel

wxPanel* PANEL_GIT_TAGS_BASE::m_tagListPanel
protectedinherited

Definition at line 40 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().

◆ m_tagMessage

wxTextCtrl* PANEL_GIT_TAGS_BASE::m_tagMessage
protectedinherited

Definition at line 48 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().

◆ m_tagSashPos

int PANEL_GIT_TAGS::m_tagSashPos = 0
private

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

Definition at line 61 of file panel_git_tags.h.

Referenced by fillTagDetail(), hideTagDetail(), and PANEL_GIT_TAGS().

◆ m_tagsList

wxListCtrl* PANEL_GIT_TAGS_BASE::m_tagsList
protectedinherited

◆ m_tagsSplitter

wxSplitterWindow* PANEL_GIT_TAGS_BASE::m_tagsSplitter
protectedinherited

◆ m_tagTitle

wxStaticText* PANEL_GIT_TAGS_BASE::m_tagTitle
protectedinherited

Definition at line 44 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().

◆ m_tagWhen

wxStaticText* PANEL_GIT_TAGS_BASE::m_tagWhen
protectedinherited

Definition at line 47 of file panel_git_tags_base.h.

Referenced by PANEL_GIT_TAGS::fillTagDetail(), and PANEL_GIT_TAGS_BASE().


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