00001 00002 00003 #ifndef _HOPGRAMEDANNOTATE_H 00004 #define _HOPGRAMEDANNOTATE_H 00005 00006 #ifdef H_PACK_8 00007 #pragma pack(push) 00008 #pragma pack(8) 00009 #endif 00010 00011 #include "HTools.h" 00012 #include "HBaseOperator.h" 00013 #include "HEventListener.h" 00014 00015 00016 class MVO_API HOpFramedAnnotate : public HBaseOperator 00017 { 00018 public: 00019 00020 HOpFramedAnnotate (HBaseView* view, bool bAddToLayer = false, int DoRepeat=0, int DoCapture=1); 00021 ~HOpFramedAnnotate(); 00022 00023 virtual const char * GetName(); 00024 int OnLButtonDown (HEventInfo &hevent); 00025 int OnLButtonDownAndMove(HEventInfo &hevent); 00026 int OnLButtonUp (HEventInfo &hevent); 00027 int OnKeyDown(HEventInfo &hevent); 00028 HBaseOperator * Clone(); 00030 protected: 00031 unsigned short *m_pString; 00033 HC_KEY m_pNoteKey; 00035 void finalize_text(bool emit_message=false); 00036 bool m_bAddToLayer; 00038 void TransmitMarkupSegment(); 00039 00040 00041 }; 00042 00043 00044 00045 #ifdef H_PACK_8 00046 #pragma pack(pop) 00047 #endif 00048 00049 #endif 00050 00051 00052