void GNC::GCS::ControladorVistas::OcultarPanel(wxWindow* win) { GTRACE("ControladorVistas::OcultarPanel(" << win << ")") VentanaPrincipal* vp = GNC::Entorno::Instance()->GetVentanaPrincipal(); if (vp == NULL) { throw std::exception(); } vp->SuperFreeze(); //std::cout << "Ocultando panel " << win << std::endl; vp->m_mgr.GetPane(win).Hide(); vp->m_mgr.Update(); vp->Layout(); vp->SuperThaw(); }
void GNC::GCS::ControladorVistas::MostrarPanelFlotante(wxWindow* win, int x, int y) { GTRACE("ControladorVistas::MostrarPanel(" << win << ")") VentanaPrincipal* vp = GNC::Entorno::Instance()->GetVentanaPrincipal(); if (vp == NULL) { throw std::exception(); } vp->Freeze(); //std::cout << "Mostrando panel " << win << std::endl; vp->m_mgr.GetPane(win).Show(true); //se muestra abajo wxAuiPaneInfo& pi = vp->m_mgr.GetPane(win); if (!pi.IsFloating()) { pi.Float(); } pi.FloatingSize(pi.best_size); pi.FloatingPosition(x,y); vp->m_mgr.Update(); vp->Layout(); vp->Thaw(); }