KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_git_tags.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef PANEL_GIT_TAGS_H
21#define PANEL_GIT_TAGS_H
22
25
26class EDA_BASE_FRAME;
28struct KIGIT_TAG_DETAIL;
29
30
36{
37public:
38 PANEL_GIT_TAGS( wxWindow* aParent, GIT_ADVANCED_DIALOG* aDialog, EDA_BASE_FRAME* aFrame );
39
41 void Populate();
42
43private:
45 void showTagDetail( const wxString& aTag );
46 void fillTagDetail( const KIGIT_TAG_DETAIL& aDetail );
47 void hideTagDetail();
48
49 void onNewTag();
50 void onCheckoutTag();
51 void onDeleteTag();
52
55
59
61 int m_tagSashPos = 0;
62
64 bool m_fillingTags = false;
65};
66
67#endif // PANEL_GIT_TAGS_H
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_TAGS_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)
KIGIT_QUERY m_listQuery
List and detail reads share the session lock without waiting on the UI thread.
int m_tagSashPos
Where the user left the sash between the list and its detail pane.
PANEL_GIT_TAGS(wxWindow *aParent, GIT_ADVANCED_DIALOG *aDialog, EDA_BASE_FRAME *aFrame)
KIGIT_QUERY m_detailQuery
void showTagDetail(const wxString &aTag)
Fill the detail pane with aTag, or hide it when the name is empty or gone.
GIT_ADVANCED_DIALOG * m_dialog
bool m_fillingTags
True while the list is being refilled, when its selection events are its own.
void fillTagDetail(const KIGIT_TAG_DETAIL &aDetail)
EDA_BASE_FRAME * m_frame
void Populate()
Fill the list from the repository's tags. The repository is read on a worker.