зеркало из https://github.com/mozilla/gecko-dev.git
Fix a bunch of comments that got screwed when the license was pasted. Also,
add a basic defines header where to put commonly accesed macros without having to include all the stuff in <Xfe/Xfe.h>.
This commit is contained in:
Родитель
d602fa87a6
Коммит
39b5752a7f
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Arrow.c> */
|
||||
/* Description: XfeArrow widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/ArrowP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
#include <Xm/RowColumnP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Arrow.h> */
|
||||
/* Description: XfeArrow widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeArrow_h_ /* start Arrow.h */
|
||||
#define _XfeArrow_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -76,8 +74,6 @@ XfeCreateArrow (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Arrow.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ArrowP.h> */
|
||||
/* Description: XfeArrow widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeArrowP_h_ /* start ArrowP.h */
|
||||
#define _XfeArrowP_h_
|
||||
|
||||
#include <Xfe/Arrow.h>
|
||||
#include <Xfe/ButtonP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -100,8 +98,6 @@ typedef struct _XfeArrowRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeArrowPart(w) &(((XfeArrowWidget) w)->xfe_arrow)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ArrowP.h */
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
/* -*- 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/BasicDefines.h> */
|
||||
/* Description: Xfe widgets basic defines. */
|
||||
/* Author: Ramiro Estrugo <ramiro@netscape.com> */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _XfeBasicDefines_h_ /* start BasicDefines.h */
|
||||
#define _XfeBasicDefines_h_
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Include the main Xt header for the various types (Widget, etc). */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Macros to protect C code from the evils of C++. */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
#ifdef __cplusplus
|
||||
|
||||
#ifndef XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
#define XFE_BEGIN_CPLUSPLUS_PROTECTION extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef XFE_END_CPLUSPLUS_PROTECTION
|
||||
#define XFE_END_CPLUSPLUS_PROTECTION }
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
#define XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
#define XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* end BasciDefines.h */
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Button.c> */
|
||||
/* Description: XfeButton widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/ButtonP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Button.h> */
|
||||
/* Description: XfeButton widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeButton_h_ /* start Button.h */
|
||||
#define _XfeButton_h_
|
||||
|
||||
#include <Xfe/Label.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -130,8 +128,6 @@ XfeButtonAcceptXY (Widget w,
|
|||
int y);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Button.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ButtonP.h> */
|
||||
/* Description: XfeButton widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeButtonP_h_ /* start ButtonP.h */
|
||||
#define _XfeButtonP_h_
|
||||
|
||||
#include <Xfe/Button.h>
|
||||
#include <Xfe/LabelP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -210,8 +208,6 @@ extern void
|
|||
_XfeButtonBtn3Up (Widget,XEvent *,char **,Cardinal *);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ButtonP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/BypassShell.c> */
|
||||
/* Description: XfeBypassShell widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/BypassShellP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/BypassShell.h> */
|
||||
/* Description: XfeBypassShell widget public header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeBypassShell_h_ /* start BypassShell.h */
|
||||
#define _XfeBypassShell_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
#include <Xfe/Manager.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -63,8 +61,6 @@ XfeCreateBypassShell (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end BypassShell.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/BypassShellP.h> */
|
||||
/* Description: XfeBypassShell widget private header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeBypassShellP_h_ /* start BypassShellP.h */
|
||||
#define _XfeBypassShellP_h_
|
||||
|
||||
|
@ -32,9 +32,7 @@
|
|||
#include <X11/ShellP.h>
|
||||
#include <Xm/VendorSEP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -147,9 +145,7 @@ _XfeBypassShellGlobalInitialize (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end BypassShellP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/CallProcs.c> */
|
||||
/* Description: Misc shared resource call procedures. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Cascade.c> */
|
||||
/* Description: XfeCascade widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/CascadeP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Cascade.h> */
|
||||
/* Description: XfeCascade widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeCascade_h_ /* start Cascade.h */
|
||||
#define _XfeCascade_h_
|
||||
|
||||
#include <Xfe/Button.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -108,8 +106,6 @@ XfeCascadeGetChildren (Widget w,
|
|||
Cardinal * num_children);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Cascade.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/CascadeP.h> */
|
||||
/* Description: XfeCascade widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeCascadeP_h_ /* start CascadeP.h */
|
||||
#define _XfeCascadeP_h_
|
||||
|
||||
#include <Xfe/Cascade.h>
|
||||
#include <Xfe/ButtonP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -120,8 +118,6 @@ typedef struct _XfeCascadeRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeCascadePart(w) &(((XfeCascadeWidget) w)->xfe_cascade)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end CascadeP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ChildrenUtil.c> */
|
||||
/* Description: Children misc utilities source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ChildrenUtil.h> */
|
||||
/* Description: Children misc utilities header. */
|
||||
|
@ -23,16 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
#ifndef _XfeChildrenUtil_h_ /* start ChildrenUtil.h */
|
||||
#define _XfeChildrenUtil_h_
|
||||
|
||||
#include <X11/Intrinsic.h> /* Xt public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -119,8 +116,6 @@ XfeChildrenRemoveEventHandler(Widget w,
|
|||
|
||||
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ChildrenUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Chrome.c> */
|
||||
/* Description: XfeChrome widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/ChromeP.h>
|
||||
|
||||
/* Possible children classes */
|
||||
|
@ -41,7 +41,6 @@
|
|||
#define MESSAGE2 "The XmNmenuBar widget cannot be changed."
|
||||
#define MESSAGE3 "The XmNtoolBox widget cannot be changed."
|
||||
#define MESSAGE4 "The XmNdashBoard widget cannot be changed."
|
||||
#define MESSAGE5 "The same widget occurs in more than one view position."
|
||||
|
||||
#define IS_MENU_BAR(w) (_XfeIsAlive(w) && XmIsRowColumn(w))
|
||||
#define IS_TOOL_BOX(w) (_XfeIsAlive(w) && XfeIsToolBox(w))
|
||||
|
@ -459,14 +458,6 @@ SetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
|
|||
{
|
||||
XfeChromePart * np = _XfeChromePart(nw);
|
||||
XfeChromePart * op = _XfeChromePart(ow);
|
||||
int i, j;
|
||||
static size_t viewOffsets[] = {
|
||||
XtOffsetOf(XfeChromePart , center_view),
|
||||
XtOffsetOf(XfeChromePart , top_view),
|
||||
XtOffsetOf(XfeChromePart , bottom_view),
|
||||
XtOffsetOf(XfeChromePart , left_view),
|
||||
XtOffsetOf(XfeChromePart , right_view),
|
||||
};
|
||||
|
||||
/* spacing */
|
||||
if (np->spacing != op->spacing)
|
||||
|
@ -498,50 +489,23 @@ SetValues(Widget ow,Widget rw,Widget nw,ArgList args,Cardinal *nargs)
|
|||
_XfeWarning(nw,MESSAGE4);
|
||||
}
|
||||
|
||||
/* check the views */
|
||||
/* center_view */
|
||||
if (np->center_view != op->center_view)
|
||||
{
|
||||
_XfemConfigFlags(nw) |= XfeConfigLayout;
|
||||
}
|
||||
|
||||
#define WidgetAtOffset(str, offs) (*(Widget*)((char*)(str) + (offs)))
|
||||
/* top_view */
|
||||
if (np->top_view != op->top_view)
|
||||
{
|
||||
_XfemConfigFlags(nw) |= XfeConfigLayout;
|
||||
}
|
||||
|
||||
for (i = 0; i < XtNumber(viewOffsets); i++)
|
||||
{
|
||||
Widget newWidget = WidgetAtOffset(np, viewOffsets[i]);
|
||||
if (newWidget != WidgetAtOffset(op, viewOffsets[i]))
|
||||
{
|
||||
/* widget at postion i was changed */
|
||||
|
||||
_XfemConfigFlags(nw) |= XfeConfigLayout;
|
||||
|
||||
for (j = 0; j < XtNumber(viewOffsets); j++)
|
||||
{
|
||||
if (j == i)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (newWidget != NULL &&
|
||||
newWidget == WidgetAtOffset(np, viewOffsets[j]))
|
||||
{
|
||||
/*
|
||||
* The new widget for element position i is also
|
||||
* present in position j.
|
||||
*
|
||||
* If there's a change at position j, this is an
|
||||
* error. If position j was not changed, silently
|
||||
* move the widget from position j to i.
|
||||
*/
|
||||
|
||||
if (newWidget != WidgetAtOffset(op, viewOffsets[j]))
|
||||
{
|
||||
_XfeWarning(nw, MESSAGE5);
|
||||
}
|
||||
|
||||
WidgetAtOffset(np, viewOffsets[j]) = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#undef WidgetAtOffset
|
||||
/* bottom_view */
|
||||
if (np->bottom_view != op->bottom_view)
|
||||
{
|
||||
_XfemConfigFlags(nw) |= XfeConfigLayout;
|
||||
}
|
||||
|
||||
return _XfeManagerChainSetValues(ow,rw,nw,xfeChromeWidgetClass);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Chrome.h> */
|
||||
/* Description: XfeChrome widget public header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeChrome_h_ /* start Chrome.h */
|
||||
#define _XfeChrome_h_
|
||||
|
||||
|
@ -32,9 +32,7 @@
|
|||
#include <Xfe/TaskBar.h>
|
||||
#include <Xm/RowColumn.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -87,8 +85,6 @@ XfeChromeGetComponent (Widget w,
|
|||
unsigned char component);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Chrome.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ChromeP.h> */
|
||||
/* Description: XfeChrome widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeChromeP_h_ /* start ChromeP.h */
|
||||
#define _XfeChromeP_h_
|
||||
|
||||
#include <Xfe/Chrome.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -143,9 +141,7 @@ typedef struct _XfeChromeConstraintRec
|
|||
#define _XfeChromeConstraintPart(w) \
|
||||
(&(((XfeChromeConstraintRec *) _XfeConstraints(w)) -> xfe_chrome))
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ChromeP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ComboBox.c> */
|
||||
/* Description: XfeComboBox widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/ComboBoxP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ComboBox.h> */
|
||||
/* Description: XfeComboBox widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeComboBox_h_ /* start ComboBox.h */
|
||||
#define _XfeComboBox_h_
|
||||
|
||||
#include <Xfe/Manager.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -84,8 +82,6 @@ XfeComboBoxAddItemUnique (Widget w,
|
|||
int position);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ComboBox.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ComboBoxP.h> */
|
||||
/* Description: XfeComboBox widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeComboBoxP_h_ /* start ComboBoxP.h */
|
||||
#define _XfeComboBoxP_h_
|
||||
|
||||
#include <Xfe/ComboBox.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -160,9 +158,7 @@ _XfeComboBoxDrawTitleShadow (Widget w,
|
|||
XRectangle * clip_rect);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ComboBoxP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Converters.c> */
|
||||
/* Description: Xfe widgets resource converters source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
#include <string.h> /* for strncasecmp() */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Converters.h> */
|
||||
/* Description: Xfe widgets utilities to find children. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeConverters_h_ /* start Converters.h */
|
||||
#define _XfeConverters_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -44,8 +42,6 @@ extern void XfeRegisterStringToModifiersCvt (void);
|
|||
extern void XfeRegisterConverters (void);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Converters.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Cursor.c> */
|
||||
/* Description: Xfe widgets cursor utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
#define hand_width 16
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/DashBoard.c> */
|
||||
/* Description: XfeDashBoard widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/DashBoardP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/DashBoard.h> */
|
||||
/* Description: XfeDashBoard widget public header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDashBoard_h_ /* start DashBoard.h */
|
||||
#define _XfeDashBoard_h_
|
||||
|
||||
|
@ -34,9 +34,7 @@
|
|||
#include <Xfe/TaskBar.h>
|
||||
#include <Xfe/ToolBar.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -86,8 +84,6 @@ XfeDashBoardGetComponent (Widget dashboard,
|
|||
XfeDashBoardComponent component);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end DashBoard.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/DashBoardP.h> */
|
||||
/* Description: XfeDashBoard widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDashBoardP_h_ /* start DashBoardP.h */
|
||||
#define _XfeDashBoardP_h_
|
||||
|
||||
#include <Xfe/DashBoard.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -121,9 +119,7 @@ typedef struct _XfeDashBoardRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeDashBoardPart(w) &(((XfeDashBoardWidget) w) -> xfe_dash_board)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end DashBoardP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Debug.c> */
|
||||
/* Description: Xfe widgets functions for debugging. */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Debug.h> */
|
||||
/* Description: Xfe widgets functions for debugging. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDebug_h_ /* start Debug.h */
|
||||
#define _XfeDebug_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
#include <stdio.h> /* stdio */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
#ifdef DEBUG /* ifdef DEBUG */
|
||||
|
||||
|
@ -88,8 +86,6 @@ XfeDebugPrintfFunction (Widget w,
|
|||
|
||||
#endif /* endif DEBUG */
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Debug.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Defaults.h> */
|
||||
/* Description: Xfe widgets important default resource values. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDefaults_h_ /* start Defaults.h */
|
||||
#define _XfeDefaults_h_
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/DialogUtil.h> */
|
||||
/* Description: Dialog utilities source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/DialogUtil.h> */
|
||||
/* Description: Dialog utilities header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDialogUtil_h_ /* start DialogUtil.h */
|
||||
#define _XfeDialogUtil_h_
|
||||
|
||||
#include <X11/Intrinsic.h> /* Xt public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -52,8 +50,6 @@ XfeGetParentDialog (Widget w);
|
|||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end DialogUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Draw.c> */
|
||||
/* Description: Xfe widgets drawing functions header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Draw.h> */
|
||||
/* Description: Xfe widgets drawing functions header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeDraw_h_ /* start Draw.h */
|
||||
#define _XfeDraw_h_
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -150,8 +148,6 @@ XfeDrawShadowsAroundWidget (Widget parent,
|
|||
unsigned char shadow_type);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Draw.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FancyBox.c> */
|
||||
/* Description: XfeFancyBox widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/FancyBoxP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FancyBox.h> */
|
||||
/* Description: XfeFancyBox widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFancyBox_h_ /* start FancyBox.h */
|
||||
#define _XfeFancyBox_h_
|
||||
|
||||
#include <Xfe/ComboBox.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -62,8 +60,6 @@ XfeCreateFancyBox (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FancyBox.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FancyBoxP.h> */
|
||||
/* Description: XfeFancyBox widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFancyBoxP_h_ /* start FancyBoxP.h */
|
||||
#define _XfeFancyBoxP_h_
|
||||
|
||||
#include <Xfe/FancyBox.h>
|
||||
#include <Xfe/ComboBoxP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -129,9 +127,7 @@ typedef struct _XfeFancyBoxRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeFancyBoxPart(w) &(((XfeFancyBoxWidget) w) -> xfe_fancy_box)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FancyBoxP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Find.c> */
|
||||
/* Description: Xfe widgets utilities to find children. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Find.h> */
|
||||
/* Description: Xfe widgets utilities to find children. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFind_h_ /* start Find.h */
|
||||
#define _XfeFind_h_
|
||||
|
||||
|
@ -33,9 +33,7 @@
|
|||
|
||||
#include <assert.h> /* Assert */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -132,8 +130,6 @@ extern Widget
|
|||
XfeAncestorFindApplicationShell (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Find.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FontChooser.c> */
|
||||
/* Description: XfeFontChooser widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/FontChooserP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FontChooser.h> */
|
||||
/* Description: XfeFontChooser widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFontChooser_h_ /* start FontChooser.h */
|
||||
#define _XfeFontChooser_h_
|
||||
|
||||
#include <Xfe/Cascade.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -65,8 +63,6 @@ extern void
|
|||
XfeFontChooserDestroyChildren (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FontChooser.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FontChooserP.h> */
|
||||
/* Description: XfeFontChooser widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFontChooserP_h_ /* start FontChooserP.h */
|
||||
#define _XfeFontChooserP_h_
|
||||
|
||||
#include <Xfe/FontChooser.h>
|
||||
#include <Xfe/CascadeP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -103,8 +101,6 @@ typedef struct _XfeFontChooserRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeFontChooserPart(w) &(((XfeFontChooserWidget) w)->xfe_font_chooser)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FontChooserP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TempShell.c> */
|
||||
/* Description: XfeTempShell widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/FrameShellP.h>
|
||||
|
@ -33,9 +33,7 @@
|
|||
|
||||
#define BYPASS_SHELL_NAME "SharedBypassShell"
|
||||
|
||||
#ifndef __hpux
|
||||
#define EDITRES 1
|
||||
#endif
|
||||
|
||||
#ifdef EDITRES
|
||||
#include <X11/Xmu/Editres.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TempShell.h> */
|
||||
/* Description: XfeTempShell widget public header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFrameShell_h_ /* start FrameShell.h */
|
||||
#define _XfeFrameShell_h_
|
||||
|
||||
#include <Xfe/Manager.h>
|
||||
#include <Xfe/BypassShell.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -66,8 +64,6 @@ extern Widget
|
|||
XfeFrameShellGetBypassShell (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FrameShell.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/FrameShellP.h> */
|
||||
/* Description: XfeFrameShell widget private header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeFrameShellP_h_ /* start FrameShellP.h */
|
||||
#define _XfeFrameShellP_h_
|
||||
|
||||
|
@ -32,9 +32,7 @@
|
|||
#include <X11/ShellP.h>
|
||||
#include <Xm/VendorSEP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -148,9 +146,7 @@ typedef struct _XfeFrameShellRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _WMShellPart(w) &(((WMShellWidget) w) -> wm)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end FrameShellP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/GcUtil.c> */
|
||||
/* Description: Xfe widgets graphic context utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Geometry.c> */
|
||||
/* Description: Xfe widgets geometry utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Geometry.h> */
|
||||
/* Description: Xfe geometry public functions header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeGeometry_h_ /* start Geometry.h */
|
||||
#define _XfeGeometry_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
#include <Xfe/BasicDefines.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -67,8 +65,6 @@ XfeVaGetTallestWidget (Widget widget,
|
|||
...);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Geometry.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/GeometryP.h> */
|
||||
/* Description: Xfe geometry functions private header. */
|
||||
|
@ -23,13 +24,10 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeGeometryP_h_ /* start GeometryP.h */
|
||||
#define _XfeGeometryP_h_
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
#include <Xm/XmP.h>
|
||||
#include <Xfe/Geometry.h>
|
||||
|
@ -140,8 +138,6 @@ _XfeLiberalGeometryManager (Widget child,
|
|||
XtWidgetGeometry * reply);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end GeometryP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Label.c> */
|
||||
/* Description: XfeLabel widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/LabelP.h>
|
||||
#include <Xfe/ToolBar.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Label.h> */
|
||||
/* Description: XfeLabel widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeLabel_h_ /* start Label.h */
|
||||
#define _XfeLabel_h_
|
||||
|
||||
#include <Xfe/Primitive.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -97,8 +95,6 @@ XfeLabelSetSelected (Widget w,
|
|||
Boolean selected);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Label.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/LabelP.h> */
|
||||
/* Description: XfeLabel widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeLabelP_h_ /* start LabelP.h */
|
||||
#define _XfeLabelP_h_
|
||||
|
||||
#include <Xfe/Label.h>
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -187,8 +185,6 @@ _XfeLabelSetSelected (Widget w,
|
|||
Boolean invoke_callbacks);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end LabelP.h */
|
||||
|
|
|
@ -27,11 +27,9 @@
|
|||
#ifndef _XfeLinked_h_ /* start Linked.h */
|
||||
#define _XfeLinked_h_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -186,8 +184,6 @@ extern XtPointer
|
|||
XfeLinkNodeItem (XfeLinkNode node);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Linked.h */
|
||||
|
|
|
@ -29,9 +29,7 @@
|
|||
|
||||
#include <Xfe/Linked.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -59,9 +57,7 @@ typedef struct _XfeLinkedRec
|
|||
Cardinal count; /* Item Count */
|
||||
} XfeLinkedRec;
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* LinkedP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ListUtil.c> */
|
||||
/* Description: List misc utilities source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ListUtil.h> */
|
||||
/* Description: List misc utilities header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeListUtil_h_ /* start ListUtil.h */
|
||||
#define _XfeListUtil_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -42,8 +40,6 @@ extern Widget
|
|||
XfeCascadeGetSubList (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ListUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ListUtilP.h> */
|
||||
/* Description: List misc utilities private header. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeListUtilP_h_ /* start ListUtilP.h */
|
||||
#define _XfeListUtilP_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
#include <Xm/ListP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -49,8 +47,6 @@ extern "C" {
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeXmListPart(w) &(((XmListWidget) w) -> list)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ListUtilP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Logo.c> */
|
||||
/* Description: XfeLogo widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/LogoP.h>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Logo.h> */
|
||||
/* Description: XfeLogo widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeLogo_h_ /* start Logo.h */
|
||||
#define _XfeLogo_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -71,8 +69,6 @@ extern void
|
|||
XfeLogoAnimationReset (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Logo.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/LogoP.h> */
|
||||
/* Description: XfeLogo widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeLogoP_h_ /* start LogoP.h */
|
||||
#define _XfeLogoP_h_
|
||||
|
||||
#include <Xfe/Logo.h>
|
||||
#include <Xfe/ButtonP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -109,8 +107,6 @@ typedef struct _XfeLogoRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeLogoPart(w) &(((XfeLogoWidget) w) -> xfe_logo)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end LogoP.h */
|
||||
|
|
|
@ -128,6 +128,7 @@ EXPORTS = \
|
|||
$(UNUSED_EXPORTS) \
|
||||
Arrow.h \
|
||||
ArrowP.h \
|
||||
BasicDefines.h \
|
||||
Button.h \
|
||||
ButtonP.h \
|
||||
BypassShell.h \
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Manager.c> */
|
||||
/* Description: XfeManager widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -121,6 +121,9 @@ static void DrawShadow (Widget,XEvent *,Region,
|
|||
/* Layable children functions */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void LayableInfoUpdate (Widget);
|
||||
static void LayableInfoFree (Widget);
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -326,24 +329,78 @@ static XtResource resources[] =
|
|||
},
|
||||
|
||||
/* Layable children resources */
|
||||
{
|
||||
XmNnumLayableChildren,
|
||||
XmCReadOnly,
|
||||
XmRCardinal,
|
||||
sizeof(Cardinal),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . num_layable_children),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNlayableChildren,
|
||||
XmCReadOnly,
|
||||
XmRLinkedChildren,
|
||||
sizeof(XfeLinked),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . layable_children),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . children),
|
||||
XmRImmediate,
|
||||
(XtPointer) NULL
|
||||
},
|
||||
{
|
||||
XmNnumLayableChildren,
|
||||
XmCReadOnly,
|
||||
XmRCardinal,
|
||||
sizeof(Cardinal),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . num_children),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNmaxLayableChildrenWidth,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . max_width),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNmaxLayableChildrenHeight,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . max_height),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNminLayableChildrenWidth,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . min_width),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNminLayableChildrenHeight,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . min_height),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNtotalLayableChildrenWidth,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . total_width),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
{
|
||||
XmNtotalLayableChildrenHeight,
|
||||
XmCDimension,
|
||||
XmRDimension,
|
||||
sizeof(Dimension),
|
||||
XtOffsetOf(XfeManagerRec , xfe_manager . lc_info . total_height),
|
||||
XmRImmediate,
|
||||
(XtPointer) 0
|
||||
},
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Debug resources */
|
||||
|
@ -683,12 +740,6 @@ Initialize(Widget rw,Widget nw,ArgList args,Cardinal *nargs)
|
|||
XfeRepTypeCheck(nw,XmRShadowType,&_XfemShadowType(nw),
|
||||
XfeDEFAULT_SHADOW_TYPE);
|
||||
|
||||
/* Construct list of layable children if needed */
|
||||
if (_XfeManagerCountLayableChildren(nw))
|
||||
{
|
||||
_XfemLayableChildren(nw) = XfeLinkedConstruct();
|
||||
}
|
||||
|
||||
/* Finish of initialization */
|
||||
_XfeManagerChainInitialize(rw,nw,xfeManagerWidgetClass);
|
||||
}
|
||||
|
@ -718,6 +769,10 @@ Realize(Widget w,XtValueMask *mask,XSetWindowAttributes* wa)
|
|||
static void
|
||||
Destroy(Widget w)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
XfeDebugPrintfFunction(w,"Destroy",NULL);
|
||||
#endif
|
||||
|
||||
/* Remove all CallBacks */
|
||||
/* XtRemoveAllCallbacks(w,XmNlayoutCallback); */
|
||||
/* XtRemoveAllCallbacks(w,XmNresizeCallback); */
|
||||
|
@ -729,19 +784,16 @@ Destroy(Widget w)
|
|||
XtFree((char *) _XfemLayableChildren(w));
|
||||
}
|
||||
|
||||
/* printf("Destroy(%s)\n",XtName(w)); */
|
||||
|
||||
/* Destroy list of layable children if needed */
|
||||
if (_XfemLayableChildren(w) != NULL)
|
||||
{
|
||||
XfeLinkedDestroy(_XfemLayableChildren(w),NULL,NULL);
|
||||
}
|
||||
/* Cleanup the layable children info */
|
||||
LayableInfoFree(w);
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void
|
||||
Resize(Widget w)
|
||||
{
|
||||
/*printf("%s: Resize to (%d,%d)\n",XtName(w),_XfeWidth(w),_XfeHeight(w));*/
|
||||
#ifdef DEBUG
|
||||
XfeDebugPrintfFunction(w,"Resize",NULL);
|
||||
#endif
|
||||
|
||||
/* Obtain the Prefered Geometry */
|
||||
_XfeManagerPreferredGeometry(w,
|
||||
|
@ -1048,16 +1100,6 @@ InsertChild(Widget child)
|
|||
/* Accept or reject other children */
|
||||
else if (_XfeManagerAcceptChild(child))
|
||||
{
|
||||
/* Add child to layable children list if needed */
|
||||
if (_XfeManagerCountLayableChildren(w) &&
|
||||
_XfeManagerChildIsLayable(child))
|
||||
{
|
||||
XfeLinkNode node = XfeLinkedInsertAtTail(_XfemLayableChildren(w),
|
||||
child);
|
||||
|
||||
_XfeManagerLinkNode(child) = node;
|
||||
}
|
||||
|
||||
/* Call XmManager's InsertChild */
|
||||
(*mwc->composite_class.insert_child)(child);
|
||||
|
||||
|
@ -1091,20 +1133,6 @@ DeleteChild(Widget child)
|
|||
/* Leave private components alone */
|
||||
if (!_XfeManagerPrivateComponent(child))
|
||||
{
|
||||
/* Remove child from layable children list if needed */
|
||||
if (_XfeManagerLinkNode(child) != NULL)
|
||||
{
|
||||
Widget node_data =
|
||||
(Widget) XfeLinkedRemoveNode(_XfemLayableChildren(w),
|
||||
_XfeManagerLinkNode(child));
|
||||
|
||||
|
||||
assert( node_data != NULL );
|
||||
assert( node_data == child );
|
||||
|
||||
_XfeManagerLinkNode(child) = NULL;
|
||||
}
|
||||
|
||||
/* Delete the child and relayout if necessary */
|
||||
layout = _XfeManagerDeleteChild(child);
|
||||
}
|
||||
|
@ -1126,7 +1154,18 @@ DeleteChild(Widget child)
|
|||
static void
|
||||
ChangeManaged(Widget w)
|
||||
{
|
||||
/* printf("ChangeManaged(%s)\n",XtName(w)); */
|
||||
#ifdef DEBUG
|
||||
XfeDebugPrintfFunction(w,
|
||||
"ChangeManaged",
|
||||
"%s",
|
||||
(_XfemIgnoreConfigure(w) ? " - ignored" : ""),
|
||||
"NULL");
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/* Update the layuable children info */
|
||||
LayableInfoUpdate(w);
|
||||
#endif
|
||||
|
||||
/* Update widget geometry only if ignore_configure is False */
|
||||
if (!_XfemIgnoreConfigure(w))
|
||||
|
@ -1134,6 +1173,11 @@ ChangeManaged(Widget w)
|
|||
Boolean change_width = False;
|
||||
Boolean change_height = False;
|
||||
|
||||
#if 1
|
||||
/* Update the layuable children info */
|
||||
LayableInfoUpdate(w);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
/* Prepare the Widget */
|
||||
_XfeManagerPrepareComponents(w,_XfemPrepareFlags(w));
|
||||
|
@ -1230,7 +1274,9 @@ GeometryManager(Widget child,XtWidgetGeometry *request,XtWidgetGeometry *reply)
|
|||
XtGeometryMask mask = request->request_mode;
|
||||
XtGeometryResult our_result = XtGeometryNo;
|
||||
|
||||
/* printf("GeometryManager(%s) - child = %s\n",XtName(w),XtName(child)); */
|
||||
#ifdef DEBUG
|
||||
XfeDebugPrintfFunction(w,"GeometryManager","child = %s",XtName(child));
|
||||
#endif
|
||||
|
||||
/* Ignore x changes */
|
||||
if (mask & CWX)
|
||||
|
@ -1789,12 +1835,75 @@ DrawShadow(Widget w,XEvent * event,Region region,XRectangle * clip_rect)
|
|||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Layable children functions */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void
|
||||
LayableInfoUpdate(Widget w)
|
||||
{
|
||||
/* Make sure this class needs to count layable children */
|
||||
if (!_XfeManagerCountLayableChildren(w))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Reset the lc info */
|
||||
LayableInfoFree(w);
|
||||
|
||||
/* Make sure the widget is alive */
|
||||
if (!_XfeIsAlive(w))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
XfeDebugPrintfFunction(w,"LayableInfoUpdate",NULL);
|
||||
#endif
|
||||
|
||||
/* Obtain the layable children info */
|
||||
_XfeManagerGetLayableChildrenInfo(w,&_XfemLCInfo(w));
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
static void
|
||||
LayableInfoFree(Widget w)
|
||||
{
|
||||
/* Make sure this class needs to count layable children */
|
||||
if (!_XfeManagerCountLayableChildren(w))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/* Destroy the layable children list if needed */
|
||||
if (_XfemLayableChildren(w) != NULL)
|
||||
{
|
||||
XfeLinkedDestroy(_XfemLayableChildren(w),NULL,NULL);
|
||||
}
|
||||
|
||||
/* Initialize the layable children info */
|
||||
_XfemLayableChildren(w) = NULL;
|
||||
|
||||
_XfemNumLayableChildren(w) = 0;
|
||||
|
||||
_XfemMaxLayableChildrenWidth(w) = 0;
|
||||
_XfemMaxLayableChildrenHeight(w) = 0;
|
||||
|
||||
_XfemMinLayableChildrenWidth(w) = 0;
|
||||
_XfemMinLayableChildrenHeight(w) = 0;
|
||||
|
||||
_XfemTotalLayableChildrenWidth(w) = 0;
|
||||
_XfemTotalLayableChildrenHeight(w) = 0;
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* XfeManager Method invocation functions */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerPreferredGeometry(Widget w,Dimension *width,Dimension *height)
|
||||
{
|
||||
XfeManagerWidgetClass mc = (XfeManagerWidgetClass) XtClass(w);
|
||||
|
@ -1823,7 +1932,7 @@ _XfeManagerPreferredGeometry(Widget w,Dimension *width,Dimension *height)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerMinimumGeometry(Widget w,Dimension *width,Dimension *height)
|
||||
{
|
||||
XfeManagerWidgetClass mc = (XfeManagerWidgetClass) XtClass(w);
|
||||
|
@ -1834,7 +1943,7 @@ _XfeManagerMinimumGeometry(Widget w,Dimension *width,Dimension *height)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerUpdateRect(Widget w)
|
||||
{
|
||||
XfeManagerWidgetClass mc = (XfeManagerWidgetClass) XtClass(w);
|
||||
|
@ -1901,7 +2010,7 @@ _XfeManagerChangeManaged(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerPrepareComponents(Widget w,int flags)
|
||||
{
|
||||
WidgetClass cc;
|
||||
|
@ -1936,7 +2045,7 @@ _XfeManagerPrepareComponents(Widget w,int flags)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerLayoutComponents(Widget w)
|
||||
{
|
||||
XfeManagerWidgetClass mc = (XfeManagerWidgetClass) XtClass(w);
|
||||
|
@ -1952,7 +2061,7 @@ _XfeManagerLayoutComponents(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerLayoutChildren(Widget w)
|
||||
{
|
||||
XfeManagerWidgetClass mc = (XfeManagerWidgetClass) XtClass(w);
|
||||
|
@ -1968,7 +2077,7 @@ _XfeManagerLayoutChildren(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerDrawBackground(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -1982,7 +2091,7 @@ _XfeManagerDrawBackground(Widget w,
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerDrawComponents(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -1996,7 +2105,7 @@ _XfeManagerDrawComponents(Widget w,
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfeManagerDrawShadow(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -2306,88 +2415,81 @@ _XfeManagerComponentInfo(Widget w,
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* extern */ void
|
||||
_XfeManagerGetLayableChildrenInfo(Widget w,
|
||||
WidgetList * layable_children_out,
|
||||
Cardinal * num_layable_children_out,
|
||||
Dimension * max_width_out,
|
||||
Dimension * max_height_out)
|
||||
_XfeManagerGetLayableChildrenInfo(Widget w,
|
||||
XfeLayableChildrenInfoRec * info)
|
||||
{
|
||||
Widget child;
|
||||
Cardinal i;
|
||||
WidgetList layable_children = NULL;
|
||||
Cardinal num_layable_children = 0;
|
||||
Dimension max_width = 0;
|
||||
Dimension max_height = 0;
|
||||
|
||||
assert( _XfeIsAlive(w) );
|
||||
assert( XfeIsManager(w) );
|
||||
|
||||
assert( layable_children_out != NULL );
|
||||
assert( num_layable_children_out != NULL );
|
||||
assert( info != NULL );
|
||||
|
||||
/* Initialize the results */
|
||||
info->children = NULL;
|
||||
info->num_children = 0;
|
||||
|
||||
info->max_width = 0;
|
||||
info->max_height = 0;
|
||||
|
||||
info->min_width = 0;
|
||||
info->min_height = 0;
|
||||
|
||||
info->total_width = 0;
|
||||
info->total_height = 0;
|
||||
|
||||
/* Proceed only if children exist */
|
||||
if (_XfemNumChildren(w) > 0)
|
||||
{
|
||||
num_layable_children = 0;
|
||||
|
||||
/* Allocate a layable children array with num_children elements */
|
||||
layable_children =
|
||||
(WidgetList) XtMalloc(sizeof(Widget) * _XfemNumChildren(w));
|
||||
|
||||
/* Allocate a layable children linked list */
|
||||
info->children = XfeLinkedConstruct();
|
||||
|
||||
/* Iterate through all the items */
|
||||
for (i = 0; i < _XfemNumChildren(w); i++)
|
||||
{
|
||||
child = _XfeChildrenIndex(w,i);
|
||||
|
||||
/* Look for layable children and add them to the array */
|
||||
/* Look for layable children and add them to the list */
|
||||
if (_XfeManagerChildIsLayable(child))
|
||||
{
|
||||
layable_children[num_layable_children] = child;
|
||||
/* Add a node to the list for this child */
|
||||
XfeLinkNode node =
|
||||
XfeLinkedInsertAtTail(info->children,child);
|
||||
|
||||
num_layable_children++;
|
||||
|
||||
/* Keep track of largest width */
|
||||
if (_XfeWidth(child) > max_width)
|
||||
{
|
||||
max_width = _XfeWidth(child);
|
||||
}
|
||||
/* Point child's link node constraint resource to the node */
|
||||
_XfeManagerLinkNode(child) = node;
|
||||
|
||||
/* Keep track of largest height */
|
||||
if (_XfeHeight(child) > max_height)
|
||||
/* Keep track of the largest width */
|
||||
if (_XfeWidth(child) > info->max_width)
|
||||
{
|
||||
max_height = _XfeHeight(child);
|
||||
info->max_width = _XfeWidth(child);
|
||||
}
|
||||
/* Keep track of the smallest width */
|
||||
else if (_XfeWidth(child) < info->min_width)
|
||||
{
|
||||
info->min_width = _XfeWidth(child);
|
||||
}
|
||||
|
||||
/* Keep track of the largest height */
|
||||
if (_XfeHeight(child) > info->max_height)
|
||||
{
|
||||
info->max_height = _XfeHeight(child);
|
||||
}
|
||||
/* Keep track of the smallest height */
|
||||
else if (_XfeHeight(child) < info->min_height)
|
||||
{
|
||||
info->min_height = _XfeHeight(child);
|
||||
}
|
||||
|
||||
/* Keep track of the total width and height */
|
||||
else if (_XfeHeight(child) < info->min_height)
|
||||
{
|
||||
info->total_width += _XfeWidth(child);
|
||||
info->total_height += _XfeHeight(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Free the array if no layable children exist */
|
||||
if (num_layable_children == 0)
|
||||
{
|
||||
XtFree((char *) layable_children);
|
||||
|
||||
layable_children = NULL;
|
||||
}
|
||||
/* Adjust the layable children size if needed */
|
||||
else if (num_layable_children != _XfemNumChildren(w))
|
||||
{
|
||||
layable_children =
|
||||
(WidgetList) XtRealloc((char *) layable_children,
|
||||
sizeof(Widget) * num_layable_children);
|
||||
}
|
||||
}
|
||||
|
||||
*layable_children_out = layable_children;
|
||||
*num_layable_children_out = num_layable_children;
|
||||
|
||||
/* Assign max width if needed */
|
||||
if (max_width_out)
|
||||
{
|
||||
*max_width_out = max_width;
|
||||
}
|
||||
|
||||
/* Assign max height if needed */
|
||||
if (max_height_out)
|
||||
{
|
||||
*max_height_out = max_height;
|
||||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
@ -2398,12 +2500,14 @@ _XfeManagerGetLayableChildrenInfo(Widget w,
|
|||
/* XfeManager public functions */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
XfeManagerLayout(Widget w)
|
||||
{
|
||||
assert( _XfeIsAlive(w) );
|
||||
assert( XfeIsManager(w) );
|
||||
|
||||
LayableInfoUpdate(w);
|
||||
|
||||
XfeResize(w);
|
||||
|
||||
#if 0
|
||||
|
@ -2431,7 +2535,7 @@ XfeManagerLayout(Widget w)
|
|||
#endif
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
XfeManagerSetChildrenValues(Widget w,
|
||||
ArgList args,
|
||||
Cardinal count,
|
||||
|
@ -2473,7 +2577,7 @@ XfeManagerSetChildrenValues(Widget w,
|
|||
/* XfeConfigure(w); */
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
XfeManagerApply(Widget w,
|
||||
XfeManagerApplyProc proc,
|
||||
XtPointer data,
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Manager.h> */
|
||||
/* Description: XfeManager widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeManager_h_ /* start Manager.h */
|
||||
#define _XfeManager_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -81,8 +79,6 @@ XfeManagerApply (Widget w,
|
|||
Boolean only_managed);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Manager.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ManagerP.h> */
|
||||
/* Description: XfeManager widget private header file. */
|
||||
|
@ -23,8 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
#ifndef _XfeManagerP_h_ /* start ManagerP.h */
|
||||
#define _XfeManagerP_h_
|
||||
|
||||
|
@ -35,9 +34,7 @@
|
|||
#include <Xfe/Linked.h>
|
||||
#include <Xm/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -123,6 +120,27 @@ typedef struct _XfeManagerClassRec
|
|||
|
||||
externalref XfeManagerClassRec xfeManagerClassRec;
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* XfeManagerLayableInfoRec */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
typedef struct _XfeLayableChildrenInfoRec
|
||||
{
|
||||
XfeLinked children; /* Layable children */
|
||||
Cardinal num_children; /* Num layable children */
|
||||
|
||||
Dimension max_width; /* Max children width */
|
||||
Dimension max_height; /* Max children height */
|
||||
|
||||
Dimension min_width; /* Min children width */
|
||||
Dimension min_height; /* Min children height */
|
||||
|
||||
Dimension total_width; /* Total children width */
|
||||
Dimension total_height; /* Total children height*/
|
||||
|
||||
} XfeLayableChildrenInfoRec, *XfeLayableChildrenInfo;
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* XfeManagerPart */
|
||||
|
@ -165,8 +183,7 @@ typedef struct _XfeManagerPart
|
|||
Cardinal num_private_components; /* Num private components*/
|
||||
|
||||
/* Layable children resources */
|
||||
Cardinal num_layable_children; /* Num layable children */
|
||||
XfeLinked layable_children; /* Layable children */
|
||||
XfeLayableChildrenInfoRec lc_info;
|
||||
|
||||
/* Debug resources */
|
||||
#ifdef DEBUG
|
||||
|
@ -180,6 +197,7 @@ typedef struct _XfeManagerPart
|
|||
|
||||
XRectangle widget_rect; /* Widget Rect */
|
||||
XfeDimensionsRec old_dimensions; /* Old dimensions */
|
||||
|
||||
} XfeManagerPart;
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
@ -323,11 +341,8 @@ _XfeManagerComponentInfo (Widget w,
|
|||
Dimension * max_height_out);
|
||||
/*----------------------------------------------------------------------*/
|
||||
extern void
|
||||
_XfeManagerGetLayableChildrenInfo (Widget w,
|
||||
WidgetList * layable_children_out,
|
||||
Cardinal * num_layable_children_out,
|
||||
Dimension * max_width_out,
|
||||
Dimension * max_height_out);
|
||||
_XfeManagerGetLayableChildrenInfo (Widget w,
|
||||
XfeLayableChildrenInfoRec * info);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
@ -547,12 +562,6 @@ _XfeManagerGetLayableChildrenInfo (Widget w,
|
|||
#define _XfemNumPrivateComponents(w) \
|
||||
(((XfeManagerWidget) (w))->xfe_manager . num_private_components)
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemLayableChildren(w) \
|
||||
(((XfeManagerWidget) (w))->xfe_manager . layable_children)
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemNumLayableChildren(w) \
|
||||
(((XfeManagerWidget) (w))->xfe_manager . num_layable_children)
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -565,6 +574,24 @@ _XfeManagerGetLayableChildrenInfo (Widget w,
|
|||
/*----------------------------------------------------------------------*/
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* XfeManager layable children info access macros */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemLCInfo(w) \
|
||||
(((XfeManagerWidget) (w))->xfe_manager . lc_info)
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemLayableChildren(w) (_XfemLCInfo(w) . children)
|
||||
#define _XfemNumLayableChildren(w) (_XfemLCInfo(w) . num_children)
|
||||
#define _XfemMaxLayableChildrenWidth(w) (_XfemLCInfo(w) . max_width)
|
||||
#define _XfemMaxLayableChildrenHeight(w) (_XfemLCInfo(w) . max_height)
|
||||
#define _XfemMinLayableChildrenWidth(w) (_XfemLCInfo(w) . min_width)
|
||||
#define _XfemMinLayableChildrenHeight(w) (_XfemLCInfo(w) . min_height)
|
||||
#define _XfemTotalLayableChildrenWidth(w) (_XfemLCInfo(w) . total_width)
|
||||
#define _XfemTotalLayableChildrenHeight(w) (_XfemLCInfo(w) . total_height)
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* XfeManager misc access macros */
|
||||
|
@ -579,8 +606,8 @@ _XfeManagerGetLayableChildrenInfo (Widget w,
|
|||
#define _XfemOffsetTop(w) (_XfemShadowThickness(w) + \
|
||||
_XfemMarginTop(w))
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemOffsetBottom(w) (_XfemShadowThickness(w) + \
|
||||
_XfemMarginBottom(w))
|
||||
#define _XfemOffsetBottom(w) (_XfemShadowThickness(w) + \
|
||||
_XfemMarginBottom(w))
|
||||
/*----------------------------------------------------------------------*/
|
||||
#define _XfemRectHeight(w) (_XfemWidgetRect(w) . height)
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
@ -640,8 +667,6 @@ _XfeManagerGetLayableChildrenInfo (Widget w,
|
|||
#define XfeMANAGER_DEFAULT_HEIGHT 2
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ManagerP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/MenuUtil.c> */
|
||||
/* Description: Menu/RowColum misc utilities source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
#include <Xfe/CascadeP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/MenuUtil.h> */
|
||||
/* Description: Menu/RowColum misc utilities header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeMenuUtil_h_ /* start MenuUtil.h */
|
||||
#define _XfeMenuUtil_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
#include <Xfe/BasicDefines.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -144,8 +142,6 @@ XfeDestroyMenuWidgetTree (WidgetList children,
|
|||
Boolean skip_private_components);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end MenuUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Oriented.c> */
|
||||
/* Description: XfeToolScroll widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/OrientedP.h>
|
||||
#include <Xfe/Primitive.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Oriented.h> */
|
||||
/* Description: XfeOriented widget public header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeOriented_h_ /* start Oriented.h */
|
||||
#define _XfeOriented_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
#include <Xfe/Manager.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -70,8 +68,6 @@ XfeOrientedChildrenSetAllowDrag (Widget w,
|
|||
Boolean draggable);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Oriented.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/OrientedP.h> */
|
||||
/* Description: XfeOriented widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeOrientedP_h_ /* start OrientedP.h */
|
||||
#define _XfeOrientedP_h_
|
||||
|
||||
#include <Xfe/Oriented.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -262,9 +260,7 @@ _XfeOrientedSetCursorState (Widget w,
|
|||
Boolean state);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end OrientedP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Pane.c> */
|
||||
/* Description: XfePane widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/PaneP.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Pane.h> */
|
||||
/* Description: XfePane widget public header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfePane_h_ /* start Pane.h */
|
||||
#define _XfePane_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
#include <Xfe/Oriented.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -121,8 +119,6 @@ XfeCreatePane (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Pane.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/PaneP.h> */
|
||||
/* Description: XfePane widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfePaneP_h_ /* start PaneP.h */
|
||||
#define _XfePaneP_h_
|
||||
|
||||
#include <Xfe/Pane.h>
|
||||
#include <Xfe/OrientedP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -170,9 +168,7 @@ typedef struct _XfePaneConstraintRec
|
|||
#define _XfePaneConstraintPart(w) \
|
||||
(&(((XfePaneConstraintRec *) _XfeConstraints(w)) -> xfe_pane))
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end PaneP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/PixmapUtil.c> */
|
||||
/* Description: Xfe widgets pixmap utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
#define MESSAGE1 "The pixmap needs to have the same depth as the widget."
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/PrepareP.h> */
|
||||
/* Description: Widget component preparation codes. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfePrepareP_h_ /* start PrepareP.h */
|
||||
#define _XfePrepareP_h_
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Primitive.c> */
|
||||
/* Description: XfePrimitive widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/PrimitiveP.h>
|
||||
|
@ -1248,7 +1248,7 @@ GetHeight(Widget w)
|
|||
/* XfePrimitive Method invocation functions */
|
||||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitivePreferredGeometry(Widget w,Dimension *width,Dimension *height)
|
||||
{
|
||||
XfePrimitiveWidgetClass pc = (XfePrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1271,7 +1271,7 @@ _XfePrimitivePreferredGeometry(Widget w,Dimension *width,Dimension *height)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveMinimumGeometry(Widget w,Dimension *width,Dimension *height)
|
||||
{
|
||||
XfePrimitiveWidgetClass pc = (XfePrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1294,7 +1294,7 @@ _XfePrimitiveMinimumGeometry(Widget w,Dimension *width,Dimension *height)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitivePrepareComponents(Widget w,int flags)
|
||||
{
|
||||
WidgetClass cc;
|
||||
|
@ -1329,7 +1329,7 @@ _XfePrimitivePrepareComponents(Widget w,int flags)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveUpdateRect(Widget w)
|
||||
{
|
||||
XfePrimitiveWidgetClass pc = (XfePrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1340,7 +1340,7 @@ _XfePrimitiveUpdateRect(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveLayoutComponents(Widget w)
|
||||
{
|
||||
XfePrimitiveWidgetClass pc = (XfePrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1351,7 +1351,7 @@ _XfePrimitiveLayoutComponents(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveDrawBackground(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -1365,7 +1365,7 @@ _XfePrimitiveDrawBackground(Widget w,
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveDrawComponents(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -1379,7 +1379,7 @@ _XfePrimitiveDrawComponents(Widget w,
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveDrawShadow(Widget w,
|
||||
XEvent * event,
|
||||
Region region,
|
||||
|
@ -1393,7 +1393,7 @@ _XfePrimitiveDrawShadow(Widget w,
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveBorderHighlight(Widget w)
|
||||
{
|
||||
XmPrimitiveWidgetClass pc = (XmPrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1404,7 +1404,7 @@ _XfePrimitiveBorderHighlight(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveBorderUnhighlight(Widget w)
|
||||
{
|
||||
XmPrimitiveWidgetClass pc = (XmPrimitiveWidgetClass) XtClass(w);
|
||||
|
@ -1446,7 +1446,7 @@ _XfePrimitiveChainSetValues(Widget ow,Widget rw,Widget nw,WidgetClass wc)
|
|||
return False;
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
Drawable
|
||||
/* extern */ Drawable
|
||||
_XfePrimitiveDrawable(Widget w)
|
||||
{
|
||||
Drawable d = None;
|
||||
|
@ -1469,7 +1469,7 @@ _XfePrimitiveDrawable(Widget w)
|
|||
return d;
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveDrawEverything(Widget w,XEvent * event,Region region)
|
||||
{
|
||||
static XRectangle rect;
|
||||
|
@ -1506,7 +1506,7 @@ _XfePrimitiveDrawEverything(Widget w,XEvent * event,Region region)
|
|||
_XfePrimitiveDrawComponents(w,event,region,&_XfeWidgetRect(w));
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveClearBackground(Widget w)
|
||||
{
|
||||
/* Clear the widget background including margins */
|
||||
|
@ -1530,7 +1530,7 @@ _XfePrimitiveClearBackground(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveAllocateBackgroundGC(Widget w)
|
||||
{
|
||||
/* Make sure the background gc gets allocated only once */
|
||||
|
@ -1550,7 +1550,7 @@ _XfePrimitiveAllocateBackgroundGC(Widget w)
|
|||
}
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveReleaseBackgroundGC(Widget w)
|
||||
{
|
||||
/* Make sure the gc has been allocated */
|
||||
|
@ -1563,7 +1563,7 @@ _XfePrimitiveReleaseBackgroundGC(Widget w)
|
|||
XtReleaseGC(w,_XfeBackgroundGC(w));
|
||||
}
|
||||
/*----------------------------------------------------------------------*/
|
||||
void
|
||||
/* extern */ void
|
||||
_XfePrimitiveDrawBuffer(Widget w,XEvent * event,Region region)
|
||||
{
|
||||
XCopyArea(XtDisplay(w),
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Primitive.h> */
|
||||
/* Description: XfePrimitive widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfePrimitive_h_ /* start Primitive.h */
|
||||
#define _XfePrimitive_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -79,8 +77,6 @@ extern Boolean
|
|||
XfeIsSensitive (Widget w);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Primitive.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/PrimitiveP.h> */
|
||||
/* Description: XfePrimitive widget private header file. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfePrimitiveP_h_ /* start PrimitiveP.h */
|
||||
#define _XfePrimitiveP_h_
|
||||
|
||||
|
@ -33,9 +33,7 @@
|
|||
#include <Xm/PrimitiveP.h>
|
||||
#include <Xm/DrawP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -461,8 +459,6 @@ _XfePrimitiveFocus (Widget,XEvent *,char **,Cardinal *);
|
|||
#define XfePRIMITIVE_DEFAULT_HEIGHT 2
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end PrimitiveP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Private.c> */
|
||||
/* Description: Xfe widgets private utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ProgressBar.c> */
|
||||
/* Description: XfeProgressBar widget source. */
|
||||
|
@ -23,8 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
|
||||
#include <Xfe/ProgressBarP.h>
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ProgressBar.h> */
|
||||
/* Description: XfeProgressBar widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeProgressBar_h_ /* start ProgressBar.h */
|
||||
#define _XfeProgressBar_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -86,8 +84,6 @@ XfeProgressBarCylonTick (Widget w);
|
|||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ProgressBar.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ProgressBarP.h> */
|
||||
/* Description: XfeProgressBar widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeProgressBarP_h_ /* start ProgressBarP.h */
|
||||
#define _XfeProgressBarP_h_
|
||||
|
||||
#include <Xfe/ProgressBar.h>
|
||||
#include <Xfe/LabelP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -110,8 +108,6 @@ typedef struct _XfeProgressBarRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeProgressBarPart(w) &(((XfeProgressBarWidget) w) -> xfe_progress_bar)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ProgressBarP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/RepType.c> */
|
||||
/* Description: Xfe widgets representation types source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xm/RepType.h>
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/RepType.h> */
|
||||
/* Description: Xfe widgets representation types public header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeRepType_h_ /* start RepType.h */
|
||||
#define _XfeRepType_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -48,8 +46,6 @@ extern void
|
|||
XfeRegisterRepresentationTypes (void);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end RepType.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Resources.c> */
|
||||
/* Description: Xfe widgets resources utilities. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
|
||||
#define XmNisEnabled "isEnabled"
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Resources.h> */
|
||||
/* Description: Xfe widgets resources utilities. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeResources_h_ /* start Resources.h */
|
||||
#define _XfeResources_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -88,8 +86,6 @@ XfeChildIsEnabled (Widget parent,
|
|||
Boolean default_value);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Resources.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ShellUtil.h> */
|
||||
/* Description: Shell misc utilities source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/XfeP.h>
|
||||
#include <Xfe/Cascade.h>
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/ShellUtil.h> */
|
||||
/* Description: Shell misc utilities header. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeShellUtil_h_ /* start ShellUtil.h */
|
||||
#define _XfeShellUtil_h_
|
||||
|
||||
#include <X11/Intrinsic.h> /* Xt public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -85,8 +83,6 @@ XfeShellPlaceAtLocation (Widget shell,
|
|||
Dimension dy);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end ShellUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/StringDefs.h> */
|
||||
/* Description: Xfe widgets string definitions. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeStringDefs_h_ /* start StringDefs.h */
|
||||
#define _XfeStringDefs_h_
|
||||
|
||||
|
@ -207,8 +207,12 @@
|
|||
#define XmNmatchSubMenuWidth "matchSubMenuWidth"
|
||||
#define XmNmaxChildHeight "maxChildHeight"
|
||||
#define XmNmaxChildWidth "maxChildWidth"
|
||||
#define XmNmaxLayableChildrenHeight "maxLayableChildrenHeight"
|
||||
#define XmNmaxLayableChildrenWidth "maxLayableChildrenWidth"
|
||||
#define XmNmaxNumColumns "maxNumColumns"
|
||||
#define XmNmaxNumRows "maxNumRows"
|
||||
#define XmNminLayableChildrenHeight "minLayableChildrenHeight"
|
||||
#define XmNminLayableChildrenWidth "minLayableChildrenWidth"
|
||||
#define XmNnumAnimationPixmaps "numAnimationPixmaps"
|
||||
#define XmNnumFontItems "numFontItems"
|
||||
#define XmNnumLayableChildren "numLayableChildren"
|
||||
|
@ -287,6 +291,8 @@
|
|||
#define XmNtopView "topView"
|
||||
#define XmNtorn "torn"
|
||||
#define XmNtornShellTitle "tornShellTitle"
|
||||
#define XmNtotalLayableChildrenHeight "totalLayableChildrenHeight"
|
||||
#define XmNtotalLayableChildrenWidth "totalLayableChildrenWidth"
|
||||
#define XmNtrackDeleteWindow "trackDeleteWindow"
|
||||
#define XmNtrackEditres "trackEditres"
|
||||
#define XmNtrackMapping "trackMapping"
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/StringUtil.c> */
|
||||
/* Description: Xfe widgets XmString utilities. */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/StringUtil.h> */
|
||||
/* Description: Xfe widgets XmString utilities. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeStringUtil_h_ /* start StringUtil.h */
|
||||
#define _XfeStringUtil_h_
|
||||
|
||||
#include <Xm/Xm.h> /* Motif public defs */
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -73,8 +71,6 @@ XfeXmStringTableCopy (XmString * items,
|
|||
Cardinal num_items);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end StringUtil.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Tab.c> */
|
||||
/* Description: XfeTab widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <Xfe/TabP.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
#include <Xm/RowColumnP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/Tab.h> */
|
||||
/* Description: XfeTab widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTab_h_ /* start Tab.h */
|
||||
#define _XfeTab_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -66,8 +64,6 @@ XfeTabDrawRaised (Widget w,
|
|||
Boolean raised);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end Tab.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TabP.h> */
|
||||
/* Description: XfeTab widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTabP_h_ /* start TabP.h */
|
||||
#define _XfeTabP_h_
|
||||
|
||||
#include <Xfe/Tab.h>
|
||||
#include <Xfe/ButtonP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -122,8 +120,6 @@ typedef struct _XfeTabRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeTabPart(w) &(((XfeTabWidget) w)->xfe_tab)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end TabP.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TaskBar.c> */
|
||||
/* Description: XfeTaskBar widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/TaskBarP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TaskBar.h> */
|
||||
/* Description: XfeTaskBar widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTaskBar_h_ /* start TaskBar.h */
|
||||
#define _XfeTaskBar_h_
|
||||
|
||||
#include <Xfe/Xfe.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -62,8 +60,6 @@ XfeCreateTaskBar (Widget parent,
|
|||
Cardinal num_args);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end TaskBar.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TaskBarP.h> */
|
||||
/* Description: XfeTaskBar widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTaskBarP_h_ /* start TaskBarP.h */
|
||||
#define _XfeTaskBarP_h_
|
||||
|
||||
#include <Xfe/ToolBarP.h>
|
||||
#include <Xfe/TaskBar.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -106,9 +104,7 @@ typedef struct _XfeTaskBarRec
|
|||
/*----------------------------------------------------------------------*/
|
||||
#define _XfeTaskBarPart(w) &(((XfeTaskBarWidget) w) -> xfe_task_bar)
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end TaskBarP.h */
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TempTwo.c> */
|
||||
/* Description: XfeTempTwo widget source. */
|
||||
|
@ -23,7 +24,6 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <Xfe/TempTwoP.h>
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TempTwo.h> */
|
||||
/* Description: XfeTempTwo widget public header file. */
|
||||
|
@ -23,15 +24,12 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTempTwo_h_ /* start TempTwo.h */
|
||||
#define _XfeTempTwo_h_
|
||||
|
||||
#include <Xfe/Manager.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -62,8 +60,6 @@ XfeCreateTempTwo (Widget pw,
|
|||
Cardinal ac);
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end TempTwo.h */
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
* Reserved.
|
||||
*/
|
||||
/*-----------------------------------------*/
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
/* Name: <Xfe/TempTwoP.h> */
|
||||
/* Description: XfeTempTwo widget private header file. */
|
||||
|
@ -23,16 +24,13 @@
|
|||
/* */
|
||||
/*----------------------------------------------------------------------*/
|
||||
|
||||
|
||||
#ifndef _XfeTempTwoP_h_ /* start TempTwoP.h */
|
||||
#define _XfeTempTwoP_h_
|
||||
|
||||
#include <Xfe/TempTwo.h>
|
||||
#include <Xfe/ManagerP.h>
|
||||
|
||||
#ifdef __cplusplus /* start C++ */
|
||||
extern "C" {
|
||||
#endif
|
||||
XFE_BEGIN_CPLUSPLUS_PROTECTION
|
||||
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* */
|
||||
|
@ -154,9 +152,7 @@ typedef struct _XfeTempTwoConstraintRec
|
|||
#define _XfeTempTwoConstraintPart(w) \
|
||||
(&(((XfeTempTwoConstraintRec *) _XfeConstraints(w)) -> xfe_temp_two))
|
||||
|
||||
#ifdef __cplusplus /* end C++ */
|
||||
}
|
||||
#endif
|
||||
XFE_END_CPLUSPLUS_PROTECTION
|
||||
|
||||
#endif /* end TempTwoP.h */
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче