rcmenu.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: /Commando/Code/Tools/max2w3d/rcmenu.h 3 1/14/98 10:23a Greg_h $ */
  19. /***********************************************************************************************
  20. *** Confidential - Westwood Studios ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Commando Tools - W3D export *
  24. * *
  25. * $Archive:: /Commando/Code/Tools/max2w3d/rcmenu.h $*
  26. * *
  27. * $Author:: Greg_h $*
  28. * *
  29. * $Modtime:: 1/13/98 3:44p $*
  30. * *
  31. * $Revision:: 3 $*
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #ifndef RCMENU_H
  37. #define RCMENU_H
  38. #include "Max.h"
  39. #include "dllmain.h"
  40. #include "resource.h"
  41. #include "istdplug.h"
  42. class W3DUtilityClass;
  43. /**********************************************************************************************
  44. **
  45. ** RCMenuClass - W3D Utility's right-click menu.
  46. **
  47. **********************************************************************************************/
  48. class RCMenuClass : public RightClickMenu
  49. {
  50. public:
  51. RCMenuClass() {Installed=FALSE;}
  52. ~RCMenuClass() {}
  53. void Bind(Interface * ipi, W3DUtilityClass * eni) { InterfacePtr = ipi; UtilityPtr = eni; }
  54. void Init(RightClickMenuManager* manager, HWND hWnd, IPoint2 m);
  55. void Selected(UINT id);
  56. void Toggle_Hierarchy(INode * node);
  57. void Toggle_Geometry(INode * node);
  58. public:
  59. BOOL Installed;
  60. private:
  61. Interface * InterfacePtr;
  62. W3DUtilityClass * UtilityPtr;
  63. INode * SelNode;
  64. enum {
  65. MENU_SEPARATOR = 0,
  66. MENU_TOGGLE_HIERARCHY,
  67. MENU_TOGGLE_GEOMETRY,
  68. MENU_NODE_NAME,
  69. MENU_NODE_POINTER
  70. };
  71. };
  72. extern RCMenuClass TheRCMenu;
  73. #endif