summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/gui/xlwradioP.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
committerKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
commit487ca4806cc046076293cf6cc5fbba0db282bac7 (patch)
tree847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/xdvik/gui/xlwradioP.h
parenta3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff)
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/gui/xlwradioP.h')
-rw-r--r--Build/source/texk/xdvik/gui/xlwradioP.h140
1 files changed, 140 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/gui/xlwradioP.h b/Build/source/texk/xdvik/gui/xlwradioP.h
new file mode 100644
index 00000000000..5ce6f654d7f
--- /dev/null
+++ b/Build/source/texk/xdvik/gui/xlwradioP.h
@@ -0,0 +1,140 @@
+/* adapted from xlwradio.c in the XEmacs distribution.
+ Changes are Copyright (C) 2002-2004 the xdvik development team
+ Original copyright follows:
+*/
+
+/* Radio Widget for XEmacs.
+ Copyright (C) 1999 Edward A. Falk
+
+This file is part of XEmacs.
+
+XEmacs 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, or (at your option) any
+later version.
+
+XEmacs 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.
+
+You should have received a copy of the GNU General Public License
+along with XEmacs; see the file COPYING. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA. */
+
+/*
+ * RadioP.h - Private definitions for Radio widget
+ *
+ * Author: Edward A. Falk
+ * falk@falconer.vip.best.com
+ *
+ * Date: June 30, 1997
+ *
+ */
+
+#ifndef _XawRadioP_h
+#define _XawRadioP_h
+
+#include "xdvi-config.h"
+
+#include "xlwradio.h"
+
+#ifndef MOTIF
+
+#include <X11/IntrinsicP.h>
+#include <X11/StringDefs.h>
+#include <X11/Intrinsic.h>
+#include <X11/StringDefs.h>
+#include <X11/Xos.h>
+#include <X11/Xaw/Text.h>
+#include <X11/Xaw/AsciiText.h>
+
+#include <X11/Xaw/ToggleP.h>
+
+/***********************************************************************
+ *
+ * Radio Widget Private Data
+ *
+ ***********************************************************************/
+
+typedef void (*XawDiamondProc) (Widget);
+
+void RadioSet (Widget w,
+ XEvent *event,
+ String *params, /* unused */
+ Cardinal *num_params); /* unused */
+
+void RadioUnset (Widget w,
+ XEvent *event,
+ String *params, /* unused */
+ Cardinal *num_params); /* unused */
+
+/************************************
+ *
+ * Class structure
+ *
+ ***********************************/
+
+/* New fields for the Radio widget class record */
+typedef struct _RadioClass {
+ Dimension dsize; /* diamond size */
+ XawDiamondProc drawDiamond;
+ /* pixmaps for the button */
+ Pixmap sel_radio; /* selected state */
+ Pixmap unsel_radio; /* unselected state */
+ Pixmap sel_menu; /* selected state */
+ Pixmap unsel_menu; /* unselected state */
+ /* TODO: 3-d and xaw-xpm features? */
+ XtPointer extension;
+} RadioClassPart;
+
+#define XtInheritDrawDiamond ((XawDiamondProc)_XtInherit)
+
+/* Full class record declaration */
+typedef struct _RadioClassRec {
+ CoreClassPart core_class;
+ SimpleClassPart simple_class;
+#ifdef _ThreeDP_h
+ ThreeDClassPart threeD_class;
+#endif
+ LabelClassPart label_class;
+ CommandClassPart command_class;
+ ToggleClassPart toggle_class;
+ RadioClassPart radio_class;
+} RadioClassRec;
+
+extern RadioClassRec radioClassRec;
+
+/***************************************
+ *
+ * Instance (widget) structure
+ *
+ **************************************/
+
+/* New fields for the Radio widget record */
+typedef struct {
+ /* resources */
+ Boolean isRadio; /* radio if True, checkbox else */
+ /* TODO: 3-d and xaw-xpm features? */
+
+ /* private data */
+ XtPointer extension;
+} RadioPart;
+
+ /* Full widget declaration */
+typedef struct _RadioRec {
+ CorePart core;
+ SimplePart simple;
+#ifdef _ThreeDP_h
+ ThreeDPart threeD;
+#endif
+ LabelPart label;
+ CommandPart command;
+ TogglePart toggle;
+ RadioPart radio;
+} RadioRec;
+
+#endif /* MOTIF */
+
+#endif /* _XawRadioP_h */