12PANEL_GIT_REPOSITORY_BASE::PANEL_GIT_REPOSITORY_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
14 wxBoxSizer* bMainSizer;
15 bMainSizer =
new wxBoxSizer( wxVERTICAL );
18 bContent =
new wxBoxSizer( wxVERTICAL );
20 wxFlexGridSizer* m_grid;
21 m_grid =
new wxFlexGridSizer( 0, 2, 8, 12 );
22 m_grid->AddGrowableCol( 1 );
23 m_grid->SetFlexibleDirection( wxBOTH );
24 m_grid->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 wxStaticText* m_staticText10;
27 m_staticText10 =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticText10->Wrap( -1 );
29 m_grid->Add( m_staticText10, 0, wxALIGN_CENTER_VERTICAL, 0 );
31 m_repoUserName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34 wxStaticText* m_staticText11;
35 m_staticText11 =
new wxStaticText(
this, wxID_ANY,
_(
"Email:"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_staticText11->Wrap( -1 );
37 m_grid->Add( m_staticText11, 0, wxALIGN_CENTER_VERTICAL, 0 );
39 m_repoUserEmail =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43 bContent->Add( m_grid, 0, wxEXPAND|wxALL, 4 );
45 m_identityNote =
new wxStaticText(
this, wxID_ANY,
_(
"Name and email apply to this project only. Preferences holds the default used when these are empty."), wxDefaultPosition, wxDefaultSize, 0 );
50 bMainSizer->Add( bContent, 1, wxEXPAND|wxALL, 8 );
52 wxBoxSizer* bBottomRow;
53 bBottomRow =
new wxBoxSizer( wxHORIZONTAL );
55 m_saveButton =
new wxButton(
this, wxID_ANY,
_(
"Save"), wxDefaultPosition, wxDefaultSize, 0 );
59 bMainSizer->Add( bBottomRow, 0, wxLEFT|wxRIGHT|wxBOTTOM, 4 );
62 this->SetSizer( bMainSizer );
64 bMainSizer->Fit(
this );
PANEL_GIT_REPOSITORY_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)