home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / ViewDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  77 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.    Dialog.h -- class definitions for FE dialog windows that can contain views.
  20.    Created: Chris Toshok <toshok@netscape.com>, 16-Oct-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_viewdialog_h
  26. #define _xfe_viewdialog_h
  27.  
  28. #include "xp_core.h"
  29.  
  30. #include "Dialog.h"
  31. #include "View.h"
  32.  
  33. class XFE_ViewDialog : public XFE_Dialog
  34.  
  35. {
  36. public:
  37.   XFE_ViewDialog(XFE_View *view,
  38.                  Widget parent,
  39.                  char *name,
  40.                  MWContext *context,
  41.                  Boolean ok = TRUE,
  42.                  Boolean  cancel = TRUE,
  43.                  Boolean  help = TRUE,  
  44.                  Boolean  apply = TRUE, 
  45.                  Boolean  separator = TRUE,
  46.                  Boolean  modal = TRUE,
  47.                  Widget chrome_widget = NULL);
  48.  
  49.   virtual ~XFE_ViewDialog();
  50.  
  51.   virtual Pixel getFGPixel();
  52.   virtual Pixel getBGPixel();
  53.   virtual Pixel getTopShadowPixel();
  54.   virtual Pixel getBottomShadowPixel();
  55.  
  56. protected:
  57.  
  58.   void setView(XFE_View *m_view);
  59.  
  60.   virtual void cancel();
  61.   virtual void help();
  62.   virtual void apply();
  63.   virtual void ok();
  64.  
  65.   static void cancel_cb(Widget, XtPointer, XtPointer);
  66.   static void help_cb(Widget, XtPointer, XtPointer);
  67.   static void apply_cb(Widget, XtPointer, XtPointer);
  68.   static void ok_cb(Widget, XtPointer, XtPointer);
  69.  
  70.   XFE_View *m_view;
  71.   MWContext *m_context;
  72.  
  73.   Boolean m_okToDestroy;
  74. };
  75.  
  76. #endif /* _xfe_viewdialog_h */
  77.