Don't use constants from selector (or include it's header file). Define them here instead.

This commit is contained in:
pinkerton%netscape.com 1998-08-07 00:16:47 +00:00
parent 288babf521
commit ae53ac6d71
2 changed files with 7 additions and 5 deletions

View File

@ -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<HT_View>(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

View File

@ -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 ) ;