VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/VolumePasswordPanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.h')
-rw-r--r--src/Main/Forms/VolumePasswordPanel.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Main/Forms/VolumePasswordPanel.h b/src/Main/Forms/VolumePasswordPanel.h
index f090a2bc..3518b2bb 100644
--- a/src/Main/Forms/VolumePasswordPanel.h
+++ b/src/Main/Forms/VolumePasswordPanel.h
@@ -29,10 +29,15 @@ namespace VeraCrypt
bool GetTrueCryptMode () const;
int GetHeaderWipeCount () const;
void SetCacheCheckBoxValidator (const wxGenericValidator &validator) { CacheCheckBox->SetValidator (validator); }
void SetFocusToPasswordTextCtrl () { PasswordTextCtrl->SetSelection (-1, -1); PasswordTextCtrl->SetFocus(); }
- void SetFocusToPimTextCtrl () { VolumePimTextCtrl->SetSelection (-1, -1); VolumePimTextCtrl->SetFocus(); }
+ void SetFocusToPimTextCtrl () { VolumePimTextCtrl->SetSelection (-1, -1); VolumePimTextCtrl->SetFocus(); }
+ void SetVolumePim (int pim);
bool PasswordsMatch () const;
+ void EnableUsePim () { PimCheckBox->Enable (true); PimCheckBox->Show (true); }
+ bool IsUsePimChecked () const { return PimCheckBox->GetValue (); }
+ void SetUsePimChecked (bool checked) const { PimCheckBox->SetValue (checked); }
+ bool UpdatePimHelpText (bool pimChanged);
Event UpdateEvent;
protected:
@@ -45,16 +50,18 @@ namespace VeraCrypt
void OnKeyfilesButtonClick (wxCommandEvent& event);
void OnKeyfilesButtonRightClick (wxMouseEvent& event);
void OnKeyfilesButtonRightDown (wxMouseEvent& event);
void OnTextChanged (wxCommandEvent& event) { OnUpdate(); }
- void OnPimChanged (wxCommandEvent& event);
+ void OnPimChanged (wxCommandEvent& event) { OnUpdate(); }
+ void OnUsePimCheckBoxClick( wxCommandEvent& event );
void OnUpdate () { UpdateEvent.Raise(); }
void OnUseKeyfilesCheckBoxClick (wxCommandEvent& event) { OnUpdate(); }
void WipeTextCtrl (wxTextCtrl *textCtrl);
void OnTrueCryptModeChecked( wxCommandEvent& event );
shared_ptr <KeyfileList> Keyfiles;
shared_ptr <Functor> UpdateCallback;
+ bool EnablePimEntry;
};
}
#endif // TC_HEADER_Main_Forms_PasswordPanel