|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #include "System.h" ! 10: #include "Main/GraphicUserInterface.h" ! 11: #include "SelectDirectoryWizardPage.h" ! 12: ! 13: namespace TrueCrypt ! 14: { ! 15: bool SelectDirectoryWizardPage::IsValid () ! 16: { ! 17: if (!DirectoryTextCtrl->IsEmpty()) ! 18: { ! 19: return FilesystemPath (DirectoryTextCtrl->GetValue()).IsDirectory(); ! 20: } ! 21: ! 22: return false; ! 23: } ! 24: ! 25: void SelectDirectoryWizardPage::OnBrowseButtonClick (wxCommandEvent& event) ! 26: { ! 27: DirectoryPath dir = Gui->SelectDirectory (this); ! 28: ! 29: if (!dir.IsEmpty()) ! 30: DirectoryTextCtrl->SetValue (wstring (dir)); ! 31: } ! 32: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.