{
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
-
-static const char
- *PageSizes[] =
- {
- "Letter",
- "Tabloid",
- "Ledger",
- "Legal",
- "Statement",
- "Executive",
- "A3",
- "A4",
- "A5",
- "B4",
- "B5",
- "Folio",
- "Quarto",
- "10x14",
- (char *) NULL
- };
\f
/*
Help widget declarations.
XResourceInfo *resource_info,XWindows *windows,Image *image,
ExceptionInfo *exception)
{
- static const char
- *AnnotateMenu[] =
+ const char
+ *const AnnotateMenu[] =
{
"Font Name",
"Font Color",
"Dismiss",
(char *) NULL
},
- *TextMenu[] =
+ *const TextMenu[] =
{
"Help",
"Apply",
int
entry;
- static char
- angle[MagickPathExtent] = "30.0";
-
- static const char
- *RotateMenu[] =
+ const char
+ *const RotateMenu[] =
{
"-90",
"-45",
(char *) NULL,
};
+ static char
+ angle[MagickPathExtent] = "30.0";
+
/*
Select a command from the pop-up menu.
*/
XResourceInfo *resource_info,XWindows *windows,Image **image,
ExceptionInfo *exception)
{
- static const char
- *ChopMenu[] =
+ const char
+ *const ChopMenu[] =
{
"Direction",
"Help",
char
command[MagickPathExtent];
- static const char
- *Directions[] =
+ const char
+ *const Directions[] =
{
"horizontal",
"vertical",
XResourceInfo *resource_info,XWindows *windows,Image **image,
ExceptionInfo *exception)
{
- static const char
- *ColorEditMenu[] =
+ const char
+ *const ColorEditMenu[] =
{
"Method",
"Pixel Color",
}
case ColorEditFuzzCommand:
{
- static char
- fuzz[MagickPathExtent];
-
- static const char
- *FuzzMenu[] =
+ const char
+ *const FuzzMenu[] =
{
"0%",
"2%",
(char *) NULL,
};
+ static char
+ fuzz[MagickPathExtent];
+
/*
Select a command from the pop-up menu.
*/
XResourceInfo *resource_info,XWindows *windows,Image *image,
ExceptionInfo *exception)
{
- static char
- displacement_geometry[MagickPathExtent] = "30x30",
- filename[MagickPathExtent] = "\0";
-
- static const char
- *CompositeMenu[] =
+ const char
+ *const CompositeMenu[] =
{
"Operators",
"Dissolve",
(char *) NULL
};
+ static char
+ displacement_geometry[MagickPathExtent] = "30x30",
+ filename[MagickPathExtent] = "\0";
+
static CompositeOperator
compose = CopyCompositeOp;
XResourceInfo *resource_info,XWindows *windows,Image *image,
const ClipboardMode mode,ExceptionInfo *exception)
{
- static const char
- *CropModeMenu[] =
+ const char
+ *const CropModeMenu[] =
{
"Help",
"Dismiss",
XResourceInfo *resource_info,XWindows *windows,Image **image,
ExceptionInfo *exception)
{
- static const char
- *DrawMenu[] =
+ const char
+ *const DrawMenu[] =
{
"Element",
"Color",
{
case DrawElementCommand:
{
- static const char
- *Elements[] =
+ const char
+ *const Elements[] =
{
"point",
"line",
}
case DrawStippleCommand:
{
- Image
- *stipple_image;
-
- ImageInfo
- *image_info;
-
- int
- status;
-
- static char
- filename[MagickPathExtent] = "\0";
-
- static const char
+ const char
*StipplesMenu[] =
{
"Brick",
(char *) NULL,
};
+ Image
+ *stipple_image;
+
+ ImageInfo
+ *image_info;
+
+ int
+ status;
+
+ static char
+ filename[MagickPathExtent] = "\0";
+
/*
Select a command from the pop-up menu.
*/
}
case DrawWidthCommand:
{
- static char
- width[MagickPathExtent] = "0";
-
- static const char
- *WidthsMenu[] =
+ const char
+ *const WidthsMenu[] =
{
"1",
"2",
(char *) NULL,
};
+ static char
+ width[MagickPathExtent] = "0";
+
/*
Select a command from the pop-up menu.
*/
XResourceInfo *resource_info,XWindows *windows,Image **image,
ExceptionInfo *exception)
{
- static char
- matte[MagickPathExtent] = "0";
-
- static const char
- *MatteEditMenu[] =
+ const char
+ *const MatteEditMenu[] =
{
"Method",
"Border Color",
(char *) NULL
};
+ static char
+ matte[MagickPathExtent] = "0";
+
static const ModeType
MatteEditCommands[] =
{
}
case MatteEditFuzzCommand:
{
- static char
- fuzz[MagickPathExtent];
-
- static const char
- *FuzzMenu[] =
+ const char
+ *const FuzzMenu[] =
{
"0%",
"2%",
(char *) NULL,
};
+ static char
+ fuzz[MagickPathExtent];
+
/*
Select a command from the pop-up menu.
*/
}
case MatteEditValueCommand:
{
- static char
- message[MagickPathExtent];
-
- static const char
- *MatteMenu[] =
+ const char
+ *const MatteMenu[] =
{
"Opaque",
"Transparent",
(char *) NULL,
};
+ static char
+ message[MagickPathExtent];
+
/*
Select a command from the pop-up menu.
*/
XResourceInfo *resource_info,XWindows *windows,Image *image,
ExceptionInfo *exception)
{
- static const char
- *PasteMenu[] =
+ const char
+ *const PasteMenu[] =
{
"Operator",
"Help",
filename[MagickPathExtent],
geometry[MagickPathExtent];
+ const char
+ *const PageSizes[] =
+ {
+ "Letter",
+ "Tabloid",
+ "Ledger",
+ "Legal",
+ "Statement",
+ "Executive",
+ "A3",
+ "A4",
+ "A5",
+ "B4",
+ "B5",
+ "Folio",
+ "Quarto",
+ "10x14",
+ (char *) NULL
+ };
+
Image
*print_image;
{
#define ApplyMenus 7
- static const char
- *ROIMenu[] =
+ const char
+ *const ROIMenu[] =
{
"Help",
"Dismiss",
(char *) NULL
},
- *ApplyMenu[] =
+ *const ApplyMenu[] =
{
"File",
"Edit",
"Dismiss",
(char *) NULL
},
- *FileMenu[] =
+ *const FileMenu[] =
{
"Save...",
"Print...",
(char *) NULL
},
- *EditMenu[] =
+ *const EditMenu[] =
{
"Undo",
"Redo",
(char *) NULL
},
- *TransformMenu[] =
+ *const TransformMenu[] =
{
"Flop",
"Flip",
"Rotate Left",
(char *) NULL
},
- *EnhanceMenu[] =
+ *const EnhanceMenu[] =
{
"Hue...",
"Saturation...",
"Quantize...",
(char *) NULL
},
- *EffectsMenu[] =
+ *const EffectsMenu[] =
{
"Despeckle",
"Emboss",
"Segment...",
(char *) NULL
},
- *FXMenu[] =
+ *const FXMenu[] =
{
"Solarize...",
"Sepia Tone...",
"Charcoal Draw...",
(char *) NULL
},
- *MiscellanyMenu[] =
+ *const MiscellanyMenu[] =
{
"Image Info",
"Zoom Image",
(char *) NULL
};
- static const char
- **Menus[ApplyMenus] =
+ const char
+ *const *Menus[ApplyMenus] =
{
FileMenu,
EditMenu,
XResourceInfo *resource_info,XWindows *windows,double degrees,Image **image,
ExceptionInfo *exception)
{
- static const char
- *RotateMenu[] =
+ const char
+ *const RotateMenu[] =
{
"Pixel Color",
"Direction",
}
case RotateDirectionCommand:
{
- static const char
+ const char
*Directions[] =
{
"horizontal",
char
geometry[MagickPathExtent];
+ const char
+ *const PageSizes[] =
+ {
+ "Letter",
+ "Tabloid",
+ "Ledger",
+ "Legal",
+ "Statement",
+ "Executive",
+ "A3",
+ "A4",
+ "A5",
+ "B4",
+ "B5",
+ "Folio",
+ "Quarto",
+ "10x14",
+ (char *) NULL
+ };
+
/*
Request page geometry from user.
*/
static Image *XTileImage(Display *display,XResourceInfo *resource_info,
XWindows *windows,Image *image,XEvent *event,ExceptionInfo *exception)
{
- static const char
- *VerbMenu[] =
+ const char
+ *const VerbMenu[] =
{
"Load",
"Next",
#define MagickMenus 10
#define MagickTitle "Commands"
- static const char
- *CommandMenu[] =
+ const char
+ *const CommandMenu[] =
{
"File",
"Edit",
"Help",
(char *) NULL
},
- *FileMenu[] =
+ *const FileMenu[] =
{
"Open...",
"Next",
"Quit",
(char *) NULL
},
- *EditMenu[] =
+ *const EditMenu[] =
{
"Undo",
"Redo",
"Paste",
(char *) NULL
},
- *ViewMenu[] =
+ *const ViewMenu[] =
{
"Half Size",
"Original Size",
"Restore",
(char *) NULL
},
- *TransformMenu[] =
+ *const TransformMenu[] =
{
"Crop",
"Chop",
"Trim Edges",
(char *) NULL
},
- *EnhanceMenu[] =
+ *const EnhanceMenu[] =
{
"Hue...",
"Saturation...",
"Quantize...",
(char *) NULL
},
- *EffectsMenu[] =
+ *const EffectsMenu[] =
{
"Despeckle",
"Emboss",
"Segment...",
(char *) NULL
},
- *FXMenu[] =
+ *const FXMenu[] =
{
"Solarize...",
"Sepia Tone...",
"Charcoal Draw...",
(char *) NULL
},
- *ImageEditMenu[] =
+ *const ImageEditMenu[] =
{
"Annotate...",
"Draw...",
"Region of Interest...",
(char *) NULL
},
- *MiscellanyMenu[] =
+ *const MiscellanyMenu[] =
{
"Image Info",
"Zoom Image",
"Preferences...",
(char *) NULL
},
- *HelpMenu[] =
+ *const HelpMenu[] =
{
"Overview",
"Browse Documentation",
"About Display",
(char *) NULL
},
- *ShortCutsMenu[] =
+ *const ShortCutsMenu[] =
{
"Next",
"Former",
"Quit",
(char *) NULL
},
- *VirtualMenu[] =
+ *const VirtualMenu[] =
{
"Image Info",
"Print",
(char *) NULL
};
- static const char
- **Menus[MagickMenus] =
+ const char
+ *const *Menus[MagickMenus] =
{
FileMenu,
EditMenu,
resource_info->client_name);
windows->magnify.geometry=XGetResourceClass(resource_info->resource_database,
resource_name,"geometry",(char *) NULL);
- (void) FormatLocaleString(windows->magnify.name,MagickPathExtent,"Magnify %uX",
- resource_info->magnify);
+ (void) FormatLocaleString(windows->magnify.name,MagickPathExtent,
+ "Magnify %uX",resource_info->magnify);
if (windows->magnify.cursor != (Cursor) NULL)
(void) XFreeCursor(display,windows->magnify.cursor);
windows->magnify.cursor=XMakeCursor(display,windows->image.id,
}
if (event.xbutton.window == windows->magnify.id)
{
- int
- factor;
-
- static const char
- *MagnifyMenu[] =
+ const char
+ *const MagnifyMenu[] =
{
"2",
"4",
(char *) NULL,
};
+ int
+ factor;
+
static KeySym
MagnifyCommands[] =
{