acuiButton.h 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. // DESCRIPTION:
  12. //
  13. // Declarations for various button classes
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #ifndef _acuiButton_h
  17. #define _acuiButton_h
  18. #if _MSC_VER >= 1000
  19. #pragma once
  20. #endif // _MSC_VER >= 1000
  21. /////////////////////////////////////////////////////////////////////////////
  22. // Owner-draw Button
  23. class ACUI_PORT CAcUiOwnerDrawButton : public CAdUiOwnerDrawButton {
  24. DECLARE_DYNAMIC(CAcUiOwnerDrawButton)
  25. public:
  26. CAcUiOwnerDrawButton ();
  27. virtual ~CAcUiOwnerDrawButton ();
  28. // ClassWizard-controlled
  29. public:
  30. //{{AFX_VIRTUAL(CAcUiOwnerDrawButton)
  31. //}}AFX_VIRTUAL
  32. protected:
  33. //{{AFX_MSG(CAcUiOwnerDrawButton)
  34. //}}AFX_MSG
  35. DECLARE_MESSAGE_MAP()
  36. };
  37. /////////////////////////////////////////////////////////////////////////////
  38. // Bitmap Button
  39. class ACUI_PORT CAcUiBitmapButton : public CAdUiBitmapButton {
  40. DECLARE_DYNAMIC(CAcUiBitmapButton)
  41. public:
  42. CAcUiBitmapButton ();
  43. virtual ~CAcUiBitmapButton ();
  44. // ClassWizard-controlled
  45. public:
  46. //{{AFX_VIRTUAL(CAcUiBitmapButton)
  47. //}}AFX_VIRTUAL
  48. protected:
  49. //{{AFX_MSG(CAcUiBitmapButton)
  50. //}}AFX_MSG
  51. DECLARE_MESSAGE_MAP()
  52. };
  53. /////////////////////////////////////////////////////////////////////////////
  54. // Static-Style Bitmap Button
  55. class ACUI_PORT CAcUiBitmapStatic : public CAdUiBitmapStatic {
  56. DECLARE_DYNAMIC(CAcUiBitmapStatic)
  57. public:
  58. CAcUiBitmapStatic ();
  59. virtual ~CAcUiBitmapStatic ();
  60. // ClassWizard-controlled
  61. public:
  62. //{{AFX_VIRTUAL(CAcUiBitmapStatic)
  63. //}}AFX_VIRTUAL
  64. protected:
  65. //{{AFX_MSG(CAcUiBitmapStatic)
  66. //}}AFX_MSG
  67. DECLARE_MESSAGE_MAP()
  68. };
  69. /////////////////////////////////////////////////////////////////////////////
  70. // Drag&Drop Site
  71. class ACUI_PORT CAcUiDropSite : public CAdUiDropSite {
  72. DECLARE_DYNAMIC(CAcUiDropSite)
  73. public:
  74. CAcUiDropSite ();
  75. virtual ~CAcUiDropSite ();
  76. // ClassWizard-controlled
  77. public:
  78. //{{AFX_VIRTUAL(CAcUiDropSite)
  79. //}}AFX_VIRTUAL
  80. protected:
  81. //{{AFX_MSG(CAcUiDropSite)
  82. //}}AFX_MSG
  83. DECLARE_MESSAGE_MAP()
  84. };
  85. /////////////////////////////////////////////////////////////////////////////
  86. // "Pick-a-point" Button
  87. class ACUI_PORT CAcUiPickButton : public CAdUiBitmapButton {
  88. DECLARE_DYNAMIC(CAcUiPickButton)
  89. public:
  90. CAcUiPickButton ();
  91. virtual ~CAcUiPickButton ();
  92. // ClassWizard-controlled
  93. public:
  94. //{{AFX_VIRTUAL(CAcUiPickButton)
  95. //}}AFX_VIRTUAL
  96. protected:
  97. //{{AFX_MSG(CAcUiPickButton)
  98. //}}AFX_MSG
  99. DECLARE_MESSAGE_MAP()
  100. };
  101. /////////////////////////////////////////////////////////////////////////////
  102. // "Make-A-Selection" Button
  103. class ACUI_PORT CAcUiSelectButton : public CAcUiPickButton {
  104. DECLARE_DYNAMIC(CAcUiSelectButton)
  105. public:
  106. CAcUiSelectButton ();
  107. virtual ~CAcUiSelectButton ();
  108. // ClassWizard-controlled
  109. public:
  110. //{{AFX_VIRTUAL(CAcUiSelectButton)
  111. //}}AFX_VIRTUAL
  112. protected:
  113. //{{AFX_MSG(CAcUiSelectButton)
  114. //}}AFX_MSG
  115. DECLARE_MESSAGE_MAP()
  116. };
  117. /// <summary>
  118. /// This class is used to create a bitmap button that uses quick select icon as default icon.
  119. /// </summary>
  120. class ACUI_PORT CAcUiQuickSelectButton : public CAdUiBitmapButton {
  121. DECLARE_DYNAMIC(CAcUiQuickSelectButton)
  122. public:
  123. CAcUiQuickSelectButton ();
  124. virtual ~CAcUiQuickSelectButton ();
  125. // ClassWizard-controlled
  126. public:
  127. //{{AFX_VIRTUAL(CAcUiQuickSelectButton)
  128. //}}AFX_VIRTUAL
  129. protected:
  130. //{{AFX_MSG(CAcUiQuickSelectButton)
  131. //}}AFX_MSG
  132. DECLARE_MESSAGE_MAP()
  133. };
  134. /////////////////////////////////////////////////////////////////////////////
  135. // Tool-Style Button
  136. class ACUI_PORT CAcUiToolButton : public CAdUiToolButton {
  137. DECLARE_DYNAMIC(CAcUiToolButton)
  138. public:
  139. CAcUiToolButton ();
  140. virtual ~CAcUiToolButton ();
  141. // ClassWizard-controlled
  142. public:
  143. //{{AFX_VIRTUAL(CAcUiToolButton)
  144. //}}AFX_VIRTUAL
  145. protected:
  146. //{{AFX_MSG(CAcUiToolButton)
  147. //}}AFX_MSG
  148. DECLARE_MESSAGE_MAP()
  149. };
  150. /////////////////////////////////////////////////////////////////////////////
  151. //{{AFX_INSERT_LOCATION}}
  152. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  153. #endif
  154. //////////////////////////////////////////////////////////////////////////////