BlankInfoBarOp Class Reference

Class for handling the tool's information bar. More...

#include <blnktool.h>

Inheritance diagram for BlankInfoBarOp:

InformationBarOp DialogBarOp DialogOp Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 BlankInfoBarOp (BlankTool *pTool=NULL)
MsgResult Message (Msg *Msg)
 Blank info bar dialog message handler.

Private Attributes

BlankToolm_pBlankTool

Detailed Description

Class for handling the tool's information bar.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/10/94

Definition at line 185 of file blnktool.h.


Constructor & Destructor Documentation

BlankInfoBarOp::BlankInfoBarOp BlankTool pTool = NULL  )  [inline]
 

Definition at line 189 of file blnktool.h.

00190     {
00191         m_pBlankTool = pTool;
00192         DlgResID = _R(IDD_BLANKTOOLBAR);
00193     }


Member Function Documentation

MsgResult BlankInfoBarOp::Message Msg Message  )  [virtual]
 

Blank info bar dialog message handler.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/10/94
Parameters:
Message = The message to handle [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

Reimplemented from InformationBarOp.

Definition at line 522 of file blnktool.cpp.

00523 {
00524     if (IS_OUR_DIALOG_MSG(Message))
00525     {
00526         DialogMsg* Msg = (DialogMsg*)Message;
00527 
00528         // Check if the message is a CANCEL
00529         if (Msg->DlgMsg == DIM_CANCEL)
00530         {
00531             Close(); // Close the dialog 
00532         }
00533         else if (Msg->DlgMsg == DIM_CREATE)
00534         {
00535             // Initialise the infobar controls here
00536             // This is sent when you create the infobar in your tool startup code
00537         }
00538         else
00539         {
00540             // Switch statement allows you to do things when receiving messages
00541             // for specific gadgets
00542             //
00543             // Just uncomment the next 3 lines to get started
00544             //
00545             //      switch (Msg->GadgetID)
00546             //      {
00547             //      }
00548         }
00549     }
00550 
00551     // Pass the message on to the immediate blank class
00552     return (InformationBarOp::Message(Message));
00553 }    


Member Data Documentation

BlankTool* BlankInfoBarOp::m_pBlankTool [private]
 

Definition at line 198 of file blnktool.h.


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