KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_git_history_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_GIT_HISTORY_BASE::PANEL_GIT_HISTORY_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bMainSizer;
15 bMainSizer = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bFilters;
18 bFilters = new wxBoxSizer( wxHORIZONTAL );
19
20 m_historySearch = new wxSearchCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
21 #ifndef __WXMAC__
22 m_historySearch->ShowSearchButton( true );
23 #endif
24 m_historySearch->ShowCancelButton( false );
25 bFilters->Add( m_historySearch, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
26
27 wxArrayString m_historyBranchChoices;
28 m_historyBranch = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_historyBranchChoices, 0 );
29 m_historyBranch->SetSelection( 0 );
30 bFilters->Add( m_historyBranch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
31
32 m_historyShowRefs = new wxCheckBox( this, wxID_ANY, _("Show refs"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_historyShowRefs->SetValue(true);
34 bFilters->Add( m_historyShowRefs, 0, wxALIGN_CENTER_VERTICAL, 0 );
35
36
37 bMainSizer->Add( bFilters, 0, wxEXPAND|wxALL, 4 );
38
39 m_historyPathRow = new wxBoxSizer( wxHORIZONTAL );
40
41 wxStaticText* m_staticText3;
42 m_staticText3 = new wxStaticText( this, wxID_ANY, _("Showing commits that changed"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_staticText3->Wrap( -1 );
44 m_historyPathRow->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 6 );
45
46 m_historyPathLabel = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_MIDDLE );
47 m_historyPathLabel->Wrap( -1 );
48 m_historyPathLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
49
50 m_historyPathRow->Add( m_historyPathLabel, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 12 );
51
52 m_showAllButton = new wxButton( this, wxID_ANY, _("Show All Commits"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
53 m_historyPathRow->Add( m_showAllButton, 0, wxALIGN_CENTER_VERTICAL, 0 );
54
55
56 bMainSizer->Add( m_historyPathRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM, 4 );
57
58 m_historySplitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE );
59 m_historySplitter->SetSashGravity( 0.6 );
60 m_historySplitter->SetMinimumPaneSize( 200 );
61
62 m_historyListPanel = new wxPanel( m_historySplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
63 wxBoxSizer* bhistoryListPanelSizer;
64 bhistoryListPanelSizer = new wxBoxSizer( wxVERTICAL );
65
66 m_historyList = new wxDataViewListCtrl( m_historyListPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
67 bhistoryListPanelSizer->Add( m_historyList, 1, wxEXPAND, 0 );
68
69
70 m_historyListPanel->SetSizer( bhistoryListPanelSizer );
71 m_historyListPanel->Layout();
72 bhistoryListPanelSizer->Fit( m_historyListPanel );
73 m_commitDetail = new wxPanel( m_historySplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
74 wxBoxSizer* bcommitDetailSizer;
75 bcommitDetailSizer = new wxBoxSizer( wxVERTICAL );
76
77 m_commitTitle = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
78 m_commitTitle->Wrap( -1 );
79 m_commitTitle->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
80
81 bcommitDetailSizer->Add( m_commitTitle, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
82
83 wxBoxSizer* bAuthorRow;
84 bAuthorRow = new wxBoxSizer( wxHORIZONTAL );
85
86 m_commitAvatar = new wxStaticBitmap( m_commitDetail, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
87 bAuthorRow->Add( m_commitAvatar, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 6 );
88
89 m_commitAuthor = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
90 m_commitAuthor->Wrap( -1 );
91 bAuthorRow->Add( m_commitAuthor, 1, wxALIGN_CENTER_VERTICAL, 0 );
92
93
94 bcommitDetailSizer->Add( bAuthorRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
95
96 m_commitMessage = new wxTextCtrl( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
97 m_commitMessage->SetMinSize( wxSize( -1,90 ) );
98
99 bcommitDetailSizer->Add( m_commitMessage, 0, wxEXPAND|wxALL, 8 );
100
101 wxBoxSizer* bStatsRow;
102 bStatsRow = new wxBoxSizer( wxHORIZONTAL );
103
104 m_commitStats = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
105 m_commitStats->Wrap( -1 );
106 bStatsRow->Add( m_commitStats, 0, wxALIGN_CENTER_VERTICAL, 0 );
107
108
109 bStatsRow->Add( 0, 0, 1, wxEXPAND, 0 );
110
111 m_commitFileCount = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
112 m_commitFileCount->Wrap( -1 );
113 bStatsRow->Add( m_commitFileCount, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 12 );
114
115 m_commitAdded = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
116 m_commitAdded->Wrap( -1 );
117 bStatsRow->Add( m_commitAdded, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
118
119 m_commitRemoved = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
120 m_commitRemoved->Wrap( -1 );
121 bStatsRow->Add( m_commitRemoved, 0, wxALIGN_CENTER_VERTICAL, 0 );
122
123
124 bcommitDetailSizer->Add( bStatsRow, 0, wxEXPAND|wxLEFT|wxRIGHT, 8 );
125
126 m_detailSplitter = new wxSplitterWindow( m_commitDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE );
127 m_detailSplitter->SetMinimumPaneSize( 60 );
128
129 m_commitFilesPanel = new wxPanel( m_detailSplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
130 wxBoxSizer* bcommitFilesPanelSizer;
131 bcommitFilesPanelSizer = new wxBoxSizer( wxVERTICAL );
132
133 m_commitFiles = new wxListCtrl( m_commitFilesPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
134 bcommitFilesPanelSizer->Add( m_commitFiles, 1, wxEXPAND, 0 );
135
136
137 m_commitFilesPanel->SetSizer( bcommitFilesPanelSizer );
138 m_commitFilesPanel->Layout();
139 bcommitFilesPanelSizer->Fit( m_commitFilesPanel );
141 bcommitDetailSizer->Add( m_detailSplitter, 1, wxEXPAND|wxALL, 8 );
142
143
144 m_commitDetail->SetSizer( bcommitDetailSizer );
145 m_commitDetail->Layout();
146 bcommitDetailSizer->Fit( m_commitDetail );
147 m_historySplitter->SplitVertically( m_historyListPanel, m_commitDetail, -1 );
148 bMainSizer->Add( m_historySplitter, 1, wxEXPAND|wxALL, 4 );
149
150
151 this->SetSizer( bMainSizer );
152 this->Layout();
153 bMainSizer->Fit( this );
154}
155
const char * name
wxSplitterWindow * m_historySplitter
wxDataViewListCtrl * m_historyList
PANEL_GIT_HISTORY_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)
wxSplitterWindow * m_detailSplitter
#define _(s)