ColourContextWebRGBT Class Reference

This class inherits from class ColourContextRGBT, and although (at the moment) does not add any new functionality - provides us with an appropriate way of allowing us to edit RGBT in hexadecimal (i.e. rrggbb or 0xrrggbb web format). Reasons for this are: 1) so that I did NOT have to keep copying and pasting code for all the places that a colour model combobox appears. 2) allow us to integrate correctly with the edit dialog (thereby not doing 2). 3) make the addition of subsequent ColourContexts easier (since you won't have to worry about this class at all); and 4) cause I felft like it. More...

#include <colcontx.h>

Inheritance diagram for ColourContextWebRGBT:

ColourContextRGBT ColourContext ListItem CCObject SimpleCCObject List of all members.

Public Member Functions

 ColourContextWebRGBT (View *Scope, double GammaValue=1.0)
 Constructor for an RGBT Web Colour context.
virtual void GetModelName (StringBase *Result)
 Returns the name of this context's colour model.

Detailed Description

This class inherits from class ColourContextRGBT, and although (at the moment) does not add any new functionality - provides us with an appropriate way of allowing us to edit RGBT in hexadecimal (i.e. rrggbb or 0xrrggbb web format). Reasons for this are: 1) so that I did NOT have to keep copying and pasting code for all the places that a colour model combobox appears. 2) allow us to integrate correctly with the edit dialog (thereby not doing 2). 3) make the addition of subsequent ColourContexts easier (since you won't have to worry about this class at all); and 4) cause I felft like it.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
6/11/99
See also:
Colour; ColourModel; ColourContext; ColourContextRGBT::ColourContextRGBT Documentation: HowToUse.doc

Definition at line 977 of file colcontx.h.


Constructor & Destructor Documentation

ColourContextWebRGBT::ColourContextWebRGBT View Scope,
double  GammaValue = 1.0
 

Constructor for an RGBT Web Colour context.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
??/11/99
Parameters:
Scope - The view in which this context is to be used, or NULL [INPUTS] GammaValue - A gamma-correction gamma factor. You know... Gamma. Heck, if you don't know what a gamma value is, then don't pass anything in, because it has a good default value.
- [OUTPUTS]
Returns:
-
Notes: Colour Contexts should not be created and used directly. See the notes in the SeeAlso's for instructions on proper care and use.

Returns:
Errors: -
See also:
ColourContext::ColourContext; ColourContextList::AddContext

Definition at line 1194 of file colcontx.cpp.

01195                   : ColourContextRGBT(Scope, GammaValue)
01196 {
01197     ColModel = COLOURMODEL_RGBT;
01198 }


Member Function Documentation

void ColourContextWebRGBT::GetModelName StringBase Result  )  [virtual]
 

Returns the name of this context's colour model.

Author:
Chris_Snook (Xara Group Ltd) <camelotdev@xara.com>
Date:
??/11/99
Parameters:
- [INPUTS]
Result returns continaing a String of the name of the context. [OUTPUTS] This string is guaranteed to fit within a String_32 - this is the minimum size you should allocate. (Most names, in English at least, are shorter than this (10 chars max, e.g. 'RGB' 'HSV' 'Greyscale') so allow at least 10 chars of space in your displays as well)
Returns:
-

Reimplemented from ColourContextRGBT.

Definition at line 1437 of file colcontx.cpp.

01438 {
01439     ENSURE(Result != NULL, "ColourContext::GetModelName called with NULL result pointer!");
01440 
01441     *Result = String_32(_R(IDS_COLMODEL_WEBRGBT));
01442 }


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