home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / AdvSearchDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.1 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.    AdvSearchDialog.h -- dialog for specifying options to message search
  20.    Created: Akkana Peck <akkana@netscape.com>, 21-Oct-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_AdvSearchDialog_h
  26. #define _xfe_AdvSearchDialog_h
  27.  
  28. #include "xp_core.h"
  29. #include "Dialog.h"
  30.  
  31. class XFE_Frame;
  32.  
  33. class XFE_AdvSearchDialog: public XFE_Dialog
  34. {
  35. public:
  36.     XFE_AdvSearchDialog(Widget parent,
  37.                         char *name,
  38.                         XFE_Frame *frame);
  39.  
  40.     virtual ~XFE_AdvSearchDialog();
  41.  
  42.     /* changes the delete response to UNMAP so we can keep the
  43.        dialog around after it's popped down, and returns True
  44.        if Ok was pressed, and False otherwise (either cancel or
  45.        the WM close button was pressed. 
  46.  
  47.        This method calls fe_eventLoop so we can return with the
  48.        user's response from here. 
  49.  
  50.        since we UNMAP instead of DESTROY, you need to delete the
  51.        instance after you're through with it.*/
  52.     XP_Bool post();
  53.  
  54. private:
  55.     XFE_Frame *m_frame;
  56.  
  57.     XP_Bool m_doneWithLoop;
  58.     XP_Bool m_retVal;
  59.  
  60.     Widget m_subfolderToggle;
  61.     Widget m_searchLocalToggle;
  62.     Widget m_searchServerToggle;
  63.  
  64.     void ok();
  65.     void cancel();
  66.     void toggle();
  67.  
  68.     static void ok_cb(Widget, XtPointer, XtPointer);
  69.     static void cancel_cb(Widget, XtPointer, XtPointer);
  70.     static void toggle_cb(Widget, XtPointer, XtPointer);
  71. };
  72.  
  73. #endif /* _xfe_AdvSearchDialog_h */
  74.