AcTcUiScheme.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // Name: AcTcUiScheme.h
  12. //
  13. // Description:
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #ifndef __ACTCUISCHEME_H__
  17. #define __ACTCUISCHEME_H__
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. #include "AcTcUiToolPaletteSet.h"
  22. #include "AcTcUi.h"
  23. class AcTcUiSystemInternals;
  24. class ACTCUI_PORT CAcTcUiScheme : public CObject
  25. {
  26. public:
  27. enum RefreshScope {
  28. kAllPalettes = (0x1 << 0),
  29. kRefreshEnabledPalettes = (0x1 << 1),
  30. kAutoRefreshEnabledPalettes = (0x1 << 2),
  31. };
  32. enum ShowOption {
  33. kShow = (0x1 << 0),
  34. kHide = (0x1 << 1),
  35. kSaveState = (0x1 << 2),
  36. kRestoreState = (0x1 << 3),
  37. };
  38. CAcTcUiScheme(AcTcScheme* pScheme);
  39. virtual ~CAcTcUiScheme();
  40. BOOL Load (IUnknown* pUnknown);
  41. BOOL Save (IUnknown* pUnknown);
  42. BOOL Unload (void);
  43. CAcTcUiToolPaletteSet* CreatePaletteSet (LPCTSTR pszPalSetName);
  44. CAcTcUiToolPaletteSet* GetPaletteSet (void);
  45. BOOL FindPalette (const AcTcCatalogItem* pItem,
  46. CAcTcUiToolPalette** ppToolPalette) const;
  47. BOOL FindPalette (const AcTcCatalogItem* pItem,
  48. CAcTcUiToolPalette** ppToolPalette,
  49. CAcTcUiToolPaletteSet** ppToolPaletteSet) const;
  50. BOOL FindPalette (const GUID& itemId,
  51. CAcTcUiToolPalette** ppToolPalette) const;
  52. BOOL FindPalette (const GUID& itemId,
  53. CAcTcUiToolPalette** ppToolPalette,
  54. CAcTcUiToolPaletteSet** ppToolPaletteSet) const;
  55. BOOL Export (LPCTSTR pszFile);
  56. BOOL Export (LPCTSTR pszFile,
  57. const AcTcUiToolPaletteArray* palettes);
  58. BOOL Import (LPCTSTR pszFile);
  59. BOOL Refresh (RefreshScope nScope);
  60. BOOL Refresh (RefreshScope nScope,
  61. DWORD dwRefreshFlag);
  62. BOOL Show (ShowOption nOption,
  63. LONG_PTR lKey);
  64. protected:
  65. void * mpImpObj;
  66. private:
  67. friend class AcTcUiSystemInternals;
  68. };
  69. #endif //__ACTCUISCHEME_H__