ReactOS 0.4.15-dev-6067-g0b695a6
|
#include <palettemodel.h>
Public Member Functions | |
PaletteModel () | |
PAL_TYPE | SelectedPalette () |
void | SelectPalette (PAL_TYPE nPalette) |
COLORREF | GetColor (UINT nIndex) const |
void | SetColor (UINT nIndex, COLORREF newColor) |
COLORREF | GetFgColor () const |
void | SetFgColor (COLORREF newColor) |
COLORREF | GetBgColor () const |
void | SetBgColor (COLORREF newColor) |
Private Member Functions | |
void | NotifyColorChanged () |
void | NotifyPaletteChanged () |
Private Attributes | |
COLORREF | m_colors [NUM_COLORS] |
PAL_TYPE | m_nSelectedPalette |
COLORREF | m_fgColor |
COLORREF | m_bgColor |
Definition at line 21 of file palettemodel.h.
PaletteModel::PaletteModel | ( | ) |
Definition at line 16 of file palettemodel.cpp.
COLORREF PaletteModel::GetBgColor | ( | ) | const |
Definition at line 85 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), ImageModel::Crop(), CCanvasWindow::DoDraw(), CTextEditWindow::DoFillBack(), ImageModel::ImageModel(), SelectionModel::Landing(), CMainWindow::OnCommand(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnPaint(), CPaletteWindow::OnRButtonDblClk(), and SelectionModel::TakeOff().
Definition at line 57 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDown(), CPaletteWindow::OnPaint(), and CPaletteWindow::OnRButtonDown().
COLORREF PaletteModel::GetFgColor | ( | ) | const |
Definition at line 74 of file palettemodel.cpp.
Referenced by ToolBase::beginEvent(), ImageModel::ImageModel(), CMainWindow::OnCommand(), CCanvasWindow::OnCtlColorEdit(), CTextEditWindow::OnEraseBkGnd(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnPaint().
|
private |
Definition at line 96 of file palettemodel.cpp.
Referenced by SetBgColor(), and SetFgColor().
|
private |
Definition at line 106 of file palettemodel.cpp.
Referenced by SelectPalette(), and SetColor().
PAL_TYPE PaletteModel::SelectedPalette | ( | ) |
Definition at line 23 of file palettemodel.cpp.
Referenced by CMainWindow::OnInitMenuPopup().
Definition at line 28 of file palettemodel.cpp.
Referenced by CMainWindow::OnCommand(), and PaletteModel().
Definition at line 90 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CPaletteWindow::OnRButtonDblClk(), and CPaletteWindow::OnRButtonDown().
Definition at line 65 of file palettemodel.cpp.
Referenced by CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnRButtonDblClk().
Definition at line 79 of file palettemodel.cpp.
Referenced by ColorTool::fetchColor(), CMainWindow::OnCommand(), CPaletteWindow::OnLButtonDblClk(), and CPaletteWindow::OnLButtonDown().
|
private |
Definition at line 27 of file palettemodel.h.
Referenced by GetBgColor(), PaletteModel(), and SetBgColor().
|
private |
Definition at line 24 of file palettemodel.h.
Referenced by GetColor(), SelectPalette(), and SetColor().
|
private |
Definition at line 26 of file palettemodel.h.
Referenced by GetFgColor(), PaletteModel(), and SetFgColor().
|
private |
Definition at line 25 of file palettemodel.h.
Referenced by SelectedPalette(), and SelectPalette().