Commit bfdd2651 authored by Hao, Hao's avatar Hao, Hao
Browse files

add StripTool

parent 3cfd9996
This diff is collapsed.
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
#ifndef _Annotation
#define _Annotation
#include <ellLib.h>
#include <X11/Xlib.h>
#include <Xm/Protocols.h>
#include "StripGraph.h"
#include "StripCurve.h"
#include "jlAxis.h"
#ifndef ANNOTATIONINFO
/* ======= Data Types ======= */
typedef void * AnnotationInfo;
#endif
void Annotation_draw(Display *display, Window window, GC gc,
XRectangle wind_rect, AnnotationInfo *ai,
struct timeval *pplotted_t0, struct timeval *pplotted_t1,
StripCurveInfo *curves[]);
void Annotation_move(XButtonEvent *event, AnnotationInfo *ai);
void Annotation_deleteSelected(AnnotationInfo *ai);
void AnnotateDialog_popup (AnnotationInfo *ai, XtPointer newAnnotation);
int Annotation_select(XButtonEvent *event, AnnotationInfo *ai);
AnnotationInfo *Annotation_init ( XtAppContext app, Widget canvas, Widget shell,
Display *display, void* graph, StripCurveInfo *curves);
void Annotation_deleteAll(AnnotationInfo *ai);
#endif
#!/bin/zsh
export STRIP_ARCHIVE=/archiv/ChannelArchiver/kryo/channelReferenceSingle
# export STRIP_VERBOSE=on
#export CAR_MAX_BUF=1234
#O.solaris/StripTool /applic/EPICS_extensions/EpicsR3.13.1/extensions/src/StripToolTests/a.stc
O.solaris/StripTool
This diff is collapsed.
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
#ifndef _ColorDialog
#define _ColorDialog
#include "cColorManager.h"
#include "StripConfig.h"
#include <Xm/Xm.h>
#include <X11/Xlib.h>
/* ======= Data Types ======= */
typedef void (*CDcallback) (void *, cColor *); /* client, call data */
typedef void * ColorDialog;
ColorDialog ColorDialog_init (Widget, /* parent */
char *, /* title */
StripConfig *);
void ColorDialog_delete (ColorDialog);
void ColorDialog_popup (ColorDialog,
char *,
cColor *,
CDcallback, /* called on OK, Apply */
void *); /* callback data */
void ColorDialog_popdown (ColorDialog);
#endif
This diff is collapsed.
/*@
* Copyright(c) 1995-1997 Gregory M. Messner
* All rights reserved
*
* Permission to use, copy, modify and distribute this material for
* non-commercial personal and educational use without fee is hereby
* granted, provided that the above copyright notice and this permission
* notice appear in all copies, and that the name of Gregory M. Messner
* not be used in advertising or publicity pertaining to this material
* without the specific, prior written permission of Gregory M. Messner
* or an authorized representative.
*
* GREGORY M. MESSNER MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES,
* EXPRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST INFRINGEMENT OF PATENTS
* OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE SOFTWARE IS PROVIDED "AS IS",
* AND IN NO EVENT SHALL GREGORY M. MESSNER BE LIABLE FOR ANY DAMAGES,
* INCLUDING ANY LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES
* RELATING TO THE SOFTWARE.
*
*/
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* +++FHDR+++
*
* Filename: ComboBox.h
* Module : Xg Widget Set
* SCCS ID : 1.1 25 Oct 1995
*
* Description:
*
*
*
* Changes
*
* By Date Description
* ------ -------------- ----------------------------------------------
* messner 08/30/93 Original file
*
*
* ---FHDR--- */
#ifndef _XgComboBox_h
#define _XgComboBox_h
#include <Xm/Xm.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/*
* New resources for the ComboBox
*/
#ifndef XgNautoFillIn
# define XgNautoFillIn "autoFillIn"
#endif
#ifndef XgCAautoFillIn
# define XgCAautoFillIn "AutoFillIn"
#endif
#ifndef XgNexpandListWidth
# define XgNexpandListWidth "expandListWidth"
#endif
#ifndef XgCExpandListWidth
# define XgCExpandListWidth "ExpandListWidth"
#endif
#ifndef XgNlistStrings
# define XgNlistStrings "listStrings"
#endif
#ifndef XgCListStrings
# define XgCListStrings "ListStrings"
#endif
#ifndef XgNlistForeground
# define XgNlistForeground "listForeground"
#endif
#ifndef XgNtextForeground
# define XgNtextForeground "textForeground"
#endif
#ifndef XgNlistBackground
# define XgNlistBackground "listBackground"
#endif
#ifndef XgNtextBackground
# define XgNtextBackground "textBackground"
#endif
extern WidgetClass xgComboBoxWidgetClass;
typedef struct _XgComboBoxClassRec *XgComboBoxWidgetClass;
typedef struct _XgComboBoxRec *XgComboBoxWidget;
/*
* Is ComboBox macro
*/
#define XgIsComboBox(w) (XtIsSubclass (w, xgComboBoxWidgetClass))
/*
* Convienience creation function
*/
#ifndef _NO_PROTO
Widget XgCreateComboBox(Widget, char *, ArgList, Cardinal);
#else
Widget XgCreateComboBox();
#endif
/*
* Declare the XgComboBoxGet/SetString functions
*/
#ifndef _NO_PROTO
extern char *XgComboBoxGetString(Widget w);
extern void XgComboBoxSetString(Widget w, char *string, Boolean notify);
extern void XgComboBoxSetItems(Widget w, XmString *list,
int list_count, int selected_pos, Boolean notify);
extern void XgComboBoxSetList(Widget w, char **list, int list_count,
int selected_pos, Boolean notify);
extern void XgComboBoxSelectPos(Widget w, int selected_pos, Boolean notify);
extern int XgComboBoxGetSelectedPos(Widget w, char ** szValue);
extern void XgComboBoxAddItem(Widget w , String str,
int pos, Boolean select_it);
extern void XgComboBoxChangeItem(Widget w , String str, int pos);
extern void XgComboBoxDeletePos(Widget w, int pos);
#else
extern char *XgComboBoxGetString();
extern void XgComboBoxSetString();
extern void XgComboBoxSetItems();
extern void XgComboBoxSetList();
extern void XgComboBoxSelectPos();
extern int XgComboBoxGetSelectedPos();
extern void XgComboBoxAddItem();
extern void XgComboBoxChangeItem();
extern void XgComboBoxDeletePos();
#endif
/*
* Declare the children get function and constants
*/
#ifndef _NO_PROTO
extern Widget XgComboBoxGetChild(Widget w, int child);
#else
extern Widget XgComboBoxGetChild();
#endif
#define XgCOMBOBOX_TEXT XmDIALOG_TEXT
#define XgCOMBOBOX_LIST XmDIALOG_LIST
#define XgCOMBOBOX_ARROW XmDIALOG_APPLY_BUTTON
typedef struct {
int reason;
XEvent *event;
char *value;
int list_pos;
char *old_value;
} XgComboBoxCallbackStruct;
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _XgComboBox_h */
This diff is collapsed.
This diff is collapsed.
/*@
* Copyright(c) 1995-1997 Gregory M. Messner
* All rights reserved
*
* Permission to use, copy, modify and distribute this material for
* non-commercial personal and educational use without fee is hereby
* granted, provided that the above copyright notice and this permission
* notice appear in all copies, and that the name of Gregory M. Messner
* not be used in advertising or publicity pertaining to this material
* without the specific, prior written permission of Gregory M. Messner
* or an authorized representative.
*
* GREGORY M. MESSNER MAKES NO REPRESENTATIONS AND EXTENDS NO WARRANTIES,
* EXPRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* ANY PARTICULAR PURPOSE, AND THE WARRANTY AGAINST INFRINGEMENT OF PATENTS
* OR OTHER INTELLECTUAL PROPERTY RIGHTS. THE SOFTWARE IS PROVIDED "AS IS",
* AND IN NO EVENT SHALL GREGORY M. MESSNER BE LIABLE FOR ANY DAMAGES,
* INCLUDING ANY LOST PROFITS OR OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES
* RELATING TO THE SOFTWARE.
*
*/
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* +++FHDR+++
*
* Filename: FastLabelP.h
* Module : Xg Widget Set
* SCCS ID : 1.1 25 Oct 1995
*
* Description:
* This is the public header file for the fast label widget.
*
*
*
* Changes
*
* By Date Description
* ------ -------------- ----------------------------------------------
* messner 01/93 Original file
*
*
* ---FHDR--- */
#ifndef _XgFastLabel_h
#define _XgFastLabel_h
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
extern WidgetClass xgFastLabelWidgetClass;
typedef struct _XgFastLabelClassRec *XgFastLabelWidgetClass;
typedef struct _XgFastLabelRec *XgFastLabelWidget;
#ifndef XgNrotation
# define XgNrotation "rotation"
#endif
#ifndef XgCRotation
# define XgCRotation "Rotation"
#endif
/*
* Is FastLabel macro
*/
#define XgIsFastLabel(w) (XtIsSubclass (w, xgFastLabelWidgetClass))
/*
* Convienience creation function
*/
#ifndef _NO_PROTO
Widget XgCreateFastLabel(Widget parent, char *name, ArgList al, Cardinal ac);
#else
Widget XgCreateFastLabel();
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _XgFastLabel_h */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment