1 /* 2 * PROJECT: PAINT for ReactOS 3 * LICENSE: LGPL 4 * FILE: base/applications/mspaint/palettemodel.h 5 * PURPOSE: Keep track of palette data, notify listeners 6 * PROGRAMMERS: Benedikt Freisen 7 */ 8 9 #pragma once 10 11 /* CLASSES **********************************************************/ 12 13 class PaletteModel 14 { 15 private: 16 int m_colors[28]; 17 int m_nSelectedPalette; 18 int m_fgColor; 19 int m_bgColor; 20 21 void NotifyColorChanged(); 22 void NotifyPaletteChanged(); 23 24 public: 25 PaletteModel(); 26 int SelectedPalette(); 27 void SelectPalette(int nPalette); 28 int GetColor(int nIndex); 29 void SetColor(int nIndex, int newColor); 30 int GetFgColor(); 31 void SetFgColor(int newColor); 32 int GetBgColor(); 33 void SetBgColor(int newColor); 34 }; 35