KiCad PCB EDA Suite
Loading...
Searching...
No Matches
local_history_pane.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
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 3
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
23
24#ifndef LOCAL_HISTORY_PANE_H
25#define LOCAL_HISTORY_PANE_H
26
27#include <wx/datetime.h>
28#include <wx/listctrl.h>
29#include <wx/panel.h>
30#include <wx/string.h>
31#include <wx/timer.h>
32#include <wx/event.h>
33#include <vector>
34
35wxDECLARE_EVENT( EVT_LOCAL_HISTORY_REFRESH, wxCommandEvent );
36
38
40{
41 wxString hash;
42 wxString summary;
43 wxString message;
44 wxDateTime date;
45};
46
47class LOCAL_HISTORY_PANE : public wxPanel
48{
49public:
52
53 void RefreshHistory( const wxString& aProjectPath );
54
55private:
56 void OnMotion( wxMouseEvent& aEvent );
57 void OnRightClick( wxListEvent& aEvent );
58 void OnRefreshEvent( wxCommandEvent& aEvent );
59 void OnRefreshTimer( wxTimerEvent& aEvent );
60
62 wxListCtrl* m_list;
63 std::vector<LOCAL_COMMIT_INFO> m_commits;
65};
66
67#endif // LOCAL_HISTORY_PANE_H
The main KiCad project manager frame.
LOCAL_HISTORY_PANE(KICAD_MANAGER_FRAME *aParent)
void OnRefreshTimer(wxTimerEvent &aEvent)
void OnRightClick(wxListEvent &aEvent)
KICAD_MANAGER_FRAME * m_frame
void RefreshHistory(const wxString &aProjectPath)
void OnRefreshEvent(wxCommandEvent &aEvent)
std::vector< LOCAL_COMMIT_INFO > m_commits
void OnMotion(wxMouseEvent &aEvent)
wxDECLARE_EVENT(EVT_LOCAL_HISTORY_REFRESH, wxCommandEvent)