summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-06-03 08:51:07 +0200
committerSzymon Kłos <eszkadev@gmail.com>2015-07-16 09:52:43 +0200
commit5c117650072b0cd53d3a2233812fa0961bba1327 (patch)
treea2c866d4e3b9a1333d65aa11eaa7f40af64daf34
parent4f354a2e1fcbfa960b848f94f4b5dc652e451a6c (diff)
hide the type listbox while editing
Change-Id: I41264f37208e19e862c2f78930deaf5c8b68d840
-rw-r--r--include/svtools/PlaceEditDialog.hxx2
-rw-r--r--svtools/source/dialogs/PlaceEditDialog.cxx4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/svtools/PlaceEditDialog.hxx b/include/svtools/PlaceEditDialog.hxx
index 9bd32ebeda37..dc8840ae0423 100644
--- a/include/svtools/PlaceEditDialog.hxx
+++ b/include/svtools/PlaceEditDialog.hxx
@@ -39,6 +39,8 @@ private :
VclPtr<PushButton> m_pBTDelete;
+ VclPtr<VclGrid> m_pTypeGrid;
+
/** Vector holding the details UI control for each server type.
The elements in this vector need to match the order in the type listbox, e.g.
diff --git a/svtools/source/dialogs/PlaceEditDialog.cxx b/svtools/source/dialogs/PlaceEditDialog.cxx
index d23fe0e32bb5..1028a560e598 100644
--- a/svtools/source/dialogs/PlaceEditDialog.cxx
+++ b/svtools/source/dialogs/PlaceEditDialog.cxx
@@ -53,6 +53,7 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Pla
get( m_pBTOk, "ok" );
get( m_pBTCancel, "cancel" );
get( m_pBTDelete, "delete" );
+ get( m_pTypeGrid, "TypeGrid" );
m_pBTOk->SetClickHdl( LINK( this, PlaceEditDialog, OKHdl) );
m_pBTDelete->SetClickHdl ( LINK( this, PlaceEditDialog, DelHdl) );
@@ -80,6 +81,9 @@ PlaceEditDialog::PlaceEditDialog(vcl::Window* pParent, const std::shared_ptr<Pla
m_pEDUsername->SetText( rUrl.GetUser( ) );
}
}
+
+ // In edit mode user can't change connection type
+ m_pTypeGrid->Hide();
}
PlaceEditDialog::~PlaceEditDialog()