home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / Dialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  76 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
  20.    Created: Linda Wei <lwei@netscape.com>, 16-Sep-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_dialog_h
  26. #define _xfe_dialog_h
  27.  
  28. #include "Component.h"
  29.  
  30. class XFE_Dialog : public XFE_Component
  31. {
  32. public:
  33.  
  34.     // Constructors, Destructors
  35.  
  36.     XFE_Dialog(Widget   parent,    
  37.                char    *name,  
  38.                Boolean  ok = TRUE,    
  39.                Boolean  cancel = TRUE,
  40.                Boolean  help = TRUE,  
  41.                Boolean  apply = TRUE, 
  42.                Boolean  separator = TRUE,
  43.                Boolean  modal = TRUE,
  44.                Widget    chrome_widget = NULL);
  45.  
  46.     virtual ~XFE_Dialog();
  47.  
  48.     // Accessor functions
  49.  
  50.     // Modifier functions
  51.  
  52.     virtual void show();
  53.  
  54.     virtual void hide();
  55.  
  56. protected:
  57.     Widget m_wParent;        // parent widget
  58.     Widget m_chrome;         // dialog chrome - selection box
  59.     Widget m_okButton;
  60.     Widget m_cancelButton;
  61.     Widget m_helpButton;
  62.     Widget m_applyButton;
  63.  
  64. private:
  65.     virtual Widget createDialogChromeWidget(Widget   parent,    
  66.                                             char    *name,
  67.                                             Boolean  ok,
  68.                                             Boolean  cancel,
  69.                                             Boolean  help,
  70.                                             Boolean  apply,
  71.                                             Boolean  separator,
  72.                                             Boolean  modal);
  73. };
  74.  
  75. #endif /* _xfe_dialog_h */
  76.