ManaPlus
|
#include <renamelistener.h>
Public Member Functions | |
RenameListener () | |
void | action (const ActionEvent &event) |
void | setMapItem (const MapItem *const mapItem) |
void | setDialog (TextDialog *dialog) |
Public Member Functions inherited from ActionListener | |
virtual | ~ActionListener () |
Private Attributes | |
int | mMapItemX |
int | mMapItemY |
TextDialog * | mDialog |
Additional Inherited Members | |
Protected Member Functions inherited from ActionListener | |
ActionListener () | |
Definition at line 32 of file renamelistener.h.
RenameListener::RenameListener | ( | ) |
Definition at line 35 of file renamelistener.cpp.
|
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.
actionEvent | The event of the action. |
Implements ActionListener.
Definition at line 57 of file renamelistener.cpp.
References Map::findPortalXY(), ActionEvent::getId(), Viewport::getMap(), Map::getSpecialLayer(), TextDialog::getText(), SpecialLayer::getTile(), mDialog, mMapItemX, mMapItemY, MapItem::setComment(), socialWindow, SocialWindow::updatePortalNames(), and viewport.
|
inline |
Definition at line 43 of file renamelistener.h.
References mDialog.
Referenced by PopupMenu::handleLink(), and PopupMenu::PopupMenu().
void RenameListener::setMapItem | ( | const MapItem *const | mapItem | ) |
Definition at line 43 of file renamelistener.cpp.
References MapItem::getX(), MapItem::getY(), mMapItemX, and mMapItemY.
Referenced by PopupMenu::handleLink(), and PopupMenu::PopupMenu().
|
private |
Definition at line 49 of file renamelistener.h.
Referenced by action(), and setDialog().
|
private |
Definition at line 47 of file renamelistener.h.
Referenced by action(), and setMapItem().
|
private |
Definition at line 48 of file renamelistener.h.
Referenced by action(), and setMapItem().