Advanced Strategic Command
Classes | Functions
messagedlg.cpp File Reference
#include "messagedlg.h"
#include "gamemap.h"
#include "paradialog.h"
#include "gameeventsystem.h"
#include "dialog.h"
#include "dlg_box.h"
#include "spfst.h"
#include "widgets/textrenderer.h"
#include "messages.h"
#include "pgwidget.h"
#include "widgets/playerselector.h"
#include "pgrichedit.h"
#include "pgmultilineedit.h"
#include "pgtooltiphelp.h"
#include "dialogs/fieldmarker.h"
#include "dialogs/selectionwindow.h"
#include "spfst-legacy.h"
Include dependency graph for messagedlg.cpp:

Go to the source code of this file.


class  NewMessage
class  IngameMessageViewer
class  MessageLineWidget
class  MessageListItemFactory
class  MessageSelectionWindow


void newmessage ()
void newreminder ()
void viewmessages (const char *title, const MessagePntrContainer &msg, bool editable)
bool viewmessage (const Message &message)
 Views the message. More...
void checkJournal (Player &player)
void viewjournal (bool showEmptyDlg)
void editjournal (void)
void viewunreadmessages (Player &player)

Function Documentation

void checkJournal ( Player player)
void editjournal ( void  )
void newmessage ( )
void newreminder ( )

Definition at line 349 of file messagedlg.cpp.

References actmap, ASC_PG_Dialog::RunModal(), and NewMessage::Show().

Referenced by executeUserAction().

void viewjournal ( bool  showEmptyDlg)
bool viewmessage ( const Message message)

Views the message.

returns true if the user requested to keep the message in his inbox

maybe we are running in text mode

Definition at line 572 of file messagedlg.cpp.

References IngameMessageViewer::getKeepMessage(), legacyEventSystemActive(), and ASC_PG_Dialog::RunModal().

Referenced by viewunreadmessages().

void viewmessages ( const char *  title,
const MessagePntrContainer msg,
bool  editable 

Definition at line 561 of file messagedlg.cpp.

References actmap, max(), min(), and ASC_PG_Dialog::RunModal().

Referenced by executeUserAction().

void viewunreadmessages ( Player player)

this is hack to prevent several message windows popping up at once. The problem is that the idle handler of the first message viewer may trigger or evaluate further events, which may themself view new messages

Definition at line 621 of file messagedlg.cpp.

References Player::getParentMap(), GameMap::getPlayerView(), Player::getPosition(), Player::human, Player::oldmessage, Player::stat, Player::supervisor, Player::unreadmessage, and viewmessage().

Referenced by MapChangeCompleted::execute(), DisplayImmediateMessage::execute(), and hookGuiToMap().