|
|
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 "KeyfilesDialog.h"
12:
13: namespace TrueCrypt
14: {
15: KeyfilesDialog::KeyfilesDialog (wxWindow* parent, shared_ptr <KeyfileList> keyfiles)
16: : KeyfilesDialogBase (parent), Keyfiles (keyfiles)
17: {
18: mKeyfilesPanel = new KeyfilesPanel (this, keyfiles);
19: PanelSizer->Add (mKeyfilesPanel, 1, wxALL | wxEXPAND);
20:
21: WarningStaticText->SetLabel (_("WARNING: If you lose a keyfile or if any bit of its first 1024 kilobytes changes, it will be impossible to mount volumes that use the keyfile!"));
22: WarningStaticText->Wrap (Gui->GetCharWidth (this) * 15);
23:
24: Layout();
25: Fit();
26:
27: KeyfilesNoteStaticText->SetLabel (_("Any kind of file (for example, .mp3, .jpg, .zip, .avi) may be used as a TrueCrypt keyfile. Note that TrueCrypt never modifies the keyfile contents. You can select more than one keyfile (the order does not matter). If you add a folder, all files found in it will be used as keyfiles."));
28: KeyfilesNoteStaticText->Wrap (UpperSizer->GetSize().GetWidth() - Gui->GetCharWidth (this) * 2);
29:
30: Layout();
31: Fit();
32: Center();
33: }
34:
35: void KeyfilesDialog::OnKeyfilesHyperlinkClick (wxHyperlinkEvent& event)
36: {
37: Gui->OpenHomepageLink (this, L"keyfiles");
38: }
39: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.