2010-09-29 20:14:11 +00:00
|
|
|
// ASE gui library
|
2011-01-20 21:32:31 +00:00
|
|
|
// Copyright (C) 2001-2011 David Capello
|
2010-09-29 20:14:11 +00:00
|
|
|
//
|
|
|
|
// This source file is ditributed under a BSD-like license, please
|
|
|
|
// read LICENSE.txt for more information.
|
|
|
|
|
|
|
|
#ifndef GUI_EVENT_H_INCLUDED
|
|
|
|
#define GUI_EVENT_H_INCLUDED
|
|
|
|
|
|
|
|
class Component;
|
|
|
|
|
|
|
|
// Base class for every kind of event.
|
|
|
|
class Event
|
|
|
|
{
|
|
|
|
// The component which generates the event.
|
|
|
|
Component* m_source;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Creates a new event specifying that it was generated from the
|
|
|
|
// source component.
|
|
|
|
Event(Component* source);
|
|
|
|
|
|
|
|
virtual ~Event();
|
|
|
|
|
|
|
|
// Returns the component which generated the event.
|
|
|
|
Component* getSource();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|