home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsProxiesView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  85 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.    PrefsProxiesView.h -- Proxies "view" preference dialog 
  20.    Created: Linda Wei <lwei@netscape.com>, 24-Oct-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_prefsproxiesview_h
  26. #define _xfe_prefsproxiesview_h
  27.  
  28. #include "Dialog.h"
  29. #include "PrefsDialog.h"
  30.  
  31. struct PrefsDataProxiesView
  32. {
  33.     MWContext *context;
  34.  
  35.     Widget     ftp_proxy_text;
  36.     Widget     ftp_port_text;
  37.     Widget     gopher_proxy_text;
  38.     Widget     gopher_port_text;
  39.     Widget     http_proxy_text;
  40.     Widget     http_port_text;
  41.     Widget     https_proxy_text;
  42.     Widget     https_port_text;
  43.     Widget     wais_proxy_text;
  44.     Widget     wais_port_text;
  45.     Widget     no_proxy_text;
  46.     Widget     socks_host_text;
  47.     Widget     socks_port_text;
  48. };
  49.  
  50. class XFE_PrefsProxiesViewDialog : public XFE_Dialog
  51.  
  52. {
  53. public:
  54.  
  55.     // Constructors, Destructors
  56.  
  57.     XFE_PrefsProxiesViewDialog(XFE_PrefsDialog *prefsDialog,
  58.                                Widget           parent,    
  59.                                char            *name,  
  60.                                Boolean          modal = TRUE);
  61.  
  62.     virtual ~XFE_PrefsProxiesViewDialog();
  63.  
  64.     virtual void show();                // pop up dialog
  65.     void initPage();                    // initialize page
  66.     Boolean verifyPage();               // verify page
  67.     void installChanges();              // install changes
  68.     MWContext *getContext();            // return the context
  69.  
  70.     // Callbacks
  71.  
  72.     friend void prefsProxiesViewCb_ok(Widget, XtPointer, XtPointer);
  73.     friend void prefsProxiesViewCb_cancel(Widget, XtPointer, XtPointer);
  74.  
  75. private:
  76.  
  77.     // User data
  78.  
  79.     XFE_PrefsDialog              *m_prefsDialog;
  80.     PrefsDataProxiesView         *m_prefsDataProxiesView;
  81. };
  82.  
  83. #endif /* _xfe_prefsproxiesview_h */
  84.  
  85.