home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PropertySheetDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  69 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.    PropertySheetDialog.h -- class definition for PropertySheetDialog
  20.    Created: Tao Cheng <tao@netscape.com>, 12-nov-96
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_xmlfolderdialog_h
  26. #define _xfe_xmlfolderdialog_h
  27.  
  28. #include "ViewDialog.h"
  29.  
  30. // This is a general wrapper of dialog with a property sheet widget
  31. class XFE_PropertySheetDialog: public XFE_ViewDialog {
  32. public:
  33.   XFE_PropertySheetDialog(XFE_View *view, /* the parent view */
  34.               Widget    parent,
  35.               char     *name,
  36.               MWContext *context,
  37.               Boolean   ok = TRUE,
  38.               Boolean   cancel = TRUE,
  39.               Boolean   help = TRUE,  
  40.               Boolean   apply = TRUE, 
  41.               Boolean   separator = TRUE,
  42.               Boolean   modal = TRUE);
  43.  
  44.   virtual ~XFE_PropertySheetDialog();
  45.  
  46.   virtual void setDlgValues();
  47.   virtual void getDlgValues();
  48.  
  49.   typedef enum {
  50.       eWAITING = 0, eCANCEL, eAPPLY, eOTHERS
  51.   } ANS_t;
  52.  
  53.   // 
  54.   void    setClientData(ANS_t *data) {m_clientData = data;}
  55.  
  56. protected:
  57.   virtual void cancel();
  58.   virtual void apply();
  59.   virtual void ok();
  60.  
  61.   ANS_t *m_clientData;
  62.  
  63. private:
  64.  
  65.  
  66. }; /* XFE_PropertySheetDialog */
  67.  
  68. #endif /* _xfe_xmlfolderdialog_h */
  69.