Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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 dependency graph for messagedlg.cpp:

Go to the source code of this file.

Functions

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


Function Documentation

void checkJournal Player player  ) 
 

Definition at line 575 of file messagedlg.cpp.

References GameTime::abstime, actmap, GameMap::actplayer, Player::getParentMap(), GameMap::lastjournalchange, GameTime::move(), GameMap::time, GameTime::turn(), and viewjournal().

Referenced by hookGuiToMap().

void editjournal void   ) 
 

Definition at line 598 of file messagedlg.cpp.

References actmap, GameMap::actplayer, MultilineEdit::changed(), tdialogbox::done(), MultilineEdit::init(), GameMap::lastjournalchange, GameMap::newJournal, MultilineEdit::run(), GameTime::set(), GameMap::time, and GameTime::turn().

Referenced by execuseraction().

void newmessage  ) 
 

Definition at line 327 of file messagedlg.cpp.

References actmap, Player::getHumanPlayerNum(), infoMessage(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show().

Referenced by execuseraction().

void newreminder  ) 
 

Definition at line 341 of file messagedlg.cpp.

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

Referenced by execuseraction2().

void viewjournal bool  showEmptyDlg  ) 
 

Definition at line 585 of file messagedlg.cpp.

References actmap, tdialogbox::done(), GameMap::gameJournal, infoMessage(), tviewanytext::init(), and tviewanytext::run().

Referenced by checkJournal(), and execuseraction().

bool viewmessage const Message message  ) 
 

Views the message.

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

Definition at line 564 of file messagedlg.cpp.

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

Referenced by viewunreadmessages().

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

Definition at line 553 of file messagedlg.cpp.

References actmap, PG_Application::GetScreenWidth(), max(), min(), ASC_PG_Dialog::RunModal(), and PG_Widget::Show().

Referenced by execuseraction().

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 609 of file messagedlg.cpp.

References Player::oldmessage, Player::unreadmessage, and viewmessage().

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


Generated on Tue Jun 24 01:51:49 2008 for Advanced Strategic Command by  doxygen 1.4.2