Theme.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #pragma once
  2. #include "tinyxml\Tinyxml.h"
  3. #include "tinyxml\tinystr.h"
  4. class CTheme
  5. {
  6. public:
  7. CTheme(void);
  8. ~CTheme(void);
  9. bool Load(CString csTheme, bool bHeaderOnly = false, bool bCheckLastWriteTime = false);
  10. COLORREF CaptionLeft() const { return m_CaptionLeft; }
  11. COLORREF CaptionRight() const { return m_CaptionRight; }
  12. COLORREF CaptionLeftTopMost() const { return m_CaptionLeftTopMost; }
  13. COLORREF CaptionRightTopMost() const { return m_CaptionRightTopMost; }
  14. COLORREF CaptionLeftNotConnected() const { return m_CaptionLeftNotConnected; }
  15. COLORREF CaptionRightNotConnected() const { return m_CaptionRightNotConnected; }
  16. COLORREF CaptionTextColor() const { return m_CaptionTextColor; }
  17. COLORREF ListBoxOddRowsBG() const { return m_ListBoxOddRowsBG; }
  18. COLORREF ListBoxEvenRowsBG() const { return m_ListBoxEvenRowsBG; }
  19. COLORREF ListBoxOddRowsText() const { return m_ListBoxOddRowsText; }
  20. COLORREF ListBoxEvenRowsText() const { return m_ListBoxEvenRowsText; }
  21. COLORREF ListBoxSelectedBG() const { return m_ListBoxSelectedBG; }
  22. COLORREF ListBoxSelectedNoFocusBG() const { return m_ListBoxSelectedNoFocusBG; }
  23. COLORREF ListBoxSelectedText() const { return m_ListBoxSelectedText; }
  24. COLORREF ListBoxSelectedNoFocusText() const { return m_ListBoxSelectedNoFocusText; }
  25. COLORREF ClipPastedColor() const { return m_clipPastedColor; }
  26. CString Notes() const { return m_csNotes; }
  27. CString Author() const { return m_csAuthor; }
  28. long FileVersion() const { return m_lFileVersion; }
  29. CString LastError() const { return m_csLastError; }
  30. protected:
  31. bool LoadElement(TiXmlElement *pParent, CStringA csNode, COLORREF &Color);
  32. protected:
  33. COLORREF m_CaptionLeft;
  34. COLORREF m_CaptionRight;
  35. COLORREF m_CaptionLeftTopMost;
  36. COLORREF m_CaptionRightTopMost;
  37. COLORREF m_CaptionLeftNotConnected;
  38. COLORREF m_CaptionRightNotConnected;
  39. COLORREF m_CaptionTextColor;
  40. COLORREF m_ListBoxOddRowsBG;
  41. COLORREF m_ListBoxEvenRowsBG;
  42. COLORREF m_ListBoxOddRowsText;
  43. COLORREF m_ListBoxEvenRowsText;
  44. COLORREF m_ListBoxSelectedBG;
  45. COLORREF m_ListBoxSelectedNoFocusBG;
  46. COLORREF m_ListBoxSelectedText;
  47. COLORREF m_ListBoxSelectedNoFocusText;
  48. COLORREF m_clipPastedColor;
  49. CString m_csLastError;
  50. long m_lFileVersion;
  51. CString m_csAuthor;
  52. CString m_csNotes;
  53. __int64 m_LastWriteTime;
  54. CString m_lastTheme;
  55. };