camresource.cpp File Reference

(r1785/r1702)

#include "camtypes.h"
#include "cartctl.h"
#include "drawctl.h"
#include "colourmat.h"

Go to the source code of this file.

Classes

class  CamResourceFixNameEntry

Defines

#define PRELOAD_BITMAPS   0
#define new   CAM_DEBUG_NEW
#define CRFNH_BUCKETS   1024
 Converts a textual resource identified (_R(IDS_BLOBBY) or whatever) to a numeric resource ID. This ALWAYS succeeds as it creates a new one if there is not one in the current table. Can be called from static initialization phase so BE CAREFUL with this call. No fancy TRACE() stuff etc. please. Converts a ResourceID to a text string, returning a default string on failure Converts a ResourceID to a text string, returning NULL on failure Converts a ResourceID to an object name, returning a default string on failure Converts a ResourceID to an object name, returning NULL on failure.
#define FNOMAP(x, y)   CamResourceFixNameEntry::Find(_T(x),_T(y))
 Renames some of the resources from Windows to wx Style This must match the mapping in rc2xml.pl. This allows wx to do intelligent things with (say) the _R(ID_OK) button on dialogs, but for us to still be able to use _R(IDOK) in Camelot rather than having to write _R(wxID_OK) which is actually what we mean (but that would be unkernel-like. Note this is called at static init time so the obvious route of using a wxHash isn't going to work, sadly.
#define MAX_TAG_LENGTH   1024


Define Documentation

#define CRFNH_BUCKETS   1024
 

Converts a textual resource identified (_R(IDS_BLOBBY) or whatever) to a numeric resource ID. This ALWAYS succeeds as it creates a new one if there is not one in the current table. Can be called from static initialization phase so BE CAREFUL with this call. No fancy TRACE() stuff etc. please. Converts a ResourceID to a text string, returning a default string on failure Converts a ResourceID to a text string, returning NULL on failure Converts a ResourceID to an object name, returning a default string on failure Converts a ResourceID to an object name, returning NULL on failure.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
02/12/2005
Parameters:
Resource - resource ID of object name to look up [INPUTS]
[OUTPUTS] 
Returns:
the object name of the resource, or 0 if not found

Errors: -

See also:
-

Definition at line 247 of file camresource.cpp.

#define FNOMAP x,
 )     CamResourceFixNameEntry::Find(_T(x),_T(y))
 

Renames some of the resources from Windows to wx Style This must match the mapping in rc2xml.pl. This allows wx to do intelligent things with (say) the _R(ID_OK) button on dialogs, but for us to still be able to use _R(IDOK) in Camelot rather than having to write _R(wxID_OK) which is actually what we mean (but that would be unkernel-like. Note this is called at static init time so the obvious route of using a wxHash isn't going to work, sadly.

Author:
Alex_Bligh <alex@alex.org.uk>
Date:
02/12/2005
Parameters:
ObjectName - the object name of the resource to fix up [INPUTS]
[OUTPUTS] 
Returns:
The fixed up object name

Errors: -

See also:
-

Definition at line 352 of file camresource.cpp.

#define MAX_TAG_LENGTH   1024
 

#define new   CAM_DEBUG_NEW
 

Definition at line 118 of file camresource.cpp.

#define PRELOAD_BITMAPS   0
 

Definition at line 113 of file camresource.cpp.


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