Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
!######################################################################
!#
!# Dthello
!#
!# Common Desktop Environment (CDE)
!#
!# Application Defaults for the CDE DT Login Transition Program
!#
!# (c) Copyright 1993, 1994 Hewlett-Packard Company
!# (c) Copyright 1993, 1994 International Business Machines Corp.
!# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
!# (c) Copyright 1993, 1994 Novell, Inc.
!#
!# $XConsortium: Dthello.src /main/4 1996/04/23 20:10:07 drk $
!#
!######################################################################
XCOMM include "Dt"
#ifdef __apollo
Dtcolor*font: user12x23
#else
%|nls-1-#optional_font_spec#|
#endif

View File

@@ -0,0 +1,8 @@
* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*
2 dthello.c
4 version.c

View File

@@ -0,0 +1,42 @@
XCOMM $XConsortium: Imakefile /main/8 1996/10/09 14:04:24 drk $
INCLUDES = -I.
DEPLIBS = $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB)
SYS_LIBRARIES = -lm
#ifdef HPArchitecture
EXTRA_DEFINES = -DHP_COLOR
#endif
#if defined(SunArchitecture)
SYS_LIBRARIES = -lm -ldl -lgen -lC
#endif
#if defined(USLArchitecture)
/* needed to turn off unresolved symbol detection for shlibs */
#if HasSharedLibraries
EXTRA_LOAD_FLAGS = -z nodefs
#endif
SYS_LIBRARIES = -lm -ldl -lgen
#endif
#if defined(UXPArchitecture)
/* needed to turn off unresolved symbol detection for shlibs */
#if HasSharedLibraries
EXTRA_LOAD_FLAGS = -z nodefs
#endif
SYS_LIBRARIES = -lm -ldl -lgen
#endif
SRCS1 = dthello.c version.c
SRCS = $(SRCS1)
OBJS = dthello.o version.o \
$(CDELIBSRC)/DtSvc/DtUtil2/EnvControl.o \
$(CDELIBSRC)/DtSvc/DtUtil2/DtNlUtils.o \
$(CDELIBSRC)/DtSvc/DtUtil2/GetDispRes.o
ComplexProgramTarget(dthello)
CppSourceFile(Dthello,Dthello.src,,)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,137 @@
/* $XConsortium: dthello.h /main/6 1996/10/30 18:19:18 mgreess $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#define DTHELLO_ID 0
#define DTCOLOR_ID 1
#define DTCOLOR_PROGNAME "dtcolor"
#define DTHELLO_PROGNAME "dthello"
#define DTHELLO_RES_NAME "dthello"
#define DTHELLO_CLASS_NAME "Dthello"
#define DTHELLO_CLASS "Dthello"
struct globalStruct {
char resname [80];
char classname [80];
};
/*
* Defintions and Macros
*/
#if 0
#define DEFAULT_FILE "/etc/copyright"
#endif
#define DEFAULT_FONT_LARGE "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
#ifdef __osf__
#define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
#else
#define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-*-*"
#endif
#define DEFAULT_FONT_SMALL "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*"
#define DEFAULT_FONT "-*-*-*-R-*-*-*-120-*-*-*-*"
#define FIXED_FONT "fixed"
#define DEFAULT_BG "cornflowerblue"
#define DEFAULT_LOW_BG "black"
#define DEFAULT_FG "white"
#define DEFAULT_LOW_FG "white"
#define DEFAULT_TIME "240"
#define DEFAULT_XOFFSET_SMALL 25
#define DEFAULT_XOFFSET_MEDIUM 50
#define DEFAULT_XOFFSET_LARGE 125
#define BOX_LINE_WIDTH_SMALL 4
#define BOX_LINE_WIDTH_MEDIUM (BOX_LINE_WIDTH_SMALL + 2)
#define BOX_LINE_WIDTH_LARGE (BOX_LINE_WIDTH_SMALL * 2)
#define MAX_FILES 5
#define MAX_LINES 100
#define MAX_COLUMNS 160
/*
* My resources
*/
#define vNfont "vfont"
#define vCFont "Vfont"
#define vNxoffset "xoffset"
#define vCXoffset "Xoffset"
#define vNbackground "vbackground"
#define vCBackground "Vbackground"
#define vNforeground "vforeground"
#define vCForeground "Vforeground"
#define vNfile "file"
#define vCFile "File"
#define vNstring "string"
#define vCString "String"
#define vNtimeout "timeout"
#define vCTimeout "Timeout"
#ifndef True
#define True 1
#endif
#ifndef False
#define False 0
#endif
/*
* Data definitions
*/
typedef struct
{
char *name;
int len;
} ArgSpec;
typedef struct
{
char *resname;
char *resclass;
char **ppvalue;
int *size;
} VhResourceEntry;
/******** Public Function Declarations ********/
extern int main(
int argc,
char **argv) ;
extern int ArgMatch(
char *pch,
int arn) ;
extern char * GetMessage( int set, int n, char *s);
extern unsigned char * SkipWhitespace(
unsigned char *pch) ;
extern void KillNewlines(
unsigned char *pch) ;
extern void ReadInTextLines(
FILE *fp,
XFontSet fontset,
unsigned int *pMaxWidth) ;
extern void SeparateTextLines(
unsigned char *pchIn) ;
extern void CatchAlarm(
int sig) ;
extern Cursor GetHourGlass(
Display *dpy) ;
extern void VhGetResources(
Display *dpy,
char *name,
char *class,
VhResourceEntry *res,
int num) ;
extern void PaintText( void ) ;
extern void DrawBox( void ) ;

View File

@@ -0,0 +1,162 @@
.\" * *
.\" * (c) Copyright 1993, 1994 Hewlett-Packard Company *
.\" * (c) Copyright 1993, 1994 International Business Machines Corp. *
.\" * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
.\" * (c) Copyright 1993, 1994 Novell, Inc. *
.\" *
.\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.\"
.\" $XConsortium: dthello.man /main/3 1995/11/02 08:55:09 rswiston $
.\"
.\" (c)1992 Hewlett-Packard Company
.\"
.\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.TH DTHELLO 1
.ds ]W HP DT 3.0 (7/92)
.SH NAME
\fBdthello - startup transition program for HP DT\fP
.P
\fBdtcolor - transition program and color server for HP DT Lite\fP
.sp 1
.SH SYNOPSIS
.B dthello
[options]
.br
.B dtcolor
[options]
.PP
.SH DESCRIPTION
\fIDthello\fP is a client that provides a transitory visual during
the startup of the Hewlett-Packard Visual User Environment (HP DT).
\fIDthello\fP is designed to cover the interval between login
(see \fBdtlogin(1)\fP) and the start up of the window manager
(see \fBdtwm(1)\fP).
.PP
\fIDthello\fP covers the screen with a window and displays a boxed
message.
The message consists of two parts: The first
part is a short welcome string. This string may contain literal
and new-line characters. The second
part is the content of one or more (up to five) files.
Each line of text from these two parts is left-justified
against the boxed outline.
.PP
\fIDtcolor\fP is used in HP DT Lite in place of \fIdthello\fR.
\fIDtcolor\fR offers the same
command line options, resources,
and behavior \fIexcept\fR that after
initialization, the \fIdtcolor\fR process puts itself in the
background and continues running for the duration of the HP DT Lite
session as a color server. In HP DT Regular, the color server code
is built into the session manager
(\fIdtsession\fP), so that the \fIdtcolor\fR
daemon needs to run only in HP DT Lite sessions.
Because \fIdtcolor\fR offers a strict superset of \fIdthello\fR
functionality,
all comments about \fIdthello\fR apply equally to \fIdtcolor\fR.
.PP
The default font for \fIdthello\fR
is chosen in a device-dependent way, depending
on the screen resolution of the display, whether high resolution
(\fIe.g.\fR, 1280x1024), medium resolution (\fIe.g.\fR, 1024x768), or
low resolution (\fIe.g.\fR, 640x480).
.PP
\fIDthello\fP will display only a ``reasonable'' number of lines of
text. It
does not scroll or try to prevent the text from getting clipped if the
text does not fit on the screen. If the line length is too long,
then \fIdthello\fR will not draw the encompassing box, and
will instead
align the text flush against the left edge of the screen.
.PP
\fIDthello\fP is designed to be invoked just after login. The
script file
that contains the default invocation of \fIdthello\fR is
\fI/usr/dt/config/Xsession\fR.
.PP
.SH OPTIONS
.TP 8
.BI \-display " display_name"
This option names the display on which to run.
The default display is taken from the DISPLAY environment variable.
.TP 8
.BI \-bground " background_color"
This option specifies the background color of the window.
The default value is "black" for B&W and screens with limited color
(16 or less) and "cornflowerblue" for screens with more
colors (more than 16).
The background color can also be specified by
setting the \fBvbackground\fR (class \fBVbackground\fR) resource.
.TP 8
.BI \-fground " foreground_color"
This option specifies the foreground color (for the text).
The default value is "white."
The foreground color can also be specified by
setting the \fBvforeground\fR (class \fBVforeground\fR) resource.
.TP 8
.BI \-file " file_name"
This option specifies a file from which to read message text. This option may
appear up to five times to include text from five different
files.
If no file option is specified (the
default), the file \fI/etc/copyright\fR is displayed.
The \fBfile\fR (class \fBFile\fR) resource is recognized, but only one file
can be specified this way.
.TP 8
.BI \-font " font_name"
This option specifies the font to use with which to render the text string.
The default values are \fIsystem23\fR for high resolution displays,
\fIsystem19\fR for medium resolution displays, and \fIsystem16\fR
for low resolution displays.
The equivalent resource is \fBvfont\fR (class \fBVfont\fR).
.TP 8
.BI \-string " text_string"
This option specifies the message text to display.
Messages with embedded spaces must be quoted. Literal
new-line characters can be embedded in the text string to specify line
breaks. Each line will be left-justified on the screen.
The default text is:
.sp
Starting the
.br
Common Desktop Environment
.sp
The message text can also be specified with the \fBstring\fR (class
\fBString\fR) resource.
.TP 8
.BI \-timeout " num_seconds"
This option specifies the timeout value in seconds.
\fIDthello\fP sets a timer and then waits for the \fBReparentNotify\fP event
that signals that the window manager is up. If the timer expires,
\fIdthello\fP stops waiting on the window manager and terminates
immediately. The default value is 240 seconds. The equivalent resource
is \fBtimeout\fR (class \fBTimeout\fR).
.PP
.SH ENVIRONMENT
\fIDthello\fP uses the DISPLAY environment variable.
.PP
.SH WARNINGS
Lines that contain non-printable characters (such as the
tab character) may not display as expected.
.PP
.SH COPYRIGHT
(c) Copyright 1990, 1991, 1992 by Hewlett-Packard Company.
.br
(c) Copyright 1993, 1994 Hewlett-Packard Company
.br
(c) Copyright 1993, 1994 International Business Machines Corp.
.br
(c) Copyright 1993, 1994 Sun Microsystems, Inc.
.br
(c) Copyright 1993, 1994 Novell, Inc.
.PP
.SH AUTHOR
\fIDthello\fP and \fIdtcolor\fR were developed by HP.
.PP
.SH FILES
/usr/lib/X11/dt/Dtlogin/Xsession
.br
/etc/copyright
.PP
.SH SEE ALSO
dtlite(1), dtlogin(1), dtwm(1).

View File

@@ -0,0 +1,86 @@
$ "$XConsortium: dthello.msg /main/3 1995/11/02 08:55:17 rswiston $";
$ * *
$ * (c) Copyright 1993, 1994 Hewlett-Packard Company *
$ * (c) Copyright 1993, 1994 International Business Machines Corp. *
$ * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
$ * (c) Copyright 1993, 1994 Novell, Inc. *
$ *
$ *************************************<+>*************************************
$ *****************************************************************************
$ **
$ ** File: dthello.msg
$ **
$ ** Project: HP DT login transition program (dthello)
$ **
$ ** Description:
$ ** -----------
$ ** This file is the source for the message catalog for dthello
$ **
$ **
$ *****************************************************************************
$ **
$ ** (c) Copyright 1990, 1991 Hewlett-Packard Company
$ ** All Rights reserved
$ **
$ **
$ *****************************************************************************
$ *****************************************************************************
$ *************************************<+>*************************************
$ *************************************<L>*************************************
$ ** -----------------GENERAL LOCALIZATION NOTES SECTION---------------------
$ * Comment lines begin with a $ except $set which indicates the start of a
$ * new set.
$ *
$ * Do not delete any comments; you may add comments for your use.
$ *
$ ** ----------------GENERAL LOCALIZATION NOTES SECTION END------------------
$ *************************************<L>*************************************
$set 2
$ THIS COMMENT FOR DT TEAM ONLY -- dthello.c --
$ Do not translate. Blank message, please ignore
1
$ Message #2 is no longer used. It has been replaced with messag #3
2 Starting the\n\
COSE\n\
User Environment\n\n
$ Default startup message (written before the contents
$ of the default file, /etc/copyright).
3 Starting the\n\
Common Desktop Environment\n\n
$set 4
$ THIS COMMENT FOR DT TEAM ONLY -- dthello.c --
$ This entire set is for error messages
$ DO NOT TRANSLATE THESE MESSAGES
1 %s: can't open display\n
2 %s: timeout must be positive\n
3 %1$s: Maxiumum of %2$d files allowed, skipping %3$s\n
$ Messages 4 and 5 are both used when there is a syntax error on
$ the command line invoking dthello
$
4 usage: %s [-display <display>] [-fg <color>] [-bg <color>]\\\n
5 [-font <font>] [-string <message>] [-file <name>] [-timeout <seconds>]\n
$ _DtMessage 6 occurs when an font can't be loaded
$ the likely causes: (1) the font was incorrectly specified
$ (2) it is not available on this server
6 %1$s: display %2$s doesn't know font %3$s\n
7 %1$s: unable to open file %2$s\n
8 %1$s: can't set background to %2$s, using %3$s.\n
9 %1$s: can't set foreground to %2$s, using %3$s.\n
10 %s: Insufficient memory (SeparateTextLines)\n
$set 99
$ DO NOT TRANSLATE THESE MESSAGES
$ DO NOT CHANGE THESE MESSAGES
$ DO NOT LOCALIZE THESE MESSAGES
$ These messages are used for the version information.
1 @(#)version_goes_here
2 \n@(#)_DtMessage catalog source $XConsortium: dthello.msg /main/3 1995/11/02 08:55:17 rswiston $

View File

@@ -0,0 +1,52 @@
# $XConsortium: nlsREADME.txt /main/2 1996/11/11 11:27:52 drk $
# * *
# * (c) Copyright 1993, 1994 Hewlett-Packard Company *
# * (c) Copyright 1993, 1994 International Business Machines Corp. *
# * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
# * (c) Copyright 1993, 1994 Novell, Inc. *
# *
#############################################################################
#
# Component: dthello (and dtcolor)
#
############################################################################
=============================================================
_DtMessage catalog source:
File name: dthello.msg
Target: /usr/dt/nls/%L/dthello.cat
There is only ONE message catalog (dthello.cat). It is
used by both dtcolor and dthello.
Look for the lines that say, "Starting the Hewlett-Packard
Visual User Environment." These should be localized.
There is no change from what you did for HP DT 2.01.
=============================================================
Two app-defaults files:
File name: Dtcolor
Target: /usr/dt/app-defaults/%L/Dtcolor
File name: Dthello
Target: /usr/dt/app-defaults/%L/Dthello
The one resource in these files that should be changed is the
default font specification.
For example:
Dthello*font: system17
--changed to--
Dthello*font: jpn.8x18
Dtcolor*font: system17
--changed to--
Dtcolor*font: jpn.8x18
=============================================================

View File

@@ -0,0 +1,39 @@
/* $XConsortium: version.c /main/5 1996/08/30 15:31:27 drk $
*
* (c) Copyright 1996 Digital Equipment Corporation.
* (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
* (c) Copyright 1993,1994,1996 International Business Machines Corp.
* (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
* (c) Copyright 1993,1994,1996 Novell, Inc.
* (c) Copyright 1996 FUJITSU LIMITED.
* (c) Copyright 1996 Hitachi.
*/
/********************************************************
Copyright (c) 1988, 1990 by Hewlett-Packard Company
Copyright (c) 1988 by the Massachusetts Institute of Technology
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that copyright notice and this permission
notice appear in supporting documentation, and that the names of
Hewlett-Packard or M.I.T. not be used in advertising or publicity
pertaining to distribution of the software without specific, written
prior permission.
********************************************************/
#include <include/hpversion.h>
#ifndef lint
version_tag("dthello: $XConsortium: version.c /main/5 1996/08/30 15:31:27 drk $")
#endif /* lint */