GUIBASE::RCImageHandler Class Reference

advanced toolbar class More...

Inherits BASE::RCLogSimplifier.

Inheritance diagram for GUIBASE::RCImageHandler:

Inheritance graph
[legend]
Collaboration diagram for GUIBASE::RCImageHandler:

Collaboration graph
[legend]
List of all members.

Public Types

enum  TImageStyle {
  IS_NORMAL,
  IS_DISABLED,
  IS_HOT,
  IS_ENTRY_COUNT
}

Static Public Member Functions

static RCSize GetIconSize (HICON hIcon)
static RCSize GetBitmapSize (HBITMAP hBitmap)
static HICON LoadIcon (TInt nRsrcId, HINSTANCE hInstance=NULL)
static HBITMAP LoadBitmap (TInt nRsrcId, HINSTANCE hInstance=NULL)
static void SetDisabledSaturation (TReal nSaturation)
static void SetHotEnlighting (TReal nEnlighting)
static void AddCmdIcon (TInt nCmdId, HICON hIcon, TImageStyle nImageStyle=IS_NORMAL)
static void AddCmdBitmap (TInt nCmdId, HBITMAP hBitmap, TImageStyle nImageStyle=IS_NORMAL)
static void AddCmdIcon (TInt nCmdId, TInt nRsrcId, TImageStyle nImageStyle=IS_NORMAL)
static void AddCmdBitmap (TInt nCmdId, TInt nRsrcId, TImageStyle nImageStyle=IS_NORMAL)
static HICON GetCmdIcon (TInt nCmdId, TImageStyle nImageStyle=IS_NORMAL)
static HBITMAP GetCmdBitmap (TInt nCmdId, TImageStyle nImageStyle=IS_NORMAL)
static HICON DisabledIcon (HICON hSrcIcon)
static HBITMAP DisabledBitmap (HBITMAP hSrcBitmap)
static HICON HotIcon (HICON hSrcIcon)
static HBITMAP HotBitmap (HBITMAP hSrcBitmap)
static HICON BitmapToIcon (HBITMAP hBitmap)
static HBITMAP IconToBitmap (HICON hIcon)
static HICON ResizeIcon (HICON hSrcIcon, const RCSize &DstSize)
static HBITMAP ResizeBitmap (HBITMAP hSrcBitmap, const RCSize &DstSize)
static void MaskBitmap (HBITMAP hSrcBitmap, HBITMAP hMask)
static HBITMAP DIBitmap (HBITMAP hSrcBitmap)

Static Public Attributes

static const RCString LOG_NAME = _T("ImageHandler")

Protected Types

typedef map< TInt, HICON > TIconMap
typedef map< TInt, HBITMAP > TBitmapMap

Protected Member Functions

void AddCmdIconIntern (TInt nCmdId, HICON hIcon, TImageStyle nImageStyle)
void AddCmdBitmapIntern (TInt nCmdId, HBITMAP hBitmap, TImageStyle nImageStyle)
HICON GetCmdIconIntern (TInt nCmdId, TImageStyle nImageStyle, TBool bAllowFromBitmap=true)
HBITMAP GetCmdBitmapIntern (TInt nCmdId, TImageStyle nImageStyle, TBool bAllowFromIcon=true)
HICON DisabledIconIntern (HICON hSrcIcon)
HBITMAP DisabledBitmapIntern (HBITMAP hSrcBitmap)
HICON HotIconIntern (HICON hSrcIcon)
HBITMAP HotBitmapIntern (HBITMAP hSrcBitmap)
HICON BitmapToIconIntern (HBITMAP hBitmap)
HBITMAP IconToBitmapIntern (HICON hIcon)
HICON ResizeIconIntern (HICON hSrcIcon, const RCSize &DstSize)
HBITMAP ResizeBitmapIntern (HBITMAP hSrcBitmap, const RCSize &DstSize)
void MaskBitmapIntern (HBITMAP hSrcBitmap, HBITMAP hMask)
HBITMAP DIBitmapIntern (HBITMAP hSrcBitmap)

Static Protected Member Functions

static RCImageHandlerInstance ()

Protected Attributes

RCMutex m_Access
CDC m_SrcDc
CDC m_DstDc
TIconMap m_aCmdIconMap [IS_ENTRY_COUNT]
TBitmapMap m_aCmdBitmapMap [IS_ENTRY_COUNT]
TReal m_nDisabledSaturation
TReal m_nHotEnlighting

Static Protected Attributes

static const TReal RED_GRAY_WEIGHT = 0.3
static const TReal GREEN_GRAY_WEIGHT = 0.45
static const TReal BLUE_GRAY_WEIGHT = 0.25

Detailed Description

advanced toolbar class

Author:
Patrik Stellmann
...


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 12:47:01 2006 for Simulator Bob by  doxygen 1.4.6-NO