#include <formhulldef.h>
Public Member Functions | |
| CFormHullDef (QWidget *, CHullDef *) | |
| bool | check () |
| virtual void | accept () |
Protected Slots | |
| void | slotAutoPlank () |
| void | slotCheck () |
Protected Attributes | |
| CHullDef * | hulldef |
Definition at line 30 of file formhulldef.h.
| CFormHullDef::CFormHullDef | ( | QWidget * | parent, | |
| CHullDef * | hullptr | |||
| ) |
The constructor.
| parent | the parent window | |
| hullptr | pointer to the CHullDef |
deck parameters
bottom parameters
planking parameters
signal and slots connections
Definition at line 38 of file formhulldef.cpp.
References accept(), CHullDef::AutoPlank, CHullDef::BaftHeight, CHullDef::BaftShape, CHullDef::BaftW, CHullDef::BBW, CHullDef::BBWPos, CHullDef::BDeadriseA, CHullDef::BfwdHeight, CHullDef::BfwdShape, CHullDef::BLWL, CHullDef::BSlopeA, CHullDef::BSweepA, CHullDef::DaftHeight, CHullDef::DfwdHeight, hulldef, CHullDef::hullID, CHullDef::LowPlankA, CHullDef::NBPlank, slotCheck(), CHullDef::StemA, CHullDef::TopPlankA, and CHullDef::TransomA.
| bool CFormHullDef::check | ( | ) |
Check all dimensions entered in order to make sure that the hull is possible and reasonable
return true IF everything is OK
create four palettes
check hull ID
check bottom data
check deck data
planking parameters
check automatic planking
return true IF everything is OK
Definition at line 118 of file formhulldef.cpp.
References CHullDef::AutoPlank, CHullDef::BaftHeight, CHullDef::BaftShape, CHullDef::BaftW, CHullDef::BBW, CHullDef::BBWPos, CHullDef::BDeadriseA, CHullDef::BfwdHeight, CHullDef::BfwdShape, CHullDef::BLWL, CHullDef::BSlopeA, CHullDef::BSweepA, CHullDef::DaftHeight, CHullDef::DfwdHeight, hulldef, CHullDef::hullID, CHullDef::LowPlankA, CHullDef::NBPlank, CHullDef::StemA, CHullDef::TopPlankA, and CHullDef::TransomA.
Referenced by accept(), slotAutoPlank(), and slotCheck().
| void CFormHullDef::accept | ( | ) | [virtual] |
Saves the parameters entered by the user in the CHullDef. slot connected to OK button
Definition at line 90 of file formhulldef.cpp.
References check().
Referenced by CFormHullDef().
| void CFormHullDef::slotAutoPlank | ( | ) | [protected, slot] |
slot for dealing with automatic planking
Definition at line 99 of file formhulldef.cpp.
References CHullDef::AutoPlank, check(), and hulldef.
| void CFormHullDef::slotCheck | ( | ) | [protected, slot] |
slot for dealing with check button
Definition at line 109 of file formhulldef.cpp.
References check().
Referenced by CFormHullDef().
CHullDef* CFormHullDef::hulldef [protected] |
a pointer to the hull definion
Definition at line 46 of file formhulldef.h.
Referenced by CFormHullDef(), check(), and slotAutoPlank().
1.5.6