From 515895342820a9d0a35391ec4d316c3782a75768 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 19 Jul 2015 08:46:27 +0200 Subject: User Interface enhancements for PIM --- src/Main/Forms/VolumePasswordPanel.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Main/Forms/VolumePasswordPanel.h') 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 Keyfiles; shared_ptr UpdateCallback; + bool EnablePimEntry; }; } -- cgit v1.2.3