More modularization changes. Move all the string defs and registration

functions to the respective places where they are needed.  Also cleanup up
a bunch of children info stuff.
This commit is contained in:
ramiro%netscape.com 1998-09-20 06:38:24 +00:00
Родитель bce1e6d48e
Коммит dda3ad4806
81 изменённых файлов: 1571 добавлений и 1481 удалений

Просмотреть файл

@ -49,6 +49,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
static Boolean SetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -75,6 +76,13 @@ static void DrawArrow (Widget,XEvent *,Region,XRectangle *);
/* */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ArrowRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfeArrow Resources */
@ -207,7 +215,7 @@ _XFE_WIDGET_CLASS_RECORD(arrow,Arrow) =
(WidgetClass) &xfeButtonClassRec, /* superclass */
"XfeArrow", /* class_name */
sizeof(XfeArrowRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -295,12 +303,40 @@ _XFE_WIDGET_CLASS_RECORD(arrow,Arrow) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(arrow,Arrow);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
ArrowRegisterRepTypes(void)
{
static String arrow_names[] =
{
"arrow_pointer",
"arrow_pointer_base",
"arrow_triangle",
"arrow_triangle_base",
NULL
};
/* XfeRepTypeRegister(XmRArrowType,arrow_names); */
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeArrow representation types */
ArrowRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
XfeArrowPart * ap = _XfeArrowPart(nw);

Просмотреть файл

@ -31,6 +31,17 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeArrow resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNarrowHeight "arrowHeight"
#define XmNarrowWidth "arrowWidth"
#define XmCArrowHeight "ArrowHeight"
#define XmCArrowWidth "ArrowWidth"
/*----------------------------------------------------------------------*/
/* */
/* XmRArrowType */

Просмотреть файл

@ -72,6 +72,7 @@ XfeMin((bp)->pixmap_rect.height,(_lp)->label_rect.height)
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void ClassPartInit (WidgetClass);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
@ -568,7 +569,7 @@ _XFE_WIDGET_CLASS_RECORD(button,Button) =
(WidgetClass) &xfeLabelClassRec, /* superclass */
"XfeButton", /* class_name */
sizeof(XfeButtonRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
ClassPartInit, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -695,12 +696,62 @@ DefaultRaiseBackground(Widget w,int offset,XrmValue * value)
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
/* extern */ void
XfeButtonRegisterRepTypes(void)
{
static String layout_names[] =
{
"button_label_only",
"button_label_on_bottom",
"button_label_on_left",
"button_label_on_right",
"button_label_on_top",
"button_pixmap_only",
NULL
};
static String trigger_names[] =
{
"button_trigger_anywhere",
"button_trigger_label",
"button_trigger_pixmap",
"button_trigger_either",
"button_trigger_neither",
NULL
};
static String type_names[] =
{
"button_none",
"button_push",
"button_toggle",
NULL
};
XfeRepTypeRegister(XmRButtonLayout,layout_names);
XfeRepTypeRegister(XmRButtonTrigger,trigger_names);
XfeRepTypeRegister(XmRButtonType,type_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeButton representation types */
XfeButtonRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
ClassPartInit(WidgetClass wc)
{
XfeButtonWidgetClass cc = (XfeButtonWidgetClass) wc;

Просмотреть файл

@ -31,6 +31,65 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeButton resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNbutton3DownCallback "button3DownCallback"
#define XmNbutton3UpCallback "button3UpCallback"
#define XmNarmForeground "armForeground"
#define XmNdeterminate "determinate"
#define XmNinsensitivePixmapMask "insensitivePixmapMask"
#define XmNtransparentCursor "transparentCursor"
#define XmNraiseBackground "raiseBackground"
#define XmNraiseBorderThickness "raiseBorderThickness"
#define XmNarmBackground "armBackground"
#define XmNarmOffset "armOffset"
#define XmNarmed "armed"
#define XmNemulateMotif "emulateMotif"
#define XmNarmedPixmap "armedPixmap"
#define XmNarmedPixmapMask "armedPixmapMask"
#define XmNbuttonLayout "buttonLayout"
#define XmNpixmapMask "pixmapMask"
#define XmNbuttonTrigger "buttonTrigger"
#define XmNraiseForeground "raiseForeground"
#define XmNinsensitivePixmap "insensitivePixmap"
#define XmNfillOnEnter "fillOnEnter"
#define XmNraiseOffset "raiseOffset"
#define XmNraiseOnEnter "raiseOnEnter"
#define XmNraised "raised"
#define XmNraisedPixmap "raisedPixmap"
#define XmNraisedPixmapMask "raisedPixmapMask"
#define XmCArmBackground "ArmBackground"
#define XmCArmForeground "ArmForeground"
#define XmCArmOffset "ArmOffset"
#define XmCArmedPixmap "ArmedPixmap"
#define XmCArmedPixmapMask "ArmedPixmapMask"
#define XmCButtonTrigger "ButtonTrigger"
#define XmCFillOnEnter "FillOnEnter"
#define XmCDeterminate "Determinate"
#define XmCDragButton "DragButton"
#define XmCEmulateMotif "EmulateMotif"
#define XmCInsensitivePixmap "InsensitivePixmap"
#define XmCArmed "Armed"
#define XmCButtonLayout "ButtonLayout"
#define XmCInsensitivePixmapMask "InsensitivePixmapMask"
#define XmCPixmapMask "PixmapMask"
#define XmCRaiseBackground "RaiseBackground"
#define XmCRaiseForeground "RaiseForeground"
#define XmCRaisedPixmap "RaisedPixmap"
#define XmCRaisedPixmapMask "RaisedPixmapMask"
#define XmCUnderlineThickness "UnderlineThickness"
#define XmRButtonLayout "ButtonLayout"
#define XmRButtonTrigger "ButtonTrigger"
#define XmCRaiseBorderThickness "RaiseBorderThickness"
#define XmCRaiseOnEnter "RaiseOnEnter"
#define XmCRaised "Raised"
/*----------------------------------------------------------------------*/
/* */
/* XmRButtonType */
@ -128,6 +187,14 @@ XfeButtonAcceptXY (Widget w,
int y);
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* XfeButton Rep type registration function */
/* */
/*----------------------------------------------------------------------*/
extern void
XfeButtonRegisterRepTypes (void);
XFE_END_CPLUSPLUS_PROTECTION
#endif /* end Button.h */

Просмотреть файл

@ -361,7 +361,7 @@ ClassInitialize()
/*XfeRegisterConverters();*/
/* Register Representation Types */
XfeRegisterRepresentationTypes();
/* XfeRegisterRepresentationTypes(); */
}
/*----------------------------------------------------------------------*/
static void

Просмотреть файл

@ -34,7 +34,19 @@ XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */
/* XfeBypassShell resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNbeforeRealizeCallback "beforeRealizeCallback"
#define XmNfirstMapCallback "firstMapCallback"
#define XmNignoreExposures "ignoreExposures"
#define XmCIgnoreExposures "IgnoreExposures"
/*----------------------------------------------------------------------*/
/* */
/* XfeBypassShell class names */
/* */
/*----------------------------------------------------------------------*/
externalref WidgetClass xfeBypassShellWidgetClass;
@ -44,7 +56,7 @@ typedef struct _XfeBypassShellRec * XfeBypassShellWidget;
/*----------------------------------------------------------------------*/
/* */
/* XfeBox subclass test macro */
/* XfeBypassShell subclass test macro */
/* */
/*----------------------------------------------------------------------*/
#define XfeIsBypassShell(w) XtIsSubclass(w,xfeBypassShellWidgetClass)

Просмотреть файл

@ -69,6 +69,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
static Boolean SetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -113,6 +114,13 @@ static void SubMenuEH (Widget,XtPointer,XEvent *,Boolean *);
static void SubMenuTearCB (Widget,XtPointer,XtPointer);
static void UnGrabEH (Widget,XtPointer,XEvent *,Boolean *);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void CascadeRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfeCascade Resources */
@ -342,7 +350,7 @@ _XFE_WIDGET_CLASS_RECORD(cascade,Cascade) =
(WidgetClass) &xfeButtonClassRec, /* superclass */
"XfeCascade", /* class_name */
sizeof(XfeCascadeRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -430,12 +438,44 @@ _XFE_WIDGET_CLASS_RECORD(cascade,Cascade) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(cascade,Cascade);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
CascadeRegisterRepTypes(void)
{
static String location_names[] =
{
"location_east",
"location_north",
"location_north_east",
"location_north_west",
"location_south",
"location_south_east",
"location_south_west",
"location_west",
NULL
};
XfeRepTypeRegister(XmRLocationType,location_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeCascade representation types */
CascadeRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
XfeCascadePart * cp = _XfeCascadePart(nw);

Просмотреть файл

@ -31,6 +31,37 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeCascade resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNsubmenuTearCallback "submenuTearCallback"
#define XmNallowTearOff "allowTearOff"
#define XmNcascadeArrowDirection "cascadeArrowDirection"
#define XmNcascadeArrowLocation "cascadeArrowLocation"
#define XmNcascadeArrowHeight "cascadeArrowHeight"
#define XmNcascadeArrowWidth "cascadeArrowWidth"
#define XmNdrawCascadeArrow "drawCascadeArrow"
#define XmNtorn "torn"
#define XmNmatchSubMenuWidth "matchSubMenuWidth"
#define XmNsubMenuAlignment "subMenuAlignment"
#define XmNsubMenuLocation "subMenuLocation"
#define XmNtornShellTitle "tornShellTitle"
#define XmCCascadeArrowDirection "CascadeArrowDirection"
#define XmCCascadeArrowHeight "CascadeArrowHeight"
#define XmCCascadeArrowLocation "CascadeArrowLocation"
#define XmCSubMenuAlignment "SubMenuAlignment"
#define XmCCascadeArrowWidth "CascadeArrowWidth"
#define XmCDrawCascadeArrow "DrawCascadeArrow"
#define XmCMatchSubMenuWidth "MatchSubMenuWidth"
#define XmCSubMenuLocation "SubMenuLocation"
#define XmCTornShellTitle "TornShellTitle"
#define XmRLocationType "LocationType"
/*----------------------------------------------------------------------*/
/* */
/* XmRLocationType */

Просмотреть файл

@ -26,6 +26,8 @@
#include <Xfe/XfeP.h>
#include <Xfe/Label.h>
#include <string.h> /* for strncasecmp() */
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -29,27 +29,17 @@
#include <Xfe/DynamicManagerP.h>
#define MESSAGE0 "XfeDynamicManager is an abstract class and cannot be instanciated."
#define MESSAGE1 "No XmNorderFunction installed."
#define MESSAGE2 "XmNselectedChildren is a Read-Only resource."
#define MESSAGE3 "XmNnumSelected is a Read-Only resource."
#define MESSAGE4 "XmNindex is a read-only reasource."
#define MESSAGE5 "Widget is not an XfeDynamicManager"
#define MESSAGE6 "XmNpreferredHeight is a read-only resource."
#define MESSAGE7 "XmNpreferredWidth is a read-only resource."
#define MESSAGE8 "XmNnumPopupChildren is a read-only resource."
#define MESSAGE9 "XmNpopupChildren is a read-only resource."
#define MESSAGE11 "The XmNx position of a child cannot be set explicitly."
#define MESSAGE12 "The XmNy position of a child cannot be set explicitly."
#define MESSAGE13 "The XmNborderWidth of a child cannot be set explicitly."
#define MESSAGE14 "Cannot accept new child '%s'."
#define MESSAGE15 "XmNnumPrivateComponents is a read-only resource."
#define MESSAGE16 "XmNlayableChildren is a read-only resource."
#define MESSAGE17 "XmNnumLayableChildren is a read-only resource."
#define MESSAGE18 "The %s class does not support XmNlayableChildren."
#define MESSAGE19 "The %s class does not support XmNnumLayableChildren."
#define MESSAGE20 "XmNprivateComponent is a read-only resource."
#define MESSAGE21 "XmNlinkNode is a read-only resource."
#define MESSAGE70 "XmNdynamicChildren is a read-only resource."
#define MESSAGE71 "XmNnumDynamicChildren is a read-only resource."
#define MESSAGE72 "XmNmaxDynamicWidth is a read-only resource."
#define MESSAGE73 "XmNmaxDynamicHeight is a read-only resource."
#define MESSAGE74 "XmNminDynamicWidth is a read-only resource."
#define MESSAGE75 "XmNminDynamicHeight is a read-only resource."
#define MESSAGE76 "XmNtotalDynamicWidth is a read-only resource."
#define MESSAGE77 "XmNtotalDynamicHeight is a read-only resource."
#define MIN_LAYOUT_WIDTH 10
#define MIN_LAYOUT_HEIGHT 10
@ -63,7 +53,6 @@ static void CoreInitialize (Widget,Widget,ArgList,Cardinal *);
static void CoreClassPartInit (WidgetClass);
static void CoreDestroy (Widget);
static Boolean CoreSetValues (Widget,Widget,Widget,ArgList,Cardinal *);
static void CoreGetValuesHook (Widget,ArgList,Cardinal *);
/*----------------------------------------------------------------------*/
/* */
@ -228,7 +217,7 @@ static XtResource constraint_resources[] =
},
{
XmNlinkNode,
XmCLinkNode,
XmCReadOnly,
XmRPointer,
sizeof(XfeLinkNode),
XtOffsetOf(XfeDynamicManagerConstraintRec , xfe_dynamic_manager . link_node),
@ -266,7 +255,7 @@ _XFE_WIDGET_CLASS_RECORD(dynamicmanager,DynamicManager) =
CoreSetValues, /* set_values */
NULL, /* set_values_hook */
XtInheritSetValuesAlmost, /* set_values_almost */
CoreGetValuesHook, /* get_values_hook */
NULL, /* get_values_hook */
NULL, /* accept_focus */
XtVersion, /* version */
NULL, /* callback_private */
@ -401,7 +390,7 @@ CoreSetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
_XfemDynamicChildren(nw) = _XfemDynamicChildren(ow);
_XfeWarning(nw,MESSAGE16);
_XfeWarning(nw,MESSAGE70);
}
/* XmNnumDynamicChildren */
@ -409,38 +398,60 @@ CoreSetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
_XfemNumDynamicChildren(nw) = _XfemNumDynamicChildren(ow);
_XfeWarning(nw,MESSAGE17);
_XfeWarning(nw,MESSAGE71);
}
/* XmNmaxDynamicWidth */
if (_XfemMaxDynamicWidth(nw) != _XfemMaxDynamicWidth(ow))
{
_XfemMaxDynamicWidth(nw) = _XfemMaxDynamicWidth(ow);
_XfeWarning(nw,MESSAGE72);
}
/* XmNmaxDynamicHeight */
if (_XfemMaxDynamicHeight(nw) != _XfemMaxDynamicHeight(ow))
{
_XfemMaxDynamicHeight(nw) = _XfemMaxDynamicHeight(ow);
_XfeWarning(nw,MESSAGE73);
}
/* XmNminDynamicWidth */
if (_XfemMinDynamicWidth(nw) != _XfemMinDynamicWidth(ow))
{
_XfemMinDynamicWidth(nw) = _XfemMinDynamicWidth(ow);
_XfeWarning(nw,MESSAGE74);
}
/* XmNminDynamicHeight */
if (_XfemMinDynamicHeight(nw) != _XfemMinDynamicHeight(ow))
{
_XfemMinDynamicHeight(nw) = _XfemMinDynamicHeight(ow);
_XfeWarning(nw,MESSAGE75);
}
/* XmNtotalDynamicWidth */
if (_XfemTotalDynamicWidth(nw) != _XfemTotalDynamicWidth(ow))
{
_XfemTotalDynamicWidth(nw) = _XfemTotalDynamicWidth(ow);
_XfeWarning(nw,MESSAGE76);
}
/* XmNtotalDynamicHeight */
if (_XfemTotalDynamicHeight(nw) != _XfemTotalDynamicHeight(ow))
{
_XfemTotalDynamicHeight(nw) = _XfemTotalDynamicHeight(ow);
_XfeWarning(nw,MESSAGE77);
}
return _XfeManagerChainSetValues(ow,rw,nw,xfeDynamicManagerWidgetClass);
}
/*----------------------------------------------------------------------*/
static void
CoreGetValuesHook(Widget w,ArgList av,Cardinal * pac)
{
Cardinal i;
for (i = 0; i < *pac; i++)
{
/* XmNdynamicChildren */
if (strcmp(av[i].name,XmNdynamicChildren) == 0)
{
/* av[i] = NULL */
_XfeGetValuesCastAndAssign(av,i,NULL);
_XfeArgWarning(w,MESSAGE18,XfeClassNameForWidget(w));
}
/* XmNnumDynamicChildren */
else if (strcmp(av[i].name,XmNnumDynamicChildren) == 0)
{
/* av[i] = 0 */
_XfeGetValuesCastAndAssign(av,i,0);
_XfeArgWarning(w,MESSAGE19,XfeClassNameForWidget(w));
}
}
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
@ -472,6 +483,10 @@ CompositeInsertChild(Widget child)
/* Add the child to the dynamic children list */
XfeLinkedInsertAtTail(_XfemDynamicChildren(w),child);
/* Update the dynamic children count */
_XfemNumDynamicChildren(w) =
XfeLinkedCount(_XfemDynamicChildren(w));
/* Call XmManager's XtComposite InsertChild to do the Xt magic */
(*xmManagerClassRec.composite_class.insert_child)(child);
@ -518,8 +533,12 @@ CompositeDeleteChild(Widget child)
if (node != NULL)
{
XfeLinkedRemoveNode(_XfemDynamicChildren(w),node);
}
/* Update the dynamic children count */
_XfemNumDynamicChildren(w) =
XfeLinkedCount(_XfemDynamicChildren(w));
}
/* Delete the dynamic child */
need_layout = _XfeDynamicManagerDeleteDynamicChild(child);
@ -650,7 +669,7 @@ UpdateDynamicChildrenInfo(Widget w)
&_XfemTotalDynamicHeight(w),
&_XfemNumManagedDynamicChildren(w));
_XfemNumDynamicChildren(w) = XfeLinkedCount(_XfemDynamicChildren(w));
/* _XfemNumDynamicChildren(w) = XfeLinkedCount(_XfemDynamicChildren(w)); */
#if 0
printf("UpdateDynamicChildrenInfo(%s): max = (%d,%d)\t\ttotal = (%d,%d)\n",

Просмотреть файл

@ -31,6 +31,22 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeDynamicManager resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNdynamicChildren "dynamicChildren"
#define XmNlinkNode "linkNode"
#define XmNmaxDynamicChildrenHeight "maxDynamicChildrenHeight"
#define XmNmaxDynamicChildrenWidth "maxDynamicChildrenWidth"
#define XmNminDynamicChildrenHeight "minDynamicChildrenHeight"
#define XmNminDynamicChildrenWidth "minDynamicChildrenWidth"
#define XmNnumDynamicChildren "numDynamicChildren"
#define XmNnumManagedDynamicChildren "numManagedDynamicChildren"
#define XmNtotalDynamicChildrenHeight "totalDynamicChildrenHeight"
#define XmNtotalDynamicChildrenWidth "totalDynamicChildrenWidth"
/*----------------------------------------------------------------------*/
/* */
/* XfeDynamicManager class names */

Просмотреть файл

@ -212,6 +212,14 @@ _XfeDynamicManagerChildrenInfo (Widget w,
(_XfemDynamicChildren(w) ? XfeLinkedCount(_XfemDynamicChildren(w)) : 0)
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Dynamic children indexing macro */
/* */
/*----------------------------------------------------------------------*/
#define _XfemDynamicChildrenIndex(w,i) \
(_XfemDynamicChildren(w) ? XfeLinkedItemAtIndex(_XfemDynamicChildren(w),i) : NULL)
/*----------------------------------------------------------------------*/
/* */
/* XfeDynamicManager child constraint part access macro */

Просмотреть файл

@ -28,7 +28,6 @@
#define _XfeFind_h_
#include <Xm/Xm.h> /* Motif public defs */
#include <Xfe/StringDefs.h> /* Xfe public str defs */
#include <Xfe/Defaults.h> /* Xfe default res vals */
#include <assert.h> /* Assert */

Просмотреть файл

@ -31,6 +31,18 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeFontChooser resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNfontItemFonts "fontItemFonts"
#define XmNfontItemLabels "fontItemLabels"
#define XmNnumFontItems "numFontItems"
#define XmCFontItemFonts "FontItemFonts"
#define XmCNumFontItems "NumFontItems"
/*----------------------------------------------------------------------*/
/* */
/* XfeFontChooser class names */

Просмотреть файл

@ -376,7 +376,7 @@ ClassInitialize()
/*XfeRegisterConverters();*/
/* Register Representation Types */
XfeRegisterRepresentationTypes();
/* XfeRegisterRepresentationTypes(); */
}
/*----------------------------------------------------------------------*/
static void

Просмотреть файл

@ -32,6 +32,36 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeFrameShell resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNbeforeResizeCallback "beforeResizeCallback"
#define XmNdeleteWindowCallback "deleteWindowCallback"
#define XmNmoveCallback "moveCallback"
#define XmNsaveYourselfCallback "saveYourselfCallback"
#define XmNtitleChangedCallback "titleChangedCallback"
#define XmNstartIconic "startIconic"
#define XmNtrackPosition "trackPosition"
#define XmNtrackSaveYourself "trackSaveYourself"
#define XmNhasBeenMapped "hasBeenMapped"
#define XmNbypassShell "bypassShell"
#define XmNtrackSize "trackSize"
#define XmNtrackDeleteWindow "trackDeleteWindow"
#define XmNtrackEditres "trackEditres"
#define XmNtrackMapping "trackMapping"
#define XmCBypassShell "BypassShell"
#define XmCStartIconic "StartIconic"
#define XmCTrackEditres "TrackEditres"
#define XmCTrackMapping "TrackMapping"
#define XmCTrackPosition "TrackPosition"
#define XmCTrackSaveYourself "TrackSaveYourself"
#define XmCTrackSize "TrackSize"
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */

Просмотреть файл

@ -31,6 +31,35 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeLabel resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNselectionChangedCallback "selectionChangedCallback"
#define XmNeditModifiers "editModifiers"
#define XmNlabelDirection "labelDirection"
#define XmNselected "selected"
#define XmNselectionModifiers "selectionModifiers"
#define XmNselectionColor "selectionColor"
#define XmNtruncateLabel "truncateLabel"
#define XmNlabelAlignment "labelAlignment"
#define XmNtruncateProc "truncateProc"
#define XmNunderlineThickness "underlineThickness"
#define XmCEditModifiers "EditModifiers"
#define XmCFontItemLabels "FontItemLabels"
#define XmCLabelAlignment "LabelAlignment"
#define XmCLabelDirection "LabelDirection"
#define XmCSelectionModifiers "SelectionModifiers"
#define XmCSelected "Selected"
#define XmCSelectionColor "SelectionColor"
#define XmCTruncateLabel "TruncateLabel"
#define XmCTruncateProc "TruncateProc"
#define XmRModifiers "Modifiers"
/*----------------------------------------------------------------------*/
/* */
/* XfeLabel class names */

Просмотреть файл

@ -538,7 +538,7 @@ XfeLinkedTail(XfeLinked list)
/* */
/*----------------------------------------------------------------------*/
/* extern */ XfeLinkNode
XfeLinkedIndex(XfeLinked list,Cardinal i)
XfeLinkedNodeAtIndex(XfeLinked list,Cardinal i)
{
XfeLinkNode node;
Cardinal index = 0;
@ -579,6 +579,19 @@ XfeLinkedPosition(XfeLinked list,XtPointer item,Cardinal * pos)
return False;
}
/*----------------------------------------------------------------------*/
/* extern */ XtPointer
XfeLinkedItemAtIndex(XfeLinked list,Cardinal i)
{
XfeLinkNode node = XfeLinkedNodeAtIndex(list,i);
if (node != NULL)
{
return node->item;
}
return (XtPointer) NULL;
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */

Просмотреть файл

@ -41,7 +41,7 @@ typedef void (*XfeLinkedApplyProc) (XtPointer item,
/*----------------------------------------------------------------------*/
/* */
/* XfeLinkedTestFunc type */
/* XfeLinkedTestFunc type */
/* */
/*----------------------------------------------------------------------*/
typedef Boolean (*XfeLinkedTestFunc) (XtPointer item,
@ -49,7 +49,7 @@ typedef Boolean (*XfeLinkedTestFunc) (XtPointer item,
/*----------------------------------------------------------------------*/
/* */
/* XfeLinkedCompareFunc */
/* XfeLinkedCompareFunc */
/* */
/*----------------------------------------------------------------------*/
typedef int (*XfeLinkedCompareFunc) (XtPointer one,
@ -160,7 +160,7 @@ XfeLinkedFindNodeByItem (XfeLinked list,
XtPointer item);
/*----------------------------------------------------------------------*/
extern XfeLinkNode
XfeLinkedIndex (XfeLinked list,
XfeLinkedNodeAtIndex (XfeLinked list,
Cardinal i);
/*----------------------------------------------------------------------*/
extern Boolean
@ -168,6 +168,10 @@ XfeLinkedPosition (XfeLinked list,
XtPointer item,
Cardinal * pos);
/*----------------------------------------------------------------------*/
extern XtPointer
XfeLinkedItemAtIndex (XfeLinked list,
Cardinal i);
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */

Просмотреть файл

@ -31,6 +31,27 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeLogo resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNanimationCallback "animationCallback"
#define XmNanimationInterval "animationInterval"
#define XmNresetWhenIdle "resetWhenIdle"
#define XmRPixmapTable "PixmapTable"
#define XmNnumAnimationPixmaps "numAnimationPixmaps"
#define XmNcurrentPixmapIndex "currentPixmapIndex"
#define XmNanimationPixmaps "animationPixmaps"
#define XmNanimationRunning "animationRunning"
#define XmCAnimationInterval "AnimationInterval"
#define XmCAnimationPixmaps "AnimationPixmaps"
#define XmCCurrentPixmapIndex "CurrentPixmapIndex"
#define XmCNumAnimationPixmaps "NumAnimationPixmaps"
#define XmCResetWhenIdle "ResetWhenIdle"
/*----------------------------------------------------------------------*/
/* */
/* XfeLogo class names */

Просмотреть файл

@ -81,6 +81,7 @@ CSRCS = \
Cursor.c \
Debug.c \
DialogUtil.c \
Divider.c \
Draw.c \
DynamicManager.c \
Find.c \
@ -100,7 +101,6 @@ CSRCS = \
Primitive.c \
Private.c \
ProgressBar.c \
RepType.c \
Resources.c \
SetValues.c \
ShellUtil.c \
@ -129,6 +129,8 @@ EXPORTS = \
Debug.h \
Defaults.h \
DialogUtil.h \
Divider.h \
DividerP.h \
Draw.h \
DynamicManager.h \
DynamicManagerP.h \
@ -157,10 +159,8 @@ EXPORTS = \
PrimitiveP.h \
ProgressBar.h \
ProgressBarP.h \
RepType.h \
Resources.h \
ShellUtil.h \
StringDefs.h \
StringUtil.h \
WmUtil.h \
Xfe.h \

Просмотреть файл

@ -86,6 +86,7 @@ CSRCS = \
Cursor.c \
Debug.c \
DialogUtil.c \
Divider.c \
Draw.c \
DynamicManager.c \
Find.c \
@ -105,7 +106,6 @@ CSRCS = \
Primitive.c \
Private.c \
ProgressBar.c \
RepType.c \
Resources.c \
SetValues.c \
ShellUtil.c \
@ -134,6 +134,8 @@ EXPORTS = \
Debug.h \
Defaults.h \
DialogUtil.h \
Divider.h \
DividerP.h \
Draw.h \
DynamicManager.h \
DynamicManagerP.h \
@ -162,10 +164,8 @@ EXPORTS = \
PrimitiveP.h \
ProgressBar.h \
ProgressBarP.h \
RepType.h \
Resources.h \
ShellUtil.h \
StringDefs.h \
StringUtil.h \
WmUtil.h \
Xfe.h \

Просмотреть файл

@ -53,10 +53,18 @@
#define MESSAGE21 "XmNlinkNode is a read-only resource."
#define MESSAGE50 "XmNcomponentChildren is a read-only resource."
#define MESSAGE51 "XmNstaticChildren is a read-only resource."
#define MESSAGE52 "XmNnumComponentChildren is a read-only resource."
#define MESSAGE53 "XmNnumStaticChildren is a read-only resource."
#define MESSAGE51 "XmNnumComponentChildren is a read-only resource."
#define MESSAGE52 "XmNmaxComponentWidth is a read-only resource."
#define MESSAGE53 "XmNmaxComponentHeight is a read-only resource."
#define MESSAGE54 "XmNtotalComponentWidth is a read-only resource."
#define MESSAGE55 "XmNtotalComponentHeight is a read-only resource."
#define MESSAGE60 "XmNstaticChildren is a read-only resource."
#define MESSAGE61 "XmNnumStaticChildren is a read-only resource."
#define MESSAGE62 "XmNmaxStaticWidth is a read-only resource."
#define MESSAGE63 "XmNmaxStaticHeight is a read-only resource."
#define MESSAGE64 "XmNtotalStaticWidth is a read-only resource."
#define MESSAGE65 "XmNtotalStaticHeight is a read-only resource."
#define MIN_LAYOUT_WIDTH 10
#define MIN_LAYOUT_HEIGHT 10
@ -340,6 +348,42 @@ static const XtResource resources[] =
XmRImmediate,
(XtPointer) 0
},
{
XmNmaxComponentChildrenWidth,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . max_component_width),
XmRImmediate,
(XtPointer) 0
},
{
XmNmaxComponentChildrenHeight,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . max_component_height),
XmRImmediate,
(XtPointer) 0
},
{
XmNtotalComponentChildrenWidth,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . total_component_width),
XmRImmediate,
(XtPointer) 0
},
{
XmNtotalComponentChildrenHeight,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . total_component_height),
XmRImmediate,
(XtPointer) 0
},
/* Static children resources */
{
@ -360,6 +404,42 @@ static const XtResource resources[] =
XmRImmediate,
(XtPointer) 0
},
{
XmNmaxStaticChildrenWidth,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . max_static_width),
XmRImmediate,
(XtPointer) 0
},
{
XmNmaxStaticChildrenHeight,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . max_static_height),
XmRImmediate,
(XtPointer) 0
},
{
XmNtotalStaticChildrenWidth,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . total_static_width),
XmRImmediate,
(XtPointer) 0
},
{
XmNtotalStaticChildrenHeight,
XmCDimension,
XmRDimension,
sizeof(Dimension),
XtOffsetOf(XfeManagerRec , xfe_manager . total_static_height),
XmRImmediate,
(XtPointer) 0
},
#ifdef DEBUG
/* Debug resources */
@ -618,7 +698,7 @@ CoreClassInitialize()
XfeRegisterConverters();
/* Register Representation Types */
XfeRegisterRepresentationTypes();
/* XfeRegisterRepresentationTypes(); */
}
/*----------------------------------------------------------------------*/
static void
@ -742,7 +822,7 @@ static void
CoreResize(Widget w)
{
#ifdef DEBUG
XfeDebugPrintfFunction(w,"CoreResize",NULL);
/* XfeDebugPrintfFunction(w,"CoreResize",NULL); */
#endif
/* Obtain the Prefered Geometry */
@ -831,16 +911,6 @@ CoreSetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
_XfeWarning(nw,MESSAGE9);
}
#if 0
/* num_private_components */
if (_XfemNumComponentChildren(nw) != _XfemNumComponentChildren(ow))
{
_XfemNumComponentChildren(nw) = _XfemNumComponentChildren(ow);
_XfeWarning(nw,MESSAGE15);
}
#endif
/* XmNcomponentChildren */
if (_XfemComponentChildren(nw) != _XfemComponentChildren(ow))
{
@ -854,15 +924,47 @@ CoreSetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
_XfemNumComponentChildren(nw) = _XfemNumComponentChildren(ow);
_XfeWarning(nw,MESSAGE51);
}
/* XmNmaxComponentWidth */
if (_XfemMaxComponentWidth(nw) != _XfemMaxComponentWidth(ow))
{
_XfemMaxComponentWidth(nw) = _XfemMaxComponentWidth(ow);
_XfeWarning(nw,MESSAGE52);
}
/* XmNmaxComponentHeight */
if (_XfemMaxComponentHeight(nw) != _XfemMaxComponentHeight(ow))
{
_XfemMaxComponentHeight(nw) = _XfemMaxComponentHeight(ow);
_XfeWarning(nw,MESSAGE53);
}
/* XmNtotalComponentWidth */
if (_XfemTotalComponentWidth(nw) != _XfemTotalComponentWidth(ow))
{
_XfemTotalComponentWidth(nw) = _XfemTotalComponentWidth(ow);
_XfeWarning(nw,MESSAGE54);
}
/* XmNtotalComponentHeight */
if (_XfemTotalComponentHeight(nw) != _XfemTotalComponentHeight(ow))
{
_XfemTotalComponentHeight(nw) = _XfemTotalComponentHeight(ow);
_XfeWarning(nw,MESSAGE55);
}
/* XmNstaticChildren */
if (_XfemStaticChildren(nw) != _XfemStaticChildren(ow))
{
_XfemStaticChildren(nw) = _XfemStaticChildren(ow);
_XfeWarning(nw,MESSAGE52);
_XfeWarning(nw,MESSAGE60);
}
/* XmNnumStaticChildren */
@ -870,7 +972,39 @@ CoreSetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
_XfemNumStaticChildren(nw) = _XfemNumStaticChildren(ow);
_XfeWarning(nw,MESSAGE53);
_XfeWarning(nw,MESSAGE61);
}
/* XmNmaxStaticWidth */
if (_XfemMaxStaticWidth(nw) != _XfemMaxStaticWidth(ow))
{
_XfemMaxStaticWidth(nw) = _XfemMaxStaticWidth(ow);
_XfeWarning(nw,MESSAGE62);
}
/* XmNmaxStaticHeight */
if (_XfemMaxStaticHeight(nw) != _XfemMaxStaticHeight(ow))
{
_XfemMaxStaticHeight(nw) = _XfemMaxStaticHeight(ow);
_XfeWarning(nw,MESSAGE63);
}
/* XmNtotalStaticWidth */
if (_XfemTotalStaticWidth(nw) != _XfemTotalStaticWidth(ow))
{
_XfemTotalStaticWidth(nw) = _XfemTotalStaticWidth(ow);
_XfeWarning(nw,MESSAGE64);
}
/* XmNtotalStaticHeight */
if (_XfemTotalStaticHeight(nw) != _XfemTotalStaticHeight(ow))
{
_XfemTotalStaticHeight(nw) = _XfemTotalStaticHeight(ow);
_XfeWarning(nw,MESSAGE65);
}
/* height */
@ -1053,6 +1187,10 @@ CompositeInsertChild(Widget child)
/* Add the child to the component children list */
XfeLinkedInsertAtTail(_XfemComponentChildren(w),child);
/* Update the component children count */
_XfemNumComponentChildren(w) =
XfeLinkedCount(_XfemComponentChildren(w));
/* Call XmManager's CompositeInsertChild to do the Xt magic */
(*mwc->composite_class.insert_child)(child);
}
@ -1092,6 +1230,10 @@ CompositeInsertChild(Widget child)
/* Add the child to the static children list */
XfeLinkedInsertAtTail(_XfemStaticChildren(w),child);
/* Update the static children count */
_XfemNumStaticChildren(w) =
XfeLinkedCount(_XfemStaticChildren(w));
/* Call XmManager's CompositeInsertChild to do the Xt magic */
(*mwc->composite_class.insert_child)(child);
@ -1165,6 +1307,10 @@ CompositeDeleteChild(Widget child)
if (node != NULL)
{
XfeLinkedRemoveNode(_XfemComponentChildren(w),node);
/* Update the component children count */
_XfemNumComponentChildren(w) =
XfeLinkedCount(_XfemComponentChildren(w));
}
}
/*
@ -1185,6 +1331,10 @@ CompositeDeleteChild(Widget child)
if (node != NULL)
{
XfeLinkedRemoveNode(_XfemStaticChildren(w),node);
/* Update the static children count */
_XfemNumStaticChildren(w) =
XfeLinkedCount(_XfemStaticChildren(w));
}
/* Delete the static child */

Просмотреть файл

@ -31,6 +31,41 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeManager resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNchangeManagedCallback "changeManagedCallback"
#define XmNlayoutCallback "layoutCallback"
#define XmNcomponentChildren "componentChildren"
#define XmNmaxComponentChildrenHeight "maxComponentChildrenHeight"
#define XmNmaxComponentChildrenWidth "maxComponentChildrenWidth"
#define XmNmaxStaticChildrenHeight "maxStaticChildrenHeight"
#define XmNmaxStaticChildrenWidth "maxStaticChildrenWidth"
#define XmNnumComponentChildren "numComponentChildren"
#define XmNnumManagedComponentChildren "numManagedComponentChildren"
#define XmNnumManagedStaticChildren "numManagedStaticChildren"
#define XmNnumStaticChildren "numStaticChildren"
#define XmNstaticChildren "staticChildren"
#define XmNtotalComponentChildrenHeight "totalComponentChildrenHeight"
#define XmNtotalComponentChildrenWidth "totalComponentChildrenWidth"
#define XmNtotalStaticChildrenHeight "totalStaticChildrenHeight"
#define XmNmanagerChildType "managerChildType"
#define XmNignoreConfigure "ignoreConfigure"
#define XmNtotalStaticChildrenWidth "totalStaticChildrenWidth"
#define XmNbusy "busy"
#define XmNbusyCursor "busyCursor"
#define XmNbusyCursorOn "busyCursorOn"
#define XmRManagerChildType "ManagerChildType"
#define XmCBusy "Busy"
#define XmCBusyCursor "BusyCursor"
#define XmCIgnoreConfigure "IgnoreConfigure"
#define XmCBusyCursorOn "BusyCursorOn"
#define XmRLinkedChildren "LinkedChildren"
/*----------------------------------------------------------------------*/
/* */
/* XmRManagerChildType */

Просмотреть файл

@ -194,71 +194,43 @@ _XfeManagerGetChildrenInfo(Widget w,
/* extern */ void
_XfeManagerUpdateComponentChildrenInfo(Widget w)
{
#if 0
Dimension max_width = 0;
Dimension max_height = 0;
Dimension min_width = 0;
Dimension min_height = 0;
Dimension total_width = 0;
Dimension total_height = 0;
Cardinal num_managed = 0;
#endif
if (_XfemComponentChildren(w) == NULL)
if (_XfemComponentChildren(w) != NULL)
{
return;
}
#if 0
_XfeManagerGetChildrenInfo(w,
_XfemComponentChildren(w),
XfeCHILDREN_INFO_ALIVE|XfeCHILDREN_INFO_MANAGED,
NULL,
&max_width,
&max_height,
&min_width,
&min_height,
&total_width,
&total_height,
&num_managed);
#endif
_XfemNumComponentChildren(w) = XfeLinkedCount(_XfemComponentChildren(w));
&_XfemMaxComponentWidth(w),
&_XfemMaxComponentHeight(w),
NULL,
NULL,
NULL,
NULL,
NULL);
}
/*----------------------------------------------------------------------*/
/* extern */ void
_XfeManagerUpdateStaticChildrenInfo(Widget w)
{
#if 0
Dimension max_width = 0;
Dimension max_height = 0;
Dimension min_width = 0;
Dimension min_height = 0;
Dimension total_width = 0;
Dimension total_height = 0;
Cardinal num_managed = 0;
#endif
if (_XfemStaticChildren(w) == NULL)
if (_XfemStaticChildren(w) != NULL)
{
return;
}
#if 0
_XfeManagerGetChildrenInfo(w,
_XfemStaticChildren(w),
XfeCHILDREN_INFO_ALIVE|XfeCHILDREN_INFO_MANAGED,
NULL,
&max_width,
&max_height,
&min_width,
&min_height,
&total_width,
&total_height,
&num_managed);
#endif
_XfemNumStaticChildren(w) = XfeLinkedCount(_XfemStaticChildren(w));
&_XfemMaxStaticWidth(w),
&_XfemMaxStaticHeight(w),
NULL,
NULL,
NULL,
NULL,
NULL);
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -131,11 +131,19 @@ typedef struct _XfeManagerPart
/* Component children resources */
XfeLinked component_children; /* Component children */
Cardinal num_component_children; /* Num Component children*/
Cardinal num_component_children; /* Num component children*/
Dimension max_component_width; /* Max component width */
Dimension max_component_height; /* Max component height */
Dimension total_component_width; /* Total component width*/
Dimension total_component_height; /* Total component height*/
/* Static children resources */
XfeLinked static_children; /* Static children */
Cardinal num_static_children; /* Num Static children */
Dimension max_static_width; /* Max static width */
Dimension max_static_height; /* Max static height */
Dimension total_static_width; /* Total static width */
Dimension total_static_height; /* Total static height */
/* Debug resources */
#ifdef DEBUG
@ -535,12 +543,36 @@ _XfeManagerApplyProcToChildren (Widget w,
#define _XfemNumComponentChildren(w) \
(((XfeManagerWidget) (w))->xfe_manager . num_component_children)
/*----------------------------------------------------------------------*/
#define _XfemMaxComponentWidth(w) \
(((XfeManagerWidget) (w))->xfe_manager . max_component_width)
/*----------------------------------------------------------------------*/
#define _XfemMaxComponentHeight(w) \
(((XfeManagerWidget) (w))->xfe_manager . max_component_height)
/*----------------------------------------------------------------------*/
#define _XfemTotalComponentWidth(w) \
(((XfeManagerWidget) (w))->xfe_manager . total_component_width)
/*----------------------------------------------------------------------*/
#define _XfemTotalComponentHeight(w) \
(((XfeManagerWidget) (w))->xfe_manager . total_component_height)
/*----------------------------------------------------------------------*/
#define _XfemStaticChildren(w) \
(((XfeManagerWidget) (w))->xfe_manager . static_children)
/*----------------------------------------------------------------------*/
#define _XfemNumStaticChildren(w) \
(((XfeManagerWidget) (w))->xfe_manager . num_static_children)
/*----------------------------------------------------------------------*/
#define _XfemMaxStaticWidth(w) \
(((XfeManagerWidget) (w))->xfe_manager . max_static_width)
/*----------------------------------------------------------------------*/
#define _XfemMaxStaticHeight(w) \
(((XfeManagerWidget) (w))->xfe_manager . max_static_height)
/*----------------------------------------------------------------------*/
#define _XfemTotalStaticWidth(w) \
(((XfeManagerWidget) (w))->xfe_manager . total_static_width)
/*----------------------------------------------------------------------*/
#define _XfemTotalStaticHeight(w) \
(((XfeManagerWidget) (w))->xfe_manager . total_static_height)
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
@ -554,6 +586,22 @@ _XfeManagerApplyProcToChildren (Widget w,
(_XfemStaticChildren(w) ? XfeLinkedCount(_XfemStaticChildren(w)) : 0)
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Component children indexing macro */
/* */
/*----------------------------------------------------------------------*/
#define _XfemComponentChildrenIndex(w,i) \
(_XfemComponentChildren(w) ? XfeLinkedItemAtIndex(_XfemComponentChildren(w),i) : NULL)
/*----------------------------------------------------------------------*/
/* */
/* Static children indexing macro */
/* */
/*----------------------------------------------------------------------*/
#define _XfemStaticChildrenIndex(w,i) \
(_XfemStaticChildren(w) ? XfeLinkedItemAtIndex(_XfemStaticChildren(w),i) : NULL)
/*----------------------------------------------------------------------*/
/* */
/* XfeManager boundary access macros */

Просмотреть файл

@ -34,7 +34,21 @@ XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */
/* XfeOriented resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNallowDrag "allowDrag"
#define XmNdragInProgress "dragInProgress"
#define XmNhorizontalCursor "horizontalCursor"
#define XmNverticalCursor "verticalCursor"
#define XmCDragInProgress "DragInProgress"
#define XmCHorizontalCursor "HorizontalCursor"
#define XmCVerticalCursor "VerticalCursor"
/*----------------------------------------------------------------------*/
/* */
/* XfeOriented class names */
/* */
/*----------------------------------------------------------------------*/
externalref WidgetClass xfeOrientedWidgetClass;
@ -44,7 +58,7 @@ typedef struct _XfeOrientedRec * XfeOrientedWidget;
/*----------------------------------------------------------------------*/
/* */
/* XfeBox subclass test macro */
/* XfeOriented subclass test macro */
/* */
/*----------------------------------------------------------------------*/
#define XfeIsOriented(w) XtIsSubclass(w,xfeOrientedWidgetClass)

Просмотреть файл

@ -60,6 +60,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
static Boolean SetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -182,6 +183,13 @@ static Boolean FindTestIsAttachment (Widget,XtPointer);
static void DefaultPaneChildType (Widget,int,XrmValue *);
static void DefaultPaneChildAttachment (Widget,int,XrmValue *);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void PaneRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfePane resources */
@ -562,7 +570,7 @@ _XFE_WIDGET_CLASS_RECORD(pane,Pane) =
(WidgetClass) &xfeOrientedClassRec, /* superclass */
"XfePane", /* class_name */
sizeof(XfePaneRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -788,6 +796,48 @@ DefaultPaneChildAttachment(Widget child,int offset,XrmValue * value)
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
PaneRegisterRepTypes(void)
{
static String drag_names[] =
{
"pane_drag_preserve_one",
"pane_drag_preserve_two",
"pane_drag_preserve_ratio",
NULL
};
static String attachment_names[] =
{
"pane_child_attach_none",
"pane_child_attach_bottom",
"pane_child_attach_left",
"pane_child_attach_right",
"pane_child_attach_top",
NULL
};
static String sash_names[] =
{
"pane_sash_double_line",
"pane_sash_filled_rectangle",
"pane_sash_live",
"pane_sash_rectangle",
"pane_sash_single_line",
NULL
};
XfeRepTypeRegister(XmRPaneDragMode,drag_names);
XfeRepTypeRegister(XmRPaneChildAttachment,attachment_names);
XfeRepTypeRegister(XmRPaneSashType,sash_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
@ -795,6 +845,13 @@ DefaultPaneChildAttachment(Widget child,int offset,XrmValue * value)
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfePane representation types */
PaneRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
Initialize(Widget rw,Widget nw,ArgList av,Cardinal * ac)
{
XfePanePart * sp = _XfePanePart(nw);

Просмотреть файл

@ -32,6 +32,60 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfePane resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNallowExpand "allowExpand"
#define XmNalwaysVisible "alwaysVisible"
#define XmNattachmentOneBottom "attachmentOneBottom"
#define XmNattachmentOneLeft "attachmentOneLeft"
#define XmNattachmentOneRight "attachmentOneRight"
#define XmNattachmentOneTop "attachmentOneTop"
#define XmNattachmentTwoBottom "attachmentTwoBottom"
#define XmNattachmentTwoLeft "attachmentTwoLeft"
#define XmNpaneChildAttachment "paneChildAttachment"
#define XmNpaneChildType "paneChildType"
#define XmNpaneSashType "paneSashType"
#define XmNattachmentTwoRight "attachmentTwoRight"
#define XmNsashColor "sashColor"
#define XmNsashOffset "sashOffset"
#define XmNsashPosition "sashPosition"
#define XmNsashSpacing "sashSpacing"
#define XmNsashThickness "sashThickness"
#define XmNchildOne "childOne"
#define XmNchildTwo "childTwo"
#define XmNattachmentTwoTop "attachmentTwoTop"
#define XmNpaneDragMode "paneDragMode"
#define XmNsashAlwaysVisible "sashAlwaysVisible"
#define XmNsashShadowType "sashShadowType"
#define XmCAlwaysVisible "AlwaysVisible"
#define XmCAttachmentOneBottom "AttachmentOneBottom"
#define XmCAttachmentOneLeft "AttachmentOneLeft"
#define XmCAttachmentOneRight "AttachmentOneRight"
#define XmCAttachmentOneTop "AttachmentOneTop"
#define XmCAttachmentTwoBottom "AttachmentTwoBottom"
#define XmCAttachmentTwoLeft "AttachmentTwoLeft"
#define XmCAttachmentTwoRight "AttachmentTwoRight"
#define XmCAttachmentTwoTop "AttachmentTwoTop"
#define XmCChildOne "ChildOne"
#define XmCChildTwo "ChildTwo"
#define XmCSashColor "SashColor"
#define XmCPaneChildAttachment "PaneChildAttachment"
#define XmCPaneChildType "PaneChildType"
#define XmCPaneDragMode "PaneDragMode"
#define XmCPaneSashType "PaneSashType"
#define XmCSashAlwaysVisible "SashAlwaysVisible"
#define XmCSashSpacing "SashSpacing"
#define XmCSashThickness "SashThickness"
#define XmRPaneChildAttachment "PaneChildAttachment"
#define XmRPaneChildType "PaneChildType"
#define XmRPaneDragMode "PaneDragMode"
#define XmRPaneSashType "PaneSashType"
/*----------------------------------------------------------------------*/
/* */
/* XmRPaneChildType */

Просмотреть файл

@ -97,6 +97,13 @@ static void BufferUpdate (Widget);
static Dimension GetWidth (Widget);
static Dimension GetHeight (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void PrimitiveRegisterRepTypes (void);
/*----------------------------------------------------------------------*/
/* */
/* XfePrimitive Resources */
@ -488,6 +495,26 @@ _XFE_WIDGET_CLASS_RECORD(primitive,Primitive) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(primitive,Primitive);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
PrimitiveRegisterRepTypes(void)
{
static String buffer_names[] =
{
"buffer_shared",
"buffer_none",
"buffer_private",
NULL
};
XfeRepTypeRegister(XmRBufferType,buffer_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core Class Methods */
@ -499,8 +526,8 @@ ClassInitialize()
/* Register Xfe Converters */
XfeRegisterConverters();
/* Register Representation Types */
XfeRegisterRepresentationTypes();
/* Register XfePrimitive Types */
PrimitiveRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void

Просмотреть файл

@ -31,6 +31,48 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfePrimitive resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNenterCallback "enterCallback"
#define XmNleaveCallback "leaveCallback"
#define XmNpretendSensitive "pretendSensitive"
#define XmNusePreferredHeight "usePreferredHeight"
#define XmNusePreferredWidth "usePreferredWidth"
#define XmNpreferredHeight "preferredHeight"
#define XmNpreferredWidth "preferredWidth"
#define XmNbufferType "bufferType"
#define XmNcursor "cursor"
#define XmNpointerInside "pointerInside"
#define XmNcursorOn "cursorOn"
#define XmNinstancePointer "instancePointer"
#define XmNpopupChildren "popupChildren"
#define XmNnumPopupChildren "numPopupChildren"
#define XmCPretendSensitive "PretendSensitive"
#define XmCUsePreferredHeight "UsePreferredHeight"
#define XmCUsePreferredWidth "UsePreferredWidth"
#define XmCBufferType "BufferType"
#define XmCInstancePointer "InstancePointer"
#define XmRBufferType "BufferType"
/*----------------------------------------------------------------------*/
/* */
/* Resources shared by more than one sub class. */
/* */
/*----------------------------------------------------------------------*/
#define XmNdragThreshold "dragThreshold"
#define XmNpoppedUp "poppedUp"
#define XmNtitleFontList "titleFontList"
#define XmCDragThreshold "DragThreshold"
#define XmCTitleFontList "TitleFontList"
#define XmCTitleFontList "TitleFontList"
/*----------------------------------------------------------------------*/
/* */
/* XmRBufferType */

Просмотреть файл

@ -31,6 +31,26 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeProgressBar resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNbarColor "barColor"
#define XmNcylonInterval "cylonInterval"
#define XmNcylonOffset "cylonOffset"
#define XmNcylonRunning "cylonRunning"
#define XmNendPercent "endPercent"
#define XmNstartPercent "startPercent"
#define XmNcylonWidth "cylonWidth"
#define XmCBarColor "BarColor"
#define XmCCylonInterval "CylonInterval"
#define XmCCylonOffset "CylonOffset"
#define XmCCylonWidth "CylonWidth"
#define XmCEndPercent "EndPercent"
#define XmCStartPercent "StartPercent"
/*----------------------------------------------------------------------*/
/* */
/* XfeProgressBar class names */

Просмотреть файл

@ -1,338 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/RepType.c> */
/* Description: Xfe widgets representation types source. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#include <Xm/RepType.h>
#include <Xfe/XfeP.h>
/*----------------------------------------------------------------------*/
/* extern */ Boolean
XfeRepTypeCheck(Widget w,
String rep_type,
unsigned char * address,
unsigned char fallback)
/*----------------------------------------------------------------------*/
{
Boolean result = True;
assert( address != NULL );
if (!XmRepTypeValidValue(XmRepTypeGetId(rep_type),*address,w))
{
result = False;
*address = fallback;
}
return result;
}
/*----------------------------------------------------------------------*/
static void
RegisterBoxType(void)
{
static String BoxNames[] =
{
"box_none",
"box_plain",
"box_shadow"
};
XmRepTypeRegister(XmRBoxType,BoxNames,NULL,XtNumber(BoxNames));
}
/*----------------------------------------------------------------------*/
static void
RegisterButtonLayout(void)
{
static String names[] =
{
"button_label_only",
"button_label_on_bottom",
"button_label_on_left",
"button_label_on_right",
"button_label_on_top",
"button_pixmap_only"
};
XmRepTypeRegister(XmRButtonLayout,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterButtonTrigger(void)
{
static String names[] =
{
"button_trigger_anywhere",
"button_trigger_label",
"button_trigger_pixmap",
"button_trigger_either",
"button_trigger_neither"
};
XmRepTypeRegister(XmRButtonTrigger,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
#ifdef notused
static void
RegisterArrowType(void)
{
static String ArrowNames[] =
{
"arrow_pointer",
"arrow_pointer_base",
"arrow_triangle",
"arrow_triangle_base"
};
/* XmRepTypeRegister(XmRArrowType,ArrowNames,NULL,XtNumber(ArrowNames));*/
}
/*----------------------------------------------------------------------*/
#endif
static void
RegisterBufferType(void)
{
static String BufferNames[] =
{
"buffer_shared",
"buffer_none",
"buffer_private"
};
XmRepTypeRegister(XmRBufferType,BufferNames,NULL,XtNumber(BufferNames));
}
/*----------------------------------------------------------------------*/
static void
RegisterButtonType(void)
{
static String ButtonNames[] =
{
"button_none",
"button_push",
"button_toggle"
};
XmRepTypeRegister(XmRButtonType,ButtonNames,NULL,XtNumber(ButtonNames));
}
/*----------------------------------------------------------------------*/
static void
RegisterRulesType(void)
{
static String RulesNames[] =
{
"rules_date",
"rules_option",
"rules_text"
};
XmRepTypeRegister(XmRRulesType,RulesNames,NULL,XtNumber(RulesNames));
}
/*----------------------------------------------------------------------*/
static void
RegisterLocationType(void)
{
static String names[] =
{
"location_east",
"location_north",
"location_north_east",
"location_north_west",
"location_south",
"location_south_east",
"location_south_west",
"location_west"
};
XmRepTypeRegister(XmRLocationType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterToolScrollArrowPlacement(void)
{
static String names[] =
{
"tool_scroll_arrow_placement_both",
"tool_scroll_arrow_placement_end",
"tool_scroll_arrow_placement_start"
};
XmRepTypeRegister(XmRToolScrollArrowPlacement,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterPaneChildType(void)
{
static String names[] =
{
"pane_child_none",
"pane_child_attachment_one",
"pane_child_attachment_two",
"pane_child_work_area_one",
"pane_child_work_area_two"
};
XmRepTypeRegister(XmRPaneChildType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterPaneDragModeType(void)
{
static String names[] =
{
"pane_drag_preserve_one",
"pane_drag_preserve_two",
"pane_drag_preserve_ratio"
};
XmRepTypeRegister(XmRPaneDragMode,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterPaneChildAttachment(void)
{
static String names[] =
{
"pane_child_attach_none",
"pane_child_attach_bottom",
"pane_child_attach_left",
"pane_child_attach_right",
"pane_child_attach_top",
};
XmRepTypeRegister(XmRPaneChildAttachment,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterPaneSashType(void)
{
static String names[] =
{
"pane_sash_double_line",
"pane_sash_filled_rectangle",
"pane_sash_live",
"pane_sash_rectangle",
"pane_sash_single_line"
};
XmRepTypeRegister(XmRPaneSashType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterToolBarSelectionPolicy(void)
{
static String names[] =
{
"tool_bar_select_none",
"tool_bar_select_single",
"tool_bar_select_multiple"
};
XmRepTypeRegister(XmRToolBarSelectionPolicy,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterToolBarToggleBehavior(void)
{
static String names[] =
{
"tool_bar_toggle_one_or_more",
"tool_bar_toggle_only_one",
"tool_bar_toggle_zero_or_more",
"tool_bar_toggle_zero_or_one"
};
XmRepTypeRegister(XmRToolBarToggleBehavior,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterToolBarIndicatorLocation(void)
{
static String names[] =
{
"indicator_location_none",
"indicator_location_beginning",
"indicator_location_end",
"indicator_location_middle"
};
XmRepTypeRegister(XmRToolBarIndicatorLocation,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterChromeChildType(void)
{
static String names[] =
{
"chrome_bottom_view",
"chrome_center_view",
"chrome_dash_board",
"chrome_ignore",
"chrome_left_view",
"chrome_menu_bar",
"chrome_right_view",
"chrome_tool_box",
"chrome_top_view"
};
XmRepTypeRegister(XmRChromeChildType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
#if 0
static void
RegisterManagerChildType(void)
{
static String names[] =
{
"manager_component_child",
"manager_dynamic_child",
"manager_static_child"
};
XmRepTypeRegister(XmRManagerChildType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
#endif
/* extern */ void
XfeRegisterRepresentationTypes(void)
{
RegisterBoxType();
RegisterBufferType();
RegisterButtonLayout();
RegisterButtonTrigger();
RegisterButtonType();
RegisterChromeChildType();
RegisterLocationType();
/* RegisterManagerChildType(); */
RegisterPaneChildAttachment();
RegisterPaneChildType();
RegisterPaneDragModeType();
RegisterPaneSashType();
RegisterRulesType();
RegisterToolBarIndicatorLocation();
RegisterToolBarSelectionPolicy();
RegisterToolBarToggleBehavior();
RegisterToolScrollArrowPlacement();
/* XfeRegisterArrowType(); */
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -1,51 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/RepType.h> */
/* Description: Xfe widgets representation types public header. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#ifndef _XfeRepType_h_ /* start RepType.h */
#define _XfeRepType_h_
#include <Xfe/BasicDefines.h>
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* Representation types */
/* */
/*----------------------------------------------------------------------*/
extern Boolean
XfeRepTypeCheck (Widget w,
String rep_type,
unsigned char * address,
unsigned char fallback);
/*----------------------------------------------------------------------*/
extern void
XfeRegisterRepresentationTypes (void);
/*----------------------------------------------------------------------*/
XFE_END_CPLUSPLUS_PROTECTION
#endif /* end RepType.h */

Просмотреть файл

@ -1,545 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/StringDefs.h> */
/* Description: Xfe widgets string definitions. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#ifndef _XfeStringDefs_h_ /* start StringDefs.h */
#define _XfeStringDefs_h_
/*----------------------------------------------------------------------*/
/* */
/* Callback Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNactionCallback "actionCallback"
#define XmNanimationCallback "animationCallback"
#define XmNbeforeRealizeCallback "beforeRealizeCallback"
#define XmNbeforeResizeCallback "beforeResizeCallback"
#define XmNbutton3DownCallback "button3DownCallback"
#define XmNbutton3UpCallback "button3UpCallback"
#define XmNchangeManagedCallback "changeManagedCallback"
#define XmNcloseCallback "closeCallback"
#define XmNcloseCallback "closeCallback"
#define XmNdeleteWindowCallback "deleteWindowCallback"
#define XmNdockCallback "dockCallback"
#define XmNdragAllowCallback "dragAllowCallback"
#define XmNdragEndCallback "dragEndCallback"
#define XmNenterCallback "enterCallback"
#define XmNfirstMapCallback "firstMapCallback"
#define XmNfloatingMapCallback "floatingMapCallback"
#define XmNfloatingUnmapCallback "floatingUnmapCallback"
#define XmNfocusInCallback "focusInCallback"
#define XmNfocusOutCallback "focusOutCallback"
#define XmNgrabCallback "grabCallback"
#define XmNlayoutCallback "layoutCallback"
#define XmNleaveCallback "leaveCallback"
#define XmNmoveCallback "moveCallback"
#define XmNnewItemCallback "newItemCallback"
#define XmNopenCallback "openCallback"
#define XmNpositionChangeCallback "positionChangeCallback"
#define XmNsaveYourselfCallback "saveYourselfCallback"
#define XmNselectionChangedCallback "selectionChangedCallback"
#define XmNsizeChangeCallback "sizeChangeCallback"
#define XmNsnapCallback "snapCallback"
#define XmNsubmenuTearCallback "submenuTearCallback"
#define XmNswapCallback "swapCallback"
#define XmNtaskBarCallback "taskBarCallback"
#define XmNtitleChangedCallback "titleChangedCallback"
#define XmNtoggleBoxCallback "toggleBoxCallback"
#define XmNtoggleSelectionCallback "toggleSelectionCallback"
#define XmNundockCallback "undockCallback"
#define XmNungrabCallback "ungrabCallback"
#define XmNvisibilityCallback "visibilityCallback"
/*----------------------------------------------------------------------*/
/* */
/* Resource Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNactionButton "actionButton"
#define XmNactionCursor "actionCursor"
#define XmNactionPixmap "actionPixmap"
#define XmNactive "active"
#define XmNactiveButton "activeButton"
#define XmNallowDrag "allowDrag"
#define XmNallowExpand "allowExpand"
#define XmNallowTearOff "allowTearOff"
#define XmNallowWrap "allowWrap"
#define XmNalwaysVisible "alwaysVisible"
#define XmNanimationInterval "animationInterval"
#define XmNanimationPixmaps "animationPixmaps"
#define XmNanimationRunning "animationRunning"
#define XmNarmBackground "armBackground"
#define XmNarmForeground "armForeground"
#define XmNarmOffset "armOffset"
#define XmNarmed "armed"
#define XmNarmedPixmap "armedPixmap"
#define XmNarmedPixmapMask "armedPixmapMask"
#define XmNarrowDisplayPolicy "arrowDisplayPolicy"
#define XmNarrowHeight "arrowHeight"
#define XmNarrowPlacement "arrowPlacement"
#define XmNarrowType "arrowType"
#define XmNarrowWidth "arrowWidth"
#define XmNarticleLabel "articleLabel"
#define XmNarticleWidth "articleWidth"
#define XmNattachmentOneBottom "attachmentOneBottom"
#define XmNattachmentOneLeft "attachmentOneLeft"
#define XmNattachmentOneRight "attachmentOneRight"
#define XmNattachmentOneTop "attachmentOneTop"
#define XmNattachmentTwoBottom "attachmentTwoBottom"
#define XmNattachmentTwoLeft "attachmentTwoLeft"
#define XmNattachmentTwoRight "attachmentTwoRight"
#define XmNattachmentTwoTop "attachmentTwoTop"
#define XmNattributeOptionMenu "attributeOptionMenu"
#define XmNbackwardArrow "backwardArrow"
#define XmNbarColor "barColor"
#define XmNbottomPixmap "bottomPixmap"
#define XmNbottomRaisedPixmap "bottomRaisedPixmap"
#define XmNbottomView "bottomView"
#define XmNboxHeight "boxHeight"
#define XmNboxState "boxState"
#define XmNboxThickness "boxThickness"
#define XmNboxType "boxType"
#define XmNboxWidth "boxWidth"
#define XmNbufferType "bufferType"
#define XmNbusy "busy"
#define XmNbusyCursor "busyCursor"
#define XmNbusyCursorOn "busyCursorOn"
#define XmNbuttonLayout "buttonLayout"
#define XmNbuttonTrigger "buttonTrigger"
#define XmNbypassShell "bypassShell"
#define XmNcascadeArrowDirection "cascadeArrowDirection"
#define XmNcascadeArrowHeight "cascadeArrowHeight"
#define XmNcascadeArrowLocation "cascadeArrowLocation"
#define XmNcascadeArrowWidth "cascadeArrowWidth"
#define XmNcenterView "centerView"
#define XmNchildForceHeight "childForceHeight"
#define XmNchildForceWidth "childForceWidth"
#define XmNchildOne "childOne"
#define XmNchildTwo "childTwo"
#define XmNchildUsePreferredHeight "childUsePreferredHeight"
#define XmNchildUsePreferredWidth "childUsePreferredWidth"
#define XmNchromeChildType "chromeChildType"
#define XmNclipArea "clipArea"
#define XmNclipShadowThickness "clipShadowThickness"
#define XmNclipShadowType "clipShadowType"
#define XmNclosedTabs "closedTabs"
#define XmNcurrentPixmapIndex "currentPixmapIndex"
#define XmNcursor "cursor"
#define XmNcursorOn "cursorOn"
#define XmNcylonInterval "cylonInterval"
#define XmNcylonOffset "cylonOffset"
#define XmNcylonRunning "cylonRunning"
#define XmNcylonWidth "cylonWidth"
#define XmNdashBoard "dashBoard"
#define XmNdefaultPixmap "defaultPixmap"
#define XmNdeterminate "determinate"
#define XmNdocked "docked"
#define XmNdockedTaskBar "dockedTaskBar"
#define XmNdragButton "dragButton"
#define XmNdragCursor "dragCursor"
#define XmNdragInProgress "dragInProgress"
#define XmNdragThreshold "dragThreshold"
#define XmNdrawCascadeArrow "drawCascadeArrow"
#define XmNdynamicIndicator "dynamicIndicator"
#define XmNeditModifiers "editModifiers"
#define XmNemulateMotif "emulateMotif"
#define XmNendPercent "endPercent"
#define XmNfillOnEnter "fillOnEnter"
#define XmNfloatingShell "floatingShell"
#define XmNfloatingTarget "floatingTarget"
#define XmNfloatingTaskBar "floatingTaskBar"
#define XmNfontItemFonts "fontItemFonts"
#define XmNfontItemLabels "fontItemLabels"
#define XmNforwardArrow "forwardArrow"
#define XmNhasBeenMapped "hasBeenMapped"
#define XmNhorizontalCursor "horizontalCursor"
#define XmNhorizontalPixmap "horizontalPixmap"
#define XmNhorizontalRaisedPixmap "horizontalRaisedPixmap"
#define XmNicon "icon"
#define XmNignoreConfigure "ignoreConfigure"
#define XmNignoreExposures "ignoreExposures"
#define XmNindicatorLocation "indicatorLocation"
#define XmNindicatorPosition "indicatorPosition"
#define XmNindicatorThreshold "indicatorThreshold"
#define XmNinputDateLabel "inputDateLabel"
#define XmNinputOptionMenu "inputOptionMenu"
#define XmNinputTextField "inputTextField"
#define XmNinsensitivePixmap "insensitivePixmap"
#define XmNinsensitivePixmapMask "insensitivePixmapMask"
#define XmNinstancePointer "instancePointer"
#define XmNitem "item"
#define XmNitemBackground "itemBackground"
#define XmNitemFontList "itemFontList"
#define XmNitemForeground "itemForeground"
#define XmNitemList "itemList"
#define XmNlabelAlignment "labelAlignment"
#define XmNlabelDirection "labelDirection"
#define XmNleftPixmap "leftPixmap"
#define XmNleftRaisedPixmap "leftRaisedPixmap"
#define XmNleftView "leftView"
#define XmNlinkNode "linkNode"
#define XmNlogo "logo"
#define XmNmanagedItemCount "managedItemCount"
#define XmNmanagerChildType "managerChildType"
#define XmNmatchSubMenuWidth "matchSubMenuWidth"
#define XmNmaxChildHeight "maxChildHeight"
#define XmNmaxChildWidth "maxChildWidth"
#define XmNmaxNumColumns "maxNumColumns"
#define XmNmaxNumRows "maxNumRows"
#define XmNnumAnimationPixmaps "numAnimationPixmaps"
#define XmNnumFontItems "numFontItems"
#define XmNnumPopupChildren "numPopupChildren"
#define XmNnumRows "numRows"
#define XmNopen "open"
#define XmNopenedTabs "openedTabs"
#define XmNoperatorOptionMenu "operatorOptionMenu"
#define XmNpaneChildAttachment "paneChildAttachment"
#define XmNpaneChildType "paneChildType"
#define XmNpaneDragMode "paneDragMode"
#define XmNpaneSashType "paneSashType"
#define XmNpixmapMask "pixmapMask"
#define XmNpointerInside "pointerInside"
#define XmNpoppedUp "poppedUp"
#define XmNpopupChildren "popupChildren"
#define XmNpopupCursor "popupCursor"
#define XmNpopupDelay "popupDelay"
#define XmNpreferredHeight "preferredHeight"
#define XmNpreferredWidth "preferredWidth"
#define XmNpretendSensitive "pretendSensitive"
#define XmNprogressBar "progressBar"
#define XmNraiseBackground "raiseBackground"
#define XmNraiseBorderThickness "raiseBorderThickness"
#define XmNraiseForeground "raiseForeground"
#define XmNraiseOffset "raiseOffset"
#define XmNraiseOnEnter "raiseOnEnter"
#define XmNraised "raised"
#define XmNraisedPixmap "raisedPixmap"
#define XmNraisedPixmapMask "raisedPixmapMask"
#define XmNresetWhenIdle "resetWhenIdle"
#define XmNrightPixmap "rightPixmap"
#define XmNrightRaisedPixmap "rightRaisedPixmap"
#define XmNrightView "rightView"
#define XmNrulesType "rulesType"
#define XmNsashAlwaysVisible "sashAlwaysVisible"
#define XmNsashColor "sashColor"
#define XmNsashOffset "sashOffset"
#define XmNsashPosition "sashPosition"
#define XmNsashShadowType "sashShadowType"
#define XmNsashSpacing "sashSpacing"
#define XmNsashThickness "sashThickness"
#define XmNselectOnHighlight "selectOnHighlight"
#define XmNselected "selected"
#define XmNselectedButton "selectedButton"
#define XmNselectionColor "selectionColor"
#define XmNselectionModifiers "selectionModifiers"
#define XmNseparatorThickness "separatorThickness"
#define XmNshowActionButton "showActionButton"
#define XmNshowDockedTaskBar "showDockedTaskBar"
#define XmNshowLogo "showLogo"
#define XmNstartIconic "startIconic"
#define XmNstartPercent "startPercent"
#define XmNstatusBar "statusBar"
#define XmNsubMenuAlignment "subMenuAlignment"
#define XmNsubMenuLocation "subMenuLocation"
#define XmNswapThreshold "swapThreshold"
#define XmNtabButtons "tabButtons"
#define XmNtabOffset "TabOffset"
#define XmNtaskBar "taskBar"
#define XmNtaskBarDocked "taskBarDocked"
#define XmNtitleFontList "titleFontList"
#define XmNtoggleBehavior "toggleBehavior"
#define XmNtoolBar "toolBar"
#define XmNtoolBarPosition "toolBarPosition"
#define XmNtoolBarSelectionPolicy "toolBarSelectionPolicy"
#define XmNtoolBox "toolBox"
#define XmNtopPixmap "topPixmap"
#define XmNtopRaisedPixmap "topRaisedPixmap"
#define XmNtopView "topView"
#define XmNtorn "torn"
#define XmNtornShellTitle "tornShellTitle"
#define XmNtrackDeleteWindow "trackDeleteWindow"
#define XmNtrackEditres "trackEditres"
#define XmNtrackMapping "trackMapping"
#define XmNtrackPosition "trackPosition"
#define XmNtrackSaveYourself "trackSaveYourself"
#define XmNtrackSize "trackSize"
#define XmNtransparentCursor "transparentCursor"
#define XmNtruncateLabel "truncateLabel"
#define XmNtruncateProc "truncateProc"
#define XmNunderlineThickness "underlineThickness"
#define XmNundockPixmap "undockPixmap"
#define XmNusePreferredHeight "usePreferredHeight"
#define XmNusePreferredWidth "usePreferredWidth"
#define XmNverticalCursor "verticalCursor"
#define XmNverticalPixmap "verticalPixmap"
#define XmNverticalRaisedPixmap "verticalRaisedPixmap"
/*----------------------------------------------------------------------*/
/* */
/* Class Names */
/* */
/*----------------------------------------------------------------------*/
#define XmCActionPixmap "ActionPixmap"
#define XmCActive "Active"
#define XmCActiveButton "ActiveButton"
#define XmCAlwaysVisible "AlwaysVisible"
#define XmCAnimationInterval "AnimationInterval"
#define XmCAnimationPixmaps "AnimationPixmaps"
#define XmCArmBackground "ArmBackground"
#define XmCArmForeground "ArmForeground"
#define XmCArmOffset "ArmOffset"
#define XmCArmed "Armed"
#define XmCArmedPixmap "ArmedPixmap"
#define XmCArmedPixmapMask "ArmedPixmapMask"
#define XmCArrowDisplayPolicy "ArrowDisplayPolicy"
#define XmCArrowHeight "ArrowHeight"
#define XmCArrowPlacement "ArrowPlacement"
#define XmCArrowType "ArrowType"
#define XmCArrowWidth "ArrowWidth"
#define XmCArticleWidth "ArticleWidth"
#define XmCAttachmentOneBottom "AttachmentOneBottom"
#define XmCAttachmentOneLeft "AttachmentOneLeft"
#define XmCAttachmentOneRight "AttachmentOneRight"
#define XmCAttachmentOneTop "AttachmentOneTop"
#define XmCAttachmentTwoBottom "AttachmentTwoBottom"
#define XmCAttachmentTwoLeft "AttachmentTwoLeft"
#define XmCAttachmentTwoRight "AttachmentTwoRight"
#define XmCAttachmentTwoTop "AttachmentTwoTop"
#define XmCBackwardArrow "BackwardArrow"
#define XmCBarColor "BarColor"
#define XmCBottomPixmap "BottomPixmap"
#define XmCBottomRaisedPixmap "BottomRaisedPixmap"
#define XmCBoxHeight "BoxHeight"
#define XmCBoxState "BoxState"
#define XmCBoxThickness "BoxThickness"
#define XmCBoxType "BoxType"
#define XmCBoxWidth "BoxWidth"
#define XmCBufferType "BufferType"
#define XmCBusy "Busy"
#define XmCBusyCursor "BusyCursor"
#define XmCBusyCursorOn "BusyCursorOn"
#define XmCButtonLayout "ButtonLayout"
#define XmCButtonTrigger "ButtonTrigger"
#define XmCBypassShell "BypassShell"
#define XmCCascadeArrowDirection "CascadeArrowDirection"
#define XmCCascadeArrowHeight "CascadeArrowHeight"
#define XmCCascadeArrowLocation "CascadeArrowLocation"
#define XmCCascadeArrowWidth "CascadeArrowWidth"
#define XmCChildForceHeight "ChildForceHeight"
#define XmCChildForceWidth "ChildForceWidth"
#define XmCChildOne "ChildOne"
#define XmCChildTwo "ChildTwo"
#define XmCChildUsePreferredHeight "ChildUsePreferredHeight"
#define XmCChildUsePreferredWidth "ChildUsePreferredWidth"
#define XmCChromeChildType "ChromeChildType"
#define XmCClipArea "ClipArea"
#define XmCCurrentPixmapIndex "CurrentPixmapIndex"
#define XmCCursorOn "CursorOn"
#define XmCCylonInterval "CylonInterval"
#define XmCCylonOffset "CylonOffset"
#define XmCCylonWidth "CylonWidth"
#define XmCDefaultPixmap "DefaultPixmap"
#define XmCDeterminate "Determinate"
#define XmCDocked "Docked"
#define XmCDragButton "DragButton"
#define XmCDragCursor "DragCursor"
#define XmCDragInProgress "DragInProgress"
#define XmCDragThreshold "DragThreshold"
#define XmCDrawCascadeArrow "DrawCascadeArrow"
#define XmCDropping "Dropping"
#define XmCDynamicIndicator "DynamicIndicator"
#define XmCEditModifiers "EditModifiers"
#define XmCEmulateMotif "EmulateMotif"
#define XmCEndPercent "EndPercent"
#define XmCFillOnEnter "FillOnEnter"
#define XmCFontItemFonts "FontItemFonts"
#define XmCFontItemLabels "FontItemLabels"
#define XmCForwardArrow "ForwardArrow"
#define XmCHighlightOnRaise "HighlightOnRaise"
#define XmCHorizontalCursor "HorizontalCursor"
#define XmCHorizontalPixmap "HorizontalPixmap"
#define XmCHorizontalRaisedPixmap "HorizontalRaisedPixmap"
#define XmCIgnoreConfigure "IgnoreConfigure"
#define XmCIgnoreExposures "IgnoreExposures"
#define XmCIndicatorLocation "IndicatorLocation"
#define XmCIndicatorPosition "IndicatorPosition"
#define XmCIndicatorThreshold "IndicatorThreshold"
#define XmCInsensitivePixmap "InsensitivePixmap"
#define XmCInsensitivePixmapMask "InsensitivePixmapMask"
#define XmCInstancePointer "InstancePointer"
#define XmCItemBackground "ItemBackground"
#define XmCItemFontList "ItemFontList"
#define XmCItemForeground "ItemForeground"
#define XmCLabelAlignment "LabelAlignment"
#define XmCLabelDirection "LabelDirection"
#define XmCLeftPixmap "LeftPixmap"
#define XmCLeftRaisedPixmap "LeftRaisedPixmap"
#define XmCLinkNode "LinkNode"
#define XmCMatchSubMenuWidth "MatchSubMenuWidth"
#define XmCMaxNumColumns "MaxNumColumns"
#define XmCMaxNumRows "MaxNumRows"
#define XmCNumAnimationPixmaps "NumAnimationPixmaps"
#define XmCNumFontItems "NumFontItems"
#define XmCNumLogoPixmaps "NumLogoPixmaps"
#define XmCNumRows "NumRows"
#define XmCOpen "Open"
#define XmCPaneChildAttachment "PaneChildAttachment"
#define XmCPaneChildType "PaneChildType"
#define XmCPaneDragMode "PaneDragMode"
#define XmCPaneSashType "PaneSashType"
#define XmCPixmapMask "PixmapMask"
#define XmCPopupCursor "PopupCursor"
#define XmCPopupDelay "PopupDelay"
#define XmCPretendSensitive "PretendSensitive"
#define XmCRaiseBackground "RaiseBackground"
#define XmCRaiseBorderThickness "RaiseBorderThickness"
#define XmCRaiseForeground "RaiseForeground"
#define XmCRaiseOffset "RaiseOffset"
#define XmCRaiseOnEnter "RaiseOnEnter"
#define XmCRaised "Raised"
#define XmCRaisedPixmap "RaisedPixmap"
#define XmCRaisedPixmapMask "RaisedPixmapMask"
#define XmCResetWhenIdle "ResetWhenIdle"
#define XmCResizeCursor "ResizeCursor"
#define XmCRightPixmap "RightPixmap"
#define XmCRightRaisedPixmap "RightRaisedPixmap"
#define XmCRulesType "RulesType"
#define XmCSashAlwaysVisible "SashAlwaysVisible"
#define XmCSashColor "SashColor"
#define XmCSashSpacing "SashSpacing"
#define XmCSashThickness "SashThickness"
#define XmCSelectOnHighlight "SelectOnHighlight"
#define XmCSelected "Selected"
#define XmCSelectedButton "SelectedButton"
#define XmCSelectionColor "SelectionColor"
#define XmCSelectionModifiers "SelectionModifiers"
#define XmCSeparatorThickness "SeparatorThickness"
#define XmCShowActionButton "ShowActionButton"
#define XmCShowDockedTaskBar "ShowDockedTaskBar"
#define XmCShowLogo "ShowLogo"
#define XmCStartIconic "StartIconic"
#define XmCStartPercent "StartPercent"
#define XmCSubMenuAlignment "SubMenuAlignment"
#define XmCSubMenuLocation "SubMenuLocation"
#define XmCSwapThreshold "SwapThreshold"
#define XmCTaskBarDocked "TaskBarDocked"
#define XmCTitleFontList "TitleFontList"
#define XmCToggleBehavior "ToggleBehavior"
#define XmCToolBarPosition "ToolBarPosition"
#define XmCToolBarSelectionPolicy "ToolBarSelectionPolicy"
#define XmCTopPixmap "TopPixmap"
#define XmCTopRaisedPixmap "TopRaisedPixmap"
#define XmCTornShellTitle "TornShellTitle"
#define XmCTrackDeleteWindow "TrackDeleteWindow"
#define XmCTrackEditres "TrackEditres"
#define XmCTrackMapping "TrackMapping"
#define XmCTrackPosition "TrackPosition"
#define XmCTrackSaveYourself "TrackSaveYourself"
#define XmCTrackSize "TrackSize"
#define XmCTruncateLabel "TruncateLabel"
#define XmCTruncateProc "TruncateProc"
#define XmCUnderlineThickness "UnderlineThickness"
#define XmCUndockPixmap "UndockPixmap"
#define XmCUsePreferredHeight "UsePreferredHeight"
#define XmCUsePreferredWidth "UsePreferredWidth"
#define XmCVerticalCursor "VerticalCursor"
#define XmCVerticalPixmap "VerticalPixmap"
#define XmCVerticalRaisedPixmap "VerticalRaisedPixmap"
/*----------------------------------------------------------------------*/
/* */
/* XfeManager Children Resource Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNdynamicChildren "dynamicChildren"
#define XmNmaxDynamicChildrenHeight "maxDynamicChildrenHeight"
#define XmNmaxDynamicChildrenWidth "maxDynamicChildrenWidth"
#define XmNminDynamicChildrenHeight "minDynamicChildrenHeight"
#define XmNminDynamicChildrenWidth "minDynamicChildrenWidth"
#define XmNnumDynamicChildren "numDynamicChildren"
#define XmNnumManagedDynamicChildren "numManagedDynamicChildren"
#define XmNtotalDynamicChildrenHeight "totalDynamicChildrenHeight"
#define XmNtotalDynamicChildrenWidth "totalDynamicChildrenWidth"
#define XmNstaticChildren "staticChildren"
#define XmNmaxStaticChildrenHeight "maxStaticChildrenHeight"
#define XmNmaxStaticChildrenWidth "maxStaticChildrenWidth"
#define XmNminStaticChildrenHeight "minStaticChildrenHeight"
#define XmNminStaticChildrenWidth "minStaticChildrenWidth"
#define XmNnumManagedStaticChildren "numManagedStaticChildren"
#define XmNnumStaticChildren "numStaticChildren"
#define XmNtotalStaticChildrenHeight "totalStaticChildrenHeight"
#define XmNtotalStaticChildrenWidth "totalStaticChildrenWidth"
#define XmNcomponentChildren "componentChildren"
#define XmNmaxComponentChildrenHeight "maxComponentChildrenHeight"
#define XmNmaxComponentChildrenWidth "maxComponentChildrenWidth"
#define XmNminComponentChildrenHeigh "minComponentChildrenHeight"
#define XmNminComponentChildrenWidth "minComponentChildrenWidth"
#define XmNnumComponentChildren "numComponentChildren"
#define XmNnumManagedComponentChildren "numManagedComponentChildren"
#define XmNtotalComponentChildrenHeight "totalComponentChildrenHeight"
#define XmNtotalComponentChildrenWidth "totalComponentChildrenWidth"
/*----------------------------------------------------------------------*/
/* */
/* Representation Types */
/* */
/*----------------------------------------------------------------------*/
#define XmRArrowDisplayPolicy XmRScrollBarDisplayPolicy
#define XmRBoxType "BoxType"
#define XmRBufferType "BufferType"
#define XmRButtonLayout "ButtonLayout"
#define XmRButtonTrigger "ButtonTrigger"
#define XmRChromeChildType "ChromeChildType"
#define XmRLinkedChildren "LinkedChildren"
#define XmRLocationType "LocationType"
#define XmRModifiers "Modifiers"
#define XmRPaneChildAttachment "PaneChildAttachment"
#define XmRPaneChildType "PaneChildType"
#define XmRPaneDragMode "PaneDragMode"
#define XmRPaneSashType "PaneSashType"
#define XmRPixmapTable "PixmapTable"
#define XmRProgressBarMode "ProgressBarMode"
#define XmRRulesType "RulesType"
#define XmRShellPlacement "ShellPlacement"
#define XmRToolBarIndicatorLocation "ToolBarIndicatorLocation"
#define XmRToolBarSelectionPolicy "ToolBarSelectionPolicy"
#define XmRToolBarToggleBehavior "ToolBarToggleBehavior"
#define XmRToolScrollArrowPlacement "ToolScrollArrowPlacement"
#define XmRTruncateProc "TruncateProc"
#define XmRXfeArrowType "XfeArrowType"
#define XmRManagerChildType "ManagerChildType"
/*----------------------------------------------------------------------*/
/* */
/* Things that conflict with Motif 2.x */
/* */
/*----------------------------------------------------------------------*/
#if XmVersion < 2000
#define XmNdragStartCallback "dragStartCallback"
#endif
#endif /* end StringDefs.h */

Просмотреть файл

@ -116,8 +116,8 @@ static XtResource resources[] =
{
/* Cursor resources */
{
XmNhorizontalCursor,
XmCHorizontalCursor,
"XmNhorizontalCursor",
"XmCHorizontalCursor",
XmRCursor,
sizeof(Cursor),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . horizontal_cursor),
@ -125,8 +125,8 @@ static XtResource resources[] =
"sb_h_double_arrow"
},
{
XmNverticalCursor,
XmCVerticalCursor,
"XmNverticalCursor",
"XmCVerticalCursor",
XmRCursor,
sizeof(Cursor),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . vertical_cursor),
@ -136,8 +136,8 @@ static XtResource resources[] =
/* Color resources */
{
XmNsashColor,
XmCSashColor,
"XmNsashColor",
"XmCSashColor",
XmRPixel,
sizeof(Pixel),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . sash_color),
@ -146,8 +146,8 @@ static XtResource resources[] =
},
{
XmNseparatorThickness,
XmCSeparatorThickness,
"XmNseparatorThickness",
"XmCSeparatorThickness",
XmRInt,
sizeof(int),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . separator_thickness),
@ -210,24 +210,6 @@ static XtResource resources[] =
XmRImmediate,
(XtPointer) 0
},
{
XmNchildUsePreferredHeight,
XmCChildUsePreferredHeight,
XmRBoolean,
sizeof(Boolean),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . child_use_pref_height),
XmRImmediate,
(XtPointer) False
},
{
XmNchildUsePreferredWidth,
XmCChildUsePreferredWidth,
XmRBoolean,
sizeof(Boolean),
XtOffsetOf(XfeTempTwoRec , xfe_temp_two . child_use_pref_width),
XmRImmediate,
(XtPointer) False
},
/* Force all the margins to 0 */
{

Просмотреть файл

@ -89,9 +89,6 @@ typedef struct _XfeTempTwoPart
Dimension raise_border_thickness; /* Raise border thickness*/
Boolean raised; /* Raised ? */
Boolean child_use_pref_width; /* child use pref width */
Boolean child_use_pref_height; /* child use pref height*/
/* Private data -- Dont even look past this comment -- */
GC temp_GC; /* Temp GC */
XRectangle temp_rect; /* Temp rect */

Просмотреть файл

@ -45,6 +45,8 @@
#include <Xm/ToggleB.h>
#include <Xm/ToggleBG.h>
#include <Xm/RepType.h>
#define MESSAGE0 "XfeInstancePointer() called with non XfePrimitive or XfeManager widget."
/*----------------------------------------------------------------------*/
@ -694,3 +696,47 @@ XfeIsPrivateComponent(Widget w)
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Representation type utilities */
/* */
/*----------------------------------------------------------------------*/
/* extern */ Boolean
XfeRepTypeCheck(Widget w,
String rep_type,
unsigned char * address,
unsigned char fallback)
/*----------------------------------------------------------------------*/
{
Boolean result = True;
assert( address != NULL );
if (!XmRepTypeValidValue(XmRepTypeGetId(rep_type),*address,w))
{
result = False;
*address = fallback;
}
return result;
}
/*----------------------------------------------------------------------*/
/* extern */ void
XfeRepTypeRegister(String rep_type,String * names)
{
Cardinal num_names = 0;
assert( rep_type != NULL );
while(names[num_names] != NULL)
{
num_names++;
}
assert( num_names > 0 );
XmRepTypeRegister(rep_type,names,NULL,num_names);
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -36,7 +36,6 @@
/* so many headers. The convenient organization is worth the penalty. */
/* */
/*----------------------------------------------------------------------*/
#include <Xfe/StringDefs.h> /* Xfe public str defs */
#include <Xfe/Defaults.h> /* Xfe default res vals */
#include <Xfe/ChildrenUtil.h> /* Children utils */
#include <Xfe/Converters.h> /* Converters */
@ -46,7 +45,6 @@
#include <Xfe/Geometry.h> /* Geometry utils */
#include <Xfe/ListUtil.h> /* List utils */
#include <Xfe/MenuUtil.h> /* Menu/RowCol utils */
#include <Xfe/RepType.h> /* Representation types */
#include <Xfe/Resources.h> /* Resource utils */
#include <Xfe/ShellUtil.h> /* Shell utils */
#include <Xfe/StringUtil.h> /* XmString utils */
@ -414,6 +412,22 @@ XfeEventGetModifiers (XEvent * event);
extern Boolean XfeIsPrivateComponent (Widget w);
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Representation type utilities */
/* */
/*----------------------------------------------------------------------*/
extern Boolean
XfeRepTypeCheck (Widget w,
String rep_type,
unsigned char * address,
unsigned char fallback);
/*----------------------------------------------------------------------*/
extern void
XfeRepTypeRegister (String rep_type,
String * names);
/*----------------------------------------------------------------------*/
XFE_END_CPLUSPLUS_PROTECTION
#endif /* end Xfe.h */

Просмотреть файл

@ -263,6 +263,26 @@ _XFE_WIDGET_CLASS_RECORD(bmbutton,BmButton) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(bmbutton,BmButton);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
/* extern */ void
XfeBmButtonRegisterRepTypes(void)
{
static String accent_names[] =
{
"accent_box",
"accent_none",
"accent_underline",
NULL
};
XfeRepTypeRegister(XmRAccentType,accent_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core Class methods */
@ -272,7 +292,7 @@ static void
ClassInitialize()
{
/* Register Bm Representation Types */
XfeBmRegisterRepresentationTypes();
XfeBmButtonRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void

Просмотреть файл

@ -60,6 +60,15 @@ XfeCreateBmButton (Widget parent,
Cardinal count);
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
extern void
XfeBmButtonRegisterRepTypes (void);
XFE_END_CPLUSPLUS_PROTECTION
#endif /* end BmButton.h */

Просмотреть файл

@ -25,6 +25,7 @@
/*----------------------------------------------------------------------*/
#include <Xfe/BmCascadeP.h>
#include <Xm/RepType.h>
#include <Xfe/BmButtonP.h>
#include <Xfe/Cascade.h>
#include <Xfe/ManagerP.h>
@ -287,7 +288,7 @@ static void
ClassInitialize()
{
/* Register Bm Representation Types */
XfeBmRegisterRepresentationTypes();
XfeBmButtonRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void

Просмотреть файл

@ -1,49 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <XfeBm/BmRepTyep.c> */
/* Description: Representation type(s) used by BmCascade and BmButton. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#include <Xm/RepType.h>
#include <Xfe/XfeBm.h>
/*----------------------------------------------------------------------*/
static void
RegisterAccentType(void)
{
static String AccentNames[] =
{
"accent_box",
"accent_none",
"accent_underline",
};
XmRepTypeRegister(XmRAccentType,AccentNames,NULL,XtNumber(AccentNames));
}
/*----------------------------------------------------------------------*/
/* extern */ void
XfeBmRegisterRepresentationTypes(void)
{
RegisterAccentType();
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -36,7 +36,6 @@ CSRCS = \
BmButton.c \
BmCascade.c \
BmGlobal.c \
BmRepType.c \
$(NULL)
REQUIRES =\

Просмотреть файл

@ -41,7 +41,6 @@ CSRCS = \
BmButton.c \
BmCascade.c \
BmGlobal.c \
BmRepType.c \
$(NULL)
REQUIRES =\

Просмотреть файл

@ -27,7 +27,6 @@
#include <Xfe/CaptionP.h>
#include <Xfe/Button.h>
#include <Xm/RepType.h>
#define MESSAGE1 "Widget is not an XfeCaption."
#define MESSAGE2 "XmNtitleDirection is not XmSTRING_DIRECTION_L_TO_R or XmSTRING_DIRECTION_R_TO_L."
@ -100,9 +99,7 @@ static void LayoutChildOnly (Widget);
/* RepType registration functions */
/* */
/*----------------------------------------------------------------------*/
static void RegisterCaptionLayout (void);
static void RegisterCaptionHorizontalAlignment (void);
static void RegisterCaptionVerticalAlignment (void);
static void CaptionRegisterRepTypes (void);
/*----------------------------------------------------------------------*/
/* */
@ -412,9 +409,7 @@ static void
ClassInitialize()
{
/* Register XfeCaption Representation Types */
RegisterCaptionLayout();
RegisterCaptionHorizontalAlignment();
RegisterCaptionVerticalAlignment();
CaptionRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
@ -862,43 +857,36 @@ LayoutChildOnly (Widget w)
/* */
/*----------------------------------------------------------------------*/
static void
RegisterCaptionLayout(void)
CaptionRegisterRepTypes(void)
{
static String names[] =
static String child_names[] =
{
"caption_child_on_bottom",
"caption_child_on_left",
"caption_child_on_right",
"caption_child_on_top"
"caption_child_on_top",
NULL
};
XmRepTypeRegister(XmRCaptionLayout,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterCaptionHorizontalAlignment(void)
{
static String names[] =
static String vertical_names[] =
{
"caption_vertical_alignment_left",
"caption_vertical_alignment_center",
"caption_vertical_alignment_right"
"caption_vertical_alignment_right",
NULL
};
XmRepTypeRegister(XmRCaptionVerticalAlignment,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterCaptionVerticalAlignment(void)
{
static String names[] =
static String horizontal_names[] =
{
"caption_vertical_alignment_bottom",
"caption_vertical_alignment_center",
"caption_vertical_alignment_top"
"caption_vertical_alignment_top",
NULL
};
XmRepTypeRegister(XmRCaptionVerticalAlignment,names,NULL,XtNumber(names));
XfeRepTypeRegister(XmRCaptionLayout,child_names);
XfeRepTypeRegister(XmRCaptionVerticalAlignment,vertical_names);
XfeRepTypeRegister(XmRCaptionVerticalAlignment,horizontal_names);
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -28,10 +28,36 @@
#define _XfeCaption_h_
#include <Xfe/Manager.h>
#include <Xfe/CaptionStringDefs.h>
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeCaption resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNcaptionLayout "captionLayout"
#define XmNchild "child"
#define XmNchildResize "childResize"
#define XmNmaxChildHeight "maxChildHeight"
#define XmNmaxChildWidth "maxChildWidth"
#define XmNtitleDirection "titleDirection"
#define XmNtitleHorizontalAlignment "TitleHorizontalAlignment"
#define XmNtitleVerticalAlignment "TitleVerticalAlignment"
#define XmCCaptionHorizontalAlignment "CaptionHorizontalAlignment"
#define XmCCaptionLayout "CaptionLayout"
#define XmCCaptionVerticalAlignment "CaptionVerticalAlignment"
#define XmCChild "Child"
#define XmCChildResize "ChildResize"
#define XmCMaxChildHeight "MaxChildHeight"
#define XmCMaxChildWidth "MaxChildWidth"
#define XmCTitleDirection "TitleDirection"
#define XmRCaptionHorizontalAlignment "CaptionHorizontalAlignment"
#define XmRCaptionLayout "CaptionLayout"
#define XmRCaptionVerticalAlignment "CaptionVerticalAlignment"
/*----------------------------------------------------------------------*/
/* */
/* XmRCaptionLayout */

Просмотреть файл

@ -1,73 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/CaptionStringDefs.h> */
/* Description: XfeCaption string definitions. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#ifndef _XfeCaptionStringDefs_h_ /* start CaptionStringDefs.h*/
#define _XfeCaptionStringDefs_h_
/*----------------------------------------------------------------------*/
/* */
/* Callback Names */
/* */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Resource Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNcaptionLayout "captionLayout"
#define XmNchild "child"
#define XmNchildResize "childResize"
#define XmNmaxChildHeight "maxChildHeight"
#define XmNmaxChildWidth "maxChildWidth"
#define XmNtitleDirection "titleDirection"
#define XmNtitleHorizontalAlignment "TitleHorizontalAlignment"
#define XmNtitleVerticalAlignment "TitleVerticalAlignment"
/*----------------------------------------------------------------------*/
/* */
/* Class Names */
/* */
/*----------------------------------------------------------------------*/
#define XmCCaptionHorizontalAlignment "CaptionHorizontalAlignment"
#define XmCCaptionLayout "CaptionLayout"
#define XmCCaptionVerticalAlignment "CaptionVerticalAlignment"
#define XmCChild "Child"
#define XmCChildResize "ChildResize"
#define XmCMaxChildHeight "MaxChildHeight"
#define XmCMaxChildWidth "MaxChildWidth"
#define XmCTitleDirection "TitleDirection"
/*----------------------------------------------------------------------*/
/* */
/* Representation Types */
/* */
/*----------------------------------------------------------------------*/
#define XmRCaptionHorizontalAlignment "CaptionHorizontalAlignment"
#define XmRCaptionLayout "CaptionLayout"
#define XmRCaptionVerticalAlignment "CaptionVerticalAlignment"
#endif /* end CaptionStringDefs.h */

Просмотреть файл

@ -49,7 +49,6 @@ EXPORTS = \
CaptionP.h \
TextCaption.h \
TextCaptionP.h \
CaptionStringDefs.h \
$(NULL)
include $(DEPTH)/config/rules.mk

Просмотреть файл

@ -54,7 +54,6 @@ EXPORTS = \
CaptionP.h \
TextCaption.h \
TextCaptionP.h \
CaptionStringDefs.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))

Просмотреть файл

@ -34,7 +34,6 @@
#include <Xm/TextF.h>
#include <Xm/List.h>
#include <Xm/RepType.h>
#include <Xfe/Button.h>
#include <Xfe/Arrow.h>
@ -120,13 +119,6 @@ static Widget TitleLabelCreate (Widget);
static Widget ArrowCreate (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void RegisterComboBoxType (void);
/*----------------------------------------------------------------------*/
/* */
/* List functions */
@ -195,6 +187,13 @@ static void DefaultTitleShadowThickness (Widget,int,XrmValue *);
static void SyntheticGetListItems (Widget,int, XtArgVal *);
static void SyntheticGetListItemCount (Widget,int, XtArgVal *);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ComboBoxRegisterRepTypes (void);
#if 0
/*
* External definitions of syn_resources for our list widget.
@ -685,7 +684,7 @@ static void
ClassInitialize()
{
/* Register XfeComboBox Representation Types */
RegisterComboBoxType();
ComboBoxRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
@ -1219,15 +1218,16 @@ LayoutTitle(Widget w)
/* */
/*----------------------------------------------------------------------*/
static void
RegisterComboBoxType(void)
ComboBoxRegisterRepTypes(void)
{
static String names[] =
static String box_names[] =
{
"combo_box_editable",
"combo_box_read_only"
"combo_box_read_only",
NULL
};
XmRepTypeRegister(XmRComboBoxType,names,NULL,XtNumber(names));
XfeRepTypeRegister(XmRComboBoxType,box_names);
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -28,10 +28,35 @@
#define _XfeComboBox_h_
#include <Xfe/Manager.h>
#include <Xfe/ComboBoxStringDefs.h>
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeComboBox resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNarrow "arrow"
#define XmNlistFontList "listFontList"
#define XmNshareShell "shareShell"
#define XmNshell "shell"
#define XmNtitleShadowThickness "titleShadowThickness"
#define XmNtitleShadowType "titleShadowType"
#define XmCListFontList "ListFontList"
#define XmCShareShell "ShareShell"
/* Things that conflict with Motif 2.x */
#if XmVersion < 2000
#define XmNcomboBoxType "comboBoxType"
#define XmCComboBoxType "ComboBoxType"
#define XmRComboBoxType "ComboBoxType"
#endif
/* Things that conflict elsewhere */
#ifndef XmNlist
#define XmNlist "list"
#endif
/*----------------------------------------------------------------------*/
/* */
/* XfeComboBox reasonable defaults for some resources */

Просмотреть файл

@ -1,77 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/ComboBoxStringDefs.h> */
/* Description: XfeComboBox string definitions. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#ifndef _XfeComboBoxStringDefs_h_ /* start ComboBoxStringDefs.h*/
#define _XfeComboBoxStringDefs_h_
/*----------------------------------------------------------------------*/
/* */
/* Callback Names */
/* */
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Resource Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNarrow "arrow"
#define XmNlistFontList "listFontList"
#define XmNshareShell "shareShell"
#define XmNshell "shell"
#define XmNtitleShadowThickness "titleShadowThickness"
#define XmNtitleShadowType "titleShadowType"
/*----------------------------------------------------------------------*/
/* */
/* Class Names */
/* */
/*----------------------------------------------------------------------*/
#define XmCListFontList "ListFontList"
#define XmCShareShell "ShareShell"
/*----------------------------------------------------------------------*/
/* */
/* Things that conflict with Motif 2.x */
/* */
/*----------------------------------------------------------------------*/
#if XmVersion < 2000
#define XmNcomboBoxType "comboBoxType"
#define XmCComboBoxType "ComboBoxType"
#define XmRComboBoxType "ComboBoxType"
#endif
/*----------------------------------------------------------------------*/
/* */
/* Things that conflict elsewhere */
/* */
/*----------------------------------------------------------------------*/
#ifndef XmNlist
#define XmNlist "list"
#endif
#endif /* end ComboBoxStringDefs.h */

Просмотреть файл

@ -33,7 +33,14 @@ XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */
/* XfeFancyBox resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNicon "icon"
/*----------------------------------------------------------------------*/
/* */
/* XfeFancyBox class names */
/* */
/*----------------------------------------------------------------------*/
externalref WidgetClass xfeFancyBoxWidgetClass;
@ -43,7 +50,7 @@ typedef struct _XfeFancyBoxRec * XfeFancyBoxWidget;
/*----------------------------------------------------------------------*/
/* */
/* XfeBox subclass test macro */
/* XfeFancyBox subclass test macro */
/* */
/*----------------------------------------------------------------------*/
#define XfeIsFancyBox(w) XtIsSubclass(w,xfeFancyBoxWidgetClass)

Просмотреть файл

@ -47,7 +47,6 @@ REQUIRES = \
EXPORTS = \
ComboBox.h \
ComboBoxP.h \
ComboBoxStringDefs.h \
FancyBox.h \
FancyBoxP.h \
$(NULL)

Просмотреть файл

@ -52,7 +52,6 @@ REQUIRES = \
EXPORTS = \
ComboBox.h \
ComboBoxP.h \
ComboBoxStringDefs.h \
FancyBox.h \
FancyBoxP.h \
$(NULL)

Просмотреть файл

@ -230,13 +230,16 @@ XfeCreateLoadedDashBoard(Widget pw,
dash_board,
NULL);
#if 1
task_bar = XfeCreateLoadedTaskBar(dash_board,
"TaskBar",
task_large,
task_prefix,
task_cb,
task_count,
1,
task_items_out);
#endif
if (tool_bar_out)
*tool_bar_out = tool_bar;

Просмотреть файл

@ -37,12 +37,15 @@
#include <Xfe/Arrow.h>
#include <Xfe/Button.h>
#include <Xfe/Cascade.h>
#include <Xfe/FrameShell.h>
#include <Xfe/Label.h>
#include <Xfe/Logo.h>
#include <Xfe/ProgressBar.h>
#include <Xfe/Divider.h>
#include <Xfe/Oriented.h>
#include <Xfe/Pane.h>
#include <Xfe/ProgressBar.h>
#include <Xfe/FrameShell.h>
#include <Xfe/BmButton.h>
#include <Xfe/BmCascade.h>

Просмотреть файл

@ -61,6 +61,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void CoreInitialize (Widget,Widget,ArgList,Cardinal *);
static void CoreDestroy (Widget);
static Boolean CoreSetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -105,6 +106,13 @@ static void LayoutTopView (Widget);
/*----------------------------------------------------------------------*/
static void DefaultChromeChildType (Widget,int,XrmValue *);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ChromRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfeChrome resources */
@ -279,7 +287,7 @@ _XFE_WIDGET_CLASS_RECORD(chrome,Chrome) =
(WidgetClass) &xfeManagerClassRec, /* superclass */
"XfeChrome", /* class_name */
sizeof(XfeChromeRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
CoreInitialize, /* initialize */
@ -432,12 +440,45 @@ DefaultChromeChildType(Widget child,int offset,XrmValue * value)
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
ChromRegisterRepTypes(void)
{
static String chrome_names[] =
{
"chrome_bottom_view",
"chrome_center_view",
"chrome_dash_board",
"chrome_ignore",
"chrome_left_view",
"chrome_menu_bar",
"chrome_right_view",
"chrome_tool_box",
"chrome_top_view",
NULL
};
XfeRepTypeRegister(XmRChromeChildType,chrome_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core Class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeChrome representation types */
ChromRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
CoreInitialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
/* XfeChromePart * cp = _XfeChromePart(nw); */

Просмотреть файл

@ -34,6 +34,24 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeChrome resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNtoolBox "toolBox"
#define XmNcenterView "centerView"
#define XmNtopView "topView"
#define XmNbottomView "bottomView"
#define XmNleftView "leftView"
#define XmNrightView "rightView"
#define XmNdashBoard "dashBoard"
#define XmNchromeChildType "chromeChildType"
#define XmCChromeChildType "ChromeChildType"
#define XmRChromeChildType "ChromeChildType"
/*----------------------------------------------------------------------*/
/* */
/* XmRChromeChildType */

Просмотреть файл

@ -36,6 +36,31 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeDashBoard resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNdockCallback "dockCallback"
#define XmNfloatingMapCallback "floatingMapCallback"
#define XmNfloatingUnmapCallback "floatingUnmapCallback"
#define XmNundockCallback "undockCallback"
#define XmNdocked "docked"
#define XmNdockedTaskBar "dockedTaskBar"
#define XmNfloatingShell "floatingShell"
#define XmNfloatingTarget "floatingTarget"
#define XmNfloatingTaskBar "floatingTaskBar"
#define XmNprogressBar "progressBar"
#define XmNshowDockedTaskBar "showDockedTaskBar"
#define XmNstatusBar "statusBar"
#define XmNtoolBar "toolBar"
#define XmNundockPixmap "undockPixmap"
#define XmCDocked "Docked"
#define XmCShowDockedTaskBar "ShowDockedTaskBar"
#define XmCUndockPixmap "UndockPixmap"
/*----------------------------------------------------------------------*/
/* */
/* XfeDashBoard components */

Просмотреть файл

@ -31,6 +31,37 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeTab resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNbottomPixmap "bottomPixmap"
#define XmNbottomRaisedPixmap "bottomRaisedPixmap"
#define XmNhorizontalPixmap "horizontalPixmap"
#define XmNhorizontalRaisedPixmap "horizontalRaisedPixmap"
#define XmNleftPixmap "leftPixmap"
#define XmNleftRaisedPixmap "leftRaisedPixmap"
#define XmNrightPixmap "rightPixmap"
#define XmNrightRaisedPixmap "rightRaisedPixmap"
#define XmNtopPixmap "topPixmap"
#define XmNtopRaisedPixmap "topRaisedPixmap"
#define XmNverticalPixmap "verticalPixmap"
#define XmNverticalRaisedPixmap "verticalRaisedPixmap"
#define XmCBottomPixmap "BottomPixmap"
#define XmCBottomRaisedPixmap "BottomRaisedPixmap"
#define XmCHorizontalPixmap "HorizontalPixmap"
#define XmCHorizontalRaisedPixmap "HorizontalRaisedPixmap"
#define XmCLeftPixmap "LeftPixmap"
#define XmCLeftRaisedPixmap "LeftRaisedPixmap"
#define XmCRightPixmap "RightPixmap"
#define XmCRightRaisedPixmap "RightRaisedPixmap"
#define XmCTopPixmap "TopPixmap"
#define XmCTopRaisedPixmap "TopRaisedPixmap"
#define XmCVerticalPixmap "VerticalPixmap"
#define XmCVerticalRaisedPixmap "VerticalRaisedPixmap"
/*----------------------------------------------------------------------*/
/* */
/* XfeTab class names */

Просмотреть файл

@ -259,7 +259,7 @@ _XFE_WIDGET_CLASS_RECORD(taskbar,TaskBar) =
{
XfeInheritBitGravity, /* bit_gravity */
PreferredGeometry, /* preferred_geometry */
XfeInheritUpdateBoundary, /* update_boundary */
XfeInheritUpdateBoundary, /* update_boundary */
XfeInheritUpdateChildrenInfo, /* update_children_info */
XfeInheritLayoutWidget, /* layout_widget */
NULL, /* accept_static_child */

Просмотреть файл

@ -31,6 +31,21 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeTaskBar resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNactionCallback "actionCallback"
#define XmNactionButton "actionButton"
#define XmNactionPixmap "actionPixmap"
#define XmNshowActionButton "showActionButton"
#define XmNactionCursor "actionCursor"
#define XmCActionPixmap "ActionPixmap"
#define XmCShowActionButton "ShowActionButton"
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */

Просмотреть файл

@ -88,14 +88,14 @@ typedef struct _XfeTaskBarPart
/*----------------------------------------------------------------------*/
typedef struct _XfeTaskBarRec
{
CorePart core;
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XmManagerPart manager;
XfeManagerPart xfe_manager;
XfeDynamicManagerPart xfe_dynamic_manager;
XfeToolBarPart xfe_tool_bar;
XfeOrientedPart xfe_oriented;
XfeToolBarPart xfe_tool_bar;
XfeTaskBarPart xfe_task_bar;
} XfeTaskBarRec;

Просмотреть файл

@ -61,6 +61,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void ClassPartInit (WidgetClass);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
@ -181,6 +182,13 @@ static Boolean IndicatorIsShown (Widget);
/*----------------------------------------------------------------------*/
static void EditTextCreate (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ToolBarRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfeToolBar Resources */
@ -492,7 +500,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbar,ToolBar) =
(WidgetClass) &xfeOrientedClassRec, /* superclass */
"XfeToolBar", /* class_name */
sizeof(XfeToolBarRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
ClassPartInit, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -625,12 +633,62 @@ _XFE_WIDGET_CLASS_RECORD(toolbar,ToolBar) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(toolbar,ToolBar);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
ToolBarRegisterRepTypes(void)
{
static String select_names[] =
{
"tool_bar_select_none",
"tool_bar_select_single",
"tool_bar_select_multiple",
NULL
};
static String toggle_names[] =
{
"tool_bar_toggle_one_or_more",
"tool_bar_toggle_only_one",
"tool_bar_toggle_zero_or_more",
"tool_bar_toggle_zero_or_one",
NULL
};
static String location_names[] =
{
"indicator_location_none",
"indicator_location_beginning",
"indicator_location_end",
"indicator_location_middle",
NULL
};
XfeRepTypeRegister(XmRToolBarSelectionPolicy,select_names);
XfeRepTypeRegister(XmRToolBarToggleBehavior,toggle_names);
XfeRepTypeRegister(XmRToolBarIndicatorLocation,location_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeButton representation types */
XfeButtonRegisterRepTypes();
/* Register XfeToolBar representation types */
ToolBarRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
ClassPartInit(WidgetClass wc)
{
XfeToolBarWidgetClass cc = (XfeToolBarWidgetClass) wc;

Просмотреть файл

@ -32,6 +32,48 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolBar resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNactiveButton "activeButton"
#define XmNallowWrap "allowWrap"
#define XmNchildForceHeight "childForceHeight"
#define XmNchildForceWidth "childForceWidth"
#define XmNchildUsePreferredHeight "childUsePreferredHeight"
#define XmNchildUsePreferredWidth "childUsePreferredWidth"
#define XmNdynamicIndicator "dynamicIndicator"
#define XmNindicatorLocation "indicatorLocation"
#define XmNindicatorPosition "indicatorPosition"
#define XmNindicatorThreshold "indicatorThreshold"
#define XmNmaxNumColumns "maxNumColumns"
#define XmNmaxNumRows "maxNumRows"
#define XmNselectedButton "selectedButton"
#define XmNtoggleBehavior "toggleBehavior"
#define XmNtoolBar "toolBar"
#define XmNseparatorThickness "separatorThickness"
#define XmCActiveButton "ActiveButton"
#define XmCChildForceHeight "ChildForceHeight"
#define XmCChildForceWidth "ChildForceWidth"
#define XmCChildUsePreferredHeight "ChildUsePreferredHeight"
#define XmCSeparatorThickness "SeparatorThickness"
#define XmCChildUsePreferredWidth "ChildUsePreferredWidth"
#define XmCDynamicIndicator "DynamicIndicator"
#define XmCIndicatorLocation "IndicatorLocation"
#define XmCIndicatorPosition "IndicatorPosition"
#define XmCIndicatorThreshold "IndicatorThreshold"
#define XmCMaxNumColumns "MaxNumColumns"
#define XmCMaxNumRows "MaxNumRows"
#define XmCSelectedButton "SelectedButton"
#define XmCToggleBehavior "ToggleBehavior"
#define XmRToolBarIndicatorLocation "ToolBarIndicatorLocation"
#define XmRToolBarSelectionPolicy "ToolBarSelectionPolicy"
#define XmRToolBarToggleBehavior "ToolBarToggleBehavior"
/*----------------------------------------------------------------------*/
/* */
/* XmRToolBarSelectionType */

Просмотреть файл

@ -27,6 +27,7 @@
#include <stdio.h>
#include <Xfe/ToolBoxP.h>
#include <Xfe/Button.h>
#include <Xfe/Tab.h>
#include <Xm/Form.h>
@ -60,6 +61,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
static Boolean SetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -568,7 +570,7 @@ _XFE_WIDGET_CLASS_RECORD(toolbox,ToolBox) =
(WidgetClass) &xfeDynamicManagerClassRec,/* superclass */
"XfeToolBox", /* class_name */
sizeof(XfeToolBoxRec), /* widget_size */
NULL, /* class_initialize */
NULL, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */

Просмотреть файл

@ -28,9 +28,42 @@
#define _XfeToolBox_h_
#include <Xfe/DynamicManager.h>
#include <Xfe/ToolBar.h>
#include <Xfe/Tab.h>
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolBox resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNcloseCallback "closeCallback"
#define XmNdragAllowCallback "dragAllowCallback"
#define XmNdragEndCallback "dragEndCallback"
#define XmNnewItemCallback "newItemCallback"
#define XmNopenCallback "openCallback"
#define XmNsnapCallback "snapCallback"
#define XmNswapCallback "swapCallback"
/* Things that conflict with Motif 2.x */
#if XmVersion < 2000
#define XmNdragStartCallback "dragStartCallback"
#endif
#define XmNclosedTabs "closedTabs"
#define XmNdragButton "dragButton"
#define XmNdragCursor "dragCursor"
#define XmNopen "open"
#define XmNopenedTabs "openedTabs"
#define XmNswapThreshold "swapThreshold"
#define XmNtabOffset "TabOffset"
#define XmCDragButton "DragButton"
#define XmCDragCursor "DragCursor"
#define XmCOpen "Open"
#define XmCSwapThreshold "SwapThreshold"
/*----------------------------------------------------------------------*/
/* */
/* Tool box callback structures */

Просмотреть файл

@ -33,6 +33,14 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolItem resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNlogo "logo"
#define XmNitem "item"
/*----------------------------------------------------------------------*/
/* */
/* XfeBox class names */

Просмотреть файл

@ -47,6 +47,7 @@
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void ClassInitialize (void);
static void Initialize (Widget,Widget,ArgList,Cardinal *);
static void Destroy (Widget);
static Boolean SetValues (Widget,Widget,Widget,ArgList,Cardinal *);
@ -90,6 +91,13 @@ static void LayoutVertical (Widget);
static void LayoutHorizontal (Widget);
static void LayoutToolBar (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ToolScrollRegisterRepTypes(void);
/*----------------------------------------------------------------------*/
/* */
/* XfeToolScroll Resources */
@ -234,7 +242,7 @@ _XFE_WIDGET_CLASS_RECORD(toolscroll,ToolScroll) =
(WidgetClass) &xfeOrientedClassRec, /* superclass */
"XfeToolScroll", /* class_name */
sizeof(XfeToolScrollRec), /* widget_size */
NULL, /* class_initialize */
ClassInitialize, /* class_initialize */
NULL, /* class_part_initialize*/
FALSE, /* class_inited */
Initialize, /* initialize */
@ -355,12 +363,39 @@ _XFE_WIDGET_CLASS_RECORD(toolscroll,ToolScroll) =
/*----------------------------------------------------------------------*/
_XFE_WIDGET_CLASS(toolscroll,ToolScroll);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
ToolScrollRegisterRepTypes(void)
{
static String placement_names[] =
{
"tool_scroll_arrow_placement_both",
"tool_scroll_arrow_placement_end",
"tool_scroll_arrow_placement_start",
NULL
};
XfeRepTypeRegister(XmRToolScrollArrowPlacement,placement_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Core class methods */
/* */
/*----------------------------------------------------------------------*/
static void
ClassInitialize()
{
/* Register XfeToolBox representation types */
ToolScrollRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs)
{
XfeToolScrollPart * tp = _XfeToolScrollPart(nw);

Просмотреть файл

@ -33,6 +33,30 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolScroll resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNarrowDisplayPolicy "arrowDisplayPolicy"
#define XmNarrowPlacement "arrowPlacement"
#define XmNbackwardArrow "backwardArrow"
#define XmNclipArea "clipArea"
#define XmNclipShadowThickness "clipShadowThickness"
#define XmNclipShadowType "clipShadowType"
#define XmNforwardArrow "forwardArrow"
#define XmNtoolBarPosition "toolBarPosition"
#define XmCArrowDisplayPolicy "ArrowDisplayPolicy"
#define XmCArrowPlacement "ArrowPlacement"
#define XmCBackwardArrow "BackwardArrow"
#define XmCClipArea "ClipArea"
#define XmCForwardArrow "ForwardArrow"
#define XmCToolBarPosition "ToolBarPosition"
#define XmRArrowDisplayPolicy XmRScrollBarDisplayPolicy
#define XmRToolScrollArrowPlacement "ToolScrollArrowPlacement"
/*----------------------------------------------------------------------*/
/* */
/* XmRarrowPlacement */

Просмотреть файл

@ -49,7 +49,6 @@ EXPORTS = \
ToolTipP.h \
ToolTipShell.h \
ToolTipShellP.h \
ToolTipStringDefs.h \
$(NULL)

Просмотреть файл

@ -54,7 +54,6 @@ EXPORTS = \
ToolTipP.h \
ToolTipShell.h \
ToolTipShellP.h \
ToolTipStringDefs.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))

Просмотреть файл

@ -31,6 +31,17 @@
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolTip resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNdocumentationString "documentationString"
#define XmNtipString "tipString"
#define XmCDocumentationString "DocumentationString"
#define XmCTipString "TipString"
/*----------------------------------------------------------------------*/
/* */
/* ToolTip label callback structure */

Просмотреть файл

@ -25,7 +25,6 @@
/*----------------------------------------------------------------------*/
#include <Xfe/ToolTipShellP.h>
#include <Xm/RepType.h>
#define MESSAGE1 "Widget is not an XfeToolTipShell."
#define MESSAGE2 "XmNtoolTupWidget is a read-only resource."
@ -50,14 +49,6 @@ static void GetValuesHook (Widget,ArgList,Cardinal *);
/*----------------------------------------------------------------------*/
static Widget LabelCreate (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void RegisterToolTipPlacement (void);
static void RegisterToolTipType (void);
/*----------------------------------------------------------------------*/
/* */
/* Screen functions functions */
@ -66,6 +57,13 @@ static void RegisterToolTipType (void);
static int ScreenGetSpaceBelow (Widget);
static int ScreenGetSpaceAbove (Widget);
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void ToolTipShellRegisterRepTypes (void);
/*----------------------------------------------------------------------*/
/* */
/* XfeToolTipShell resources */
@ -220,6 +218,35 @@ _XFE_WIDGET_CLASS_RECORD(tooltipshell,ToolTipShell) =
},
};
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
ToolTipShellRegisterRepTypes(void)
{
static String place_names[] =
{
"tool_tip_place_bottom",
"tool_tip_place_left",
"tool_tip_place_right",
"tool_tip_place_top",
NULL
};
static String tip_names[] =
{
"tool_tip_editable",
"tool_tip_read_only",
NULL
};
XfeRepTypeRegister(XmRToolTipPlacement,place_names);
XfeRepTypeRegister(XmRToolTipType,tip_names);
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* xfeToolTipShellWidgetClass declaration. */
@ -236,8 +263,7 @@ static void
ClassInitialize()
{
/* Register XfeToolTip Representation Types */
RegisterToolTipPlacement();
RegisterToolTipType();
ToolTipShellRegisterRepTypes();
}
/*----------------------------------------------------------------------*/
static void
@ -336,40 +362,6 @@ GetValuesHook(Widget w,ArgList args,Cardinal* nargs)
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* Rep type registration functions */
/* */
/*----------------------------------------------------------------------*/
static void
RegisterToolTipPlacement(void)
{
static String names[] =
{
"tool_tip_place_bottom",
"tool_tip_place_left",
"tool_tip_place_right",
"tool_tip_place_top"
};
XmRepTypeRegister(XmRToolTipPlacement,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
static void
RegisterToolTipType(void)
{
static String names[] =
{
"tool_tip_editable",
"tool_tip_read_only"
};
XmRepTypeRegister(XmRToolTipType,names,NULL,XtNumber(names));
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
/* */
/* XfeToolTipShell action procedures */

Просмотреть файл

@ -28,11 +28,31 @@
#define _XfeToolTipShell_h_
#include <Xfe/BypassShell.h>
#include <Xfe/ToolTipStringDefs.h>
#include <Xfe/Button.h>
XFE_BEGIN_CPLUSPLUS_PROTECTION
/*----------------------------------------------------------------------*/
/* */
/* XfeToolTipShell resource names */
/* */
/*----------------------------------------------------------------------*/
#define XmNtoolTipCallback "toolTipCallback"
#define XmNtoolTipLabel "toolTipLabel"
#define XmNtoolTipPlacement "toolTipPlacement"
#define XmNtoolTipTimeout "toolTipTimeout"
#define XmNtoolTipType "toolTipType"
#define XmNtoolTipHorizontalOffset "toolTipHorizontalOffset"
#define XmNtoolTipVerticalOffset "toolTipVerticalOffset"
#define XmCToolTipPlacement "ToolTipPlacement"
#define XmCToolTipTimeout "ToolTipTimeout"
#define XmCToolTipType "ToolTipType"
#define XmRToolTipPlacement "ToolTipPlacement"
#define XmRToolTipType "ToolTipType"
/*----------------------------------------------------------------------*/
/* */
/* XfeToolTip reasonable defaults for some resources */

Просмотреть файл

@ -1,70 +0,0 @@
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
/*----------------------------------------------------------------------*/
/* */
/* Name: <Xfe/ToolTipStringDefs.h> */
/* Description: XfeToolTip string definitions. */
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
/* */
/*----------------------------------------------------------------------*/
#ifndef _XfeToolTipStringDefs_h_ /* start ToolTipStringDefs.h*/
#define _XfeToolTipStringDefs_h_
/*----------------------------------------------------------------------*/
/* */
/* Callback Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNtoolTipCallback "toolTipCallback"
/*----------------------------------------------------------------------*/
/* */
/* Resource Names */
/* */
/*----------------------------------------------------------------------*/
#define XmNdocumentationString "documentationString"
#define XmNtipString "tipString"
#define XmNtoolTipLabel "toolTipLabel"
#define XmNtoolTipPlacement "toolTipPlacement"
#define XmNtoolTipTimeout "toolTipTimeout"
#define XmNtoolTipType "toolTipType"
#define XmNtoolTipHorizontalOffset "toolTipHorizontalOffset"
#define XmNtoolTipVerticalOffset "toolTipVerticalOffset"
/*----------------------------------------------------------------------*/
/* */
/* Class Names */
/* */
/*----------------------------------------------------------------------*/
#define XmCDocumentationString "DocumentationString"
#define XmCTipString "TipString"
#define XmCToolTipPlacement "ToolTipPlacement"
#define XmCToolTipTimeout "ToolTipTimeout"
#define XmCToolTipType "ToolTipType"
/*----------------------------------------------------------------------*/
/* */
/* Representation Types */
/* */
/*----------------------------------------------------------------------*/
#define XmRToolTipPlacement "ToolTipPlacement"
#define XmRToolTipType "ToolTipType"
#endif /* end ToolTipStringDefs.h */

Просмотреть файл

@ -239,6 +239,8 @@ create_chrome(Widget parent,String name)
XtSetSensitive(menu_bar,False);
#if 1
_dash_board = XfeCreateLoadedDashBoard(
chrome, /* pw */
"DashBoard", /* name */
@ -255,6 +257,7 @@ create_chrome(Widget parent,String name)
NULL, /* task_bar_out */
NULL, /* tool_items_out */
NULL); /* task_items_out */
#endif
_tool_box = create_tool_box(chrome,"ToolBox");
@ -315,7 +318,7 @@ create_chrome(Widget parent,String name)
10,
False,
NULL,0);
return chrome;
}
/*----------------------------------------------------------------------*/

Просмотреть файл

@ -21,6 +21,7 @@
DEPTH = ../../../../..
CSRCS = \
ChromeTest.c \
DashBoardTest.c \
TaskBarTestOne.c \
TaskBarTestTwo.c \

Просмотреть файл

@ -26,6 +26,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
CSRCS = \
ChromeTest.c \
DashBoardTest.c \
TaskBarTestOne.c \
TaskBarTestTwo.c \