// $Revision: 1.3 $ // Copyright (C) 1995 Taligent, Inc. All rights reserved. #ifndef Taligent_TESTGRAFEDITCLASS #define Taligent_TESTGRAFEDITCLASS #define protected public #define private public class TGUIPresenter; class TGUIBundle; class TStandardCanvasView; #include #include "StreamToMem.h" class TTestGrafEditClass { public: TTestGrafEditClass(TGUIPresenter *aPresenter, TGUIBundle *theBundle, TStandardCanvasView* aView); virtual int Test(); protected: // TStandardCanvasFillColorSelectionState, TStandardCanvasFrameColorSelectionState, // TStandardCanvasLineWidthSelectionState, virtual int HandleTestGrafEditStates(); // TStandardCanvasSelectionNotification virtual int HandleTestSelectionNotification(); // TAdoptCanvasGraphicCmd, TDeleteCanvasGraphicsCmd, TChangeCanvasGraphicCmd, // TSetCanvasGraphicFillColorCmd, TSetCanvasGraphicFrameColorCmd TSetCanvasGraphicLineWidthCmd, //TScaleCanvasGraphicCmd, TRotateCanvasGraphicCmd, TTranslateCanvasGraphicCmd virtual int HandleTestCommands(); // TStandardCanvasModelSelection virtual int HandleTestSelection(); // TStandardCanvasModel virtual int HandleTestModel(); // TStandardCanvasView virtual int HandleTestStandardCanvasView(); // TCanvasGraphicDeque TCanvasGraphicDequeWriteIterator virtual int HandleTestCanvasGraphicDeque(); // TCanvasMulticlickInteractor, TCanvasInteractor, TCanvasInteractionFunnel virtual int HandleTestInteractor(); // TCanvasPolyline, TCanvasPolylineCreationTool virtual int HandleTestCanvasPolyLine(); // TCanvasPolygon, TCanvasPolygonCreationTool virtual int HandleTestCanvasPolygon(); // TCanvasCurve, TCanvasCurveCreationTool virtual int HandleTestCanvasCurve(); // TCanvasLine, TCanvasLineCreationTool virtual int HandleTestCanvasLine(); // TBasicCanvasGraphic, TBasicCanvasGraphicCreationTool virtual int HandleTestBasicCanvasGraphic(); // TCanvasTextGraphic, TCanvasTextGraphicCreationTool virtual int HandleTestCanvasTextGraphic(); // TSRTFeedbacker, TSRTBoxFeedbacker,TSRTHandleFeedbacker virtual int HandleTestSRTFeedbacker(); TStandardCanvasModelSelection* GetModelSelection(); const TStandardCanvasModel* GetModel() const; TStandardCanvasModel* GetModel(); TModelInterest GetModelInterest(); void TestCommands(TCommandOn& aCommand); void TestIncrementCommands(TCommandOn& aCommand); void TestUndoRedoCommand(bool doUndo = false); void AddGraphics(); private: TStandardCanvasView* fView; TGUIPresenter* fPresenter; TGUIBundle* fGUIBundle; }; #endif