1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
#ifndef COMMITBROWSER_H
#define COMMITBROWSER_H
#include <map>
//(*Headers(CommitBrowser)
#include <wx/dialog.h>
#include <wx/listctrl.h>
#include <wx/button.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/choice.h>
#include <wx/checkbox.h>
#include <wx/datectrl.h>
//*)
#include "FileExplorerUpdater.h"
class CommitBrowser: public wxDialog
{
public:
CommitBrowser(wxWindow* parent, const wxString& repo_path, const wxString &repo_type, const wxString &files = wxEmptyString);
virtual ~CommitBrowser();
wxString GetSelectedCommit();
wxString GetRepoBranch();
//(*Declarations(CommitBrowser)
wxButton* Button1;
wxButton* Button2;
wxStaticText* StaticText1;
wxChoice* Choice1;
wxListCtrl* CommitList;
wxButton* ButtonMore;
wxStaticText* CommitStatus;
wxTextCtrl* TextCtrl1;
wxCheckBox* CheckStartCommit;
wxTextCtrl* StartCommit;
wxCheckBox* CheckEndCommit;
wxTextCtrl* EndCommit;
wxCheckBox* CheckAfterDate;
wxDatePickerCtrl* AfterDate;
wxCheckBox* CheckBeforeDate;
wxDatePickerCtrl* BeforeDate;
wxTextCtrl* Grep;
wxTextCtrl* FileEntry;
//*)
long m_autofetch_count;
CommitUpdater *m_updater;
CommitUpdater *m_updater_commits;
wxString m_update_queue;
wxString m_update_commits_queue;
wxString m_repo_path;
wxString m_repo_type;
protected:
//(*Identifiers(CommitBrowser)
//*)
private:
std::map<wxString, long> m_rev_fetch_amt;
//(*Handlers(CommitBrowser)
void OnButtonMore(wxCommandEvent& event);
void OnButton2Click(wxCommandEvent& event);
void OnButton1Click(wxCommandEvent& event);
//*)
void OnSearch(wxCommandEvent& event);
void OnCheckCommitAfterDate(wxCommandEvent &event);
void OnCheckCommitBeforeDate(wxCommandEvent &event);
void OnCheckCommitStart(wxCommandEvent &event);
void OnCheckCommitEnd(wxCommandEvent &event);
void OnUpdateComplete(wxCommandEvent &event);
void OnCommitsUpdateComplete(wxCommandEvent &event);
void OnBranchSelected(wxCommandEvent &event);
void OnListItemSelected(wxListEvent &event);
void CommitsUpdaterQueue(const wxString &cmd);
CommitUpdaterOptions GetCommitOptions();
DECLARE_EVENT_TABLE()
};
#endif
|