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

📄 warglist.h

📁 linux下的E_MAIL客户端源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * $Id: WArgList.h,v 1.3 2000/08/13 13:25:32 evgeny Exp $ * * Copyright (c) 1991 HaL Computer Systems, Inc.  All rights reserved. *  *          HAL COMPUTER SYSTEMS INTERNATIONAL, LTD. *                  1315 Dell Avenue *                  Campbell, CA  95008 * * Author: Greg Hilton * Contributors: Tom Lang, Frank Bieser, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * http://www.gnu.org/copyleft/gpl.html * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */#ifndef WArgList_h#define WArgList_h#ifndef _Xm_h#include <Xm/Xm.h>#endif#ifndef _XmDragDrop_h#include <Xm/DragDrop.h>#endif#include <stdarg.h>// Shorthand#define	ARGS	args.Args(), args.NumArgs()// Allow setting of resources by name in arg list#define RSRC_SET(RESOURCE,TYPE,RNAME) \   inline WArgList&	RESOURCE(TYPE val) { return Add(RNAME, (XtArgVal)val); }// Use this one to comment out call#define DONT_SET(RESOURCE,TYPE,RNAME)class WArgList {protected :   ArgList	args;   Cardinal	num_args;   Cardinal	alloc_args;   Arg&		Grow(Cardinal n);public :#if 0   WArgList(String name, XtArgVal value, ...);#endif   inline	WArgList() {      args       = NULL;      num_args   =      alloc_args = 0;   }   inline	WArgList(Cardinal len) {      args       = new Arg[len];      num_args   = 0;      alloc_args = len;   }   inline	WArgList(ArgList a, Cardinal n) {      args       = a;      num_args   = n;      alloc_args = 0;   }   inline	~WArgList() {      if ( alloc_args ) {		delete [] args;      }   }   inline ArgList	Args() const	{ return args; }   inline Cardinal	NumArgs() const { return num_args; }   inline void		Reset()		{ num_args = 0; }   inline Arg&		operator[] (Cardinal n);   inline WArgList&	Add(String name, XtArgVal value);   inline WArgList&	Add(String name, void* value) {      return Add(name, (XtArgVal)value);   }#ifdef XmString_h   inline WArgList&	Add(String name, const WXmString& value) {      return Add(name, (XmString)value);   }#endif// The following methods allow setting of resources by name in arg list   RSRC_SET(Accelerator,	char*,		"accelerator")   RSRC_SET(AcceleratorText,	XmString,	"acceleratorText")   RSRC_SET(Accelerators,	XtTranslations,	"accelerators")   RSRC_SET(AdjustLast,		Boolean,	"adjustLast")   RSRC_SET(AdjustMargin,	Boolean,	"adjustMargin")   RSRC_SET(Alignment,		unsigned char,	"alignment")   RSRC_SET(AllowOverlap,	Boolean,	"allowOverlap")   RSRC_SET(AllowResize,	Boolean,	"allowResize")   RSRC_SET(AllowShellResize,	Boolean,	"allowShellResize")   RSRC_SET(AncestorSensitive,	Boolean,	"ancestorSensitive")   RSRC_SET(AnimationMask,	Pixmap,		"animationMask")   RSRC_SET(AnimationPixmap,	Pixmap,		"animationPixmap")   RSRC_SET(AnimationPixmapDepth,	int,	"animationPixmapDepth")   RSRC_SET(AnimationStyle,	unsigned char,	"animationStyle")   RSRC_SET(ApplyLabelString,	XmString,	"applyLabelString")   RSRC_SET(Argc,		int,		"argc")   RSRC_SET(Argv,		void*,		"argv")   RSRC_SET(ArmColor,		Pixel,		"armColor")   RSRC_SET(ArmPixmap,		Pixmap,		"armPixmap")   RSRC_SET(ArrowDirection,	unsigned char,	"arrowDirection")   RSRC_SET(Attachment,		unsigned char,	"attachment")   RSRC_SET(AutoShowCursorPosition,	Boolean,	"autoShowCursorPosition")   RSRC_SET(AutoUnmanage,	Boolean,	"autoUnmanage")   RSRC_SET(AutomaticSelection,	Boolean,	"automaticSelection")   RSRC_SET(Background,		Pixel,		"background")   RSRC_SET(BackgroundPixmap,	Pixmap,		"backgroundPixmap")   RSRC_SET(BlendModel,		unsigned char,	"blendModel")   RSRC_SET(BlinkRate,		int,		"blinkRate")   RSRC_SET(BorderColor,	Pixel,		"borderColor")   RSRC_SET(BorderPixmap,	Pixmap,		"borderPixmap")   RSRC_SET(BorderWidth,	Dimension,	"borderWidth")   RSRC_SET(BottomAttachment,	unsigned char,	"bottomAttachment")   RSRC_SET(BottomOffset,	int,		"bottomOffset")   RSRC_SET(BottomPosition,	int,		"bottomPosition")   RSRC_SET(BottomShadowColor,	Pixel,		"bottomShadowColor")   RSRC_SET(BottomShadowPixmap,	Pixmap,		"bottomShadowPixmap")   RSRC_SET(BottomWidget,	Widget,		"bottomWidget")   RSRC_SET(ButtonFontList,	XmFontList,	"buttonFontList")   RSRC_SET(CancelButton,	Widget,		"cancelButton")   RSRC_SET(CancelLabelString,	XmString,	"cancelLabelString")   RSRC_SET(CascadePixmap,	Pixmap,		"cascadePixmap")   RSRC_SET(ClientData,		XtPointer,	"clientData")   RSRC_SET(ClipWindow,		Widget,		"clipWindow")   RSRC_SET(Colormap,		void*,		"colormap")   RSRC_SET(Columns,		short,		"columns")   RSRC_SET(Command,		XmString,	"command")   RSRC_SET(CommandWindow,	Widget,		"commandWindow")   RSRC_SET(ConvertProc,	XtConvertSelectionIncrProc,	"convertProc")   DONT_SET(CreatePopupChildProc,	XtProc,	"createPopupChildProc")   RSRC_SET(CursorBackground,	Pixel,		"cursorBackground")   RSRC_SET(CursorForeground,	Pixel,		"cursorForeground")   RSRC_SET(CursorPosition,	XmTextPosition,	"cursorPosition")   RSRC_SET(CursorPositionVisible,	Boolean,"cursorPositionVisible")   RSRC_SET(DarkThreshold,	int,		"darkThreshold")   RSRC_SET(DecimalPoints,	short,		"decimalPoints")   RSRC_SET(DefaultButton,	Widget,		"defaultButton")   RSRC_SET(DefaultButtonShadowThickness, int,	"defaultButtonShadowThickness")   RSRC_SET(DefaultButtonType,	unsigned char,	"defaultButtonType")   RSRC_SET(DefaultCopyCursorIcon,	Widget,	"defaultCopyCursorIcon")   RSRC_SET(DefaultInvalidCursorIcon,	Widget,	"defaultInvalidCursorIcon")   RSRC_SET(DefaultLinkCursorIcon,	Widget,	"defaultLinkCursorIcon")   RSRC_SET(DefaultMoveCursorIcon,	Widget,	"defaultMoveCursorIcon")   RSRC_SET(DefaultNoneCursorIcon,	Widget,	"defaultNoneCursorIcon")   RSRC_SET(DefaultPosition,	Boolean,	"defaultPosition")   RSRC_SET(DefaultSourceCursorIcon,	Widget,	"defaultSourceCursorIcon")   RSRC_SET(DefaultValidCursorIcon,	Widget,	"defaultValidCursorIcon")   RSRC_SET(DeleteResponse,	unsigned char,	"deleteResponse")   RSRC_SET(Depth,		int,		"depth")   RSRC_SET(DialogStyle,	unsigned char,	"dialogStyle")   RSRC_SET(DialogTitle,	XmString,	"dialogTitle")   RSRC_SET(DialogType,		unsigned char,	"dialogType")   RSRC_SET(Directory,		XmString,	"directory")   RSRC_SET(DirMask,		XmString,	"dirMask")   RSRC_SET(DirSpec,		XmString,	"dirSpec")   RSRC_SET(DoubleClickInterval,	int,	"doubleClickInterval")   RSRC_SET(DragDropFinishCallback, XtCallbackList, "dragDropFinishCallback")   RSRC_SET(DragInitiatorProtocolStyle,unsigned char,"dragInitiatorProtocolStyle")   RSRC_SET(DragMotionCallback,	XtCallbackList,	"dragMotionCallback")   RSRC_SET(DragOperations,	unsigned char,	"dragOperations")   RSRC_SET(DragProc,		XtCallbackProc,	"dragProc")   RSRC_SET(DragReceiverProtocolStyle,unsigned char,"dragReceiverProtocolStyle")   RSRC_SET(DropFinishCallback,	XtCallbackList,	"dropFinishCallback")   RSRC_SET(DropProc,		XtCallbackProc,	"dropProc")   RSRC_SET(DropRectangles,	XRectangle*,	"dropRectangles")   RSRC_SET(DropSiteActivity,	unsigned char,	"dropSiteActivity")   RSRC_SET(DropSiteEnterCallback,	XtCallbackList,	"dropSiteEnterCallback")   RSRC_SET(DropSiteLeaveCallback,	XtCallbackList,	"dropSiteLeaveCallback")   RSRC_SET(DropSiteOperations,	unsigned char,	"dropSiteOperations")   RSRC_SET(DropSiteType,	unsigned char,	"dropSiteType")   RSRC_SET(DropStartCallback,	XtCallbackList,	"dropStartCallback")   RSRC_SET(DropTransfers,	XmDropTransferEntryRec*,	"dropTransfers")   RSRC_SET(EditMode,		unsigned char,	"editMode")   RSRC_SET(Editable,		Boolean,	"editable")   RSRC_SET(EntryAlignment,	unsigned char,	"entryAlignment")   RSRC_SET(EntryBorder,	Dimension,	"entryBorder")   RSRC_SET(EntryCallback,	XtCallbackList,	"entryCallback")   RSRC_SET(EntryClass,		int,		"entryClass")   RSRC_SET(EntryVerticalAlignment, unsigned char, "entryVerticalAlignment")   RSRC_SET(ExportTargets,	Atom*,		"exportTargets")   DONT_SET(FileSearchProc,	XtProc,		"fileSearchProc")   RSRC_SET(FillOnArm,		Boolean,	"fillOnArm")   RSRC_SET(FillOnSelect,	Boolean,	"fillOnSelect")   RSRC_SET(FilterLabelString,	XmString,	"filterLabelString")   RSRC_SET(Font,		XFontStruct*,	"font")   RSRC_SET(FontList,		XmFontList,	"fontList")   RSRC_SET(Foreground,		Pixel,		"foreground")   RSRC_SET(ForegroundThreshold,	int,	"foregroundThreshold")   RSRC_SET(FractionBase,	int,		"fractionBase")   RSRC_SET(Geometry,		char*,		"geometry")   RSRC_SET(Height,		Dimension,	"height")   RSRC_SET(HeightInc,		int,		"heightInc")   RSRC_SET(HelpLabelString,	XmString,	"helpLabelString")   RSRC_SET(HighlightColor,	Pixel,		"highlightColor")   RSRC_SET(HighlightOnEnter,	Boolean,	"highlightOnEnter")   RSRC_SET(HighlightPixmap,	Pixmap,		"highlightPixmap")   RSRC_SET(HighlightThickness,	short,		"highlightThickness")   RSRC_SET(HistoryItemCount,	int,		"historyItemCount")   RSRC_SET(HistoryItems,	XmStringTable,	"historyItems")   RSRC_SET(HistoryMaxItems,	int,		"historyMaxItems")   RSRC_SET(HistoryVisibleItemCount,	int,	"historyVisibleItemCount")   RSRC_SET(HorizontalFontUnit,	int,		"horizontalFontUnit")   RSRC_SET(HorizontalScrollBar,	Widget,	"horizontalScrollBar")   RSRC_SET(HorizontalSpacing,	int,		"horizontalSpacing")   RSRC_SET(HotX,		Position,	"hotX")   RSRC_SET(HotY,		Position,	"hotY")   RSRC_SET(IconMask,		Pixmap,		"iconMask")   RSRC_SET(IconName,		char*,		"iconName")   RSRC_SET(IconPixmap,		Pixmap,		"iconPixmap")   RSRC_SET(IconWindow,		Widget,		"iconWindow")   RSRC_SET(IconX,		int,		"iconX")   RSRC_SET(IconY,		int,		"iconY")   RSRC_SET(Iconic,		Boolean,	"iconic")   RSRC_SET(Increment,		int,		"increment")   RSRC_SET(Incremental,	Boolean,	"incremental")   RSRC_SET(IndicatorOn,	Boolean,	"indicatorOn")   RSRC_SET(IndicatorSize,	Dimension,	"indicatorSize")   RSRC_SET(IndicatorType,	unsigned char,	"indicatorType")   RSRC_SET(InitialDelay,	int,		"initialDelay")   RSRC_SET(InitialState,	int,		"initialState")   RSRC_SET(Input,		Boolean,	"input")   DONT_SET(InputCreate,	XtProc,		"inputCreate")   RSRC_SET(InsertPosition,	XtOrderProc,	"insertPosition")   RSRC_SET(InvalidCursorForeground,	Pixel,	"invalidCursorForeground")   RSRC_SET(ImportTargets,	Atom*,		"importTargets")   RSRC_SET(IsAligned,		Boolean,	"isAligned")   RSRC_SET(IsHomogeneous,	Boolean,	"isHomogeneous")   RSRC_SET(ItemCount,		int,		"itemCount")   RSRC_SET(Items,		XmStringTable,	"items")   RSRC_SET(KeyboardFocusPolicy,	unsigned char,	"keyboardFocusPolicy")   RSRC_SET(LabelFontList,	XmFontList,	"labelFontList")   RSRC_SET(LabelInsensitivePixmap,	Pixmap,	"labelInsensitivePixmap")   RSRC_SET(LabelPixmap,	Pixmap,		"labelPixmap")   RSRC_SET(LabelString,	XmString,	"labelString")   RSRC_SET(LabelType,		unsigned char,	"labelType")   RSRC_SET(LeftAttachment,	unsigned char,	"leftAttachment")   RSRC_SET(LeftOffset,		int,		"leftOffset")   RSRC_SET(LeftPosition,	int,		"leftPosition")   RSRC_SET(LeftWidget,		Widget,		"leftWidget")   RSRC_SET(LightThreshold,	int,		"lightThreshold")   RSRC_SET(ListItemCount,	int,		"listItemCount")   RSRC_SET(ListItems,		XmStringTable,	"listItems")   RSRC_SET(ListLabelString,	XmString,	"listLabelString")   RSRC_SET(ListMarginHeight,	short,		"listMarginHeight")   RSRC_SET(ListMarginWidth,	short,		"listMarginWidth")   RSRC_SET(ListSizePolicy,	unsigned char,	"listSizePolicy")   RSRC_SET(ListSpacing,	short,		"listSpacing")   RSRC_SET(ListUpdated,	Boolean,	"listUpdated")   RSRC_SET(ListVisibleItemCount,	int,	"listVisibleItemCount")   RSRC_SET(MainWindowMarginHeight,	short,	"mainWindowMarginHeight")   RSRC_SET(MainWindowMarginWidth,	short,	"mainWindowMarginWidth")   RSRC_SET(MapCallback,	XtCallbackList,	"mapCallback")   RSRC_SET(MappedWhenManaged,	Boolean,	"mappedWhenManaged")   RSRC_SET(MappingDelay,	int,		"mappingDelay")   RSRC_SET(Margin,		short,		"margin")   RSRC_SET(MarginBottom,	short,		"marginBottom")   RSRC_SET(MarginHeight,	Dimension,	"marginHeight")   RSRC_SET(MarginLeft,		short,		"marginLeft")   RSRC_SET(MarginRight,	short,		"marginRight")   RSRC_SET(MarginTop,		short,		"marginTop")   RSRC_SET(MarginWidth,	Dimension,	"marginWidth")   RSRC_SET(Mask,		Pixmap,		"mask")   RSRC_SET(MaxAspectX,		int,		"maxAspectX")   RSRC_SET(MaxAspectY,		int,		"maxAspectY")   RSRC_SET(MaxHeight,		int,		"maxHeight")   RSRC_SET(MaxLength,		int,		"maxLength")   RSRC_SET(MaxWidth,		int,		"maxWidth")   RSRC_SET(Maximum,		int,		"maximum")   RSRC_SET(MenuAccelerator,	char*,		"menuAccelerator")   RSRC_SET(MenuBar,		Widget,		"menuBar")   RSRC_SET(MenuCursor,		String,		"menuCursor")   RSRC_SET(MenuHelpWidget,	Widget,		"menuHelpWidget")   RSRC_SET(MenuHistory,	Widget,		"menuHistory")   RSRC_SET(MenuPost,		String,		"menuPost")   RSRC_SET(MessageAlignment,	unsigned char,	"messageAlignment")   RSRC_SET(MessageString,	XmString,	"messageString")   RSRC_SET(MessageWindow,	Widget,		"messageWindow")   RSRC_SET(MinAspectX,		int,		"minAspectX")   RSRC_SET(MinAspectY,		int,		"minAspectY")   RSRC_SET(MinHeight,		int,		"minHeight")   RSRC_SET(MinWidth,		int,		"minWidth")   RSRC_SET(MinimizeButtons,	Boolean,	"minimizeButtons")   RSRC_SET(Minimum,		int,		"minimum")   RSRC_SET(Mnemonic,		char,		"mnemonic")   RSRC_SET(MnemonicCharSet,	String,		"mnemonicCharSet")   RSRC_SET(MultiClick,		unsigned char,	"multiClick")   RSRC_SET(MustMatch,		Boolean,	"mustMatch")   RSRC_SET(MwmDecorations,	int,		"mwmDecorations")   RSRC_SET(MwmFunctions,	int,		"mwmFunctions")   RSRC_SET(MwmInputMode,	int,		"mwmInputMode")   RSRC_SET(MwmMenu,		char*,		"mwmMenu")   RSRC_SET(NavigationType,	XmNavigationType,	"navigationType")   RSRC_SET(NoneCursorForeground,	Pixel,	"noneCursorForeground")   RSRC_SET(NoResize,		Boolean,	"noResize")   RSRC_SET(NumColumns,		short,		"numColumns")   RSRC_SET(NumDropRectangles,	Cardinal,	"numDropRectangles")   RSRC_SET(NumDropTransfers,	Cardinal,	"numDropTransfers")

⌨️ 快捷键说明

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