SC_wizard_colorpicker Class Reference

List of all members.

Public Member Functions

 init ()
 main ()
 printContent ()
 frameSet ()
 colorMatrix ()
 colorList ()
 colorImage ()
 getIndex ($im, $x, $y)

Public Attributes

 $P
 $colorValue
 $fieldChangeFunc
 $fieldName
 $formName
 $md5ID
 $showPicker
 $HTMLcolorList = "aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white"
 $pickerImage = ''
 $imageError = ''
 $doc
 $content

Detailed Description

Definition at line 75 of file wizard_colorpicker.php.


Member Function Documentation

SC_wizard_colorpicker::colorImage  ) 
 

Creates a color image selector

Returns:
void

Definition at line 383 of file wizard_colorpicker.php.

References $LANG, t3lib_div::_POST(), input, and style.

SC_wizard_colorpicker::colorList  ) 
 

Creates a selector box with all HTML color names.

Returns:
void

Definition at line 353 of file wizard_colorpicker.php.

References $LANG, select, selected, style, and value.

SC_wizard_colorpicker::colorMatrix  ) 
 

Creates a color matrix table

Returns:
void

Definition at line 304 of file wizard_colorpicker.php.

References $i, $LANG, $table, color, nbsp, onclick, style, table, and td.

SC_wizard_colorpicker::frameSet  ) 
 

Returnes a frameset so our JavaScript Reference isn't lost Took some brains to figure this one out ;-) If Peter wouldn't have been I would've gone insane...

Returns:
void

Definition at line 245 of file wizard_colorpicker.php.

References $GLOBALS, and $LANG.

SC_wizard_colorpicker::getIndex im,
x,
y
 

Gets the HTML (Hex) Color Code for the selected pixel of an image This method handles the correct imageResource no matter what format

Parameters:
pointer Valid ImageResource returned by t3lib_stdgraphic::imageCreateFromFile
integer X-Coordinate of the pixel that should be checked
integer Y-Coordinate of the pixel that should be checked
Returns:
string HEX RGB value for color
See also:
colorImage()

Definition at line 416 of file wizard_colorpicker.php.

References $index, index, and value.

SC_wizard_colorpicker::init  ) 
 

Initialises the Class

Returns:
void

Definition at line 103 of file wizard_colorpicker.php.

References $BACK_PATH, $LANG, t3lib_div::_GP(), t3lib_div::getFileAbsFileName(), and t3lib_div::makeInstance().

SC_wizard_colorpicker::main  ) 
 

Main Method, rendering either colorpicker or frameset depending on ->showPicker

Returns:
void

Definition at line 182 of file wizard_colorpicker.php.

References $content, $LANG, t3lib_div::_GP(), input, nbsp, style, table, td, and value.

SC_wizard_colorpicker::printContent  ) 
 

Returnes the sourcecode to the browser

Returns:
void

Definition at line 234 of file wizard_colorpicker.php.


Member Data Documentation

SC_wizard_colorpicker::$colorValue
 

Definition at line 79 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$content
 

Definition at line 93 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$doc
 

Definition at line 92 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$fieldChangeFunc
 

Definition at line 80 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$fieldName
 

Definition at line 81 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$formName
 

Definition at line 82 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$HTMLcolorList = "aqua,black,blue,fuchsia,gray,green,lime,maroon,navy,olive,purple,red,silver,teal,yellow,white"
 

Definition at line 87 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$imageError = ''
 

Definition at line 91 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$md5ID
 

Definition at line 83 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$P
 

Definition at line 78 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$pickerImage = ''
 

Definition at line 90 of file wizard_colorpicker.php.

SC_wizard_colorpicker::$showPicker
 

Definition at line 84 of file wizard_colorpicker.php.


The documentation for this class was generated from the following file:
Generated on Wed Aug 10 07:57:24 2005 for TYPO3 3.8.0 by  doxygen 1.4.3-20050530