home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / MNBanner.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.7 KB  |  102 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.    MNBanner.h -- class definitions the little banner thingy on MN Frames (except compose).
  20.    Created: Chris Toshok <toshok@netscape.com>, 15-Oct-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_mnbanner_h
  26. #define _xfe_mnbanner_h
  27.  
  28. #include "xp_core.h"
  29. #include "Component.h"
  30. #include "Button.h"
  31. #include "ProxyIcon.h"
  32. #include "MNView.h"
  33. #include "ToolboxItem.h"
  34.  
  35. #include "mozilla.h"
  36. #include "icons.h"
  37.  
  38. class XFE_Logo;
  39.  
  40. /*
  41.  
  42.   The MNBanner looks like:
  43.    +---------------------------------------------------+
  44.    | <icon><title><subtitle>          <info> | <mommy> |
  45.    +---------------------------------------------------+
  46.  
  47.    With the title shown in bold, and the subtitle shown in the normal
  48.    font.  The shadow around the banner is in (XmSHADOW_IN, that is.)
  49.  
  50.  */
  51.  
  52. class XFE_MNBanner : public XFE_ToolboxItem
  53. {
  54. public:
  55.     XFE_MNBanner(XFE_Frame *parentFrame,
  56.                  XFE_Toolbox * parent_toolbox,
  57.                  char *title = NULL, char *subtitle = NULL,
  58.                  char *info = NULL);
  59.  
  60.     void setProxyIcon(fe_icon *icon);
  61.     void setMommyIcon(IconGroup *icons);
  62.     void setTitle(char *title);
  63.     void setTitleComponent(XFE_Component *title_component);
  64.     void setSubtitle(char *subtitle);
  65.     void setInfo(char *info);
  66.  
  67.     Widget getComponentParent();
  68.  
  69.     XFE_ProxyIcon*    getProxyIcon();
  70.     char*            getTitle();
  71.     char*            getSubtitle();
  72.     char*            getInfo();
  73.     XFE_Button*        getMommyButton();
  74.     static const char *        twoPaneView;
  75.         void showFolderBtn();
  76.       void setShowFolder(XP_Bool show);
  77.  
  78. protected:
  79.  
  80.     // Override AbstractToolbar methods
  81.     virtual void    update() {}
  82.  
  83. private:
  84.  
  85.     XFE_CALLBACK_DECL(doMommyCommand)
  86.     XFE_CALLBACK_DECL(showFolder)
  87.  
  88.     Widget m_form;
  89.     Widget m_proxylabel;
  90.     Widget m_titlelabel;
  91.     Widget m_arrowButton;
  92.     XFE_Component *m_titleComponent;
  93.     Widget m_subtitlelabel;
  94.     Widget m_infolabel;
  95.     XFE_Button *m_mommyButton;
  96.     XFE_Frame *m_parentFrame;
  97.  
  98.     XFE_ProxyIcon *m_proxyicon;
  99. };
  100.  
  101. #endif /* _xfe_mnbanner_h */
  102.