13 #ifndef __GR_OptionTable__
14 #define __GR_OptionTable__
36 : myEventType(type), myOption(option), myOptionId(id) {}
53 int getNumTemplates()
const;
61 const char *
label = NULL);
62 bool destroyOption(
const char *
name);
63 int destroyOptionsByPattern(
const char *
pattern);
64 bool renameOption(
const char *old_name,
65 const char *new_name,
bool notify);
66 void optionChanged(
const char *
name);
69 int getOptionId(
const char *
name)
const;
72 if( unique_id >= 0 && unique_id <
73 myOptionsByID.entries() )
74 return myOptionsByID(unique_id);
77 void getOptionsByPattern(
const char *
pattern,
88 static void overrideDefinitionFile(
const char *
filename);
90 void saveDefaultOptionDefinitions();
91 void loadDefaultOptionDefinitions();
94 bool saveOptions(std::ostream &os,
int indent = 0)
const;
98 void addFactoryTemplates();
GT_API const UT_StringHolder filename
GLuint GLsizei const GLchar * label
UT_SymbolMap< exint > myOptionsLUT
UT_ValArray< GR_UserOption * > myOptionsByID
GR_OptionTableEvent(GR_OptionTableEventType type, GR_UserOption *option, int id)
GR_UserOption * getOptionById(int unique_id)
const GR_UserOption * getOption(int i) const
GLuint const GLchar * name
GR_API GR_OptionTable * GRgetOptionTable()
UT_NotifierImpl< GR_OptionTableEvent & > & getEventNotifier()
UT_ValArray< GR_OptionTemplate * > myTemplates
GR_OptionTableEventType myEventType
UT_ValArray< GR_UserOption * > myOptions
UT_SymbolMap< GR_OptionTemplate * > myTemplateLUT
int getNumOptions() const
UT_NotifierImpl< GR_OptionTableEvent & > myEventNotifier