home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / PrefsMsgMore.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  83 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.    PrefsMsgMore.h -- Message "more" preference dialog 
  20.    Created: Linda Wei <lwei@netscape.com>, 04-Mar-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_prefsmsgmore_h
  26. #define _xfe_prefsmsgmore_h
  27.  
  28. #include "Dialog.h"
  29. #include "PrefsDialog.h"
  30.  
  31. struct PrefsDataMsgMore
  32. {
  33.     MWContext *context;
  34.  
  35.     Widget     eight_bit_toggle;
  36.     Widget     quoted_printable_toggle;
  37.     Widget     names_and_nicknames_toggle;
  38.     Widget     nicknames_only_toggle;
  39.     Widget     ask_toggle;
  40.     Widget     send_text_toggle;
  41.     Widget     send_html_toggle;
  42.     Widget     send_both_toggle;
  43. };
  44.  
  45. class XFE_PrefsMsgMoreDialog : public XFE_Dialog
  46.  
  47. {
  48. public:
  49.  
  50.     // Constructors, Destructors
  51.  
  52.     XFE_PrefsMsgMoreDialog(XFE_PrefsDialog *prefsDialog,
  53.                            Widget           parent,    
  54.                            char            *name,  
  55.                            Boolean          modal = TRUE);
  56.  
  57.     virtual ~XFE_PrefsMsgMoreDialog();
  58.  
  59.     virtual void show();                // pop up dialog
  60.     void initPage();                    // initialize dialog
  61.     Boolean verifyPage();               // verify page
  62.     void installChanges();              // install changes
  63.     MWContext *getContext();            // return the context
  64.  
  65.     // Callbacks
  66.  
  67.     static void cb_ok(Widget, XtPointer, XtPointer);
  68.     static void cb_cancel(Widget, XtPointer, XtPointer);
  69.     static void cb_toggleEncoding(Widget, XtPointer, XtPointer);
  70.     static void cb_toggleAddressing(Widget, XtPointer, XtPointer);
  71.     static void cb_toggleSend(Widget, XtPointer, XtPointer);
  72.  
  73. private:
  74.  
  75.     // User data
  76.  
  77.     XFE_PrefsDialog          *m_prefsDialog;
  78.     PrefsDataMsgMore         *m_prefsDataMsgMore;
  79. };
  80.  
  81. #endif /* _xfe_prefsmsgmore_h */
  82.  
  83.