From d734ce4635d468dffd67e7f86c9123df77e89bc4 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 24 Jun 2015 23:34:15 +0200 Subject: Linux/MacOSX: solve GUI layout issues although the volume creation wizard still has issues --- src/Main/Forms/Forms.cpp | 11 +++++------ src/Main/Forms/Forms.h | 1 + src/Main/Forms/MountOptionsDialog.cpp | 1 + src/Main/Forms/TrueCrypt.fbp | 6 +++--- 4 files changed, 10 insertions(+), 9 deletions(-) (limited to 'src/Main') diff --git a/src/Main/Forms/Forms.cpp b/src/Main/Forms/Forms.cpp index 0793a24c..0cfd9562 100644 --- a/src/Main/Forms/Forms.cpp +++ b/src/Main/Forms/Forms.cpp @@ -531,7 +531,7 @@ MainFrameBase::~MainFrameBase() WizardFrameBase::WizardFrameBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style ) { - this->SetSizeHints( wxSize( 750,450 ), wxDefaultSize ); + this->SetSizeHints( wxSize( 800,500 ), wxDefaultSize ); MainSizer = new wxBoxSizer( wxVERTICAL ); @@ -1505,8 +1505,7 @@ MountOptionsDialogBase::MountOptionsDialogBase( wxWindow* parent, wxWindowID id, this->SetSizeHints( wxDefaultSize, wxDefaultSize ); this->SetExtraStyle( GetExtraStyle() | wxWS_EX_VALIDATE_RECURSIVELY ); - wxBoxSizer* bSizer5; - bSizer5 = new wxBoxSizer( wxVERTICAL ); + MainSizer = new wxBoxSizer( wxVERTICAL ); wxBoxSizer* bSizer19; bSizer19 = new wxBoxSizer( wxVERTICAL ); @@ -1653,12 +1652,12 @@ MountOptionsDialogBase::MountOptionsDialogBase( wxWindow* parent, wxWindowID id, bSizer19->Add( bSizer6, 0, wxEXPAND, 5 ); - bSizer5->Add( bSizer19, 1, wxEXPAND, 5 ); + MainSizer->Add( bSizer19, 1, wxEXPAND, 5 ); - this->SetSizer( bSizer5 ); + this->SetSizer( MainSizer ); this->Layout(); - bSizer5->Fit( this ); + MainSizer->Fit( this ); this->Centre( wxBOTH ); diff --git a/src/Main/Forms/Forms.h b/src/Main/Forms/Forms.h index c53d3c33..e2d462f0 100644 --- a/src/Main/Forms/Forms.h +++ b/src/Main/Forms/Forms.h @@ -463,6 +463,7 @@ namespace VeraCrypt private: protected: + wxBoxSizer* MainSizer; wxBoxSizer* PasswordSizer; wxButton* OKButton; wxButton* CancelButton; diff --git a/src/Main/Forms/MountOptionsDialog.cpp b/src/Main/Forms/MountOptionsDialog.cpp index 9ebbbe98..f0449230 100644 --- a/src/Main/Forms/MountOptionsDialog.cpp +++ b/src/Main/Forms/MountOptionsDialog.cpp @@ -182,5 +182,6 @@ namespace VeraCrypt Fit(); Layout(); + MainSizer->Fit( this ); } } diff --git a/src/Main/Forms/TrueCrypt.fbp b/src/Main/Forms/TrueCrypt.fbp index 31ea58e3..24b98f19 100755 --- a/src/Main/Forms/TrueCrypt.fbp +++ b/src/Main/Forms/TrueCrypt.fbp @@ -2433,7 +2433,7 @@ 0 wxID_ANY - 750,450 + 800,500 WizardFrameBase -1,-1 @@ -10907,9 +10907,9 @@ - bSizer5 + MainSizer wxVERTICAL - none + protected 5 wxEXPAND -- cgit v1.2.3