Debian Codegraph @

git/gitCloneDlg.cpp

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // copyright : (C) 2014 Eran Ifrah
5 // file name : gitCloneDlg.cpp
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #include "gitCloneDlg.h"
27 #include "windowattrmanager.h"
28 #include <wx/uri.h>
29
30 gitCloneDlg::gitCloneDlg(wxWindow* parent)
31 : gitCloneDlgBaseClass(parent)
32 {
33 m_textCtrlURL->SetFocus();
34 SetName("gitCloneDlg");
35 WindowAttrManager::Load(this);
36 }
37
38 gitCloneDlg::~gitCloneDlg() {}
39
40 void gitCloneDlg::OnOKUI(wxUpdateUIEvent& event)
41 {
42 event.Enable(!m_textCtrlURL->IsEmpty() && !m_dirPickerTargetDir->GetPath().IsEmpty());
43 }
44
45 wxString gitCloneDlg::GetCloneURL() const
46 {
47 wxString urlString = m_textCtrlURL->GetValue();
48 return urlString;
49 }