diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-19 08:46:27 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-07-19 11:29:45 +0200 |
commit | 515895342820a9d0a35391ec4d316c3782a75768 (patch) | |
tree | b3c64668eba1bd654914acd42e986d6f90d80462 /src/Main/Forms/VolumePasswordPanel.h | |
parent | 63818bcaa44b9ce0b59ac2c56afdee1f5e1976ba (diff) | |
download | VeraCrypt-515895342820a9d0a35391ec4d316c3782a75768.tar.gz VeraCrypt-515895342820a9d0a35391ec4d316c3782a75768.zip |
User Interface enhancements for PIM
Diffstat (limited to 'src/Main/Forms/VolumePasswordPanel.h')
-rw-r--r-- | src/Main/Forms/VolumePasswordPanel.h | 11 |
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 @@ -30,8 +30,13 @@ namespace VeraCrypt 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; @@ -46,7 +51,8 @@ namespace VeraCrypt 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); @@ -54,6 +60,7 @@ namespace VeraCrypt shared_ptr <KeyfileList> Keyfiles; shared_ptr <Functor> UpdateCallback; + bool EnablePimEntry; }; } |