dialogop.cpp File Reference

(r1785/r1751)

#include "camtypes.h"
#include "dlgmgr.h"
#include "camelot.h"
#include "bubbleid.h"
#include "ccdc.h"
#include "grndrgn.h"
#include "grnddib.h"
#include "osrndrgn.h"
#include "dlgview.h"
#include "helpuser.h"
#include "brushmsg.h"
#include "dlgevt.h"
#include "ctrllist.h"

Go to the source code of this file.

Defines

#define MAGIC_CREATE   0xa1ec501dUL
#define MAGIC_DESTROY   0xa1ecdeadUL
#define CheckMagic(f)
#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1751 $")
BOOL UpdateStringGadgetValue (DialogOp *Dialog, UINT32 Gadget, StringBase *NewString)
 Similar to SetStringGadgetValue but compares the contents of the gadget in the dialogue before the update and dosen't bother if the new value is the same as the current one. This reduces dialogue flicker. See also: DialogOp::SetStringGadgetValue.


Define Documentation

#define CheckMagic  ) 
 

Value:

do \
    { \
        if (MagicWord == MAGIC_DESTROY) \
        { \
            ERROR3(f ": DialogOp already destroyed"); \
        } \
        else \
        { \
            ERROR3IF(MagicWord != MAGIC_CREATE, f ": DialogOp suffered double destroyed or is corrupt"); \
        } \
    } while(0)

Definition at line 153 of file dialogop.cpp.

#define MAGIC_CREATE   0xa1ec501dUL
 

Definition at line 150 of file dialogop.cpp.

#define MAGIC_DESTROY   0xa1ecdeadUL
 

Definition at line 151 of file dialogop.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 176 of file dialogop.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1751 $"   ) 
 

BOOL UpdateStringGadgetValue DialogOp Dialog,
UINT32  Gadget,
StringBase NewString
 

Similar to SetStringGadgetValue but compares the contents of the gadget in the dialogue before the update and dosen't bother if the new value is the same as the current one. This reduces dialogue flicker. See also: DialogOp::SetStringGadgetValue.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com>
Date:
14/09/94
Parameters:
Dialog - pointer to the DialogOp containing the gadget. [INPUTS] Gadget - the gadget ID to update. NewString - the new contents of the gadget.
Returns:
TRUE if the dialogue was updated. FALSE if it wasn't.
This is a complete bodge and should be made part of the DialogOp class - here for compatibility.

Definition at line 3607 of file dialogop.cpp.

03608 {
03609     return Dialog->UpdateStringGadgetValue(Gadget, NewString);
03610 }


Generated on Sat Nov 10 03:49:08 2007 for Camelot by  doxygen 1.4.4