14GIT_COMMIT_PANE_BASE::GIT_COMMIT_PANE_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxStaticText* m_commitToLabel;
22 m_commitToLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Commit to:"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_commitToLabel->Wrap( -1 );
24 m_branchRow->Add( m_commitToLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
26 m_branchName =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33 wxArrayString m_recentMessagesChoices;
34 m_recentMessages =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_recentMessagesChoices, 0 );
44 bMainSizer->Add(
m_branchRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
46 m_summary =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 bMainSizer->Add(
m_summary, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
49 m_summaryCount =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
53 m_description =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
56 bMainSizer->Add(
m_description, 0, wxEXPAND|wxLEFT|wxRIGHT, 4 );
58 m_optionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Commit Options") ), wxVERTICAL );
66 wxBoxSizer* bNewBranchSizer;
67 bNewBranchSizer =
new wxBoxSizer( wxHORIZONTAL );
79 bMainSizer->Add(
m_optionsSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
83 m_changesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Changes to Commit"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_showDiffButton =
new wxButton(
this, wxID_ANY,
_(
"Show Diff"), wxDefaultPosition, wxDefaultSize, 0 );
94 bMainSizer->Add(
m_changesRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
96 m_emptyLabel =
new wxStaticText(
this, wxID_ANY,
_(
"No changes"), wxDefaultPosition, wxDefaultSize, 0 );
101 bMainSizer->Add(
m_checklist, 1, wxALL|wxEXPAND, 4 );
103 wxBoxSizer* bCommitSizer;
104 bCommitSizer =
new wxBoxSizer( wxHORIZONTAL );
109 m_pullButton =
new wxButton(
this, wxID_ANY,
_(
"Get Changes"), wxDefaultPosition, wxDefaultSize, 0 );
113 bMainSizer->Add( bCommitSizer, 0, wxEXPAND, 0 );
116 this->SetSizer( bMainSizer );