home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / DashBoardP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.4 KB  |  130 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/DashBoardP.h>                                        */
  21. /* Description:    XfeDashBoard widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeDashBoardP_h_                        /* start DashBoardP.h    */
  28. #define _XfeDashBoardP_h_
  29.  
  30. #include <Xfe/DashBoard.h>
  31. #include <Xfe/ManagerP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeDashBoardClassPart                                                */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */ 
  45. } XfeDashBoardClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeDashBoardClassRec                                                    */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeDashBoardClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     CompositeClassPart            composite_class;
  56.     ConstraintClassPart            constraint_class;
  57.     XmManagerClassPart            manager_class;
  58.     XfeManagerClassPart            xfe_manager_class;
  59.     XfeDashBoardClassPart        xfe_dash_board_class;
  60. } XfeDashBoardClassRec;
  61.  
  62. externalref XfeDashBoardClassRec xfeDashBoardClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeDashBoardPart                                                        */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeDashBoardPart
  70. {
  71.     /* Callbacks */
  72.     XtCallbackList        dock_callback;            /* Dock callback        */
  73.     XtCallbackList        floating_map_callback;    /* Floating map cb        */
  74.     XtCallbackList        floating_unmap_callback;/* Floating unmap cb    */
  75.     XtCallbackList        undock_callback;        /* Undock callback        */
  76.     
  77.     /* Component resources */
  78.     Widget                tool_bar;                /* Button tool bar        */
  79.     Widget                status_bar;                /* Status bar            */
  80.     Widget                progress_bar;            /* Progress bar            */
  81.     Widget                docked_task_bar;        /* Docked Task bar        */
  82.  
  83.     /* Boolean resources */
  84.     Boolean                show_docked_task_bar;    /* Show docked task bar ?*/
  85.  
  86.     /* Floating components */
  87.     Widget                floating_shell;            /* Floating shell        */
  88.     Widget                floating_target;        /* Floating target        */
  89.     Widget                floating_task_bar;        /* Floating Task bar    */
  90.  
  91.     /* Pixmap resources */
  92.     Pixmap                undock_pixmap;            /* Undock pixmap        */
  93.  
  94.     /* Misc resources */
  95.     Dimension            spacing;                /* Spacing                */
  96.     Boolean                docked;                    /* Task Bar Docked        */
  97.  
  98.     Dimension            max_component_height;    /* Max component height    */
  99.  
  100. } XfeDashBoardPart;
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*                                                                        */
  104. /* XfeDashBoardRec                                                        */
  105. /*                                                                        */
  106. /*----------------------------------------------------------------------*/
  107. typedef struct _XfeDashBoardRec
  108. {
  109.    CorePart                core;
  110.    CompositePart        composite;
  111.    ConstraintPart        constraint;
  112.    XmManagerPart        manager;
  113.    XfeManagerPart        xfe_manager;
  114.    XfeDashBoardPart        xfe_dash_board;
  115. } XfeDashBoardRec;
  116.  
  117. /*----------------------------------------------------------------------*/
  118. /*                                                                        */
  119. /* XfeDashBoardPart Access Macro                                        */
  120. /*                                                                        */
  121. /*----------------------------------------------------------------------*/
  122. #define _XfeDashBoardPart(w) &(((XfeDashBoardWidget) w) -> xfe_dash_board)
  123.  
  124. #ifdef __cplusplus                                /* end C++                */
  125. }
  126. #endif
  127.  
  128. #endif                                            /* end DashBoardP.h        */
  129.  
  130.