Logo Search packages:      
Sourcecode: sailcut version File versions  Download package

void CFormMain::setupMainWidget (  )  [protected]

Creates the main widget

Definition at line 323 of file formmain.cpp.

References panel, and tabs.

Referenced by CFormMain().

{
    tabs = new QTabWidget(this);

    CSailViewerPanel *tmp;
#ifdef HAVE_GL
    tmp = new CSailViewerPanel(0, SHADED, true);
    panel.push_back(tmp);
#endif

    tmp = new CSailViewerPanel(0, WIREFRAME, true);
    panel.push_back(tmp);
    tmp = new CSailViewerPanel(0, WIREFRAME, false);
    panel.push_back(tmp);

    for (unsigned int i = 0 ; i < panel.size(); i++)
    {
        tabs->addTab(panel[i],"");
    }

    setCentralWidget(tabs);
}


Generated by  Doxygen 1.6.0   Back to index