8 namespace AnyCAD{
namespace API
14 class ViewEditorManager;
32 void SetDocument (
const Document& pDoc) ;
42 void SetViewId (
const ElementId& viewId) ;
54 bool ExecuteCommand (
const String& commandName,
const String& parameters) ;
60 void LoadPlaceEditor (
const ElementId& typeId,
const String& createMethod) ;
72 long ActiveEditor (
const Editor& pEditor) ;
78 long ActiveEditorByName (
const String& commandName) ;
83 void SetDefaultEditorId (
const String& commandId) ;
88 String GetDefaultEditorId ()
const;
97 virtual void Destroy () ;
103 virtual void OnSize (
int nWidth,
int nHeight) ;
107 virtual void Redraw () ;
111 virtual void RequestDraw (
int nRedrawHint) ;
115 virtual void ReloadDocument () ;
120 virtual int OnLButtonDown (
const InputEvent& evt) ;
125 virtual int OnLButtonUp (
const InputEvent& evt) ;
130 virtual int OnMouseMove (
const InputEvent& evt) ;
135 virtual int OnRButtonDown (
const InputEvent& evt) ;
140 virtual int OnRButtonUp (
const InputEvent& evt) ;
145 virtual int OnMButtonDown (
const InputEvent& evt) ;
150 virtual int OnMButtonUp (
const InputEvent& evt) ;
155 virtual int OnMouseWheel (
const InputEvent& evt) ;
160 virtual int OnKeyDown (
const InputEvent& evt) ;
175 virtual int OnTimer (
int nTimerId) ;
180 virtual bool OnContextMenu (
const ContextMenu& menuContext) ;
std::string String
Definition: APIString.h:10
Present the view.
Definition: APIView.h:24
编辑器基类
Definition: APIEditor.h:21
The id.
Definition: APIElementId.h:16
The view editor base class.
Definition: APIDocViewEditor.h:22
文档类。
Definition: APIDocument.h:25
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
The editor manager.
Definition: APIViewEditorManager.h:23