2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* static char rcsid[] =
24 "$XConsortium: PanelS.c /main/4 1995/11/01 11:27:29 rswiston $";
26 /**---------------------------------------------------------------------
30 *** project: MotifPlus Widgets
32 *** description: Source code for DtPanelShell class.
35 *** (c) Copyright 1992 by Hewlett-Packard Company.
38 ***-------------------------------------------------------------------*/
41 /*-------------------------------------------------------------
47 #include <X11/Xatom.h>
48 #include <X11/StringDefs.h>
49 #include <X11/Shell.h>
50 #include <X11/ShellP.h>
51 #include <Dt/DtStrDefs.h>
56 /******** Public Function Declarations ********/
58 /******** End Public Function Declarations ********/
60 /******** Static Function Declarations ********/
63 /******** End Static Function Declarations ********/
67 /*-------------------------------------------------------------
70 #define R_Offset(field) \
71 XtOffset (DtPanelShellWidget, panel.field)
73 static XtResource panelResources[]=
77 XmCDimension, XmRDimension, sizeof (Dimension),
78 R_Offset (resolution), XmRImmediate, (XtPointer) 0
82 XmCHighResFontList, XmRFontList, sizeof (XmFontList),
83 R_Offset (high_res_font_list), XmRString, (XtPointer) "fixed"
87 XmCMediumResFontList, XmRFontList, sizeof (XmFontList),
88 R_Offset (medium_res_font_list), XmRString, (XtPointer) "fixed"
92 XmCLowResFontList, XmRFontList, sizeof (XmFontList),
93 R_Offset (low_res_font_list), XmRString, (XtPointer) "fixed"
99 /*-------------------------------------------------------------
103 static CompositeClassExtensionRec compositeClassExtension =
105 /* next_extension */ NULL,
106 /* record_type */ NULLQUARK,
107 /* version */ XtCompositeExtensionVersion,
108 /* record_size */ sizeof(CompositeClassExtensionRec),
109 /* accepts_objects */ TRUE
112 DtPanelShellClassRec dtPanelShellClassRec =
117 /* superclass */ (WidgetClass) &topLevelShellClassRec,
118 /* class_name */ "FrontPanel",
119 /* size */ sizeof(DtPanelShellRec),
120 /* Class Initializer */ NULL,
121 /* class_part_initialize*/ NULL,
122 /* Class init'ed ? */ FALSE,
123 /* initialize */ NULL,
124 /* initialize_notify */ NULL,
125 /* realize */ XtInheritRealize,
128 /* resources */ panelResources,
129 /* resource_count */ XtNumber(panelResources),
130 /* xrm_class */ NULLQUARK,
131 /* compress_motion */ FALSE,
132 /* compress_exposure */ XtExposeCompressMaximal,
133 /* compress_enterleave*/ FALSE,
134 /* visible_interest */ FALSE,
136 /* resize */ XtInheritResize,
138 /* set_values */ NULL,
139 /* set_values_hook */ NULL,
140 /* set_values_almost */ XtInheritSetValuesAlmost,
141 /* get_values_hook */ NULL,
142 /* accept_focus */ NULL,
143 /* intrinsics version */ XtVersion,
144 /* callback offsets */ NULL,
145 /* tm_table */ XtInheritTranslations,
146 /* query_geometry */ NULL,
147 /* display_accelerator*/ NULL,
153 /* geometry_manager */ XtInheritGeometryManager,
154 /* change_managed */ XtInheritChangeManaged,
155 /* insert_child */ XtInheritInsertChild,
156 /* delete_child */ XtInheritDeleteChild,
157 /* extension */ (XtPointer)&compositeClassExtension
175 WidgetClass dtPanelShellWidgetClass = (WidgetClass) &dtPanelShellClassRec;
179 /*-------------------------------------------------------------
181 **-------------------------------------------------------------
185 /*-------------------------------------------------------------
187 **-------------------------------------------------------------