Adjustment of a pane.
authorhiroshi <hiroshi@a7884b65-44f6-0310-8a51-81a127f17b15>
Fri, 16 Jan 2009 13:31:19 +0000 (13:31 +0000)
committerhiroshi <hiroshi@a7884b65-44f6-0310-8a51-81a127f17b15>
Fri, 16 Jan 2009 13:31:19 +0000 (13:31 +0000)
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

index a42d5124faec3753f9ab7b69d8d5d7c7a85cf14c..215bc60688ba7958197862a094ef90d7484f077d 100644 (file)
@@ -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();