Project stdui: "Simple Type Dialog User-Interface"

|
Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

stdui::cevent Class Reference

cevent class and its subclasses ... More...

#include <cevent.h>

Inheritance diagram for stdui::cevent:

Inheritance graph
[legend]
Collaboration diagram for stdui::cevent:

Collaboration graph
[legend]
List of all members.

Public Types

typedef list< cevent * > list
typedef list::iterator iterator

Public Member Functions

 cevent ()
 cevent (event_type::val t, events::val v)
 cevent (int _ncurses_event)
 cevent (stdobject *s, event_type::val t, events::val v)
 cevent (stdobject *sender, stdobject *target, event_type::val t, events::val v)
virtual ~cevent ()
template<typename _t>
_t * eventclass ()
 converts pointer to to a pointer of a cevent subclass.
events::val event ()
 returns the event value
int ncursesevent ()
 returns the raw ncurses event value
void setevent (events::val e)
 sets the event value
void seteventtype (event_type::val t)
event_type::val type ()
stdobjectsender ()
 return the sender object
void setsender (stdobject *s)

Static Public Member Functions

static void clear (cevent::list &l)

Private Member Functions

virtual void _translate ()

Private Attributes

events::val __e
 the event value
event_type::val __type
 event type
int __nce
 raw ncurses event value
stdobject_sender
stdobject_target

Detailed Description

cevent class and its subclasses ...

Author:
serge lussier

Definition at line 183 of file cevent.h.


Member Typedef Documentation

typedef list::iterator stdui::cevent::iterator
 

Definition at line 187 of file cevent.h.

typedef list<cevent*> stdui::cevent::list
 

Definition at line 186 of file cevent.h.


Constructor & Destructor Documentation

stdui::cevent::cevent  ) 
 

Definition at line 34 of file cevent.cpp.

References _translate().

00035 {
00036    _translate();
00037 }

Here is the call graph for this function:

stdui::cevent::cevent event_type::val  t,
events::val  v
[inline]
 

Definition at line 190 of file cevent.h.

References __e, __type, _sender, and _target.

00190 : __type(t), __e(v), _sender(0l), _target(0l){  }

stdui::cevent::cevent int  _ncurses_event  )  [inline]
 

Definition at line 191 of file cevent.h.

References __e, __nce, __type, _sender, and _target.

00191 : __nce(_ncurses_event), __type(0), __e(0), _sender(0l), _target(0l){  }

stdui::cevent::cevent stdobject s,
event_type::val  t,
events::val  v
[inline]
 

Definition at line 192 of file cevent.h.

References __e, __type, _sender, and _target.

00192 : __type(t), __e(v), _sender(s), _target(0l){  }

stdui::cevent::cevent stdobject sender,
stdobject target,
event_type::val  t,
events::val  v
[inline]
 

Definition at line 193 of file cevent.h.

References __e, __type, _sender, _target, and sender().

00193 : __type(t), __e(v), _sender(sender), _target(target){  }

Here is the call graph for this function:

stdui::cevent::~cevent  )  [virtual]
 

Definition at line 40 of file cevent.cpp.

00041 {
00042 }


Member Function Documentation

void stdui::cevent::_translate  )  [private, virtual]
 

Todo:
implement me

Reimplemented in stdui::ckeypressevent, and stdui::cmouseevent.

Definition at line 51 of file cevent.cpp.

Referenced by cevent().

00052 {
00054 }

void stdui::cevent::clear cevent::list l  )  [static]
 

Definition at line 176 of file cevent.cpp.

00177 {
00178     for( cevent::iterator it = l.begin(); it != l.end(); it++) delete *it;
00179     l.clear();
00180 }

stdui::cevent::event  )  [inline]
 

returns the event value

Definition at line 210 of file cevent.h.

References __e.

00210 { return __e; }

template<typename _t>
stdui::cevent::eventclass  )  [inline]
 

converts pointer to to a pointer of a cevent subclass.

Returns:
non-null if dynamic_cast is successfull

Definition at line 201 of file cevent.h.

00202     {
00203        _t* _e = dynamic_cast<_t*>(this);
00204        return _e;
00205     }

stdui::cevent::ncursesevent  )  [inline]
 

returns the raw ncurses event value

Definition at line 217 of file cevent.h.

References __nce.

00217 { return __nce; }

stdui::cevent::sender  )  [inline]
 

return the sender object

Definition at line 240 of file cevent.h.

References _sender.

Referenced by cevent().

00240 { return _sender; }

stdui::cevent::setevent events::val  e  )  [inline]
 

sets the event value

Definition at line 223 of file cevent.h.

References __e.

Referenced by stdui::cmouseevent::identify_event().

00223 { __e = e; }

void stdui::cevent::seteventtype event_type::val  t  )  [inline]
 

Definition at line 229 of file cevent.h.

References __type.

00229 { __type = t;  }

stdui::cevent::setsender stdobject s  )  [inline]
 

Definition at line 245 of file cevent.h.

References _sender.

00245 {  _sender = s;    }

event_type::val stdui::cevent::type  )  [inline]
 

Definition at line 235 of file cevent.h.

References __type.

00235 { return __type; }


Member Data Documentation

events::val stdui::cevent::__e [private]
 

the event value

Definition at line 249 of file cevent.h.

Referenced by cevent(), event(), and setevent().

int stdui::cevent::__nce [private]
 

raw ncurses event value

Definition at line 251 of file cevent.h.

Referenced by cevent(), and ncursesevent().

event_type::val stdui::cevent::__type [private]
 

event type

Definition at line 250 of file cevent.h.

Referenced by cevent(), seteventtype(), and type().

stdobject* stdui::cevent::_sender [private]
 

Definition at line 254 of file cevent.h.

Referenced by cevent(), sender(), and setsender().

stdobject* stdui::cevent::_target [private]
 

Definition at line 255 of file cevent.h.

Referenced by cevent().


The documentation for this class was generated from the following files:
API Documentation Generated by:  doxygen 1.4.0
About the author | Site started with trial version of DreamWeaver MX 2004 | Finalizing with  | Contact | ©2005, Serge Lussier ( Bretzel )