1 /* 2 * Motif 3 * 4 * Copyright (c) 1987-2012, The Open Group. All rights reserved. 5 * 6 * These libraries and programs are free software; you can 7 * redistribute them and/or modify them under the terms of the GNU 8 * Lesser General Public License as published by the Free Software 9 * Foundation; either version 2 of the License, or (at your option) 10 * any later version. 11 * 12 * These libraries and programs are distributed in the hope that 13 * they will be useful, but WITHOUT ANY WARRANTY; without even the 14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 15 * PURPOSE. See the GNU Lesser General Public License for more 16 * details. 17 * 18 * You should have received a copy of the GNU Lesser General Public 19 * License along with these librararies and programs; if not, write 20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth 21 * Floor, Boston, MA 02110-1301 USA 22 * 23 */ 24 25 #ifndef _XmExt_h_ 26 #define _XmExt_h_ 27 28 29 /************************************************************ 30 * INCLUDE FILES 31 *************************************************************/ 32 33 #include <Xm/Xm.h> 34 35 #if defined(__cplusplus) 36 extern "C" { 37 #endif 38 39 40 41 typedef Widget (*XmWidgetFunc)(Widget); 42 43 44 /************************************************************ 45 * TYPEDEFS AND DEFINES 46 *************************************************************/ 47 48 /* 49 * General name definitions. 50 */ 51 52 53 #define XmNbadActionParameters "badActionParameters" 54 #define XmNbadActionParametersMsg \ 55 "Bad parameters passed to an action routine of widget '%s'." 56 57 #define XmNbadMotionParams "badMotionParams" 58 #define XmNbadMotionParamsMsg \ 59 "%s - Motion Action : must have exactly 1 parameter, either '%s' or '%s'." 60 61 #define XmNbadRowPixmap "badRowPixmap" 62 #define XmNbadRowPixmapMsg "Extended List: Row pixmaps must have depth of 1." 63 64 #define XmNbadXlfdFont "badXlfdFont" 65 #define XmNbadXlfdFontMsg \ 66 "%s: All Xlfd fonts must contain 14 hyphens\n'%s' is not valid." 67 68 #define XmNcellNotEmpty "cellNotEmpty" 69 #define XmNcellNotEmptyMsg "XmIconBox: Cell %s is not empty" 70 71 #define XmNcolorNameTooLong "colorNameTooLong" 72 #define XmNcolorNameTooLongMsg \ 73 "Color name '%s' is too long, truncated to '%s'." 74 75 #define XmNcontextSaveFailed "contextSaveFailed" 76 #define XmNcontextSaveFailedMsg "Internal Error: Could not save context data." 77 78 #define XmNconversionFailure "conversionFailure" 79 #define XmNconversionFailureMsg \ 80 "%s: Unable to perform string to %s conversion." 81 82 #define XmNcouldNotFindFamilyData "couldNotFindFamilyData" 83 #define XmNcouldNotFindFamilyDataMsg \ 84 "Could not find family data for family '%s'." 85 86 #define XmNforceGreaterThanZero "forceGreaterThanZero" 87 #define XmNforceGreaterThanZeroMsg \ 88 "XmNvisibleItemCount must be greater than zero being reset to one (1)." 89 90 #define XmNinsertBeforeNotSibling "insertBeforeNotSibling" 91 #define XmNinsertBeforeNotSiblingMsg "XmHierarchy: InsertBefore Widget\ 92 is not a sibling of '%s'.\nInserting child at end of list." 93 94 #define XmNnoComboShell "noComboShell" 95 #define XmNnoComboShellMsg \ 96 "Combination Box: When using a custom combo box a shell must be provided." 97 98 #define XmNnoEmptyCells "noEmptyCells" 99 #define XmNnoEmptyCellsMsg "XmIconBox: Could not find any empty cells." 100 101 #define XmNnoGadgetSupport "noGadgetSupport" 102 #define XmNnoGadgetSupportMsg "Widget does not support gadget children." 103 104 #define XmNpixEditBadImageCreate "pixEditBadImageCreate" 105 #define XmNpixEditBadImageCreateMsg "Pixmap Editor: Can't allocate image data" 106 107 #define XmNsameAsImageOrPix "sameAsImageOrPix" 108 #define XmNsameAsImageOrPixMsg \ 109 "%s : The bitmapMode resource can only be changed at the same time as the pixmap or image" 110 111 #define XmNselfOrOutsideOfApplicationDrop "selfOrOutsideOfApplicationDrop" 112 #define XmNselfOrOutsideOfApplicationDropMsg \ 113 "Attempt to drop into illegal object." 114 115 #define XmNstaticTranslationsMsg \ 116 "Cannot change translation table after initialization." 117 118 #define XmNstaticScrollbarsMsg \ 119 "Cannot change scrollbars after initialization." 120 121 #define XmNtextVerifyFailed "textVerifyFailed" 122 #define XmNtextVerifyFailedMsg "Combination Box: Text item validation failed." 123 124 #define XmNunexpectedEvent "unexpectedEvent" 125 #define XmNunexpectedEventMsg "Unexpected Event Type %s.\n" 126 127 #define XmNunparsableColor "unparsableColor" 128 #define XmNunparsableColorMsg \ 129 "Could not parse the color name '%s'." 130 131 #define XmNnodeParentIsSelf "nodeParentIsSelf" 132 #define XmNnodeParentIsSelfMsg \ 133 "The node parent cannot be self referential." 134 135 #define XmNstringGetFailed "stringGetFailed" 136 #define XmNstringGetFailedMsg "Unable to get MB string from XmString." 137 138 /************************************************************ 139 * MACROS 140 *************************************************************/ 141 142 /************************************************************ 143 * GLOBAL DECLARATIONS 144 *************************************************************/ 145 146 /************************************************************ 147 * EXTERNAL DECLARATIONS 148 *************************************************************/ 149 150 151 void XmCopyISOLatin1Lowered(char *, char *); 152 153 int XmCompareISOLatin1(char*, char*); 154 155 Boolean XmCompareXtWidgetGeometryToWidget(XtWidgetGeometry*, Widget); 156 157 Boolean XmCompareXtWidgetGeometry(XtWidgetGeometry*, XtWidgetGeometry*); 158 159 160 #if defined(__cplusplus) 161 } 162 #endif 163 164 #if defined(VMS) || defined(__VMS) 165 #include <X11/apienvrst.h> 166 #endif 167 168 #endif /* __Ext_h__ */ 169