"Fossies" - the Fresh Open Source Software Archive

Member "src/Main/Forms/WizardPage.h" (10 Oct 2018, 1441 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "WizardPage.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  Derived from source code of TrueCrypt 7.1a, which is
    3  Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed
    4  by the TrueCrypt License 3.0.
    5 
    6  Modifications and additions to the original source code (contained in this file)
    7  and all other portions of this file are Copyright (c) 2013-2017 IDRIX
    8  and are governed by the Apache License 2.0 the full text of which is
    9  contained in the file License.txt included in VeraCrypt binary and source
   10  code distribution packages.
   11 */
   12 
   13 #ifndef TC_HEADER_Main_Forms_WizardPage
   14 #define TC_HEADER_Main_Forms_WizardPage
   15 
   16 #include "Main/Main.h"
   17 
   18 namespace VeraCrypt
   19 {
   20     class WizardPage : public wxPanel
   21     {
   22     public:
   23         WizardPage (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style)
   24             : wxPanel (parent, id, pos, size, style)
   25         { }
   26         virtual ~WizardPage () { }
   27 
   28         wxString GetPageTitle () const { return PageTitle; }
   29         virtual bool IsValid () = 0;
   30         virtual void OnPageChanging (bool forward) { }
   31         wxString GetNextButtonText () const { return NextButtonText; }
   32         void SetNextButtonText (const wxString &text) { NextButtonText = text; }
   33         virtual void SetMaxStaticTextWidth (int width) { }
   34         void SetPageTitle (const wxString &title) { PageTitle = title; }
   35         virtual void SetPageText (const wxString &text) = 0;
   36 
   37         Event PageUpdatedEvent;
   38 
   39     protected:
   40         wxString PageTitle;
   41         wxString NextButtonText;
   42     };
   43 }
   44 
   45 #endif // TC_HEADER_Main_Forms_WizardPage