|
|
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: #ifndef TC_HEADER_Main_Forms_VolumeCreationProgressWizardPage ! 10: #define TC_HEADER_Main_Forms_VolumeCreationProgressWizardPage ! 11: ! 12: #include "Forms.h" ! 13: #include "Core/VolumeCreator.h" ! 14: ! 15: namespace TrueCrypt ! 16: { ! 17: class VolumeCreationProgressWizardPage : public VolumeCreationProgressWizardPageBase ! 18: { ! 19: public: ! 20: VolumeCreationProgressWizardPage (wxPanel* parent, bool displayKeyInfo); ! 21: ~VolumeCreationProgressWizardPage () { } ! 22: ! 23: void EnableAbort (bool enable = true) { AbortButton->Enable (enable); } ! 24: bool IsKeyInfoDisplayed () const { return DisplayKeysCheckBox->GetValue(); } ! 25: bool IsValid () { return true; } ! 26: void OnRandomPoolTimer (); ! 27: void SetKeyInfo (const VolumeCreator::KeyInfo &keyInfo); ! 28: void SetMaxStaticTextWidth (int width); ! 29: void SetPageText (const wxString &text) { InfoStaticText->SetLabel (text); } ! 30: void SetProgressRange (uint64 progressBarRange); ! 31: void SetProgressValue (uint64 value); ! 32: void SetProgressState (bool volumeCreatorRunning); ! 33: ! 34: Event AbortEvent; ! 35: ! 36: protected: ! 37: void OnAbortButtonClick (wxCommandEvent& event); ! 38: void OnDisplayKeysCheckBoxClick (wxCommandEvent& event); ! 39: void ShowAsterisks (wxStaticText *textCtrl); ! 40: void ShowBytes (wxStaticText *textCtrl, const ConstBufferPtr &buffer, bool appendDots = true); ! 41: ! 42: static const int MaxDisplayedKeyBytes = 13; ! 43: ! 44: int PreviousGaugeValue; ! 45: uint64 ProgressBarRange; ! 46: auto_ptr <wxTimer> RandomPoolTimer; ! 47: int RealProgressBarRange; ! 48: wxLongLong StartTime; ! 49: bool VolumeCreatorRunning; ! 50: }; ! 51: } ! 52: ! 53: #endif // TC_HEADER_Main_Forms_VolumeCreationProgressWizardPage
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.