#include <bbwxColourSelectorButton.h>
Protected Member Functions | |
virtual void | bbUserConstructor () |
Private Member Functions | |
BBTK_BLACK_BOX_INTERFACE (ColourSelectorButton, bbtk::WxBlackBox) | |
BBTK_DECLARE_INPUT (In, std::string) | |
BBTK_DECLARE_OUTPUT (Out, std::string) | |
BBTK_PROCESS (Process) | |
BBTK_CREATE_WIDGET (CreateWidget) | |
void | Process () |
void | CreateWidget () |
Create wxWidget . | |
Private Attributes | |
wxColourPickerCtrlWidget * | pickerWidget |
Definition at line 90 of file bbwxColourSelectorButton.h.
bbwx::ColourSelectorButton::BBTK_BLACK_BOX_INTERFACE | ( | ColourSelectorButton | , | |
bbtk::WxBlackBox | ||||
) | [private] |
bbwx::ColourSelectorButton::BBTK_DECLARE_INPUT | ( | In | , | |
std::string | ||||
) | [private] |
bbwx::ColourSelectorButton::BBTK_DECLARE_OUTPUT | ( | Out | , | |
std::string | ||||
) | [private] |
bbwx::ColourSelectorButton::BBTK_PROCESS | ( | Process | ) | [private] |
bbwx::ColourSelectorButton::BBTK_CREATE_WIDGET | ( | CreateWidget | ) | [private] |
void bbwx::ColourSelectorButton::Process | ( | ) | [private] |
Definition at line 125 of file bbwxColourSelectorButton.cxx.
References pickerWidget, and bbwx::wxColourPickerCtrlWidget::UpdateBox().
00126 { 00127 bbtkDebugMessageInc("Process",9,"ColourSelectorButton::Process()"<<std::endl); 00128 pickerWidget->UpdateBox(); 00129 bbtkDebugDecTab("Process",9); 00130 }
void bbwx::ColourSelectorButton::CreateWidget | ( | ) | [private] |
Create wxWidget .
Definition at line 138 of file bbwxColourSelectorButton.cxx.
References pickerWidget.
00139 { 00140 bbtkDebugMessage("Process",9,"=> ColourSelectorButton::CreateWidget()"<<std::endl); 00141 00142 float r,g,b; 00143 sscanf( bbGetInputIn().c_str(), "%f %f %f", &r, &g ,&b); 00144 unsigned char cr,cg,cb; 00145 cr = (unsigned char)(255.*r); 00146 cg = (unsigned char)(255.*g); 00147 cb = (unsigned char)(255.*b); 00148 00149 pickerWidget = new wxColourPickerCtrlWidget(this, bbGetWxParent() , cr , cg , cb ); 00150 00151 bbtkDebugMessage("Process",9,"<= ColourSelectorButton::CreateWidget()"<<std::endl); 00152 00153 bbSetOutputWidget( pickerWidget ); 00154 }
void bbwx::ColourSelectorButton::bbUserConstructor | ( | ) | [protected, virtual] |
Definition at line 104 of file bbwxColourSelectorButton.h.
Referenced by CreateWidget(), and Process().