Files
cdesktop/cde/include/Dt/ControlP.h
Jon Trulson 369308b737 The great includes migration of 2019 (autotools)
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...
2019-10-25 17:01:34 -06:00

246 lines
6.8 KiB
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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: ControlP.h /main/6 1996/03/25 11:17:48 rswiston $ */
/**---------------------------------------------------------------------
***
*** file: ControlP.h
***
*** project: MotifPlus Widgets
***
*** description: Private include file for DtControl class.
***
***
*** (c) Copyright 1992 by Hewlett-Packard Company.
***
***
***-------------------------------------------------------------------*/
#ifndef _DtControlP_h
#define _DtControlP_h
#include <Xm/XmP.h>
#include <Dt/IconP.h>
#include <Dt/Control.h>
typedef struct _DtControlCacheObjClassPart
{
XtPointer dummy;
} DtControlCacheObjClassPart;
typedef struct _DtControlCacheObjClassRec /* label cache class record */
{
ObjectClassPart object_class;
XmExtClassPart ext_class;
DtControlCacheObjClassPart control_class_cache;
} DtControlCacheObjClassRec;
externalref DtControlCacheObjClassRec dtControlCacheObjClassRec;
/* The Control Gadget Cache instance record */
typedef struct _DtControlCacheObjPart
{
XtPointer dummy;
} DtControlCacheObjPart;
typedef struct _DtControlCacheObjRec
{
ObjectPart object;
XmExtPart ext;
DtControlCacheObjPart control_cache;
} DtControlCacheObjRec;
/*-------------------------------------------------------------
** Class Structure
*/
/* Class Part
*/
typedef struct _DtControlClassPart
{
XmCacheClassPartPtr cache_part;
caddr_t extension;
} DtControlClassPart;
/* Full Class Record
*/
typedef struct _DtControlClassRec
{
RectObjClassPart rect_class;
XmGadgetClassPart gadget_class;
DtIconClassPart icon_class;
DtControlClassPart control_class;
} DtControlClassRec;
/* Actual Class
*/
extern DtControlClassRec dtControlClassRec;
/*-------------------------------------------------------------
** Instance Structure
*/
/* Instance Part
*/
typedef struct _DtControlPart
{
XtPointer push_function;
XtPointer push_argument;
String push_action;
int num_push_images;
int max_push_images;
int push_image_position;
int *push_delays;
Pixmap *push_pixmaps;
Pixmap *push_masks;
String drop_action;
int num_drop_images;
int max_drop_images;
int drop_image_position;
int *drop_delays;
Pixmap *drop_pixmaps;
Pixmap *drop_masks;
Widget subpanel;
Pixmap alt_pix;
Pixmap alt_mask;
String alt_image;
XmString alt_string;
Dimension alt_string_width;
Dimension alt_string_height;
String format;
String format_jp;
String file_name;
long file_size;
XtIntervalId monitor_timer;
int monitor_time;
Boolean chime;
Boolean file_changed;
Boolean _do_update;
Boolean use_embossed_text;
Boolean use_label_adj;
unsigned char control_type;
GC top_shadow_gc;
GC bottom_shadow_gc;
XtIntervalId click_timer;
int click_time;
short busy;
int blink_elapsed;
int max_blink_time;
int blink_time;
XtIntervalId blink_timer;
XtIntervalId date_timer;
XtIntervalId push_animation_timer;
XtIntervalId drop_animation_timer;
} DtControlPart;
/* Full Instance Record
*/
typedef struct _DtControlRec
{
ObjectPart object;
RectObjPart rectangle;
XmGadgetPart gadget;
DtIconPart icon;
DtControlPart control;
} DtControlRec;
/*-------------------------------------------------------------
** Class and Instance Macros
*/
/* DtControl Class Macros
*/
/* DtControl Instance Macros
*/
#define G_Format(g) (g -> control.format)
#define G_TopShadowGC(g) (g -> control.top_shadow_gc)
#define G_BottomShadowGC(g) (g -> control.bottom_shadow_gc)
#define G_Busy(g) (g -> control.busy)
#define G_PushImagePosition(g) (g -> control.push_image_position)
#define G_NumPushImages(g) (g -> control.num_push_images)
#define G_MaxPushImages(g) (g -> control.max_push_images)
#define G_PushDelays(g) (g -> control.push_delays)
#define G_PushPixmaps(g) (g -> control.push_pixmaps)
#define G_PushMasks(g) (g -> control.push_masks)
#define G_DropImagePosition(g) (g -> control.drop_image_position)
#define G_NumDropImages(g) (g -> control.num_drop_images)
#define G_MaxDropImages(g) (g -> control.max_drop_images)
#define G_DropDelays(g) (g -> control.drop_delays)
#define G_DropPixmaps(g) (g -> control.drop_pixmaps)
#define G_DropMasks(g) (g -> control.drop_masks)
#define G_DropAction(g) (g -> control.drop_action)
#define G_PushAction(g) (g -> control.push_action)
#define G__DoUpdate(g) (g -> control._do_update)
#define G_PushFunction(g) (g -> control.push_function)
#define G_PushArgument(g) (g -> control.push_argument)
#define G_Subpanel(g) (g -> control.subpanel)
#define G_AltMask(g) (g -> control.alt_mask)
#define G_AltPix(g) (g -> control.alt_pix)
#define G_AltString(g) (g -> control.alt_string)
#define G_AltStringWidth(g) (g -> control.alt_string_width)
#define G_AltStringHeight(g) (g -> control.alt_string_height)
#define G_ControlType(g) (g -> control.control_type)
#define G_AltImage(g) (g -> control.alt_image)
#define G_FileChanged(g) (g -> control.file_changed)
#define G_FileName(g) (g -> control.file_name)
#define G_FileSize(g) (g -> control.file_size)
#define G_Chime(g) (g -> control.chime)
#define G_MonitorTimer(g) (g -> control.monitor_timer)
#define G_MonitorTime(g) (g -> control.monitor_time)
#define G_ClickTime(g) (g -> control.click_time)
#define G_ClickTimer(g) (g -> control.click_timer)
#define G_DateTimer(g) (g -> control.date_timer)
#define G_PushAnimationTimer(g) (g -> control.push_animation_timer)
#define G_DropAnimationTimer(g) (g -> control.drop_animation_timer)
#define G_BlinkCount(g) (g -> control.blink_count)
#define G_BlinkElapsed(g) (g -> control.blink_elapsed)
#define G_MaxBlinkTime(g) (g -> control.max_blink_time)
#define G_BlinkTime(g) (g -> control.blink_time)
#define G_BlinkTimer(g) (g -> control.blink_timer)
#define G_BlinkTime(g) (g -> control.blink_time)
#define G_UseEmbossedText(g) (g -> control.use_embossed_text)
#define G_UseLabelAdjustment(g) (g -> control.use_label_adj)
#endif /* _DtControlP_h */
/* DON'T ADD ANYTHING AFTER THIS #endif */