Build a window from an HT_Resource or RDF_Resource.

This commit is contained in:
pinkerton%netscape.com 1998-08-11 19:18:57 +00:00
Родитель 52170e9b64
Коммит 87fed0868e
2 изменённых файлов: 17 добавлений и 6 удалений

Просмотреть файл

@ -55,7 +55,7 @@ CNavCenterWindow :: FinishCreateSelf()
// use saved positioning information
FinishCreateWindow();
mTree = dynamic_cast<CRDFCoordinator*>(FindPaneByID(CWindowRDFCoordinator::pane_ID));
mTree = dynamic_cast<CWindowRDFCoordinator*>(FindPaneByID(CWindowRDFCoordinator::pane_ID));
Assert_(mTree);
mTree->RegisterNavCenter(NULL);
@ -70,13 +70,23 @@ CNavCenterWindow :: FinishCreateSelf()
// make the given pane the one that is in front
//
void
CNavCenterWindow :: BringPaneToFront ( HT_ViewType inPane )
CNavCenterWindow :: BuildHTPane ( HT_Resource inTopNode )
{
mTree->SelectView ( inPane );
mTree->BuildHTPane ( inTopNode );
// mTree->SelectView ( inPane );
} // BringPaneToFront
void
CNavCenterWindow :: BuildHTPane ( RDF_Resource inTopNode )
{
mTree->BuildHTPane ( inTopNode );
// mTree->SelectView ( inPane );
} // BringPaneToFront
//
// DoClose
//

Просмотреть файл

@ -24,7 +24,7 @@
#include "htrdf.h"
class LStream;
class CRDFCoordinator;
class CWindowRDFCoordinator;
class CNavCenterWindow : public CNetscapeWindow, CSaveWindowStatus
@ -36,7 +36,8 @@ class CNavCenterWindow : public CNetscapeWindow, CSaveWindowStatus
virtual ~CNavCenterWindow ( ) ;
// make the given pane the one that is in front
virtual void BringPaneToFront ( HT_ViewType inPane ) ;
virtual void BuildHTPane ( HT_Resource inPane ) ;
virtual void BuildHTPane ( RDF_Resource inPane ) ;
virtual CNSContext* GetWindowContext() const { return nil; };
@ -52,6 +53,6 @@ class CNavCenterWindow : public CNetscapeWindow, CSaveWindowStatus
void DoDefaultPrefs() ;
CRDFCoordinator* mTree;
CWindowRDFCoordinator* mTree;
}; // CNavCenterWindow