KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_git_repository_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
11
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 )
13{
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15
16 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Connection"), wxDefaultPosition, wxDefaultSize, 0 );
20 m_staticText1->Wrap( -1 );
21 bSizerMain->Add( m_staticText1, 0, wxLEFT|wxTOP, 10 );
22
23 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
24 bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP, 5 );
25
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 );
31
32 m_staticText3 = new wxStaticText( this, wxID_ANY, _("Name"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_staticText3->Wrap( -1 );
34 fgSizer2->Add( m_staticText3, 0, wxALL, 5 );
35
36 m_txtName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
37 fgSizer2->Add( m_txtName, 0, wxALL|wxEXPAND, 5 );
38
39 m_staticText4 = new wxStaticText( this, wxID_ANY, _("Location"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_staticText4->Wrap( -1 );
41 fgSizer2->Add( m_staticText4, 0, wxALL, 5 );
42
43 m_txtURL = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer2->Add( m_txtURL, 0, wxALL|wxEXPAND, 5 );
45
46 m_staticText9 = new wxStaticText( this, wxID_ANY, _("Connection Type"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_staticText9->Wrap( -1 );
48 fgSizer2->Add( m_staticText9, 0, wxALL, 5 );
49
50 wxBoxSizer* bSizer3;
51 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
52
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 );
56 m_ConnType->SetSelection( 0 );
57 bSizer3->Add( m_ConnType, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
58
59
60 bSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
61
62
63 fgSizer2->Add( bSizer3, 1, wxEXPAND, 5 );
64
65
66 bSizerMain->Add( fgSizer2, 1, wxEXPAND, 5 );
67
68 m_panelAuth = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
69 wxBoxSizer* m_szAuth;
70 m_szAuth = new wxBoxSizer( wxVERTICAL );
71
72
73 m_szAuth->Add( 0, 0, 1, wxEXPAND, 5 );
74
75 wxBoxSizer* bSizer11;
76 bSizer11 = new wxBoxSizer( wxHORIZONTAL );
77
78 m_staticText2 = new wxStaticText( m_panelAuth, wxID_ANY, _("Authentication"), wxDefaultPosition, wxDefaultSize, 0 );
79 m_staticText2->Wrap( -1 );
80 bSizer11->Add( m_staticText2, 0, wxLEFT|wxTOP, 10 );
81
82
83 bSizer11->Add( 0, 0, 1, wxEXPAND, 5 );
84
85
86 m_szAuth->Add( bSizer11, 0, wxEXPAND, 5 );
87
88 m_staticline2 = new wxStaticLine( m_panelAuth, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
89 m_szAuth->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
90
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 );
96
97 m_labelSSH = new wxStaticText( m_panelAuth, wxID_ANY, _("SSH Private Key"), wxDefaultPosition, wxDefaultSize, 0 );
98 m_labelSSH->Wrap( -1 );
99 fgSshSizer->Add( m_labelSSH, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 5 );
100
101 wxBoxSizer* bSizer41;
102 bSizer41 = new wxBoxSizer( wxHORIZONTAL );
103
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 );
106
107 m_btnTest = new wxButton( m_panelAuth, wxID_ANY, _("Test"), wxDefaultPosition, wxDefaultSize, 0 );
108 bSizer41->Add( m_btnTest, 0, wxLEFT|wxRIGHT, 5 );
109
110
111 fgSshSizer->Add( bSizer41, 1, wxEXPAND, 5 );
112
113 m_staticText11 = new wxStaticText( m_panelAuth, wxID_ANY, _("Username"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_staticText11->Wrap( -1 );
115 fgSshSizer->Add( m_staticText11, 0, wxALL, 5 );
116
117 m_txtUsername = new wxTextCtrl( m_panelAuth, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
118 fgSshSizer->Add( m_txtUsername, 0, wxALL|wxEXPAND, 5 );
119
120 m_labelPass1 = new wxStaticText( m_panelAuth, wxID_ANY, _("SSH Key Password"), wxDefaultPosition, wxDefaultSize, 0 );
121 m_labelPass1->Wrap( -1 );
122 fgSshSizer->Add( m_labelPass1, 0, wxALL, 5 );
123
124 m_txtPassword = new wxTextCtrl( m_panelAuth, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
125 fgSshSizer->Add( m_txtPassword, 0, wxALL|wxEXPAND, 5 );
126
127
128 m_szAuth->Add( fgSshSizer, 1, wxEXPAND, 5 );
129
130
131 m_panelAuth->SetSizer( m_szAuth );
132 m_panelAuth->Layout();
133 m_szAuth->Fit( m_panelAuth );
134 bSizerMain->Add( m_panelAuth, 1, wxALL|wxEXPAND|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 0 );
135
136 m_sdbSizer = new wxStdDialogButtonSizer();
137 m_sdbSizerOK = new wxButton( this, wxID_OK );
138 m_sdbSizer->AddButton( m_sdbSizerOK );
139 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
140 m_sdbSizer->AddButton( m_sdbSizerCancel );
141 m_sdbSizer->Realize();
142
143 bSizerMain->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
144
145
146 this->SetSizer( bSizerMain );
147 this->Layout();
148
149 this->Centre( wxBOTH );
150
151 // Connect Events
152 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnClose ) );
153 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnUpdateUI ) );
154 m_txtURL->Connect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnLocationExit ), NULL, this );
155 m_ConnType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnSelectConnType ), NULL, this );
156 m_fpSSHKey->Connect( wxEVT_COMMAND_FILEPICKER_CHANGED, wxFileDirPickerEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnFileUpdated ), NULL, this );
157 m_btnTest->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnTestClick ), NULL, this );
158 m_sdbSizerOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnOKClick ), NULL, this );
159}
160
162{
163 // Disconnect Events
164 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnClose ) );
165 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnUpdateUI ) );
166 m_txtURL->Disconnect( wxEVT_KILL_FOCUS, wxFocusEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnLocationExit ), NULL, this );
167 m_ConnType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnSelectConnType ), NULL, this );
168 m_fpSSHKey->Disconnect( wxEVT_COMMAND_FILEPICKER_CHANGED, wxFileDirPickerEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnFileUpdated ), NULL, this );
169 m_btnTest->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnTestClick ), NULL, this );
170 m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GIT_REPOSITORY_BASE::OnOKClick ), NULL, this );
171
172}
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnOKClick(wxCommandEvent &event)
virtual void OnTestClick(wxCommandEvent &event)
virtual void OnClose(wxCloseEvent &event)
virtual void OnFileUpdated(wxFileDirPickerEvent &event)
virtual void OnLocationExit(wxFocusEvent &event)
virtual void OnSelectConnType(wxCommandEvent &event)
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)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)