From d8ffecbf6b9ecdde2cc8fb6a54bb828c5ec97187 Mon Sep 17 00:00:00 2001 From: hiroshi Date: Fri, 16 Jan 2009 13:31:19 +0000 Subject: [PATCH] Adjustment of a pane. It displays at the time of an SQL editor, and suppose un-displaying at the time of Gqb. git-svn-id: svn://svn.pgadmin.org/trunk/pgadmin3@7558 a7884b65-44f6-0310-8a51-81a127f17b15 --- pgadmin/frm/frmQuery.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pgadmin/frm/frmQuery.cpp b/pgadmin/frm/frmQuery.cpp index a42d5124f..215bc6068 100644 --- a/pgadmin/frm/frmQuery.cpp +++ b/pgadmin/frm/frmQuery.cpp @@ -956,10 +956,19 @@ void frmQuery::OnChangeNotebook(wxNotebookEvent& event) { if(sqlNotebook && sqlNotebook->GetPageCount() >= 2) { + if (event.GetSelection() == 0) + { + manager.GetPane(wxT("outputPane")).Show(true); + manager.GetPane(wxT("scratchPad")).Show(true); + manager.Update(); updateFromGqb(false); + } else { + manager.GetPane(wxT("outputPane")).Show(false); + manager.GetPane(wxT("scratchPad")).Show(false); + manager.Update(); if(firstTime) //Things that should be done on first click on GQB { // Size, and pause to allow the window to draw @@ -1341,6 +1350,11 @@ void frmQuery::OnClose(wxCloseEvent& event) return; } + // Rearrangement of a Gqb pane. + manager.GetPane(wxT("outputPane")).Show(true); + manager.GetPane(wxT("scratchPad")).Show(true); + manager.Update(); + Hide(); Destroy(); -- 2.39.5