/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is mozilla.org code. * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): */ /*----------------------------------------------------------------------*/ /* */ /* Name: */ /* Description: XfePrefView widget private header file. */ /* Author: Ramiro Estrugo */ /* */ /*----------------------------------------------------------------------*/ #ifndef _XfePrefViewP_h_ /* start PrefViewP.h */ #define _XfePrefViewP_h_ #include #include #include XFE_BEGIN_CPLUSPLUS_PROTECTION /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewClassPart */ /* */ /*----------------------------------------------------------------------*/ typedef struct { XtPointer extension; /* extension */ } XfePrefViewClassPart; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewClassRec */ /* */ /*----------------------------------------------------------------------*/ typedef struct _XfePrefViewClassRec { CoreClassPart core_class; CompositeClassPart composite_class; ConstraintClassPart constraint_class; XmManagerClassPart manager_class; XfeManagerClassPart xfe_manager_class; XfePrefViewClassPart xfe_pref_view_class; } XfePrefViewClassRec; externalref XfePrefViewClassRec xfePrefViewClassRec; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewPart */ /* */ /*----------------------------------------------------------------------*/ typedef struct _XfePrefViewPart { /* Component Resources */ Widget panel_tree; /* Panel tree */ /* Panel resources */ XfeLinked panel_info_list; /* Panel info list */ Dimension spacing; /* Private data -- Dont even look past this comment -- */ GC pref_GC; /* Pref GC */ XRectangle pref_rect; /* Pref rect */ } XfePrefViewPart; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewRec */ /* */ /*----------------------------------------------------------------------*/ typedef struct _XfePrefViewRec { CorePart core; CompositePart composite; ConstraintPart constraint; XmManagerPart manager; XfeManagerPart xfe_manager; XfePrefViewPart xfe_pref_view; } XfePrefViewRec; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewConstraintPart */ /* */ /*----------------------------------------------------------------------*/ typedef struct _XfePrefViewConstraintPart { XmString panel_title; /* Panel's title */ XmString panel_sub_title; /* Panel's sub title */ Cardinal num_groups; /* Num groups in panel */ } XfePrefViewConstraintPart; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewConstraintRec */ /* */ /*----------------------------------------------------------------------*/ typedef struct _XfePrefViewConstraintRec { XmManagerConstraintPart manager; XfeManagerConstraintPart xfe_manager; XfePrefViewConstraintPart xfe_pref_view; } XfePrefViewConstraintRec; /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewPart Access Macro */ /* */ /*----------------------------------------------------------------------*/ #define _XfePrefViewPart(w) &(((XfePrefViewWidget) w) -> xfe_pref_view) /*----------------------------------------------------------------------*/ /* */ /* XfePrefViewPart child constraint part access macro */ /* */ /*----------------------------------------------------------------------*/ #define _XfePrefViewConstraintPart(w) \ (&(((XfePrefViewConstraintRec *) _XfeConstraints(w)) -> xfe_pref_view)) XFE_END_CPLUSPLUS_PROTECTION #endif /* end PrefViewP.h */