Back to index

nux  3.0.0
Public Member Functions | Private Attributes | Friends
nux::ColorDialogProxy Class Reference

#include <ColorEditor.h>

Collaboration diagram for nux::ColorDialogProxy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ColorDialogProxy (bool ModalWindow)
 ~ColorDialogProxy ()
void RecvDialogOk (ColorEditor *coloreditor)
void RecvDialogCancel (ColorEditor *coloreditor)
void RecvDialogChange (ColorEditor *coloreditor)
void Start ()
bool IsActive ()
void StopThreadMonitoring ()
void SetColor (Color color)
Color GetColor ()
void SetPreviousColor (Color color)
Color GetPreviousColor ()
void SetColorModel (color::Model color_model)
color::Model GetColorModel ()
void SetColorChannel (color::Channel color_model)
color::Channel GetColorChannel ()

Private Attributes

bool m_bDialogChange
bool m_bDialogRunning
unsigned int m_DialogThreadID
Color m_RGBColor
Color m_PreviousRGBColor
color::Model m_ColorModel
color::Channel color_channel_
bool m_ModalWindow
NThreadm_Thread

Friends

class ColorPreview

Detailed Description

Definition at line 48 of file ColorEditor.h.


Constructor & Destructor Documentation

Definition at line 88 of file ColorEditor.cpp.

  {
    m_bDialogChange     = false;
    m_bDialogRunning    = false;
    m_ModalWindow       = ModalWindow;
    m_RGBColor          = Color(1.0f, 1.0f, 1.0f, 1.0f);
    m_ColorModel        = color::RGB;
    color_channel_      = color::RED;
  }

Definition at line 98 of file ColorEditor.cpp.

  {
  }

Member Function Documentation

Definition at line 161 of file ColorEditor.cpp.

  {
    return m_RGBColor;
  }

Here is the caller graph for this function:

Definition at line 191 of file ColorEditor.cpp.

  {
    return color_channel_;
  }

Here is the caller graph for this function:

Definition at line 181 of file ColorEditor.cpp.

  {
    return m_ColorModel;
  }

Here is the caller graph for this function:

Definition at line 171 of file ColorEditor.cpp.

  {
    return m_PreviousRGBColor;
  }

Definition at line 121 of file ColorEditor.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 134 of file ColorEditor.cpp.

Definition at line 141 of file ColorEditor.cpp.

  {
    m_RGBColor = coloreditor->GetRGBColor();
    m_bDialogChange = true;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 126 of file ColorEditor.cpp.

  {
    m_RGBColor = coloreditor->GetRGBColor();
    m_PreviousRGBColor = m_RGBColor;
    m_bDialogChange = true;
    m_bDialogRunning = false;
  }

Here is the call graph for this function:

void nux::ColorDialogProxy::SetColor ( Color  color)

Definition at line 156 of file ColorEditor.cpp.

  {
    m_RGBColor = color;
  }

Here is the caller graph for this function:

Definition at line 186 of file ColorEditor.cpp.

  {
    color_channel_ = color_channel;
  }

Definition at line 176 of file ColorEditor.cpp.

  {
    m_ColorModel = color_model;
  }

Definition at line 166 of file ColorEditor.cpp.

  {
    m_PreviousRGBColor = color;
  }

Definition at line 102 of file ColorEditor.cpp.

  {
    m_PreviousRGBColor = m_RGBColor;

    int Width = 290;
    int Height = 230;
    m_Thread = CreateModalWindowThread(WINDOWSTYLE_TOOL, "Color Editor", Width, Height, GetWindowThread(),
                                        ThreadColorEditorDialog,
                                        this);

    if (m_Thread)
    {
      //todo(jaytaoko): m_DialogThreadID = m_Thread->GetThreadId();
      m_Thread->Start(0);
    }

    m_bDialogRunning = true;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 147 of file ColorEditor.cpp.


Friends And Related Function Documentation

friend class ColorPreview [friend]

Definition at line 82 of file ColorEditor.h.


Member Data Documentation

Definition at line 78 of file ColorEditor.h.

Definition at line 72 of file ColorEditor.h.

Definition at line 73 of file ColorEditor.h.

Definition at line 77 of file ColorEditor.h.

Definition at line 74 of file ColorEditor.h.

Definition at line 79 of file ColorEditor.h.

Definition at line 76 of file ColorEditor.h.

Definition at line 75 of file ColorEditor.h.

Definition at line 80 of file ColorEditor.h.


The documentation for this class was generated from the following files: