home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / DashBoard.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.3 KB  |  94 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/DashBoard.h>                                        */
  21. /* Description:    XfeDashBoard widget public header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeDashBoard_h_                        /* start DashBoard.h    */
  28. #define _XfeDashBoard_h_
  29.  
  30. #include <Xfe/Xfe.h>
  31. #include <Xfe/Button.h>
  32. #include <Xfe/Label.h>
  33. #include <Xfe/ProgressBar.h>
  34. #include <Xfe/TaskBar.h>
  35. #include <Xfe/ToolBar.h>
  36.  
  37. #ifdef __cplusplus                                /* start C++            */
  38. extern "C" {
  39. #endif
  40.  
  41. /*----------------------------------------------------------------------*/
  42. /*                                                                        */
  43. /* XfeDashBoard components                                                */
  44. /*                                                                        */
  45. /*----------------------------------------------------------------------*/
  46. typedef enum
  47. {
  48.     XfeDASH_BOARD_DOCKED_TASK_BAR,
  49.     XfeDASH_BOARD_FLOATING_SHELL,
  50.     XfeDASH_BOARD_FLOATING_TASK_BAR,
  51.     XfeDASH_BOARD_PROGRESS_BAR,
  52.     XfeDASH_BOARD_STATUS_BAR,
  53.     XfeDASH_BOARD_TOOL_BAR
  54. } XfeDashBoardComponent;
  55.  
  56. /*----------------------------------------------------------------------*/
  57. /*                                                                        */
  58. /* XfeBox class names                                                    */
  59. /*                                                                        */
  60. /*----------------------------------------------------------------------*/
  61. externalref WidgetClass xfeDashBoardWidgetClass;
  62.  
  63. typedef struct _XfeDashBoardClassRec *        XfeDashBoardWidgetClass;
  64. typedef struct _XfeDashBoardRec *            XfeDashBoardWidget;
  65.  
  66. /*----------------------------------------------------------------------*/
  67. /*                                                                        */
  68. /* XfeBox subclass test macro                                            */
  69. /*                                                                        */
  70. /*----------------------------------------------------------------------*/
  71. #define XfeIsDashBoard(w)    XtIsSubclass(w,xfeDashBoardWidgetClass)
  72.  
  73. /*----------------------------------------------------------------------*/
  74. /*                                                                        */
  75. /* XfeDashBoard Public Methods                                            */
  76. /*                                                                        */
  77. /*----------------------------------------------------------------------*/
  78. extern Widget
  79. XfeCreateDashBoard                (Widget        parent,
  80.                                  String        name,
  81.                                  Arg *        args,
  82.                                  Cardinal    num_args);
  83. /*----------------------------------------------------------------------*/
  84. extern Widget
  85. XfeDashBoardGetComponent        (Widget                    dashboard,
  86.                                  XfeDashBoardComponent    component);
  87. /*----------------------------------------------------------------------*/
  88.  
  89. #ifdef __cplusplus                                /* end C++                */
  90. }
  91. #endif
  92.  
  93. #endif                                            /* end DashBoard.h        */
  94.