KiCad PCB EDA Suite
Loading...
Searching...
No Matches
git_commit_pane_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
13
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 )
15{
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_branchRow = new wxBoxSizer( wxHORIZONTAL );
20
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 );
25
26 m_branchName = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
27 m_branchName->Wrap( -1 );
28 m_branchRow->Add( m_branchName, 0, wxALIGN_CENTER_VERTICAL, 0 );
29
30
31 m_branchRow->Add( 0, 0, 1, wxEXPAND, 0 );
32
33 wxArrayString m_recentMessagesChoices;
34 m_recentMessages = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_recentMessagesChoices, 0 );
35 m_recentMessages->SetSelection( 0 );
36 m_branchRow->Add( m_recentMessages, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 4 );
37
38 m_settingsButton = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
39 m_settingsButton->SetToolTip( _("Commit settings and the advanced window") );
40
41 m_branchRow->Add( m_settingsButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 4 );
42
43
44 bMainSizer->Add( m_branchRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
45
46 m_summary = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 bMainSizer->Add( m_summary, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
48
49 m_summaryCount = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
50 m_summaryCount->Wrap( -1 );
51 bMainSizer->Add( m_summaryCount, 0, wxALIGN_RIGHT|wxRIGHT, 4 );
52
53 m_description = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
54 m_description->SetMinSize( wxSize( -1,60 ) );
55
56 bMainSizer->Add( m_description, 0, wxEXPAND|wxLEFT|wxRIGHT, 4 );
57
58 m_optionsSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Commit Options") ), wxVERTICAL );
59
60 m_amendCheckbox = new wxCheckBox( m_optionsSizer->GetStaticBox(), wxID_ANY, _("Amend last commit"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_optionsSizer->Add( m_amendCheckbox, 0, wxLEFT|wxRIGHT|wxTOP, 4 );
62
63 m_signOffCheckbox = new wxCheckBox( m_optionsSizer->GetStaticBox(), wxID_ANY, _("Sign off (add Signed-off-by)"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_optionsSizer->Add( m_signOffCheckbox, 0, wxLEFT|wxRIGHT|wxTOP, 4 );
65
66 wxBoxSizer* bNewBranchSizer;
67 bNewBranchSizer = new wxBoxSizer( wxHORIZONTAL );
68
69 m_newBranchCheckbox = new wxCheckBox( m_optionsSizer->GetStaticBox(), wxID_ANY, _("Create a new branch"), wxDefaultPosition, wxDefaultSize, 0 );
70 bNewBranchSizer->Add( m_newBranchCheckbox, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
71
72 m_newBranchName = new wxTextCtrl( m_optionsSizer->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
73 bNewBranchSizer->Add( m_newBranchName, 1, wxALIGN_CENTER_VERTICAL, 0 );
74
75
76 m_optionsSizer->Add( bNewBranchSizer, 0, wxEXPAND|wxALL, 4 );
77
78
79 bMainSizer->Add( m_optionsSizer, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
80
81 m_changesRow = new wxBoxSizer( wxHORIZONTAL );
82
83 m_changesLabel = new wxStaticText( this, wxID_ANY, _("Changes to Commit"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_changesLabel->Wrap( -1 );
85 m_changesRow->Add( m_changesLabel, 0, wxALIGN_CENTER_VERTICAL, 0 );
86
87
88 m_changesRow->Add( 0, 0, 1, wxEXPAND, 0 );
89
90 m_showDiffButton = new wxButton( this, wxID_ANY, _("Show Diff"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_changesRow->Add( m_showDiffButton, 0, wxALIGN_CENTER_VERTICAL, 0 );
92
93
94 bMainSizer->Add( m_changesRow, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 4 );
95
96 m_emptyLabel = new wxStaticText( this, wxID_ANY, _("No changes"), wxDefaultPosition, wxDefaultSize, 0 );
97 m_emptyLabel->Wrap( -1 );
98 bMainSizer->Add( m_emptyLabel, 0, wxALL, 8 );
99
100 m_checklist = new FILE_CHECKLIST_CTRL( this, wxID_ANY );
101 bMainSizer->Add( m_checklist, 1, wxALL|wxEXPAND, 4 );
102
103 wxBoxSizer* bCommitSizer;
104 bCommitSizer = new wxBoxSizer( wxHORIZONTAL );
105
106 m_commitButton = new SPLIT_BUTTON( this, wxID_ANY, _( "Commit" ), wxDefaultPosition );
107 bCommitSizer->Add( m_commitButton, 1, wxALL, 4 );
108
109 m_pullButton = new wxButton( this, wxID_ANY, _("Get Changes"), wxDefaultPosition, wxDefaultSize, 0 );
110 bCommitSizer->Add( m_pullButton, 1, wxALL, 4 );
111
112
113 bMainSizer->Add( bCommitSizer, 0, wxEXPAND, 0 );
114
115
116 this->SetSizer( bMainSizer );
117 this->Layout();
118}
119
const char * name
A checkable list of files, grouped into sections.
wxStaticBoxSizer * m_optionsSizer
STD_BITMAP_BUTTON * m_settingsButton
FILE_CHECKLIST_CTRL * m_checklist
GIT_COMMIT_PANE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 360), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
A bitmap button widget that behaves like a standard dialog button except with an icon.
#define _(s)