예제 #1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    VentanaPrincipal w;
    w.show();

    return a.exec();
}
예제 #2
0
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();
}
예제 #3
0
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();
}
예제 #4
0
파일: ranking.cpp 프로젝트: luifevas/Sudoku
void Ranking::on_atras_clicked()
{
    VentanaPrincipal *vp = new VentanaPrincipal();
    this->close();
    vp->show();
}
예제 #5
0
void GNC::GCS::ControladorVistas::Thaw()
{
        VentanaPrincipal* v = GNC::Entorno::Instance()->GetVentanaPrincipal();
        v->SuperThaw();
}