summaryrefslogtreecommitdiffstats
path: root/src/bltGrLegd.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/bltGrLegd.C')
-rw-r--r--src/bltGrLegd.C70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index 4e6a1c9..e5b4b22 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -65,94 +65,94 @@ static const char* positionObjOption[] = {
static Tk_OptionSpec optionSpecs[] = {
{TK_OPTION_BORDER, "-activebackground", "activeBackground",
"ActiveBackground",
- STD_ACTIVE_BACKGROUND, -1, Tk_Offset(LegendOptions, activeBg), 0, NULL, 0},
+ STD_ACTIVE_BACKGROUND, -1, Tk_Offset(LegendOptions, activeBg), 0, NULL, CACHE},
{TK_OPTION_PIXELS, "-activeborderwidth", "activeBorderWidth",
"ActiveBorderWidth",
- STD_BORDERWIDTH, -1, Tk_Offset(LegendOptions, entryBW), 0, NULL, 0},
+ STD_BORDERWIDTH, -1, Tk_Offset(LegendOptions, entryBW), 0, NULL, LAYOUT},
{TK_OPTION_COLOR, "-activeforeground", "activeForeground", "ActiveForeground",
STD_ACTIVE_FOREGROUND, -1, Tk_Offset(LegendOptions, activeFgColor),
- 0, NULL, 0},
+ 0, NULL, CACHE},
{TK_OPTION_RELIEF, "-activerelief", "activeRelief", "ActiveRelief",
- "flat", -1, Tk_Offset(LegendOptions, activeRelief), 0, NULL, 0},
+ "flat", -1, Tk_Offset(LegendOptions, activeRelief), 0, NULL, LAYOUT},
{TK_OPTION_ANCHOR, "-anchor", "anchor", "Anchor",
- "n", -1, Tk_Offset(LegendOptions, anchor), 0, NULL, 0},
+ "n", -1, Tk_Offset(LegendOptions, anchor), 0, NULL, LAYOUT},
{TK_OPTION_SYNONYM, "-bg", NULL, NULL, NULL, -1, 0, 0, "-background", 0},
{TK_OPTION_BORDER, "-background", "background", "Background",
- NULL, -1, Tk_Offset(LegendOptions, normalBg), TK_OPTION_NULL_OK, NULL, 0},
+ NULL, -1, Tk_Offset(LegendOptions, normalBg), TK_OPTION_NULL_OK, NULL, CACHE},
{TK_OPTION_PIXELS, "-borderwidth", "borderWidth", "BorderWidth",
- STD_BORDERWIDTH, -1, Tk_Offset(LegendOptions, borderWidth), 0, NULL, 0},
+ STD_BORDERWIDTH, -1, Tk_Offset(LegendOptions, borderWidth),
+ 0, NULL, LAYOUT},
{TK_OPTION_SYNONYM, "-bd", NULL, NULL, NULL, -1, 0, 0, "-borderwidth", 0},
{TK_OPTION_INT, "-columns", "columns", "columns",
- "0", -1, Tk_Offset(LegendOptions, reqColumns), 0, NULL, 0},
+ "0", -1, Tk_Offset(LegendOptions, reqColumns), 0, NULL, LAYOUT},
{TK_OPTION_BOOLEAN, "-exportselection", "exportSelection", "ExportSelection",
- "no", -1, Tk_Offset(LegendOptions, exportSelection), 0, NULL, 0},
+ "no", -1, Tk_Offset(LegendOptions, exportSelection), 0, NULL, LAYOUT},
{TK_OPTION_CUSTOM, "-focusdashes", "focusDashes", "FocusDashes",
"dot", -1, Tk_Offset(LegendOptions, focusDashes),
- TK_OPTION_NULL_OK, &dashesObjOption, 0},
+ TK_OPTION_NULL_OK, &dashesObjOption, CACHE},
{TK_OPTION_COLOR, "-focusforeground", "focusForeground", "FocusForeground",
- STD_ACTIVE_FOREGROUND, -1, Tk_Offset(LegendOptions, focusColor), 0, NULL, 0},
+ STD_ACTIVE_FOREGROUND, -1, Tk_Offset(LegendOptions, focusColor), 0, NULL, CACHE},
{TK_OPTION_FONT, "-font", "font", "Font",
- STD_FONT_SMALL, -1, Tk_Offset(LegendOptions, style.font), 0, NULL, 0},
+ STD_FONT_SMALL, -1, Tk_Offset(LegendOptions, style.font), 0, NULL, LAYOUT},
{TK_OPTION_SYNONYM, "-fg", NULL, NULL, NULL, -1, 0, 0, "-foreground", 0},
{TK_OPTION_COLOR, "-foreground", "foreground", "Foreground",
- STD_NORMAL_FOREGROUND, -1, Tk_Offset(LegendOptions, fgColor), 0, NULL, 0},
+ STD_NORMAL_FOREGROUND, -1, Tk_Offset(LegendOptions, fgColor), 0, NULL, CACHE},
{TK_OPTION_BOOLEAN, "-hide", "hide", "Hide",
- "no", -1, Tk_Offset(LegendOptions, hide), 0, NULL, 0},
+ "no", -1, Tk_Offset(LegendOptions, hide), 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-ipadx", "iPadX", "Pad",
- "1", -1, Tk_Offset(LegendOptions, ixPad), 0, NULL, 0},
+ "1", -1, Tk_Offset(LegendOptions, ixPad), 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-ipady", "iPadY", "Pad",
- "1", -1, Tk_Offset(LegendOptions, iyPad), 0, NULL, 0},
+ "1", -1, Tk_Offset(LegendOptions, iyPad), 0, NULL, LAYOUT},
{TK_OPTION_BORDER, "-nofocusselectbackground", "noFocusSelectBackground",
"NoFocusSelectBackground",
STD_ACTIVE_BACKGROUND, -1, Tk_Offset(LegendOptions, selOutFocusBg),
- 0, NULL, 0},
+ 0, NULL, CACHE},
{TK_OPTION_COLOR, "-nofocusselectforeground", "noFocusSelectForeground",
"NoFocusSelectForeground",
STD_ACTIVE_FOREGROUND, -1, Tk_Offset(LegendOptions, selOutFocusFgColor),
- 0, NULL,0},
+ 0, NULL, CACHE},
{TK_OPTION_PIXELS, "-padx", "padX", "Pad",
- "1", -1, Tk_Offset(LegendOptions, xPad), 0, NULL, 0},
+ "1", -1, Tk_Offset(LegendOptions, xPad), 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-pady", "padY", "Pad",
- "1", -1, Tk_Offset(LegendOptions, yPad), 0, NULL, 0},
+ "1", -1, Tk_Offset(LegendOptions, yPad), 0, NULL, LAYOUT},
{TK_OPTION_STRING_TABLE, "-position", "position", "Position",
"rightmargin", -1, Tk_Offset(LegendOptions, position),
- 0, &positionObjOption, 0},
+ 0, &positionObjOption, LAYOUT},
{TK_OPTION_BOOLEAN, "-raised", "raised", "Raised",
- "no", -1, Tk_Offset(LegendOptions, raised), 0, NULL, 0},
+ "no", -1, Tk_Offset(LegendOptions, raised), 0, NULL, LAYOUT},
{TK_OPTION_RELIEF, "-relief", "relief", "Relief",
- "flat", -1, Tk_Offset(LegendOptions, relief), 0, NULL, 0},
+ "flat", -1, Tk_Offset(LegendOptions, relief), 0, NULL, LAYOUT},
{TK_OPTION_INT, "-rows", "rows", "rows",
- "0", -1, Tk_Offset(LegendOptions, reqRows), 0, NULL, 0},
+ "0", -1, Tk_Offset(LegendOptions, reqRows), 0, NULL, LAYOUT},
{TK_OPTION_BORDER, "-selectbackground", "selectBackground",
"SelectBackground",
STD_ACTIVE_BACKGROUND, -1, Tk_Offset(LegendOptions, selInFocusBg),
- 0, NULL, 0},
+ 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-selectborderwidth", "selectBorderWidth",
"SelectBorderWidth",
- "1", -1, Tk_Offset(LegendOptions, selBW), 0, NULL, 0},
+ "1", -1, Tk_Offset(LegendOptions, selBW), 0, NULL, LAYOUT},
{TK_OPTION_STRING, "-selectcommand", "selectCommand", "SelectCommand",
NULL, -1, Tk_Offset(LegendOptions, selectCmd), TK_OPTION_NULL_OK, NULL, 0},
{TK_OPTION_COLOR, "-selectforeground", "selectForeground", "SelectForeground",
STD_ACTIVE_FOREGROUND, -1, Tk_Offset(LegendOptions, selInFocusFgColor),
- 0, NULL, 0},
+ 0, NULL, CACHE},
{TK_OPTION_STRING_TABLE, "-selectmode", "selectMode", "SelectMode",
"multiple", -1, Tk_Offset(LegendOptions, selectMode),
0, &selectmodeObjOption, 0},
{TK_OPTION_RELIEF, "-selectrelief", "selectRelief", "SelectRelief",
- "flat", -1, Tk_Offset(LegendOptions, selRelief), 0, NULL, 0},
- {TK_OPTION_STRING, "-takefocus", "takeFocus", "TakeFocus",
- NULL, -1, Tk_Offset(LegendOptions, takeFocus), TK_OPTION_NULL_OK, NULL, 0},
+ "flat", -1, Tk_Offset(LegendOptions, selRelief), 0, NULL, LAYOUT},
{TK_OPTION_STRING, "-title", "title", "Title",
- NULL, -1, Tk_Offset(LegendOptions, title), TK_OPTION_NULL_OK, NULL, 0},
+ NULL, -1, Tk_Offset(LegendOptions, title), TK_OPTION_NULL_OK, NULL, LAYOUT},
{TK_OPTION_COLOR, "-titlecolor", "titleColor", "TitleColor",
STD_NORMAL_FOREGROUND, -1, Tk_Offset(LegendOptions, titleStyle.color),
- 0, NULL, 0},
+ 0, NULL, CACHE},
{TK_OPTION_FONT, "-titlefont", "titleFont", "TitleFont",
- STD_FONT_SMALL, -1, Tk_Offset(LegendOptions, titleStyle.font), 0, NULL, 0},
+ STD_FONT_SMALL, -1, Tk_Offset(LegendOptions, titleStyle.font),
+ 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-x", "x", "X",
- "0", -1, Tk_Offset(LegendOptions, xReq), 0, NULL, 0},
+ "0", -1, Tk_Offset(LegendOptions, xReq), 0, NULL, LAYOUT},
{TK_OPTION_PIXELS, "-y", "y", "Y",
- "0", -1, Tk_Offset(LegendOptions, yReq), 0, NULL, 0},
+ "0", -1, Tk_Offset(LegendOptions, yReq), 0, NULL, LAYOUT},
{TK_OPTION_END, NULL, NULL, NULL, NULL, -1, 0, 0, NULL, 0}
};