KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_git_stashes_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_STASHES_BASE::PANEL_GIT_STASHES_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 m_stashesSplitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3DSASH|wxSP_LIVE_UPDATE );
18 m_stashesSplitter->SetSashGravity( 0.6 );
19 m_stashesSplitter->SetMinimumPaneSize( 200 );
20
21 m_stashListPanel = new wxPanel( m_stashesSplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
22 wxBoxSizer* bstashListPanelSizer;
23 bstashListPanelSizer = new wxBoxSizer( wxVERTICAL );
24
25 m_stashesList = new wxListCtrl( m_stashListPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
26 bstashListPanelSizer->Add( m_stashesList, 1, wxEXPAND, 0 );
27
28 m_stashCount = new wxStaticText( m_stashListPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_stashCount->Wrap( -1 );
30 bstashListPanelSizer->Add( m_stashCount, 0, wxLEFT|wxTOP, 4 );
31
32
33 m_stashListPanel->SetSizer( bstashListPanelSizer );
34 m_stashListPanel->Layout();
35 bstashListPanelSizer->Fit( m_stashListPanel );
36 m_stashDetail = new wxPanel( m_stashesSplitter, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
37 wxBoxSizer* bstashDetailSizer;
38 bstashDetailSizer = new wxBoxSizer( wxVERTICAL );
39
40 wxStaticText* m_staticText6;
41 m_staticText6 = new wxStaticText( m_stashDetail, wxID_ANY, _("Stash Details"), wxDefaultPosition, wxDefaultSize, 0 );
42 m_staticText6->Wrap( -1 );
43 m_staticText6->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
44
45 bstashDetailSizer->Add( m_staticText6, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
46
47 m_stashWhen = new wxStaticText( m_stashDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
48 m_stashWhen->Wrap( -1 );
49 bstashDetailSizer->Add( m_stashWhen, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
50
51 m_stashBranch = new wxStaticText( m_stashDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52 m_stashBranch->Wrap( -1 );
53 bstashDetailSizer->Add( m_stashBranch, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
54
55 m_stashCommit = new wxStaticText( m_stashDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56 m_stashCommit->Wrap( -1 );
57 bstashDetailSizer->Add( m_stashCommit, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
58
59 wxStaticText* m_staticText7;
60 m_staticText7 = new wxStaticText( m_stashDetail, wxID_ANY, _("Message:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticText7->Wrap( -1 );
62 bstashDetailSizer->Add( m_staticText7, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
63
64 m_stashMessage = new wxTextCtrl( m_stashDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
65 m_stashMessage->SetMinSize( wxSize( -1,60 ) );
66
67 bstashDetailSizer->Add( m_stashMessage, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
68
69 wxStaticText* m_staticText8;
70 m_staticText8 = new wxStaticText( m_stashDetail, wxID_ANY, _("Changes:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_staticText8->Wrap( -1 );
72 bstashDetailSizer->Add( m_staticText8, 0, wxLEFT|wxRIGHT|wxTOP, 8 );
73
74 m_stashFiles = new wxListCtrl( m_stashDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_HEADER|wxLC_REPORT|wxLC_SINGLE_SEL );
75 bstashDetailSizer->Add( m_stashFiles, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
76
77 wxBoxSizer* bRestore;
78 bRestore = new wxBoxSizer( wxHORIZONTAL );
79
80 m_applyStashButton = new wxButton( m_stashDetail, wxID_ANY, _("Apply Stash"), wxDefaultPosition, wxDefaultSize, 0 );
81 bRestore->Add( m_applyStashButton, 1, wxRIGHT, 4 );
82
83 m_popStashButton = new wxButton( m_stashDetail, wxID_ANY, _("Pop Stash"), wxDefaultPosition, wxDefaultSize, 0 );
84 bRestore->Add( m_popStashButton, 1, 0, 0 );
85
86
87 bstashDetailSizer->Add( bRestore, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
88
89 m_dropStashButton = new wxButton( m_stashDetail, wxID_ANY, _("Drop Stash"), wxDefaultPosition, wxDefaultSize, 0 );
90 bstashDetailSizer->Add( m_dropStashButton, 0, wxEXPAND|wxALL, 8 );
91
92
93 m_stashDetail->SetSizer( bstashDetailSizer );
94 m_stashDetail->Layout();
95 bstashDetailSizer->Fit( m_stashDetail );
96 m_stashesSplitter->SplitVertically( m_stashListPanel, m_stashDetail, -1 );
97 bMainSizer->Add( m_stashesSplitter, 1, wxEXPAND|wxALL, 4 );
98
99 wxBoxSizer* bBottomRow;
100 bBottomRow = new wxBoxSizer( wxHORIZONTAL );
101
102 m_stashSaveButton = new wxButton( this, wxID_ANY, _("Stash Changes..."), wxDefaultPosition, wxDefaultSize, 0 );
103 bBottomRow->Add( m_stashSaveButton, 0, wxRIGHT, 4 );
104
105
106 bMainSizer->Add( bBottomRow, 0, wxLEFT|wxRIGHT|wxBOTTOM, 4 );
107
108
109 this->SetSizer( bMainSizer );
110 this->Layout();
111 bMainSizer->Fit( this );
112}
113
const char * name
PANEL_GIT_STASHES_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_stashesSplitter
#define _(s)