65ccb99252436bf1acff11275452cfea901e7fcf
[reactos.git] / base / applications / mspaint / palettemodel.h
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 /* CLASSES **********************************************************/
10
11 class PaletteModel
12 {
13 private:
14 int m_colors[28];
15 int m_nSelectedPalette;
16 int m_fgColor;
17 int m_bgColor;
18
19 void NotifyColorChanged();
20 void NotifyPaletteChanged();
21
22 public:
23 PaletteModel();
24 int SelectedPalette();
25 void SelectPalette(int nPalette);
26 int GetColor(int nIndex);
27 void SetColor(int nIndex, int newColor);
28 int GetFgColor();
29 void SetFgColor(int newColor);
30 int GetBgColor();
31 void SetBgColor(int newColor);
32 };