home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / rdfui / CNavCenterTitle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.8 KB  |  58 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. //
  20. // Mike Pinkerton, Netscape Communications
  21. //
  22. // Class that draws the header area for the nav center which shows the title
  23. // of the currently selected view as well as harboring the closebox for
  24. // an easy way to close up the navCenter shelf.
  25. //
  26.  
  27. #include "htrdf.h"
  28. #include "CGrayBevelView.h"
  29.  
  30.  
  31. class CNavCenterTitle 
  32.     : public CGrayBevelView, public LListener
  33. {
  34. public:
  35.     
  36.     enum { class_ID = 'hbar', pane_ID = 'hbar', kTitlePaneID = 'titl',
  37.             kCloseBoxPaneID = 'clos' } ;
  38.     enum { msg_CloseShelfNow = 'clos' } ;
  39.     
  40.         // Construction, Destruction
  41.     CNavCenterTitle(LStream *inStream);
  42.     ~CNavCenterTitle();
  43.  
  44. protected:
  45.  
  46.         // PowerPlant overrides
  47.     virtual void ListenToMessage ( MessageT inMessage, void* ioParam ) ;
  48.     virtual void FinishCreateSelf ( ) ;
  49.  
  50.         // Provide access to the LCaption that displays the title
  51.     LCaption& TitleCaption ( ) { return *mTitle; }
  52.     const LCaption& TitleCaption ( ) const { return *mTitle; }
  53.         
  54. private:
  55.  
  56.     LCaption* mTitle;
  57.         
  58. }; // class CNavCenterTitle