____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

gcn::ActionListener Class Reference

#include <actionlistener.h>

Inheritance diagram for gcn::ActionListener:

EditorPatchSliderListener EditorUnitSliderListener gcn::DropDown LuaActionListener PatchExitButtonListener PatchSaveButtonListener DropDownWidget

List of all members.

Public Member Functions

virtual ~ActionListener ()
virtual void action (const std::string &eventId)=0


Detailed Description

Listener of action events from Widgets. To be able to listen for actions you must make a class which inherits from this class and implements the action function.

See also:
Widget::addActionListener

Definition at line 71 of file actionlistener.h.


Constructor & Destructor Documentation

virtual gcn::ActionListener::~ActionListener (  )  [inline, virtual]

Destructor.

Definition at line 78 of file actionlistener.h.


Member Function Documentation

virtual void gcn::ActionListener::action ( const std::string &  eventId  )  [pure virtual]

Called whan an action is recieved from a Widget. It is used to be able to recieve a notification that an action has occured.

Parameters:
eventId the identifier of the Widget.

Implemented in EditorUnitSliderListener, EditorPatchSliderListener, PatchSaveButtonListener, PatchExitButtonListener, gcn::DropDown, and LuaActionListener.


The documentation for this class was generated from the following file:

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6