ColourDropMsgHandler Class Reference

Intercepts messages for the Colour Drop Downs to allow them to stay up to date when documents change etc. More...

#include <coldrop.h>

Inheritance diagram for ColourDropMsgHandler:

MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ColourDropMsgHandler ()
 Constructs a ColourDropMsgHandler, an object which, surprisingly, handles messages for its parent ColourDropDown.

Protected Member Functions

MsgResult Message (Msg *Msg)
 Process messages on behalf of ColourDropDowns.

Friends

class ColourDropDown

Detailed Description

Intercepts messages for the Colour Drop Downs to allow them to stay up to date when documents change etc.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/95

Definition at line 212 of file coldrop.h.


Constructor & Destructor Documentation

ColourDropMsgHandler::ColourDropMsgHandler  ) 
 

Constructs a ColourDropMsgHandler, an object which, surprisingly, handles messages for its parent ColourDropDown.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/95
Returns:
Errors: -
See also:
MessageHandler

Definition at line 889 of file coldrop.cpp.


Member Function Documentation

MsgResult ColourDropMsgHandler::Message Msg Message  )  [protected, virtual]
 

Process messages on behalf of ColourDropDowns.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/10/95
Parameters:
Message,: The message [INPUTS]

Reimplemented from MessageHandler.

Definition at line 908 of file coldrop.cpp.

00909 {
00910     if (MESSAGE_IS_A(Message, ColourChangingMsg))
00911     {
00912         ColourChangingMsg *Msg = (ColourChangingMsg *) Message;
00913         switch ( Msg->State )
00914         {
00915             case ColourChangingMsg::LISTDESELECTED:
00916 //          case ColourChangingMsg::LISTPAGED:
00917 //          case ColourChangingMsg::LISTUPDATED:
00918 //          case ColourChangingMsg::COLOURUPDATED:
00919                 ColourDropDown::UpdateForNewColourList();
00920                 break;
00921 
00922             case ColourChangingMsg::SELVIEWCONTEXTCHANGE:
00923                 // The colour context for the selected view has chnaged, so we must immediately
00924                 // force a redraw to make sure we show the colours with correction/separation.
00925                 ColourDropDown::RedrawColourDropDowns();
00926                 break;
00927             default:
00928                 break;
00929         }
00930     }
00931 
00932     return OK; 
00933 }


Friends And Related Function Documentation

friend class ColourDropDown [friend]
 

Definition at line 214 of file coldrop.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:49 2007 for Camelot by  doxygen 1.4.4