home *** CD-ROM | disk | FTP | other *** search
- /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- *
- * The contents of this file are subject to the Netscape Public License
- * Version 1.0 (the "NPL"); you may not use this file except in
- * compliance with the NPL. You may obtain a copy of the NPL at
- * http://www.mozilla.org/NPL/
- *
- * Software distributed under the NPL is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
- * for the specific language governing rights and limitations under the
- * NPL.
- *
- * The Initial Developer of this code under the NPL is Netscape
- * Communications Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All Rights
- * Reserved.
- */
- /*
- NavCenterView.h - Aurora/NavCenter view class
- Created: Stephen Lamm <slamm@netscape.com>, 23-Oct-97.
- */
-
-
-
- #ifndef _xfe_navcenterview_h
- #define _xfe_navcenterview_h
-
- #include "View.h"
- #include "htrdf.h"
- #include "RDFView.h"
-
- class XFE_NavCenterView : public XFE_View
- {
- public:
- XFE_NavCenterView(XFE_Component *toplevel_component, Widget parent, XFE_View *parent_view, MWContext *context);
-
- virtual ~XFE_NavCenterView();
-
- virtual Boolean isCommandEnabled(CommandType cmd, void *calldata = NULL,
- XFE_CommandInfo* i = NULL);
- virtual void doCommand(CommandType, void *calldata = NULL,
- XFE_CommandInfo* i = NULL);
- virtual Boolean handlesCommand(CommandType cmd, void *calldata = NULL,
- XFE_CommandInfo* i = NULL);
- virtual char* commandToString(CommandType cmd, void *calldata = NULL,
- XFE_CommandInfo* i = NULL);
- virtual XP_Bool isCommandSelected(CommandType cmd, void *calldata = NULL,
- XFE_CommandInfo* = NULL);
-
- void notify(HT_Notification ns, HT_Resource n, HT_Event whatHappened);
-
- void setRDFView(HT_View view);
- void addRDFView(HT_View view);
-
- static void selector_activate_cb(Widget,XtPointer,XtPointer);
- static void selector_destroy_cb(Widget,XtPointer,XtPointer);
-
- private:
- HT_Pane m_pane;
- HT_View m_htview;
-
- XFE_RDFView *m_rdfview;
-
- Widget m_selector;
- };
-
- static void notify_cb(HT_Notification ns, HT_Resource n,
- HT_Event whatHappened);
-
- #endif /* _xfe_navcenterview_h */
-
-