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 )
14 wxBoxSizer* bMainSizer;
15 bMainSizer =
new wxBoxSizer( wxVERTICAL );
18 bFilters =
new wxBoxSizer( wxHORIZONTAL );
20 m_historySearch =
new wxSearchCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
25 bFilters->Add(
m_historySearch, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
27 wxArrayString m_historyBranchChoices;
28 m_historyBranch =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_historyBranchChoices, 0 );
30 bFilters->Add(
m_historyBranch, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
32 m_historyShowRefs =
new wxCheckBox(
this, wxID_ANY,
_(
"Show refs"), wxDefaultPosition, wxDefaultSize, 0 );
37 bMainSizer->Add( bFilters, 0, wxEXPAND|wxALL, 4 );
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 );
46 m_historyPathLabel =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_MIDDLE );
48 m_historyPathLabel->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
52 m_showAllButton =
new wxButton(
this, wxID_ANY,
_(
"Show All Commits"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
58 m_historySplitter =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE );
63 wxBoxSizer* bhistoryListPanelSizer;
64 bhistoryListPanelSizer =
new wxBoxSizer( wxVERTICAL );
74 wxBoxSizer* bcommitDetailSizer;
75 bcommitDetailSizer =
new wxBoxSizer( wxVERTICAL );
79 m_commitTitle->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
81 bcommitDetailSizer->Add(
m_commitTitle, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
83 wxBoxSizer* bAuthorRow;
84 bAuthorRow =
new wxBoxSizer( wxHORIZONTAL );
87 bAuthorRow->Add(
m_commitAvatar, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 6 );
94 bcommitDetailSizer->Add( bAuthorRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
101 wxBoxSizer* bStatsRow;
102 bStatsRow =
new wxBoxSizer( wxHORIZONTAL );
106 bStatsRow->Add(
m_commitStats, 0, wxALIGN_CENTER_VERTICAL, 0 );
109 bStatsRow->Add( 0, 0, 1, wxEXPAND, 0 );
117 bStatsRow->Add(
m_commitAdded, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 8 );
124 bcommitDetailSizer->Add( bStatsRow, 0, wxEXPAND|wxLEFT|wxRIGHT, 8 );
130 wxBoxSizer* bcommitFilesPanelSizer;
131 bcommitFilesPanelSizer =
new wxBoxSizer( wxVERTICAL );
134 bcommitFilesPanelSizer->Add(
m_commitFiles, 1, wxEXPAND, 0 );
151 this->SetSizer( bMainSizer );
153 bMainSizer->Fit(
this );
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)