|
|
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_WizardPage
10: #define TC_HEADER_Main_Forms_WizardPage
11:
12: #include "Main/Main.h"
13:
14: namespace TrueCrypt
15: {
16: class WizardPage : public wxPanel
17: {
18: public:
19: WizardPage (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
20: : wxPanel (parent, id, pos, size, style)
21: { }
22: virtual ~WizardPage () { }
23:
24: wxString GetPageTitle () const { return PageTitle; }
25: virtual bool IsValid () = 0;
26: virtual void OnPageChanging (bool forward) { }
27: wxString GetNextButtonText () const { return NextButtonText; }
28: void SetNextButtonText (const wxString &text) { NextButtonText = text; }
29: virtual void SetMaxStaticTextWidth (int width) { }
30: void SetPageTitle (const wxString &title) { PageTitle = title; }
31: virtual void SetPageText (const wxString &text) = 0;
32:
33: Event PageUpdatedEvent;
34:
35: protected:
36: wxString PageTitle;
37: wxString NextButtonText;
38: };
39: }
40:
41: #endif // TC_HEADER_Main_Forms_WizardPage
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.