home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-10 | 1.7 KB | 62 lines | [TEXT/MPS ] |
- // Copyright © 1995 Apple Computer, Inc. All rights reserved.
- // Release Version: $ 1.0 d11 $
-
- #ifndef CALCPRT_H
- #define CALCPRT_H
-
- //=======================================================================
- #ifndef _CALCDEF_
- #include "CalcDef.h"
- #endif
-
- // ----- Framework Includes -----
- #ifndef FWPART_H
- #include "FWPart.h" // FW_CPart
- #endif
-
- // ----- Foundation Layer -----
- #ifndef FWSTDDEF_H
- #include <FWStdDef.h> // ?
- #endif
-
- //=======================================================================
- class FW_CLASS_ATTR FW_CPart;
- class FW_CLASS_ATTR FW_CString;
- class FW_CLASS_ATTR FW_CMenuBar;
- class FW_CLASS_ATTR FW_CMenuEvent;
- class FW_CLASS_ATTR FW_CPresentation;
- class FW_CLASS_ATTR DevUniv_SFinance;
-
- typedef double CalcFloat;
-
- //=======================================================================
- class FW_CLASS_ATTR CCalcPart : public FW_CPart {
- public:
- CCalcPart(ODPart* odPart);
- virtual ~CCalcPart();
- static const ODValueType kPartKind;
- static const ODValueType kPartUserName;
- // new methods
- virtual void MySetLoanAmount(CalcFloat borrowed);
- virtual void MySetAnnualInterestPercent(CalcFloat interest);
- virtual void MySetLoanYears(CalcFloat years);
- virtual CalcFloat MyComputePayment(Environment* ev);
- // overrides
- protected:
- virtual void Initialize(Environment* ev);
- virtual FW_CFrame* NewFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- FW_Boolean fromStorage);
- // new members
- private:
- CalcFloat fLoanAmount;
- CalcFloat fAnnualInterestPercent;
- CalcFloat fLoanYears;
- CalcFloat fMonthlyPayment;
- DevUniv_SFinance* fSOMFinanceCalc;
- };
-
- //=======================================================================
- #endif
-