14GIT_COMMIT_PANE_BASE::GIT_COMMIT_PANE_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxScrolledWindow( 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 );
30 wxArrayString m_recentMessagesChoices;
31 m_recentMessages =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_recentMessagesChoices, 0 );
41 bMainSizer->Add(
m_branchRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
43 m_summary =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 bMainSizer->Add(
m_summary, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
46 m_summaryCount =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50 m_description =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
53 bMainSizer->Add(
m_description, 0, wxEXPAND|wxLEFT|wxRIGHT, 4 );
55 m_optionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Commit Options") ), wxVERTICAL );
63 wxBoxSizer* bNewBranchSizer;
64 bNewBranchSizer =
new wxBoxSizer( wxHORIZONTAL );
76 bMainSizer->Add(
m_optionsSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
80 m_changesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Changes to Commit"), wxDefaultPosition, wxDefaultSize, 0 );
87 m_showDiffButton =
new wxButton(
this, wxID_ANY,
_(
"Show Diff"), wxDefaultPosition, wxDefaultSize, 0 );
91 bMainSizer->Add(
m_changesRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
93 m_emptyLabel =
new wxStaticText(
this, wxID_ANY,
_(
"No changes"), wxDefaultPosition, wxDefaultSize, 0 );
99 m_trustCommand =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
104 m_copyTrustCommand =
new wxButton(
this, wxID_ANY,
_(
"Copy"), wxDefaultPosition, wxDefaultSize, 0 );
110 bMainSizer->Add(
m_trustRow, 0, wxEXPAND|wxBOTTOM|wxLEFT|wxRIGHT, 8 );
112 m_undoCommitButton =
new wxButton(
this, wxID_ANY,
_(
"Undo Last Commit"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_undoCommitButton->SetToolTip(
_(
"Undo the last commit. Only possible while it has not been sent to any remote this project knows about.") );
119 bMainSizer->Add(
m_checklist, 1, wxALL|wxEXPAND, 4 );
121 wxBoxSizer* bCommitSizer;
122 bCommitSizer =
new wxBoxSizer( wxHORIZONTAL );
127 m_pullButton =
new wxButton(
this, wxID_ANY,
_(
"Get Changes"), wxDefaultPosition, wxDefaultSize, 0 );
131 bMainSizer->Add( bCommitSizer, 0, wxEXPAND, 0 );
134 this->SetSizer( bMainSizer );