13 #ifndef __GR_UserOption__
14 #define __GR_UserOption__
23 #define GR_LABEL_TOKEN "label"
24 #define GR_ICON_TOKEN "icon"
25 #define GR_VISIBILITY_TOKEN "visibility"
26 #define GR_ATTRIB_TOKEN "attrib"
27 #define GR_GROUP_TOKEN "group"
28 #define GR_CLASS_TOKEN "class"
29 #define GR_OVERRIDECOLOR_TOKEN "overridecolor"
30 #define GR_COLOR_TOKEN "color"
31 #define GR_SELCOLOR_TOKEN "selcolor"
32 #define GR_STYLE_TOKEN "style"
33 #define GR_FLAGS_TOKEN "flags"
36 #define GR_SCALE_TOKEN "scale"
37 #define GR_ARROW_TOKEN "arrow"
39 #define GR_FADE_TOKEN "fade"
42 #define GR_STRING_TOKEN "string"
45 class GR_UserDecoration;
73 const char *
getName()
const {
return (
const char *) myName; }
74 void setName(
const char *name) { myName.harden(name); }
75 const char *
getLabel()
const {
return (
const char *) myLabel; }
76 void setLabel(
const char *label) { myLabel.harden(label); }
77 const char *
getIconName()
const {
return (
const char *) myIconName; }
78 void setIconName(
const char *name);
103 virtual int saveCommand(std::ostream &os)
const;
106 virtual bool save(std::ostream &os,
int indent)
const;
111 virtual void querySettings(
UT_Options &options)
const = 0;
112 virtual bool applySettings(
const UT_Options &options) = 0;
129 static int saveSettings(std::ostream &os,
141 const char *terminal_token = 0);
149 static void getDefaultSelColor(
UT_Vector3 &clr);
153 static bool querySetting(
const UT_Options &options,
154 const char *name,
bool &
v);
155 static bool querySetting(
const UT_Options &options,
156 const char *name,
float &
v);
157 static bool querySetting(
const UT_Options &options,
159 static bool querySetting(
const UT_Options &options,
161 static bool querySetting(
const UT_Options &options,
162 const char *name,
exint &i);
170 bool myRefineRequired;
virtual fpreal getScale() const
virtual UT_Vector3 getSelectColor() const
GLuint GLsizei const GLchar * label
UT_Vector3T< float > UT_Vector3
const char * getIconName() const
const char * getLabel() const
virtual GR_UserOptionType getOptionType() const
const char * getName() const
void setHidden(bool hide)
GR_OptionTemplate * getTemplate() const
void setLabel(const char *label)
GLuint const GLchar * name
void setName(const char *name)
void setRefineRequired(bool ref_req)
virtual UT_Vector3 getColor() const
A map of string to various well defined value types.
GR_DecorVisibility getVisibility() const
virtual int getAttributeType() const
bool isRefineRequired() const
virtual const char * getAttribute() const
void setVisibility(GR_DecorVisibility v)
virtual bool getOverrideColor() const
virtual bool getArrowTip() const