Ok - so one of the steps in building CDE is an early phase called the includes phase (make includes). At this point, all of the public header files are exported to exports/include/Dt, DtI, ... Then, the software is built using that include dir. This of course does not work in autotools. Much of the software does things like #include <Dt/something.h>, so in order for the build to succeed, this behavior must be represented/replicated in some way. It seems the usual way of dealing with this is to place all public headers (and in some projects, ALL headers) into a toplevel include directory. We now do this for all public headers - they have been moved from wherever they were and placed in the appropriate spot in includes/ This will break the Imake 'make includes' phase unless the Imakefiles are fixed (remove the HEADERS = stuff, and the incdir defines). This has not been done at this point since in reality, once autotools works properly, there will be no need for the Imake stuff anymore, and I intend to get rid of it. This is just a warning for now - Imake builds in this tree will now fail at the 'includes' stage. This commit is only the migration. In upcoming commits, libtt will be fixed so that the hack being used before to get around this problem is removed as there will no longer be any need. And then the autotools work continues...
141 lines
3.8 KiB
C
141 lines
3.8 KiB
C
/*
|
|
* CDE - Common Desktop Environment
|
|
*
|
|
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
|
*
|
|
* These libraries and programs are free software; you can
|
|
* redistribute them and/or modify them under the terms of the GNU
|
|
* Lesser General Public License as published by the Free Software
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* These libraries and programs are distributed in the hope that
|
|
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
|
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with these libraries and programs; if not, write
|
|
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
|
* Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
/* $XConsortium: Icon.h /main/4 1995/10/26 09:32:37 rswiston $ */
|
|
/**---------------------------------------------------------------------
|
|
***
|
|
*** file: Icon.h
|
|
***
|
|
*** project: MotifPlus Widgets
|
|
***
|
|
*** description: Public include file for DtIcon gadget class.
|
|
***
|
|
***
|
|
*** (c) Copyright 1990 by Hewlett-Packard Company.
|
|
***
|
|
***
|
|
***-------------------------------------------------------------------*/
|
|
|
|
|
|
#ifndef _DtIcon_h
|
|
#define _DtIcon_h
|
|
|
|
#include <Xm/Xm.h>
|
|
#include <Dt/DtStrDefs.h>
|
|
|
|
#ifndef DtIsIcon
|
|
#define DtIsIcon(w) XtIsSubclass(w, dtIconGadgetClass)
|
|
#endif /* DtIsIcon */
|
|
|
|
typedef struct _DtIconClassRec * DtIconGadgetClass;
|
|
typedef struct _DtIconRec * DtIconGadget;
|
|
typedef struct _DtIconCacheObjRec * DtIconCacheObject;
|
|
|
|
|
|
extern Widget _DtCreateIcon(
|
|
Widget parent,
|
|
String name,
|
|
ArgList arglist,
|
|
Cardinal argcount) ;
|
|
extern Boolean _DtIconGetState(
|
|
Widget w) ;
|
|
extern void _DtIconSetState(
|
|
Widget w,
|
|
Boolean state,
|
|
Boolean notify) ;
|
|
extern Drawable _DtIconDraw(
|
|
Widget widget,
|
|
Drawable drawable,
|
|
Position x,
|
|
Position y,
|
|
Boolean fill) ;
|
|
extern Widget _DtDuplicateIcon(
|
|
Widget parent,
|
|
Widget widget,
|
|
XmString string,
|
|
String pixmap,
|
|
XtPointer user_data,
|
|
Boolean underline) ;
|
|
extern Boolean _DtIconSelectInTitle(
|
|
Widget widget,
|
|
Position pt_x,
|
|
Position pt_y) ;
|
|
extern XRectangle * _DtIconGetTextExtent(
|
|
Widget widget) ;
|
|
extern void _DtIconGetIconRects(
|
|
DtIconGadget g,
|
|
unsigned char *flags,
|
|
XRectangle *rect1,
|
|
XRectangle *rect2) ;
|
|
|
|
|
|
|
|
extern WidgetClass dtIconGadgetClass;
|
|
|
|
|
|
#define XmCR_SELECT XmCR_SINGLE_SELECT
|
|
#define XmCR_DROP 50
|
|
#define XmCR_POPUP 51
|
|
#define XmCR_HIGHLIGHT 52
|
|
#define XmCR_UNHIGHLIGHT 53
|
|
#define XmCR_SHADOW 54
|
|
|
|
typedef struct
|
|
{
|
|
int reason;
|
|
XEvent * event;
|
|
Boolean set;
|
|
} DtIconCallbackStruct;
|
|
|
|
|
|
#define XmPIXMAP_TOP 0
|
|
#define XmPIXMAP_BOTTOM 1
|
|
#define XmPIXMAP_LEFT 2
|
|
#define XmPIXMAP_RIGHT 3
|
|
#define XmPIXMAP_MIDDLE 4
|
|
|
|
#define XmSTRING_BOTTOM 0
|
|
#define XmSTRING_TOP 1
|
|
#define XmSTRING_RIGHT 2
|
|
#define XmSTRING_LEFT 3
|
|
|
|
#define XmICON_LABEL 0
|
|
#define XmICON_BUTTON 1
|
|
#define XmICON_TOGGLE 2
|
|
#define XmICON_DRAG 3
|
|
|
|
#define XmFILL_NONE 0
|
|
#define XmFILL_PARENT 1
|
|
#define XmFILL_SELF 2
|
|
#define XmFILL_TRANSPARENT 3
|
|
|
|
#define XmPIXMAP_RECT 0x01
|
|
#define XmLABEL_RECT 0x02
|
|
|
|
#define DtRECTANGLE 0
|
|
#define DtNON_RECTANGLE 1
|
|
|
|
|
|
#endif /* _XmIcon_h */
|
|
|
|
/* DON'T ADD ANYTHING AFTER THIS #endif */
|