int main(int argc, char *argv[]) { QApplication a(argc, argv); VentanaPrincipal w; w.show(); return a.exec(); }
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(); }
void Ranking::on_atras_clicked() { VentanaPrincipal *vp = new VentanaPrincipal(); this->close(); vp->show(); }
void GNC::GCS::ControladorVistas::Thaw() { VentanaPrincipal* v = GNC::Entorno::Instance()->GetVentanaPrincipal(); v->SuperThaw(); }