home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / NavCenterView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  72 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.    NavCenterView.h - Aurora/NavCenter view class
  20.    Created: Stephen Lamm <slamm@netscape.com>, 23-Oct-97.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_navcenterview_h
  26. #define _xfe_navcenterview_h
  27.  
  28. #include "View.h"
  29. #include "htrdf.h"
  30. #include "RDFView.h"
  31.  
  32. class XFE_NavCenterView : public XFE_View
  33. {
  34. public:
  35.   XFE_NavCenterView(XFE_Component *toplevel_component, Widget parent, XFE_View *parent_view, MWContext *context);
  36.  
  37.   virtual ~XFE_NavCenterView();
  38.  
  39.   virtual Boolean isCommandEnabled(CommandType cmd, void *calldata = NULL,
  40.                                    XFE_CommandInfo* i = NULL);
  41.   virtual void doCommand(CommandType, void *calldata = NULL,
  42.                                    XFE_CommandInfo* i = NULL);
  43.   virtual Boolean handlesCommand(CommandType cmd, void *calldata = NULL,
  44.                                    XFE_CommandInfo* i = NULL);
  45.   virtual char* commandToString(CommandType cmd, void *calldata = NULL,
  46.                                    XFE_CommandInfo* i = NULL);
  47.   virtual XP_Bool isCommandSelected(CommandType cmd, void *calldata = NULL,
  48.                          XFE_CommandInfo* = NULL);
  49.  
  50.   void notify(HT_Notification ns, HT_Resource n, HT_Event whatHappened);
  51.  
  52.   void setRDFView(HT_View view);
  53.   void addRDFView(HT_View view);
  54.  
  55.   static void selector_activate_cb(Widget,XtPointer,XtPointer);
  56.   static void selector_destroy_cb(Widget,XtPointer,XtPointer);
  57.  
  58. private:
  59.   HT_Pane m_pane;
  60.   HT_View m_htview;
  61.  
  62.   XFE_RDFView *m_rdfview;
  63.  
  64.   Widget m_selector;
  65. };
  66.  
  67. static void notify_cb(HT_Notification ns, HT_Resource n, 
  68.                          HT_Event whatHappened);
  69.  
  70. #endif /* _xfe_navcenterview_h */
  71.  
  72.