KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_git_repos_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-254-gc2ef7767)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9#include "widgets/wx_grid.h"
10
12
14
15PANEL_GIT_REPOS_BASE::PANEL_GIT_REPOS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : RESETTABLE_PANEL( parent, id, pos, size, style, name )
16{
17 wxBoxSizer* bPanelSizer;
18 bPanelSizer = new wxBoxSizer( wxHORIZONTAL );
19
20 wxBoxSizer* bLeftSizer;
21 bLeftSizer = new wxBoxSizer( wxVERTICAL );
22
23 m_staticText12 = new wxStaticText( this, wxID_ANY, _("Git Commit Data"), wxDefaultPosition, wxDefaultSize, 0 );
24 m_staticText12->Wrap( -1 );
25 bLeftSizer->Add( m_staticText12, 0, wxEXPAND|wxLEFT|wxTOP, 10 );
26
27 wxFlexGridSizer* fgSizer1;
28 fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
29 fgSizer1->AddGrowableCol( 1 );
30 fgSizer1->SetFlexibleDirection( wxBOTH );
31 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32
33 m_cbDefault = new wxCheckBox( this, wxID_ANY, _("Use default values"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_cbDefault->SetValue(true);
35 fgSizer1->Add( m_cbDefault, 0, wxALL, 5 );
36
37
38 fgSizer1->Add( 0, 0, 0, wxEXPAND, 5 );
39
40 m_authorLabel = new wxStaticText( this, wxID_ANY, _("Author name:"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_authorLabel->Wrap( -1 );
42 m_authorLabel->Enable( false );
43
44 fgSizer1->Add( m_authorLabel, 0, wxALL, 5 );
45
46 m_author = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 m_author->Enable( false );
48
49 fgSizer1->Add( m_author, 0, wxALL|wxEXPAND, 5 );
50
51 m_authorEmailLabel = new wxStaticText( this, wxID_ANY, _("Author e-mail:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_authorEmailLabel->Wrap( -1 );
53 m_authorEmailLabel->Enable( false );
54
55 fgSizer1->Add( m_authorEmailLabel, 0, wxALL, 5 );
56
57 m_authorEmail = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
58 m_authorEmail->Enable( false );
59
60 fgSizer1->Add( m_authorEmail, 0, wxALL|wxEXPAND, 5 );
61
62
63 bLeftSizer->Add( fgSizer1, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 13 );
64
65 m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
66 bLeftSizer->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM, 5 );
67
68 m_staticText20 = new wxStaticText( this, wxID_ANY, _("Git Repositories"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_staticText20->Wrap( -1 );
70 bLeftSizer->Add( m_staticText20, 0, wxEXPAND|wxLEFT|wxRIGHT, 13 );
71
72 wxBoxSizer* bAntialiasingSizer;
73 bAntialiasingSizer = new wxBoxSizer( wxVERTICAL );
74
75 m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxSize( 820,200 ), 0 );
76
77 // Grid
78 m_grid->CreateGrid( 0, 10 );
79 m_grid->EnableEditing( false );
80 m_grid->EnableGridLines( true );
81 m_grid->EnableDragGridSize( false );
82 m_grid->SetMargins( 0, 0 );
83
84 // Columns
85 m_grid->SetColSize( 0, 60 );
86 m_grid->SetColSize( 1, 200 );
87 m_grid->SetColSize( 2, 500 );
88 m_grid->SetColSize( 3, 60 );
89 m_grid->SetColSize( 4, 0 );
90 m_grid->SetColSize( 5, 0 );
91 m_grid->SetColSize( 6, 0 );
92 m_grid->SetColSize( 7, 0 );
93 m_grid->SetColSize( 8, 0 );
94 m_grid->SetColSize( 9, 0 );
95 m_grid->EnableDragColMove( false );
96 m_grid->EnableDragColSize( true );
97 m_grid->SetColLabelValue( 0, _("Active") );
98 m_grid->SetColLabelValue( 1, _("Name") );
99 m_grid->SetColLabelValue( 2, _("Path") );
100 m_grid->SetColLabelValue( 3, _("Status") );
101 m_grid->SetColLabelSize( 22 );
102 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
103
104 // Rows
105 m_grid->EnableDragRowSize( true );
106 m_grid->SetRowLabelSize( 0 );
107 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
108
109 // Label Appearance
110
111 // Cell Defaults
112 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
113 bAntialiasingSizer->Add( m_grid, 5, wxALL|wxEXPAND, 5 );
114
115
116 bLeftSizer->Add( bAntialiasingSizer, 0, wxEXPAND|wxLEFT|wxTOP, 5 );
117
118 wxBoxSizer* bButtonsSizer;
119 bButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
120
121 m_btnAddRepo = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
122 m_btnAddRepo->SetToolTip( _("Add new repository") );
123
124 bButtonsSizer->Add( m_btnAddRepo, 0, wxALL, 5 );
125
126 m_btnEditRepo = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
127 m_btnEditRepo->SetToolTip( _("Edit repository properties") );
128
129 bButtonsSizer->Add( m_btnEditRepo, 0, wxALL, 5 );
130
131
132 bButtonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
133
134 m_btnDelete = new STD_BITMAP_BUTTON( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
135 m_btnDelete->SetToolTip( _("Remove Git Repository") );
136
137 bButtonsSizer->Add( m_btnDelete, 0, wxBOTTOM|wxRIGHT|wxTOP, 5 );
138
139
140 bLeftSizer->Add( bButtonsSizer, 1, wxALL|wxEXPAND, 5 );
141
142
143 bPanelSizer->Add( bLeftSizer, 0, wxRIGHT, 20 );
144
145
146 this->SetSizer( bPanelSizer );
147 this->Layout();
148 bPanelSizer->Fit( this );
149
150 // Connect Events
151 m_cbDefault->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onDefaultClick ), NULL, this );
152 m_grid->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( PANEL_GIT_REPOS_BASE::onGridDClick ), NULL, this );
153 m_btnAddRepo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onAddClick ), NULL, this );
154 m_btnEditRepo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onEditClick ), NULL, this );
155 m_btnDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onDeleteClick ), NULL, this );
156}
157
159{
160 // Disconnect Events
161 m_cbDefault->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onDefaultClick ), NULL, this );
162 m_grid->Disconnect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( PANEL_GIT_REPOS_BASE::onGridDClick ), NULL, this );
163 m_btnAddRepo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onAddClick ), NULL, this );
164 m_btnEditRepo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onEditClick ), NULL, this );
165 m_btnDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_GIT_REPOS_BASE::onDeleteClick ), NULL, this );
166
167}
const char * name
Definition: DXF_plotter.cpp:57
wxStaticLine * m_staticline3
wxStaticText * m_staticText20
STD_BITMAP_BUTTON * m_btnAddRepo
wxStaticText * m_authorLabel
STD_BITMAP_BUTTON * m_btnEditRepo
virtual void onDeleteClick(wxCommandEvent &event)
wxStaticText * m_authorEmailLabel
virtual void onEditClick(wxCommandEvent &event)
wxStaticText * m_staticText12
virtual void onGridDClick(wxGridEvent &event)
STD_BITMAP_BUTTON * m_btnDelete
PANEL_GIT_REPOS_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)
virtual void onAddClick(wxCommandEvent &event)
virtual void onDefaultClick(wxCommandEvent &event)
A wxPanel that is designed to be reset in a standard manner.
A bitmap button widget that behaves like a standard dialog button except with an icon.
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:213
#define _(s)