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 );
18 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Connection"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
25 wxFlexGridSizer* fgSizer2;
26 fgSizer2 =
new wxFlexGridSizer( 0, 2, 5, 0 );
27 fgSizer2->AddGrowableCol( 1 );
28 fgSizer2->SetFlexibleDirection( wxBOTH );
29 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
31 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
35 fgSizer2->Add(
m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
37 m_txtName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
40 fgSizer2->Add(
m_txtName, 0, wxEXPAND|wxRIGHT, 5 );
42 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Location:"), wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer2->Add(
m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
46 m_txtURL =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
47 fgSizer2->Add(
m_txtURL, 0, wxEXPAND|wxRIGHT, 5 );
49 m_staticText9 =
new wxStaticText(
this, wxID_ANY,
_(
"Connection type:"), wxDefaultPosition, wxDefaultSize, 0 );
53 fgSizer2->Add(
m_staticText9, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
56 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
58 wxString m_ConnTypeChoices[] = {
_(
"HTTPS"),
_(
"SSH"),
_(
"Local") };
59 int m_ConnTypeNChoices =
sizeof( m_ConnTypeChoices ) /
sizeof( wxString );
60 m_ConnType =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_ConnTypeNChoices, m_ConnTypeChoices, 0 );
67 bSizer3->Add( 0, 0, 0, wxEXPAND, 5 );
70 fgSizer2->Add( bSizer3, 1, wxEXPAND, 5 );
75 m_panelAuth =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
77 m_szAuth =
new wxBoxSizer( wxVERTICAL );
86 wxFlexGridSizer* fgSizer21;
87 fgSizer21 =
new wxFlexGridSizer( 0, 2, 5, 0 );
88 fgSizer21->SetFlexibleDirection( wxBOTH );
89 fgSizer21->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
91 m_cbCustom =
new wxCheckBox(
m_panelAuth, wxID_ANY,
_(
"SSH private key: "), wxDefaultPosition, wxDefaultSize, 0 );
94 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 );
97 fgSizer21->Add(
m_fpSSHKey, 0, wxEXPAND|wxRIGHT, 5 );
101 fgSizer21->Add(
m_staticText11, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
106 m_labelPass1 =
new wxStaticText(
m_panelAuth, wxID_ANY,
_(
"SSH key password:"), wxDefaultPosition, wxDefaultSize, 0 );
108 fgSizer21->Add(
m_labelPass1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
114 m_szAuth->Add( fgSizer21, 1, wxBOTTOM|wxEXPAND, 5 );
141 this->Centre( wxBOTH );
wxStdDialogButtonSizer * m_sdbSizer
virtual void onCbCustom(wxCommandEvent &event)
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)
DIALOG_GIT_REPOSITORY_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Git Repository"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxCAPTION|wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_staticText11
wxStaticText * m_staticText2
wxStaticText * m_staticText9
wxButton * m_sdbSizerHelp
virtual void OnFileUpdated(wxFileDirPickerEvent &event)
virtual void OnLocationExit(wxFocusEvent &event)
wxTextCtrl * m_txtPassword
wxStaticText * m_labelPass1
virtual void OnSelectConnType(wxCommandEvent &event)
wxStaticLine * m_staticline1
wxTextCtrl * m_txtUsername
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...