home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / BookmarkPropDialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.5 KB  |  94 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.    BookmarkPropDialog.h -- class definitions for edit properties dialog
  20.    Created: Stephen Lamm <slamm@netscape.com>, 10-Mar-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_bookmark_prop_dialog_h
  26. #define _xfe_bookmark_prop_dialog_h
  27.  
  28. #include "Component.h"
  29. #include "Dialog.h"
  30. #include "mozilla.h"  /* for MWContext ! */
  31.  
  32. class XFE_BookmarkPropDialog : public XFE_Dialog
  33. {
  34. public:
  35.  
  36.     // Constructors, Destructors
  37.  
  38.   XFE_BookmarkPropDialog(MWContext *context, Widget parent);
  39.  
  40.   virtual ~XFE_BookmarkPropDialog();
  41.  
  42.   void editItem(BM_Entry *entry);
  43.   void entryGoingAway(BM_Entry *entry);
  44.   void selectAlias();
  45.   void close();
  46.   void ok();
  47.  
  48.   XP_Bool commitChanges();
  49.  
  50.   //virtual void show();
  51.  
  52.   //virtual void hide();
  53.  
  54.   static void selectalias_cb(Widget widget,
  55.                              XtPointer closure, XtPointer call_data);
  56.   static void destroy_cb(Widget widget,
  57.                          XtPointer closure, XtPointer call_data);
  58.   static void close_cb(Widget widget,
  59.                        XtPointer closure, XtPointer call_data);
  60.   static void ok_cb(Widget widget,
  61.                     XtPointer closure, XtPointer call_data);
  62.  
  63. protected:
  64.  
  65.   char *getAndCleanText(Widget widget, Boolean new_lines_too_p);
  66.  
  67.   /* Parent class members
  68.     Widget m_wParent;        // parent widget
  69.     Widget m_chrome;         // dialog chrome - selection box
  70.     Widget m_okButton;
  71.     Widget m_cancelButton;
  72.     Widget m_helpButton;
  73.     Widget m_applyButton;
  74.     */
  75.  
  76.   MWContext *m_context;
  77.  
  78.   BM_Entry *m_entry;
  79.  
  80.   Widget m_title;
  81.   Widget m_nickname;
  82.   Widget m_name;
  83.   Widget m_location;        
  84.   Widget m_locationLabel;
  85.   Widget m_description;
  86.   Widget m_lastVisited;
  87.   Widget m_lastVisitedLabel;
  88.   Widget m_addedOn;
  89.   Widget m_aliasLabel;
  90.   Widget m_aliasButton;
  91. };
  92.  
  93. #endif /* _xfe_dialog_h */
  94.