12DIALOG_GIT_REPOSITORY_BASE::DIALOG_GIT_REPOSITORY_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* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Connection"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
26 wxFlexGridSizer* fgSizer2;
27 fgSizer2 =
new wxFlexGridSizer( 0, 2, 0, 0 );
28 fgSizer2->AddGrowableCol( 1 );
29 fgSizer2->SetFlexibleDirection( wxBOTH );
30 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"Name"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_txtName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
37 fgSizer2->Add(
m_txtName, 0, wxALL|wxEXPAND, 5 );
39 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Location"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_txtURL =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer2->Add(
m_txtURL, 0, wxALL|wxEXPAND, 5 );
46 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
"Connection Type"), wxDefaultPosition, wxDefaultSize, 0 );
51 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
53 wxString m_ConnTypeChoices[] = {
_(
"HTTPS"),
_(
"SSH"),
_(
"Local") };
54 int m_ConnTypeNChoices =
sizeof( m_ConnTypeChoices ) /
sizeof( wxString );
55 m_ConnType =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ConnTypeNChoices, m_ConnTypeChoices, 0 );
57 bSizer3->Add(
m_ConnType, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
60 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
63 fgSizer2->Add( bSizer3, 1, wxEXPAND, 5 );
66 bSizerMain->Add( fgSizer2, 1, wxEXPAND, 5 );
68 m_panelAuth =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
70 m_szAuth =
new wxBoxSizer( wxVERTICAL );
73 m_szAuth->Add( 0, 0, 1, wxEXPAND, 5 );
76 bSizer11 =
new wxBoxSizer( wxHORIZONTAL );
83 bSizer11->Add( 0, 0, 1, wxEXPAND, 5 );
86 m_szAuth->Add( bSizer11, 0, wxEXPAND, 5 );
91 wxFlexGridSizer* fgSshSizer;
92 fgSshSizer =
new wxFlexGridSizer( 0, 2, 0, 0 );
93 fgSshSizer->AddGrowableCol( 1 );
94 fgSshSizer->SetFlexibleDirection( wxBOTH );
95 fgSshSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
97 m_labelSSH =
new wxStaticText(
m_panelAuth, wxID_ANY,
_(
"SSH Private Key"), wxDefaultPosition, wxDefaultSize, 0 );
99 fgSshSizer->Add(
m_labelSSH, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 5 );
101 wxBoxSizer* bSizer41;
102 bSizer41 =
new wxBoxSizer( wxHORIZONTAL );
104 m_fpSSHKey =
new wxFilePickerCtrl(
m_panelAuth, wxID_ANY, wxEmptyString,
_(
"Select SSH private key file"),
_(
"*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE|wxFLP_FILE_MUST_EXIST|wxFLP_OPEN );
105 bSizer41->Add(
m_fpSSHKey, 1, wxEXPAND|wxLEFT|wxRESERVE_SPACE_EVEN_IF_HIDDEN|wxRIGHT, 5 );
108 bSizer41->Add(
m_btnTest, 0, wxLEFT|wxRIGHT, 5 );
111 fgSshSizer->Add( bSizer41, 1, wxEXPAND, 5 );
120 m_labelPass1 =
new wxStaticText(
m_panelAuth, wxID_ANY,
_(
"SSH Key Password"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_szAuth->Add( fgSshSizer, 1, wxEXPAND, 5 );
134 bSizerMain->Add(
m_panelAuth, 1, wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 0 );
143 bSizerMain->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
146 this->SetSizer( bSizerMain );
149 this->Centre( wxBOTH );
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * m_staticText3
virtual void OnOKClick(wxCommandEvent &event)
~DIALOG_GIT_REPOSITORY_BASE()
wxButton * m_sdbSizerCancel
wxStaticLine * m_staticline2
wxStaticText * m_staticText4
virtual void OnTestClick(wxCommandEvent &event)
virtual void OnClose(wxCloseEvent &event)
wxStaticText * m_staticText11
wxStaticText * m_staticText2
wxStaticText * m_staticText9
virtual void OnFileUpdated(wxFileDirPickerEvent &event)
virtual void OnLocationExit(wxFocusEvent &event)
wxTextCtrl * m_txtPassword
wxStaticText * m_labelSSH
wxStaticText * m_labelPass1
virtual void OnSelectConnType(wxCommandEvent &event)
wxStaticLine * m_staticline1
wxTextCtrl * m_txtUsername
DIALOG_GIT_REPOSITORY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Git Repository"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(682, 598), long style=wxCAPTION|wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxFilePickerCtrl * m_fpSSHKey
virtual void OnUpdateUI(wxUpdateUIEvent &event)
wxStaticText * m_staticText1
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...