⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xrolo.h

📁 `smith.motif.tar.Z includes the source code for the book "Designing X clients with Xt/Motif," by Je
💻 H
字号:
/**** xrolo.h ****//********************************************************************`xrolo' implements a simple rolodex application.  It is composedof the following modules:	`xrolo.c'		-- widget creation for the top-level interface,					   plus callbacks and support functions.	`xrolo.db.c'	-- rolodex entry manipulation functions and					   the state of the database.	`xrolo.help.t'	-- a module for providing help system text.	`xrolo.index.c'	-- the rolodex index manipulation functions.	`streamdb.c'	-- a stream- or byte-oriented database object.	`strstr.c'		-- a string search module.	`ctrlpanel.c'	-- a control panel pseudo-widget.	`editor.c'		-- a self-contained editor pseudo-widget.	`listshell.c'	-- a list selection box pseudo-widget.	`help.c'		-- a generalized help system.	`motif.c'		-- OSF/Motif miscellaneous functions.See these modules for more details.********************************************************************/#include <X11/StringDefs.h>#include <Xm/Xm.h>#include <Xm/Label.h>#include <Xm/Form.h>#include <Xm/Frame.h>#include <Xm/PanedW.h>#include <Xm/PushB.h>#include <Xm/ToggleB.h>#include <Xm/CascadeB.h>#include <Xm/MainW.h>#include <Xm/RowColumn.h>#include <Xm/Separator.h>#include <Xm/Protocols.h>#include "ctrlpanel.h"#include "listshell.h"#include "editor.h"#include "dialog.h"#include "help.h"#include "xrolo.db.h"#include "xrolo.index.h"#include "xrolo.help.t"		/* the help text *//*`xrolo' constants:*/#define xrolo_QUIT_WARNING			-1001#define xrolo_OPEN_WARNING			-1002#define xrolo_QUIT_WARNING_MSG		"Quit:  unsaved changes!"#define xrolo_OPEN_WARNING_MSG		"Open:  unsaved changes!"#define xrolo_OPEN					-2001#define xrolo_SAVE_AS				-2002#define xrolo_DIR_MASK_MAX_LEN		200#define xrolo_DIR_MASK				"*.xrolo"#define xrolo_INSERT				-1#define xrolo_ADD					-2#define xrolo_ASCEND				-1#define xrolo_DESCEND				-2#define xrolo_DEFAULT_VIEWPORT_ROWS			12#define xrolo_DEFAULT_VIEWPORT_COLUMNS		40#define xrolo_DEFAULT_INDEX_ROWS			15#define xrolo_DEFAULT_INDEX_COLUMNS			30#define xrolo_DEFAULT_DELIMITER				"####\n"#define xrolo_APP_CLASS				"XRolodex"/*Application resources:*/typedef struct {	Boolean viewport_menubar;	int viewport_rows;	int viewport_columns;	int index_rows;	int index_columns;	Boolean center_dialogs;	char *delimiter;	char *dir_mask;} ApplicationData, *ApplicationDataPtr;#define XtNviewportMenuBar		"viewportMenuBar"#define XtCViewportMenuBar		"ViewportMenuBar"#define XtNviewportRows			"viewportRows"#define XtCViewportRows			"ViewportRows"#define XtNviewportColumns		"viewportColumns"#define XtCViewportColumns		"ViewportColumns"#define XtNindexRows			"indexRows"#define XtCIndexRows			"IndexRows"#define XtNindexColumns			"indexColumns"#define XtCIndexColumns			"IndexColumns"#define XtNcenterDialogs		"centerDialogs"#define XtCCenterDialogs		"CenterDialogs"#define XtNentryDelimiter		"entryDelimiter"#define XtCEntryDelimiter		"EntryDelimiter"#define XtNdirectoryMask		"directoryMask"#define XtCDirectoryMask		"DirectoryMask"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -