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

void CFormMain::setSailDef ( const CSailDef  newdef  ) 

Replaces the current sail definition.

Parameters:
newdef 

Definition at line 220 of file formmain.cpp.

References dispsail, flatsail, panel, sail, and saildef.

Referenced by show(), slotDef(), slotMould(), slotNew(), slotOpen(), and slotOpenRecent().

{
    saildef = newdef;
    sail = CSailWorker(saildef).makeSail(flatsail,dispsail);
    panel[0]->setSail(sail);
#ifdef HAVE_GL

    panel[1]->setSail(sail);
    panel[2]->setSail(dispsail);
#else

    panel[1]->setSail(dispsail);
#endif
}


Generated by  Doxygen 1.6.0   Back to index