CGradientColorPanel Class Reference

Search Toolkit Book for CGradientColorPanel

#include <gradient_panel.hpp>

Collaboration diagram for CGradientColorPanel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 44 of file gradient_panel.hpp.

Public Member Functions

 CGradientColorPanel (const stParams &params, wxWindow *parent, wxWindowID id=wxID_ANY)
void GetParams (stParams &params) const

Protected Member Functions

void CreateControls ()
void OnSliderUpdated (wxCommandEvent &event)
void OnSwapClick (wxCommandEvent &event)
void OnPaint (wxPaintEvent &event)
void OnColourPickChanged (wxColourPickerEvent &event)

Protected Attributes

stParams m_Params
wxStaticText * m_ItemStepsTxt
wxWindow * m_GradWindow

Classes

struct  stParams


Constructor & Destructor Documentation

CGradientColorPanel::CGradientColorPanel const stParams params,
wxWindow *  parent,
wxWindowID  id = wxID_ANY
 

Definition at line 64 of file gradient_panel.cpp.


Member Function Documentation

void CGradientColorPanel::CreateControls  )  [protected]
 

Definition at line 71 of file gradient_panel.cpp.

References _T, ID_COLOR_PICK1, ID_GRAD_WINDOW, ID_SLIDER, ID_STEPS_TXT, CGradientColorPanel::stParams::m_FirstColor, m_GradWindow, m_ItemStepsTxt, CGradientColorPanel::stParams::m_MinLabel, m_Params, and ToWxString().

void CGradientColorPanel::GetParams stParams params  )  const
 

Definition at line 192 of file gradient_panel.cpp.

References m_Params.

Referenced by CMatrixScoringPanel::OnApply(), CColumnScoringPanel::OnApply(), CSimpleScoringPanel::OnApply(), and CQualityScoringPanel::OnApply().

void CGradientColorPanel::OnColourPickChanged wxColourPickerEvent &  event  )  [protected]
 

Definition at line 186 of file gradient_panel.cpp.

References m_GradWindow.

void CGradientColorPanel::OnPaint wxPaintEvent &  event  )  [protected]
 

Definition at line 197 of file gradient_panel.cpp.

References color, CRgbaColor::Interpolate(), CGradientColorPanel::stParams::m_FirstColor, m_GradWindow, CGradientColorPanel::stParams::m_LastColor, CGradientColorPanel::stParams::m_MidColor, m_Params, CGradientColorPanel::stParams::m_Steps, and CGradientColorPanel::stParams::m_ThreeColors.

void CGradientColorPanel::OnSliderUpdated wxCommandEvent &  event  )  [protected]
 

Definition at line 167 of file gradient_panel.cpp.

References _T, m_GradWindow, m_ItemStepsTxt, m_Params, and CGradientColorPanel::stParams::m_Steps.

void CGradientColorPanel::OnSwapClick wxCommandEvent &  event  )  [protected]
 

Definition at line 176 of file gradient_panel.cpp.

References color, CGradientColorPanel::stParams::m_FirstColor, m_GradWindow, CGradientColorPanel::stParams::m_LastColor, and m_Params.


Member Data Documentation

wxWindow* CGradientColorPanel::m_GradWindow [protected]
 

Definition at line 74 of file gradient_panel.hpp.

Referenced by CreateControls(), OnColourPickChanged(), OnPaint(), OnSliderUpdated(), and OnSwapClick().

wxStaticText* CGradientColorPanel::m_ItemStepsTxt [protected]
 

Definition at line 73 of file gradient_panel.hpp.

Referenced by CreateControls(), and OnSliderUpdated().

stParams CGradientColorPanel::m_Params [protected]
 

Definition at line 72 of file gradient_panel.hpp.

Referenced by CreateControls(), GetParams(), OnPaint(), OnSliderUpdated(), and OnSwapClick().


The documentation for this class was generated from the following files:
Generated on Wed Dec 9 07:56:24 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Wed Dec 09 08:19:19 2009 by modify_doxy.py rev. 173732