AcTcUiToolPalette.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: AcTcUiToolPalette.h
  12. //
  13. // Description: Header for CAcTcUiToolPalette class. This class
  14. // implements the tool palette window and derives from
  15. // CAdUiPalette. The tool palette window is embedded in
  16. // CAdUiToolPaletteSet window and embeds a tool tray
  17. // window CAcUiCatalogView.
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. #ifndef __ACTCUITOOLPALETTE_H__
  21. #define __ACTCUITOOLPALETTE_H__
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. #include "AcTcUi.h"
  26. #include "aduiPalette.h"
  27. #include "AcTcUiPaletteView.h"
  28. class CAcTcUiImpToolPalette;
  29. class AcTcUiSystemInternals;
  30. class CAcTcUiScheme;
  31. #ifndef _ADESK_MAC_
  32. class ACTCUI_PORT CAcTcUiToolPalette : public CAdUiPalette
  33. {
  34. friend CAcTcUiImpToolPalette;
  35. DECLARE_DYNCREATE(CAcTcUiToolPalette);
  36. public:
  37. CAcTcUiToolPalette();
  38. virtual ~CAcTcUiToolPalette();
  39. CAcTcUiPaletteView* GetView (void);
  40. public:
  41. // Base class overrides
  42. virtual BOOL Create (CAdUiPaletteSet* pParent);
  43. BOOL Create (DWORD dwStyle,
  44. LPCTSTR pszName,
  45. CAdUiPaletteSet* pParent,
  46. DWORD dwPaletteStyle = 0);
  47. virtual BOOL Load (IUnknown* pUnk);
  48. virtual bool CanFrameworkTakeFocus();
  49. virtual BOOL Save (IUnknown* pUnk);
  50. virtual BOOL Import (IUnknown* pUnk, LPCTSTR pszRefPath);
  51. virtual BOOL Export (IUnknown* pUnk, LPCTSTR pszRefPath);
  52. virtual BOOL OnKillActive (void);
  53. virtual BOOL GetMinimumSize (CSize& size);
  54. virtual void OnSetActive (void);
  55. virtual BOOL NameEditValidation (CEdit* pEdit);
  56. virtual BOOL Paste (IDataObject* pDataObject,
  57. int iIndex = -1,
  58. AcTcCatalogItemArray* pNewTools = NULL);
  59. virtual BOOL CanPaste (IDataObject* pDataObject);
  60. BOOL SetView (CAcTcUiPaletteView* pView);
  61. CAcTcUiScheme* GetScheme (void) const;
  62. protected:
  63. //{{AFX_VIRTUAL(CAcTcUiToolPalette)
  64. //}}AFX_VIRTUAL
  65. protected:
  66. //{{AFX_MSG(CAcTcUiToolPalette)
  67. afx_msg void OnSize(UINT nType, int cx, int cy);
  68. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  69. afx_msg void OnSetFocus(CWnd* pOldWnd);
  70. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  71. //}}AFX_MSG
  72. afx_msg LRESULT OnDragEnter(WPARAM wParam, LPARAM lParam);
  73. afx_msg LRESULT OnDragOver(WPARAM wParam, LPARAM lParam);
  74. afx_msg LRESULT OnDragLeave(WPARAM wParam, LPARAM lParam);
  75. afx_msg LRESULT OnDrop(WPARAM wParam, LPARAM lParam);
  76. afx_msg LRESULT OnDropEx(WPARAM wParam, LPARAM lParam);
  77. afx_msg LRESULT OnUpdate(WPARAM wParam, LPARAM lParam);
  78. afx_msg LRESULT OnEndNameEdit(WPARAM, LPARAM);
  79. DECLARE_MESSAGE_MAP()
  80. protected:
  81. void * mpImpObj; // Imp object CAcTcUiImpToolPalette
  82. private:
  83. friend class AcTcUiSystemInternals;
  84. };
  85. #endif // Nodef _ADESK_MAC_
  86. #endif //__ACTCUITOOLPALETTE_H__