4 // Classes representing different event types.
7 #include "DasherTypes.h"
12 class CGameNodeDrawEvent
;
13 class CDasherNode
; //fwd decl, avoid include...we just store ptr
18 /// \defgroup Events Events generated by Dasher modules.
22 * An event that notifies listeners that a node previously flagged for
23 * game mode has been drawn.
25 class Dasher::CGameNodeDrawEvent
{
27 CGameNodeDrawEvent(CDasherNode
* pNode
, myint y1
, myint y2
)
28 : m_pNode(pNode
), m_y1(y1
), m_y2(y2
) {
37 * the y range of the node (in dasher coords)
42 class Dasher::CEditEvent
{
43 friend class CDasherInterfaceBase
;
44 CEditEvent(int iEditType
, const std::string
& sText
, CDasherNode
*pNode
)
45 : m_iEditType(iEditType
), m_sText(sText
), m_pNode(pNode
) {
48 static const int EDIT_OUTPUT
=1, EDIT_DELETE
=2, EDIT_CONVERT
=10, EDIT_PROTECT
=11;
49 const int m_iEditType
;
50 const std::string m_sText
;
51 /// Node causing the event - allows calling GetSymbolProb, offset(), etc.
53 const CDasherNode
*m_pNode
;