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 m_commitStats = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
102 m_commitStats->Wrap( -1 );
103 bcommitDetailSizer->Add( m_commitStats, 0, wxLEFT|wxRIGHT, 8 );
104
105 wxBoxSizer* bStatsRow;
106 bStatsRow = new wxBoxSizer( wxHORIZONTAL );
107
108 m_commitFileCount = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
109 m_commitFileCount->Wrap( -1 );
110 bStatsRow->Add( m_commitFileCount, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 12 );
111
112 m_commitAdded = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
113 m_commitAdded->Wrap( -1 );
114 bStatsRow->Add( m_commitAdded, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
115
116 m_commitRemoved = new wxStaticText( m_commitDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
117 m_commitRemoved->Wrap( -1 );
118 bStatsRow->Add( m_commitRemoved, 0, wxALIGN_CENTER_VERTICAL, 0 );
119
120
121 bcommitDetailSizer->Add( bStatsRow, 0, wxEXPAND|wxLEFT|wxRIGHT, 8 );
122
123 m_detailSplitter = new wxSplitterWindow( m_commitDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE );
124 m_detailSplitter->SetMinimumPaneSize( 60 );
125
126 m_commitFilesPanel = new wxPanel( m_detailSplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
127 wxBoxSizer* bcommitFilesPanelSizer;
128 bcommitFilesPanelSizer = new wxBoxSizer( wxVERTICAL );
129
130 m_commitFiles = new wxListCtrl( m_commitFilesPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
131 bcommitFilesPanelSizer->Add( m_commitFiles, 1, wxEXPAND, 0 );
132
133
134 m_commitFilesPanel->SetSizer( bcommitFilesPanelSizer );
135 m_commitFilesPanel->Layout();
136 bcommitFilesPanelSizer->Fit( m_commitFilesPanel );
138 bcommitDetailSizer->Add( m_detailSplitter, 1, wxEXPAND|wxALL, 8 );
139
140
141 m_commitDetail->SetSizer( bcommitDetailSizer );
142 m_commitDetail->Layout();
143 bcommitDetailSizer->Fit( m_commitDetail );
144 m_historySplitter->SplitVertically( m_historyListPanel, m_commitDetail, -1 );
145 bMainSizer->Add( m_historySplitter, 1, wxEXPAND|wxALL, 4 );
146
147
148 this->SetSizer( bMainSizer );
149 this->Layout();
150 bMainSizer->Fit( this );
151}
152
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)