123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /**---------------------------------------------------------------------
- ***
- *** file: PanelS.c
- ***
- *** project: MotifPlus Widgets
- ***
- *** description: Source code for DtPanelShell class.
- ***
- ***
- *** (c) Copyright 1992 by Hewlett-Packard Company.
- ***
- ***
- ***-------------------------------------------------------------------*/
- /*-------------------------------------------------------------
- ** Include Files
- */
- #include <Xm/XmP.h>
- #include <X11/Xatom.h>
- #include <X11/StringDefs.h>
- #include <X11/Shell.h>
- #include <X11/ShellP.h>
- #include <Dt/DtStrDefs.h>
- #include "PanelSP.h"
- /******** Public Function Declarations ********/
- /******** End Public Function Declarations ********/
- /******** Static Function Declarations ********/
- /******** End Static Function Declarations ********/
- /*-------------------------------------------------------------
- ** Resource List
- */
- #define R_Offset(field) \
- XtOffset (DtPanelShellWidget, panel.field)
- static XtResource panelResources[]=
- {
- {
- XmNresolution,
- XmCDimension, XmRDimension, sizeof (Dimension),
- R_Offset (resolution), XmRImmediate, (XtPointer) 0
- },
- {
- XmNhighResFontList,
- XmCHighResFontList, XmRFontList, sizeof (XmFontList),
- R_Offset (high_res_font_list), XmRString, (XtPointer) "fixed"
- },
- {
- XmNmediumResFontList,
- XmCMediumResFontList, XmRFontList, sizeof (XmFontList),
- R_Offset (medium_res_font_list), XmRString, (XtPointer) "fixed"
- },
- {
- XmNlowResFontList,
- XmCLowResFontList, XmRFontList, sizeof (XmFontList),
- R_Offset (low_res_font_list), XmRString, (XtPointer) "fixed"
- }
- };
- /*-------------------------------------------------------------
- ** Class Record
- */
- static CompositeClassExtensionRec compositeClassExtension =
- {
- /* next_extension */ NULL,
- /* record_type */ NULLQUARK,
- /* version */ XtCompositeExtensionVersion,
- /* record_size */ sizeof(CompositeClassExtensionRec),
- /* accepts_objects */ TRUE
- };
- DtPanelShellClassRec dtPanelShellClassRec =
- {
- /* Core Part
- */
- {
- /* superclass */ (WidgetClass) &topLevelShellClassRec,
- /* class_name */ "FrontPanel",
- /* size */ sizeof(DtPanelShellRec),
- /* Class Initializer */ NULL,
- /* class_part_initialize*/ NULL,
- /* Class init'ed ? */ FALSE,
- /* initialize */ NULL,
- /* initialize_notify */ NULL,
- /* realize */ XtInheritRealize,
- /* actions */ NULL,
- /* num_actions */ 0,
- /* resources */ panelResources,
- /* resource_count */ XtNumber(panelResources),
- /* xrm_class */ NULLQUARK,
- /* compress_motion */ FALSE,
- /* compress_exposure */ XtExposeCompressMaximal,
- /* compress_enterleave*/ FALSE,
- /* visible_interest */ FALSE,
- /* destroy */ NULL,
- /* resize */ XtInheritResize,
- /* expose */ NULL,
- /* set_values */ NULL,
- /* set_values_hook */ NULL,
- /* set_values_almost */ XtInheritSetValuesAlmost,
- /* get_values_hook */ NULL,
- /* accept_focus */ NULL,
- /* intrinsics version */ XtVersion,
- /* callback offsets */ NULL,
- /* tm_table */ XtInheritTranslations,
- /* query_geometry */ NULL,
- /* display_accelerator*/ NULL,
- /* extension */ NULL
- },
- /* Composite Part
- */
- {
- /* geometry_manager */ XtInheritGeometryManager,
- /* change_managed */ XtInheritChangeManaged,
- /* insert_child */ XtInheritInsertChild,
- /* delete_child */ XtInheritDeleteChild,
- /* extension */ (XtPointer)&compositeClassExtension
- },
- /* Constraint Part
- */
- {
- /* extension */ NULL
- },
- {
- /* extension */ NULL
- },
- {
- /* extension */ NULL
- },
- {
- /* extension */ NULL
- }
- };
- WidgetClass dtPanelShellWidgetClass = (WidgetClass) &dtPanelShellClassRec;
- /*-------------------------------------------------------------
- ** Private Procs
- **-------------------------------------------------------------
- */
- /*-------------------------------------------------------------
- ** Core Procs
- **-------------------------------------------------------------
- */
|