HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PRM_TemplateBuilder.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: PRM_TemplateBuilder.h (Parameter Library)
7  *
8  * COMMENTS:
9  * Constructs a PRM_Template * list from an embedded .ds file.
10  *
11  */
12 
13 #ifndef __PRM_TemplateBuilder__
14 #define __PRM_TemplateBuilder__
15 
16 #include "PRM_API.h"
17 #include <UT/UT_StringHolder.h>
18 #include "PRM_Type.h"
19 
20 class PRM_Template;
21 class PRM_ScriptPage;
22 
24 {
25 public:
26  PRM_TemplateBuilder(const UT_StringHolder &name, const char *dstext);
28 
29  PRM_Template *templates() { return myTemplate; }
30 
31  void setCallback(const UT_StringRef &name, PRM_Callback callback);
32  void setChoiceListPtr(const UT_StringRef &name, PRM_ChoiceList *list);
33 
34  /// Returns if it was just built, used for any successive one
35  /// time initialization. Calling this function will mark it as
36  /// built.
37  bool justBuilt();
38 
39 protected:
45 };
46 
47 #endif
PRM_ScriptPage * myPage
UT_StringHolder myName
GLuint const GLchar * name
Definition: glcorearb.h:785
PRM_Template * myTemplate
PRM_Template * templates()
#define PRM_API
Definition: PRM_API.h:10