зеркало из https://github.com/mozilla/pjs.git
making stuff const, making other stuff non-virtual.
This commit is contained in:
Родитель
6b766981d7
Коммит
c3dcb26233
|
@ -547,10 +547,10 @@ CRDFCoordinator :: ObeyCommand ( CommandT inCommand, void* ioParam )
|
||||||
// Tell XP about this navCenter & context for site map stuff
|
// Tell XP about this navCenter & context for site map stuff
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
CRDFCoordinator :: RegisterNavCenter ( MWContext* inContext )
|
CRDFCoordinator :: RegisterNavCenter ( const MWContext* inContext ) const
|
||||||
{
|
{
|
||||||
if ( HTPane() )
|
if ( HTPane() )
|
||||||
XP_RegisterNavCenter ( mHTPane, inContext );
|
XP_RegisterNavCenter ( mHTPane, const_cast<MWContext*>(inContext) );
|
||||||
|
|
||||||
} // RegisterNavCenter
|
} // RegisterNavCenter
|
||||||
|
|
||||||
|
@ -561,7 +561,7 @@ CRDFCoordinator :: RegisterNavCenter ( MWContext* inContext )
|
||||||
// Tell XP this window is going away.
|
// Tell XP this window is going away.
|
||||||
//
|
//
|
||||||
void
|
void
|
||||||
CRDFCoordinator :: UnregisterNavCenter ( )
|
CRDFCoordinator :: UnregisterNavCenter ( ) const
|
||||||
{
|
{
|
||||||
if ( HTPane() )
|
if ( HTPane() )
|
||||||
XP_UnregisterNavCenter ( mHTPane );
|
XP_UnregisterNavCenter ( mHTPane );
|
||||||
|
|
|
@ -85,28 +85,31 @@ protected:
|
||||||
virtual ~CRDFCoordinator();
|
virtual ~CRDFCoordinator();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum { class_ID = 'RCoo', pane_ID = 'RCoo' };
|
enum { class_ID = 'RCoo' };
|
||||||
enum {
|
enum {
|
||||||
msg_ActiveSelectorChanged = 'selc', // broadcast when selector changes
|
msg_ActiveSelectorChanged = 'selc' // broadcast when selector changes
|
||||||
kScrollerPaneID = 'HyTC' // pane id of the scroller containing tree/headers/etc
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Set the current workspace to a particular kind of workspace
|
// Set the current workspace to a particular kind of workspace
|
||||||
virtual void SelectView ( HT_ViewType inPane ) ;
|
virtual void SelectView ( HT_ViewType inPane ) ;
|
||||||
|
|
||||||
// register/unregister this NavCenter for SiteMap updates, etc
|
// register/unregister this NavCenter for SiteMap updates, etc
|
||||||
void RegisterNavCenter ( MWContext* inContext ) ;
|
void RegisterNavCenter ( const MWContext* inContext ) const ;
|
||||||
void UnregisterNavCenter ( ) ;
|
void UnregisterNavCenter ( ) const ;
|
||||||
|
|
||||||
// because sometimes you just need to get to the top-level HT pane....
|
// because sometimes you just need to get to the top-level HT pane....
|
||||||
HT_Pane HTPane ( ) const { return mHTPane; } ;
|
const HT_Pane HTPane ( ) const { return mHTPane; } ;
|
||||||
|
HT_Pane HTPane ( ) { return mHTPane; }
|
||||||
|
|
||||||
// get/set the frame to which urls are dispatched. It's ok not to set
|
// get/set the frame to which urls are dispatched. It's ok not to set
|
||||||
// this as the default will be the top-most HTML view.
|
// this as the default will be the top-most HTML view.
|
||||||
virtual void SetTargetFrame ( const char* inFrame ) ;
|
virtual void SetTargetFrame ( const char* inFrame ) ;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
enum {
|
||||||
|
kScrollerPaneID = 'HyTC' // pane id of the scroller containing tree/headers/etc
|
||||||
|
};
|
||||||
|
|
||||||
// handle showing/hiding column headers. Should be called after the HT_Pane has
|
// handle showing/hiding column headers. Should be called after the HT_Pane has
|
||||||
// been created.
|
// been created.
|
||||||
virtual void ShowOrHideColumnHeaders ( ) ;
|
virtual void ShowOrHideColumnHeaders ( ) ;
|
||||||
|
@ -169,7 +172,8 @@ public:
|
||||||
|
|
||||||
// access to the shelf that comprised the NavCenter. This wrapper class
|
// access to the shelf that comprised the NavCenter. This wrapper class
|
||||||
// allows you to easily slide in/out the shelf or check if it is open.
|
// allows you to easily slide in/out the shelf or check if it is open.
|
||||||
CShelf& NavCenterShelf() const { return *mNavCenter; } ;
|
CShelf& NavCenterShelf() { return *mNavCenter; } ;
|
||||||
|
const CShelf& NavCenterShelf() const { return *mNavCenter; } ;
|
||||||
|
|
||||||
// create the pane with |inNode| as the root of the view
|
// create the pane with |inNode| as the root of the view
|
||||||
virtual void BuildHTPane ( HT_Resource inNode ) ;
|
virtual void BuildHTPane ( HT_Resource inNode ) ;
|
||||||
|
@ -205,7 +209,7 @@ public:
|
||||||
CShackRDFCoordinator(LStream* inStream);
|
CShackRDFCoordinator(LStream* inStream);
|
||||||
virtual ~CShackRDFCoordinator();
|
virtual ~CShackRDFCoordinator();
|
||||||
|
|
||||||
virtual void BuildHTPane ( const char* inURL, unsigned int inCount,
|
void BuildHTPane ( const char* inURL, unsigned int inCount,
|
||||||
char** inParamNames, char** inParamValues ) ;
|
char** inParamNames, char** inParamValues ) ;
|
||||||
|
|
||||||
}; // CShackRDFCoordinator
|
}; // CShackRDFCoordinator
|
||||||
|
@ -231,12 +235,12 @@ public:
|
||||||
CWindowRDFCoordinator(LStream* inStream);
|
CWindowRDFCoordinator(LStream* inStream);
|
||||||
virtual ~CWindowRDFCoordinator();
|
virtual ~CWindowRDFCoordinator();
|
||||||
|
|
||||||
virtual void BuildHTPane ( HT_Resource inNode ) ;
|
void BuildHTPane ( HT_Resource inNode ) ;
|
||||||
virtual void BuildHTPane ( RDF_Resource inNode ) ;
|
void BuildHTPane ( RDF_Resource inNode ) ;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
virtual void FinishCreateSelf ( ) ;
|
void FinishCreateSelf ( ) ;
|
||||||
|
|
||||||
}; // CWindowRDFCoordinator
|
}; // CWindowRDFCoordinator
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче