//--------------------------------------------------------------------------- #ifndef Actions1H #define Actions1H //--------------------------------------------------------------------------- #include #include #include #include #include #include #include "OlectraChart3D_TLB.h" //--------------------------------------------------------------------------- class TfrmActions : public TForm { __published: // IDE-managed Components TChart3D *Chart3D1; TMainMenu *MainMenu1; TMenuItem *mnuFile; TMenuItem *mnuExit; TGroupBox *gbEvents; TRadioButton *rbNone; TRadioButton *rbRotate; TRadioButton *rbMove; TRadioButton *rbScale; TRadioButton *rbZoom; TGroupBox *gbConstraint; TRadioButton *rbCXAxis; TRadioButton *rbCYAxis; TRadioButton *rbCZAxis; TRadioButton *rbCEyepoint; TRadioButton *rbCSpinTilt; TButton *cmdReset; TScrollBar *HScroll; TScrollBar *VScroll; TRadioButton *rbCNone; TMenuItem *mnuHelp; TMenuItem *mnuAboutDemo; TMenuItem *N1; TMenuItem *mnuAboutOlectraChart; void __fastcall mnuExitClick(TObject *Sender); void __fastcall FormCreate(TObject *Sender); void __fastcall Chart3D1View3DModify(TObject *Sender, double *XRotation, double *YRotation, double *ZRotation, VARIANT_BOOL *IsOK); void __fastcall cmdResetClick(TObject *Sender); void __fastcall HScrollScroll(TObject *Sender, TScrollCode ScrollCode, int &ScrollPos); void __fastcall VScrollScroll(TObject *Sender, TScrollCode ScrollCode, int &ScrollPos); void __fastcall rbNoneClick(TObject *Sender); void __fastcall rbMoveClick(TObject *Sender); void __fastcall rbScaleClick(TObject *Sender); void __fastcall rbZoomClick(TObject *Sender); void __fastcall rbRotateClick(TObject *Sender); void __fastcall rbCSpinTiltClick(TObject *Sender); void __fastcall FormActivate(TObject *Sender); void __fastcall mnuAboutDemoClick(TObject *Sender); void __fastcall mnuAboutOlectraChartClick(TObject *Sender); private: // User declarations public: // User declarations int HScrollValue; int VScrollValue; bool FirstPass; bool HScrollStarted; bool VScrollStarted; ActionConstants CurrentAction; void ClearEvents(); void EnableRotationConstraints(bool Flag); void ResetScrollBars(bool hFlag, bool vFlag); __fastcall TfrmActions(TComponent* Owner); }; //--------------------------------------------------------------------------- extern TfrmActions *frmActions; //--------------------------------------------------------------------------- #endif