📄 sfinternal.h
字号:
/* $Id: SFinternal.h,v 1.4 2005/04/08 20:45:34 erg Exp $ $Revision: 1.4 $ *//* vim:set shiftwidth=4 ts=8: *//*********************************************************** This software is part of the graphviz package ** http://www.graphviz.org/ ** ** Copyright (c) 1994-2004 AT&T Corp. ** and is licensed under the ** Common Public License, Version 1.0 ** by AT&T Corp. ** ** Information and Software Systems Research ** AT&T Research, Florham Park NJ ***********************************************************/#ifdef __cplusplusextern "C" {#endif/* * Copyright 1989 Software Research Associates, Inc., Tokyo, Japan * * 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 name of Software Research Associates not be used * in advertising or publicity pertaining to distribution of the software * without specific, written prior permission. Software Research Associates * makes no representations about the suitability of this software for any * purpose. It is provided "as is" without express or implied warranty. * * SOFTWARE RESEARCH ASSOCIATES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, * IN NO EVENT SHALL SOFTWARE RESEARCH ASSOCIATES BE LIABLE FOR ANY SPECIAL, * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. * * Author: Erik M. van der Poel * Software Research Associates, Inc., Tokyo, Japan * erik@sra.co.jp */#include <X11/Intrinsic.h>#include <X11/StringDefs.h>#include <X11/Xos.h>#include <X11/Xaw/Text.h>#include <X11/Xaw/AsciiText.h>#include <sys/types.h>#include <sys/stat.h>#define SEL_FILE_CANCEL -1#define SEL_FILE_OK 0#define SEL_FILE_NULL 1#define SEL_FILE_TEXT 2#define SF_DO_SCROLL 1#define SF_DO_NOT_SCROLL 0typedef struct { int statDone; char *real; char *shown;} SFEntry;typedef struct { char *dir; char *path; SFEntry *entries; int nEntries; int vOrigin; int nChars; int hOrigin; int changed; int beginSelection; int endSelection; time_t mtime;} SFDir;extern int SFstatus;extern char SFcurrentPath[], SFstartDir[], SFcurrentDir[];extern Widget selFile, selFileCancel, selFileField, selFileForm;extern Widget selFileHScroll, selFileHScrolls[], selFileLists[];extern Widget selFileOK, selFilePrompt, selFileVScrolls[];extern Display *SFdisplay;extern int SFcharWidth, SFcharHeight, SFcharAscent;extern SFDir *SFdirs;extern int SFdirEnd, SFdirPtr;extern Pixel SFfore, SFback;extern Atom SFwmDeleteWindow;extern XSegment SFsegs[], SFcompletionSegs[];extern XawTextPosition SFtextPos;void SFenterList (Widget, XtPointer, XEvent *, Boolean *);void SFleaveList (Widget, XtPointer, XEvent *, Boolean *);void SFmotionList (Widget, XtPointer, XEvent *, Boolean *);void SFvFloatSliderMovedCallback (Widget, XtPointer, XtPointer);void SFvSliderMovedCallback (Widget, XtPointer, XtPointer);void SFvAreaSelectedCallback (Widget, XtPointer, XtPointer);void SFhSliderMovedCallback (Widget, XtPointer, XtPointer);void SFhAreaSelectedCallback (Widget, XtPointer, XtPointer);void SFpathSliderMovedCallback (Widget, XtPointer, XtPointer);void SFpathAreaSelectedCallback (Widget, XtPointer, XtPointer);void SFbuttonPressList (Widget, XtPointer, XEvent *, Boolean *);void SFbuttonReleaseList (Widget, XtPointer, XEvent *, Boolean *);extern int SFupperX, SFlowerY, SFupperY;extern int SFtextX, SFtextYoffset;extern int SFentryWidth, SFentryHeight;extern int SFlineToTextH, SFlineToTextV;extern int SFbesideText, SFaboveAndBelowText;extern int SFcharsPerEntry;extern int SFlistSize;extern int SFcurrentInvert[];extern int SFworkProcAdded;extern XtWorkProcId SFworkProcId;extern Boolean SFworkProc (XtPointer);extern XtAppContext SFapp;extern int SFpathScrollWidth, SFvScrollHeight, SFhScrollWidth;extern char SFtextBuffer[];extern int SFbuttonPressed;void SFdirModTimer (XtPointer cl, XtIntervalId *id);char SFstatChar (struct stat *);extern XtIntervalId SFdirModTimerId;extern int (*SFfunc) (char *, char **, struct stat *);#ifdef __cplusplus}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -