|
|
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_ProgressWizardPage
10: #define TC_HEADER_Main_Forms_ProgressWizardPage
11:
12: #include "Forms.h"
13:
14: namespace TrueCrypt
15: {
16: class ProgressWizardPage : public ProgressWizardPageBase
17: {
18: public:
19: ProgressWizardPage (wxPanel* parent, bool enableAbort = false);
20: ~ProgressWizardPage () { }
21:
22: void EnableAbort (bool enable = true) { AbortButton->Enable (enable); }
23: bool IsValid () { return true; }
24: void SetMaxStaticTextWidth (int width);
25: void SetPageText (const wxString &text) { InfoStaticText->SetLabel (text); }
26: void SetProgressRange (uint64 progressBarRange);
27:
28: Event AbortEvent;
29: SharedVal <uint64> ProgressValue;
30:
31: protected:
32: void OnAbortButtonClick (wxCommandEvent& event);
33: void OnTimer ();
34:
35: auto_ptr <wxTimer> mTimer;
36: int PreviousGaugeValue;
37: uint64 ProgressBarRange;
38: int RealProgressBarRange;
39: };
40: }
41:
42: #endif // TC_HEADER_Main_Forms_ProgressWizardPage
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.