Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
rcmenu.h
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(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
19
/* $Header: /Commando/Code/Tools/max2w3d/rcmenu.h 3 1/14/98 10:23a Greg_h $ */
20
/***********************************************************************************************
21
*** Confidential - Westwood Studios ***
22
***********************************************************************************************
23
* *
24
* Project Name : Commando Tools - W3D export *
25
* *
26
* $Archive:: /Commando/Code/Tools/max2w3d/rcmenu.h $*
27
* *
28
* $Author:: Greg_h $*
29
* *
30
* $Modtime:: 1/13/98 3:44p $*
31
* *
32
* $Revision:: 3 $*
33
* *
34
*---------------------------------------------------------------------------------------------*
35
* Functions: *
36
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
37
38
#ifndef RCMENU_H
39
#define RCMENU_H
40
41
#include "Max.h"
42
#include "
dllmain.h
"
43
#include "
resource.h
"
44
#include "istdplug.h"
45
46
class
W3DUtilityClass
;
47
48
/**********************************************************************************************
49
**
50
** RCMenuClass - W3D Utility's right-click menu.
51
**
52
**********************************************************************************************/
53
class
RCMenuClass
:
public
RightClickMenu
54
{
55
56
public
:
57
58
RCMenuClass
() {
Installed
=
FALSE
;}
59
~RCMenuClass
() {}
60
61
void
Bind
(Interface * ipi,
W3DUtilityClass
* eni) { InterfacePtr = ipi; UtilityPtr = eni; }
62
63
void
Init
(RightClickMenuManager* manager, HWND hWnd, IPoint2 m);
64
void
Selected
(
UINT
id
);
65
void
Toggle_Hierarchy
(INode * node);
66
void
Toggle_Geometry
(INode * node);
67
68
public
:
69
70
BOOL
Installed
;
71
72
private
:
73
74
Interface * InterfacePtr;
75
W3DUtilityClass
* UtilityPtr;
76
INode * SelNode;
77
78
enum
{
79
MENU_SEPARATOR = 0,
80
MENU_TOGGLE_HIERARCHY,
81
MENU_TOGGLE_GEOMETRY,
82
MENU_NODE_NAME,
83
MENU_NODE_POINTER
84
};
85
};
86
87
extern
RCMenuClass
TheRCMenu
;
88
89
#endif
FALSE
#define FALSE
Definition
BaseType.h:113
UINT
unsigned int UINT
Definition
bittype.h:63
resource.h
BOOL
#define BOOL
Definition
Wnd_File.h:57
RCMenuClass
Definition
rcmenu.h:54
RCMenuClass::Installed
BOOL Installed
Definition
rcmenu.h:70
RCMenuClass::Toggle_Hierarchy
void Toggle_Hierarchy(INode *node)
Definition
rcmenu.cpp:152
RCMenuClass::RCMenuClass
RCMenuClass()
Definition
rcmenu.h:58
RCMenuClass::Init
void Init(RightClickMenuManager *manager, HWND hWnd, IPoint2 m)
Definition
rcmenu.cpp:62
RCMenuClass::Toggle_Geometry
void Toggle_Geometry(INode *node)
Definition
rcmenu.cpp:177
RCMenuClass::~RCMenuClass
~RCMenuClass()
Definition
rcmenu.h:59
RCMenuClass::Bind
void Bind(Interface *ipi, W3DUtilityClass *eni)
Definition
rcmenu.h:61
RCMenuClass::Selected
void Selected(UINT id)
Definition
rcmenu.cpp:126
W3DUtilityClass
Definition
w3dutil.cpp:151
dllmain.h
TheRCMenu
RCMenuClass TheRCMenu
Definition
rcmenu.cpp:48
Code
Tools
WW3D
max2w3d
rcmenu.h
Generated by
1.13.2