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

void CFormMain::show ( const QString  newname = QString::null  ) 

Opens a given sail file

Definition at line 350 of file formmain.cpp.

References fileAccess(), filename, makeMenuMru(), setSailDef(), and statusbar.

{
    // load preferences
    makeMenuMru();

    // load or create sail
    CSailDef newdef;
    filename = newname;
    if ( !filename.isNull() )
    {
        newdef = CSailDefXmlReader("saildef").read(filename);
        fileAccess(tr("loaded '%1'").arg(filename),filename);
    }
    else
    {
        statusbar->showMessage( tr("created new sail") );
    }
    setSailDef(newdef);
    QMainWindow::show();
}


Generated by  Doxygen 1.6.0   Back to index