diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-25 22:54:14 +0100 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-12-26 00:51:52 +0100 |
commit | d90d9f0c401a21c85a525aaca0b97df8f7955db8 (patch) | |
tree | 699016cd3928010352b3cbad97c1a7c94c4e8f13 /src/Main/Forms/Forms.h | |
parent | bbcc944855d7824812af3a10fd447ccefc534a71 (diff) | |
download | VeraCrypt-d90d9f0c401a21c85a525aaca0b97df8f7955db8.tar.gz VeraCrypt-d90d9f0c401a21c85a525aaca0b97df8f7955db8.zip |
Linux/MacOSX: Implement waiting dialog for lengthy operations in order to have a better user experience.
Diffstat (limited to 'src/Main/Forms/Forms.h')
-rwxr-xr-x[-rw-r--r--] | src/Main/Forms/Forms.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Main/Forms/Forms.h b/src/Main/Forms/Forms.h index a59a9bf7..b0579219 100644..100755 --- a/src/Main/Forms/Forms.h +++ b/src/Main/Forms/Forms.h @@ -1025,6 +1025,29 @@ namespace VeraCrypt };
+ ///////////////////////////////////////////////////////////////////////////////
+ /// Class WaitDialogBase
+ ///////////////////////////////////////////////////////////////////////////////
+ class WaitDialogBase : public wxDialog
+ {
+ private:
+
+ protected:
+ wxStaticText* WaitStaticText;
+ wxGauge* WaitProgessBar;
+
+ // Virtual event handlers, overide them in your derived class
+ virtual void OnWaitDialogClose( wxCloseEvent& event ) { event.Skip(); }
+ virtual void OnWaitDialogInit( wxInitDialogEvent& event ) { event.Skip(); }
+
+
+ public:
+
+ WaitDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("VeraCrypt"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxCAPTION );
+ ~WaitDialogBase();
+
+ };
+
} // namespace VeraCrypt
#endif //__FORMS_H__
|