home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / BookmarkFindDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  61 lines

  1. /* -*- Mode: C++; tab-width: 8; 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.    BookmarkFindDialog.h -- dialog for finding bookmarks (duh).
  20.    Created: Chris Toshok <toshok@netscape.com>, 12-Mar-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_bookmarkfinddialog_h
  26. #define _xfe_bookmarkfinddialog_h
  27.  
  28. #include "Dialog.h"
  29. #include "bkmks.h"
  30.  
  31. class XFE_BookmarkFindDialog : public XFE_Dialog
  32. {
  33. public:
  34.     XFE_BookmarkFindDialog(Widget parent,
  35.                            BM_FindInfo *info);
  36.  
  37.     virtual ~XFE_BookmarkFindDialog();
  38.  
  39. private:
  40.     Widget m_findText;
  41.     Widget m_nameToggle, m_locationToggle, m_descriptionToggle;
  42.     Widget m_caseToggle, m_wordToggle;
  43.  
  44.     BM_FindInfo *m_findInfo;
  45.  
  46.     void find();
  47.     void clear();
  48.     void cancel();
  49.  
  50.     void getValues(); // fills in m_findInfo
  51.     void setValues(); // alters UI to match m_findInfo
  52.  
  53.     static void find_cb(Widget, XtPointer, XtPointer);
  54.     static void clear_cb(Widget, XtPointer, XtPointer);
  55.     static void cancel_cb(Widget, XtPointer, XtPointer);
  56. };
  57.  
  58. extern "C" void fe_showBMFindDialog(Widget parent, BM_FindInfo *info);
  59.  
  60. #endif /* xfe_bookmarkfinddialog_h */
  61.