home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsDiskMore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.0 KB  |  74 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.    PrefsDiskMore.h -- Disk Space "more" preference dialog 
  20.    Created: Linda Wei <lwei@netscape.com>, 16-Dec-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_prefsdiskmore_h
  26. #define _xfe_prefsdiskmore_h
  27.  
  28. #include "Dialog.h"
  29. #include "PrefsDialog.h"
  30.  
  31. struct PrefsDataDiskMore
  32. {
  33.     MWContext *context;
  34.  
  35.     Widget     rm_msg_body_toggle;
  36.     Widget     num_days_text;
  37. };
  38.  
  39. class XFE_PrefsDiskMoreDialog : public XFE_Dialog
  40.  
  41. {
  42. public:
  43.  
  44.     // Constructors, Destructors
  45.  
  46.     XFE_PrefsDiskMoreDialog(XFE_PrefsDialog *prefsDialog,
  47.                             Widget           parent,    
  48.                             char            *name,  
  49.                             Boolean          modal = TRUE);
  50.  
  51.     virtual ~XFE_PrefsDiskMoreDialog();
  52.  
  53.     virtual void show();                // pop up dialog
  54.     void initPage();                    // initialize dialog
  55.     Boolean verifyPage();               // verify page
  56.     void installChanges();              // install changes
  57.     MWContext *getContext();            // return the context
  58.  
  59.     // Callbacks
  60.  
  61.     static void prefsDiskMoreCb_ok(Widget, XtPointer, XtPointer);
  62.     static void prefsDiskMoreCb_cancel(Widget, XtPointer, XtPointer);
  63.  
  64. private:
  65.  
  66.     // User data
  67.  
  68.     XFE_PrefsDialog           *m_prefsDialog;
  69.     PrefsDataDiskMore         *m_prefsDataDiskMore;
  70. };
  71.  
  72. #endif /* _xfe_prefsdiskmore_h */
  73.  
  74.