コード例 #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();
}