ManaPlus
Public Member Functions | Protected Member Functions
ActionListener Class Referenceabstract

#include <actionlistener.h>

Inheritance diagram for ActionListener:
AwayListener BankWindow BuyDialog BuySellDialog ChangeDisplay ChangeEmailDialog ChangePasswordDialog ChangePincodeListener CharCreateDialog CharRenameListener CharSelectDialog CharacterViewBase ChatWindow Client Client ConfirmDialog ConnectionDialog DidYouKnowWindow DropDown EditDialog EditServerDialog EquipmentWindow ErrorListener GuiTableActionListener HelpWindow InputActionRemoteListener InputActionReplayListener InsertCardListener InventoryWindow ItemAmountWindow KillStats LoginDialog MailEditWindow MailViewWindow MailWindow NewPincodeListener NewPincodeRetryListener NpcDialog OkDialog OpenUrlListener OutfitWindow Pincode PincodeDialog PincodeListener PlayerListener PlayerPostDeathListener QuestsWindow QuitDialog RegisterDialog RenameListener RequestAdoptChildListener RequestTradeListener SellDialog ServerDialog SetupItem SetupTab SetupWindow ShopRenameListener ShopWindow SkillDialog SkillWarpListener SliderList SocialGuildTab SocialGuildTab2 SocialPartyTab SocialWindow StatDebugTab StatusWindow TabbedArea TextCommandEditor TextDialog TextSelectDialog TextSkillListener TradeWindow UpdaterWindow UploadListener WeightListener WhoIsOnline WidgetGroup WindowMenu WorldSelectDialog WrongDataNoticeListener anonymous_namespace{client.cpp}::AccountListener anonymous_namespace{client.cpp}::LoginListener

Public Member Functions

virtual ~ActionListener ()
 
virtual void action (const ActionEvent &actionEvent)=0
 

Protected Member Functions

 ActionListener ()
 

Detailed Description

Interface for listening for action events from widgets.

See also
Widget::addActionListener, Widget::removeActionListener, ActionEvent
Author
Olof Naessén
Per Larsson

Definition at line 78 of file actionlistener.h.

Constructor & Destructor Documentation

◆ ~ActionListener()

virtual ActionListener::~ActionListener ( )
inlinevirtual

Destructor.

Definition at line 86 of file actionlistener.h.

87  { }

◆ ActionListener()

ActionListener::ActionListener ( )
inlineprotected

Constructor.

You should not be able to make an instance of ActionListener, therefore its constructor is protected.

Definition at line 105 of file actionlistener.h.

106  { }

Member Function Documentation

◆ action()

virtual void ActionListener::action ( const ActionEvent actionEvent)
pure virtual

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

Parameters
actionEventThe event of the action.

Implemented in Client, anonymous_namespace{client.cpp}::LoginListener, anonymous_namespace{client.cpp}::AccountListener, Client, WrongDataNoticeListener, WeightListener, UploadListener, TextSkillListener, SkillWarpListener, ShopRenameListener, RequestTradeListener, RequestAdoptChildListener, RenameListener, PlayerPostDeathListener, PlayerListener, PincodeListener, OpenUrlListener, NewPincodeRetryListener, NewPincodeListener, InsertCardListener, InputActionReplayListener, InputActionRemoteListener, ErrorListener, CharRenameListener, ChangePincodeListener, AwayListener, WorldSelectDialog, WhoIsOnline, UpdaterWindow, TradeWindow, TextSelectDialog, TextDialog, TextCommandEditor, StatusWindow, SocialWindow, SkillDialog, ShopWindow, SetupWindow, ServerDialog, RegisterDialog, QuitDialog, QuestsWindow, PincodeDialog, OutfitWindow, OkDialog, NpcDialog, MailWindow, MailViewWindow, MailEditWindow, LoginDialog, KillStats, ItemAmountWindow, InventoryWindow, HelpWindow, EquipmentWindow, EditServerDialog, EditDialog, DidYouKnowWindow, ConnectionDialog, ConfirmDialog, ChatWindow, CharSelectDialog, CharDeleteConfirm, CharCreateDialog, ChangePasswordDialog, ChangeEmailDialog, BuySellDialog, BuyDialog, BankWindow, WindowMenu, WidgetGroup, TabStrip, StatDebugTab, SocialPartyTab, SocialGuildTab2, SocialGuildTab, SetupTabScroll, Setup_Video, Setup_Theme, Setup_Relations, Setup_Joystick, Setup_Input, Setup_Colors, SliderList, SetupQuickItem, SetupItemSound, SetupItemSliderList, SetupItemSlider2, SetupItemSlider, SetupItemLabel, SetupItemIntTextField, SetupItemTextField, SetupItem, SetupButtonItem, SellDialog, Pincode, CharacterViewSmall, CharacterViewNormal, ChangeDisplay, GuiTableActionListener, TabbedArea, and DropDown.


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