AcTcUiToolPaletteGroup.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: AcTcUiToolPaletteGroup.h
  12. //
  13. // Description: Header for CAcTcUiToolPaletteGroup class.
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. #include "AcTcUiToolPalette.h"
  18. class CAcTcUiImpToolPaletteGroup;
  19. class CAcTcUiImpToolPaletteSet;
  20. class ACTCUI_PORT CAcTcUiToolPaletteGroup : public CObject
  21. {
  22. DECLARE_DYNAMIC(CAcTcUiToolPaletteGroup);
  23. public:
  24. CAcTcUiToolPaletteGroup();
  25. virtual ~CAcTcUiToolPaletteGroup();
  26. BOOL Reset (void);
  27. CString GetName (void) const;
  28. BOOL SetName (LPCTSTR pszName);
  29. CString GetDescription (void) const;
  30. BOOL SetDescription (LPCTSTR pszDesc);
  31. BOOL IsItemPalette (int iIndex) const;
  32. int AddItem (CAcTcUiToolPalette* pPalette);
  33. int AddItem (CAcTcUiToolPaletteGroup* pGroup);
  34. int InsertItem (int iIndex,
  35. CAcTcUiToolPalette* pPalette);
  36. int InsertItem (int iIndex,
  37. CAcTcUiToolPaletteGroup* pGroup);
  38. int GetItemCount (void) const;
  39. BOOL GetItem (int iIndex,
  40. CAcTcUiToolPalette*& pPalette) const;
  41. BOOL GetItem (int iIndex,
  42. CAcTcUiToolPaletteGroup*& pGroup) const;
  43. BOOL DeleteItem (CAcTcUiToolPalette* pPalette,
  44. BOOL bRecursive = FALSE);
  45. BOOL DeleteItem (CAcTcUiToolPaletteGroup* pGroup);
  46. BOOL RemoveItem (CAcTcUiToolPalette* pPalette,
  47. BOOL bRecursive = FALSE);
  48. BOOL RemoveItem (CAcTcUiToolPaletteGroup* pGroup);
  49. BOOL DeleteAllPalettes (void);
  50. BOOL DeleteAllItems (void);
  51. int GetActivePalette (void) const;
  52. BOOL SetActivePalette (int nIndex);
  53. BOOL GetCustomData (IUnknown** ppUnknown);
  54. virtual BOOL Load (IUnknown* pUnk);
  55. virtual BOOL Save (IUnknown* pUnk);
  56. virtual BOOL Clone (CAcTcUiToolPaletteGroup*& pClone);
  57. CAcTcUiToolPaletteGroup* FindGroup (LPCTSTR pszGroup,
  58. BOOL bRecursive = TRUE);
  59. CAcTcUiToolPalette* FindPalette (LPCTSTR pszPalName,
  60. CAcTcUiToolPaletteGroup** ppGroup,
  61. BOOL bRecursive = TRUE) const;
  62. protected:
  63. void * mpImpObj;
  64. private:
  65. friend class AcTcUiSystemInternals;
  66. };