TouchVG framework
Public 成员函数 | Private 类型 | Private 成员函数 | Private 属性 | 所有成员列表
CmdSubjectImpl类 参考

CmdSubject 的实现类 更多...

类 CmdSubjectImpl 继承关系图:
Inheritance graph

Public 成员函数

 CmdSubjectImpl ()
 

Private 类型

typedef std::pair< CmdObserver *, std::string > Observer
 
typedef std::vector< ObserverObservers
 
typedef Observers::iterator Iterator
 

Private 成员函数

virtual void registerObserver (CmdObserver *observer)
 
virtual void unregisterObserver (CmdObserver *observer)
 
virtual bool registerNamedObserver (const char *name, CmdObserver *observer)
 
virtual CmdObserver * findNamedObserver (const char *name)
 
virtual void onDocLoaded (const MgMotion *sender, bool forUndo)
 
virtual void onEnterSelectCommand (const MgMotion *sender)
 
virtual void onUnloadCommands (MgCmdManager *sender)
 
virtual bool selectActionsNeedHided (const MgMotion *sender)
 
virtual int addShapeActions (const MgMotion *sender, mgvector< int > &actions, int n, const MgShape *shape)
 
virtual bool doAction (const MgMotion *sender, int action)
 
virtual bool doEndAction (const MgMotion *sender, int action)
 
virtual void drawInShapeCommand (const MgMotion *sender, MgCommand *cmd, GiGraphics *gs)
 
virtual void drawInSelectCommand (const MgMotion *sender, const MgShape *shape, int handleIndex, GiGraphics *gs)
 
virtual void onSelectTouchEnded (const MgMotion *sender, int shapeid, int handleIndex, int snapid, int snapHandle, int count, const int *ids)
 
virtual void onGatherSnapIgnoredID (const MgMotion *sender, const MgShape *sp, int *ids, int &i, int n)
 
virtual void onSelectionChanged (const MgMotion *sender)
 
virtual bool onShapeWillAdded (const MgMotion *sender, MgShape *shape)
 
virtual void onShapeAdded (const MgMotion *sender, MgShape *shape)
 
virtual bool onShapeWillDeleted (const MgMotion *sender, const MgShape *shape)
 
virtual int onShapeDeleted (const MgMotion *sender, const MgShape *shape)
 
virtual bool onShapeCanRotated (const MgMotion *sender, const MgShape *shape)
 
virtual bool onShapeCanTransform (const MgMotion *sender, const MgShape *shape)
 
virtual bool onShapeCanUnlock (const MgMotion *sender, const MgShape *shape)
 
virtual bool onShapeCanUngroup (const MgMotion *sender, const MgShape *shape)
 
virtual bool onShapeCanMovedHandle (const MgMotion *sender, const MgShape *sp, int index)
 
virtual void onShapeMoved (const MgMotion *sender, MgShape *shape, int segment)
 
virtual bool onShapeWillChanged (const MgMotion *sender, MgShape *sp, const MgShape *oldsp)
 
virtual void onShapeChanged (const MgMotion *sender, MgShape *shape)
 
virtual MgBaseShapecreateShape (const MgMotion *sender, int type)
 
virtual MgCommandcreateCommand (const MgMotion *sender, const char *name)
 
virtual bool onPreGesture (MgMotion *sender)
 
virtual void onPostGesture (const MgMotion *sender)
 
virtual void onPointSnapped (const MgMotion *sender, const MgShape *sp)
 

Private 属性

Observers _arr
 

详细描述

CmdSubject 的实现类


该类的文档由以下文件生成:

通用矢量图形框架, 版权所有 (C) 张云贵 2004-2017,BSD 开源许可证