KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_git_credentials_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_GIT_CREDENTIALS_BASE::DIALOG_GIT_CREDENTIALS_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( 400,-1 ), wxDefaultSize );
15
16 wxBoxSizer* m_mainSizer;
17 m_mainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_promptLabel = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
20 m_promptLabel->Wrap( -1 );
21 m_mainSizer->Add( m_promptLabel, 0, wxALL, 5 );
22
23 m_explanationLabel = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
24 m_explanationLabel->Wrap( -1 );
25 m_explanationLabel->Hide();
26
27 m_mainSizer->Add( m_explanationLabel, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
28
29 wxString m_authChoiceChoices[] = { _("Username and password"), _("SSH key") };
30 int m_authChoiceNChoices = sizeof( m_authChoiceChoices ) / sizeof( wxString );
31 m_authChoice = new wxRadioBox( this, wxID_ANY, _("Authentication"), wxDefaultPosition, wxDefaultSize, m_authChoiceNChoices, m_authChoiceChoices, 1, wxRA_SPECIFY_ROWS );
32 m_authChoice->SetSelection( 0 );
33 m_mainSizer->Add( m_authChoice, 0, wxALL|wxEXPAND, 5 );
34
35 wxFlexGridSizer* fgSizer1;
36 fgSizer1 = new wxFlexGridSizer( 4, 3, 5, 0 );
37 fgSizer1->AddGrowableCol( 1 );
38 fgSizer1->SetFlexibleDirection( wxBOTH );
39 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
40
41 m_userLabel = new wxStaticText( this, wxID_ANY, _("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
42 m_userLabel->Wrap( -1 );
43 fgSizer1->Add( m_userLabel, 0, wxALL, 5 );
44
45 m_userCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
46 fgSizer1->Add( m_userCtrl, 0, wxEXPAND, 5 );
47
48
49 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
50
51 m_passLabel = new wxStaticText( this, wxID_ANY, _("Password / token:"), wxDefaultPosition, wxDefaultSize, 0 );
52 m_passLabel->Wrap( -1 );
53 fgSizer1->Add( m_passLabel, 0, wxALL, 5 );
54
55 m_passCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
56 fgSizer1->Add( m_passCtrl, 0, wxEXPAND, 5 );
57
58
59 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
60
61 m_keyLabel = new wxStaticText( this, wxID_ANY, _("SSH key:"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_keyLabel->Wrap( -1 );
63 fgSizer1->Add( m_keyLabel, 0, wxALL, 5 );
64
65 m_keyPicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select SSH private key"), _("*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );
66 fgSizer1->Add( m_keyPicker, 0, wxEXPAND, 5 );
67
68
69 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
70
71 m_saveCheck = new wxCheckBox( this, wxID_ANY, _("Save credentials"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_saveCheck->SetValue(true);
73 fgSizer1->Add( m_saveCheck, 0, wxALL, 5 );
74
75 m_sdbSizer1 = new wxStdDialogButtonSizer();
76 m_sdbSizer1OK = new wxButton( this, wxID_OK );
77 m_sdbSizer1->AddButton( m_sdbSizer1OK );
78 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
79 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
80 m_sdbSizer1->Realize();
81
82 fgSizer1->Add( m_sdbSizer1, 1, wxALL|wxEXPAND, 5 );
83
84
85 m_mainSizer->Add( fgSizer1, 1, wxALL|wxEXPAND, 5 );
86
87
88 this->SetSizer( m_mainSizer );
89 this->Layout();
90 m_mainSizer->Fit( this );
91
92 this->Centre( wxBOTH );
93
94 // Connect Events
95 m_authChoice->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_GIT_CREDENTIALS_BASE::OnConnTypeChanged ), NULL, this );
96}
97
DIALOG_GIT_CREDENTIALS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Git Authentication Required"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
virtual void OnConnTypeChanged(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)