kexi
Event Class Reference
#include <kexievents.h>
Detailed Description
A simple class to store events.There are three different types of events (an maybe more in the future): signal to slot: sender and receiver are both widgets. signal to user function: whenever the signal is emitted, a function in the form script is called. signal to action: the signal activates an application action (eg addNewRecord in Kexi) (other :* global signal to user function: an application global signal (new window opened, etc.) calls a user script function)
- Todo:
- add aliases for slot()?? (eg actionName())
Definition at line 38 of file kexievents.h.
Public Types | |
enum | { Slot = 1000, UserFunction, Action } |
Public Member Functions | |
Event (QObject *sender, const QCString &signal, QObject *receiver, const QCString &slot) | |
Event (QObject *sender, const QCString &signal, const QCString &functionName) | |
int | type () |
void | setType (int type) |
QObject * | sender () const |
QObject * | receiver () const |
QCString | signal () const |
QCString | slot () const |
void | setSender (QObject *o) |
void | setReceiver (QObject *o) |
void | setSignal (const QCString &s) |
void | setSlot (const QCString &s) |
Protected Attributes | |
QGuardedPtr< QObject > | m_sender |
QCString | m_signal |
QGuardedPtr< QObject > | m_receiver |
QCString | m_slot |
int | m_type |
Member Function Documentation
int Event::type | ( | ) | [inline] |
The documentation for this class was generated from the following files: