blob: 28e5ffe7222160bcdee4c7e5913a00faceebf127 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: VMT tool; main UI smarts class
//
//=============================================================================
#ifndef VMTTOOL_H
#define VMTTOOL_H
#ifdef _WIN32
#pragma once
#endif
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
class CDmeEditorTypeDictionary;
//-----------------------------------------------------------------------------
// Singleton interfaces
//-----------------------------------------------------------------------------
extern CDmeEditorTypeDictionary *g_pEditorTypeDict;
//-----------------------------------------------------------------------------
// Allows the doc to call back into the VMT editor tool
//-----------------------------------------------------------------------------
class IVMTDocCallback
{
public:
// Called by the doc when the data changes
virtual void OnDocChanged( const char *pReason, int nNotifySource, int nNotifyFlags ) = 0;
// Update the editor dict based on the current material parameters
virtual void AddShaderParameter( const char *pParam, const char *pWidget, const char *pTextType ) = 0;
// Update the editor dict based on the current material parameters
virtual void RemoveShaderParameter( const char *pParam ) = 0;
// Adds flags, tool parameters
virtual void AddFlagParameter( const char *pParam ) = 0;
virtual void AddToolParameter( const char *pParam, const char *pWidget = NULL, const char *pTextType = NULL ) = 0;
virtual void RemoveAllFlagParameters() = 0;
virtual void RemoveAllToolParameters() = 0;
};
#endif // VMTTOOL_H
|