From 1353157b36f49cd06b8e32d450ad9b71a04bf324 Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Fri, 7 Aug 1998 00:16:47 +0000 Subject: [PATCH] Don't use constants from selector (or include it's header file). Define them here instead. --- cmd/macfe/rdfui/CRDFCoordinator.cp | 9 ++++----- cmd/macfe/rdfui/CRDFCoordinator.h | 3 +++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cmd/macfe/rdfui/CRDFCoordinator.cp b/cmd/macfe/rdfui/CRDFCoordinator.cp index 55cd499df10..af2d8f1f5d9 100644 --- a/cmd/macfe/rdfui/CRDFCoordinator.cp +++ b/cmd/macfe/rdfui/CRDFCoordinator.cp @@ -49,7 +49,6 @@ // MacFE specific headers #include "URDFUtilities.h" -#include "CNavCenterSelectorPane.h" #include "Netscape_Constants.h" #include "URobustCreateWindow.h" #include "BookmarksDialogs.h" @@ -263,8 +262,8 @@ void CRDFCoordinator::HandleNotification( SelectView(view); bool openShelf = (view != NULL); - ListenToMessage ( CNavCenterSelectorPane::msg_ShelfStateShouldChange, &openShelf ); - BroadcastMessage ( CNavCenterSelectorPane::msg_ActiveSelectorChanged, view ); + ListenToMessage ( CDockedRDFCoordinator::msg_ShelfStateShouldChange, &openShelf ); + BroadcastMessage ( CRDFCoordinator::msg_ActiveSelectorChanged, view ); break; } @@ -427,7 +426,7 @@ CRDFCoordinator::ListenToMessage ( MessageT inMessage, void *ioParam ) // the backend about it, but before we do that, turn off HT events so we don't actually // get the notification back -- we don't need it because the view change was caused // by the FE. - case CNavCenterSelectorPane::msg_ActiveSelectorChanged: + case msg_ActiveSelectorChanged: { HT_View newView = reinterpret_cast(ioParam); URDFUtilities::StHTEventMasking saveMask(mHTPane, HT_EVENT_NO_NOTIFICATION_MASK); @@ -696,7 +695,7 @@ CShackRDFCoordinator :: BuildHTPane ( const char* inURL, unsigned int inCount, // the title bar to update the title. HT_View view = HT_GetSelectedView(mHTPane); SelectView ( view ); - BroadcastMessage ( CNavCenterSelectorPane::msg_ActiveSelectorChanged, view ); + BroadcastMessage ( CRDFCoordinator::msg_ActiveSelectorChanged, view ); } } // BuildHTPane diff --git a/cmd/macfe/rdfui/CRDFCoordinator.h b/cmd/macfe/rdfui/CRDFCoordinator.h index 725a1be1fa3..88d170476b2 100644 --- a/cmd/macfe/rdfui/CRDFCoordinator.h +++ b/cmd/macfe/rdfui/CRDFCoordinator.h @@ -86,6 +86,9 @@ protected: public: enum { class_ID = 'RCoo', pane_ID = 'RCoo' }; + enum { + msg_ActiveSelectorChanged = 'selc' // broadcast when selector changes + }; // Set the current workspace to a particular kind of workspace virtual void SelectView ( HT_ViewType inPane ) ;