12DIALOG_GIT_ADVANCED_BASE::DIALOG_GIT_ADVANCED_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 m_topBar =
new wxBoxSizer( wxHORIZONTAL );
21 wxStaticText* m_staticText1;
22 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Repository:"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_staticText1->Wrap( -1 );
24 m_topBar->Add( m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
26 m_repoName =
new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
28 m_repoName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD,
false, wxEmptyString ) );
32 wxStaticText* m_staticText2;
33 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Branch:"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_staticText2->Wrap( -1 );
35 m_topBar->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 4 );
37 wxArrayString m_branchChoiceChoices;
38 m_branchChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_branchChoiceChoices, 0 );
43 m_topBar->Add( 0, 0, 1, wxEXPAND, 0 );
45 m_fetchButton =
new wxButton(
this, wxID_ANY,
_(
"Fetch"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_pullButton =
new wxButton(
this, wxID_ANY,
_(
"Pull"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_pushButton =
new wxButton(
this, wxID_ANY,
_(
"Push"), wxDefaultPosition, wxDefaultSize, 0 );
55 bMainSizer->Add(
m_topBar, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 8 );
58 bMainSizer->Add(
m_book, 1, wxEXPAND|wxALL, 4 );
65 bMainSizer->Add(
m_sdbSizer, 0, wxEXPAND|wxALL, 4 );
68 this->SetSizer( bMainSizer );
70 bMainSizer->Fit(
this );
72 this->Centre( wxBOTH );