home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / EditorBar.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  67 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.    EditorBar.cpp
  20.    Created: Richard Hess <rhess@netscape.com>, 10-Dec-96.
  21.    */
  22.  
  23.  
  24.  
  25. #include "mozilla.h"
  26. #include "xfe.h"
  27. #include "EditorBar.h"
  28.  
  29. #include <Xm/Form.h>
  30. #include <Xm/LabelG.h>
  31. #include <Xm/TextF.h>
  32. #include "DtWidgets/ComboBox.h"
  33.  
  34. extern "C" {
  35.   Widget fe_EditorCreatePropertiesToolbar(MWContext*, Widget, char*);
  36.   Widget fe_EditorCreateComposeToolbar(MWContext*, Widget, char*);
  37.   XtPointer fe_tooltip_mappee(Widget widget, XtPointer data);
  38. }
  39.  
  40. XFE_EditorBar::XFE_EditorBar(XFE_Component *toplevel_component,
  41.                  Widget parent, MWContext* context)
  42. : XFE_Component(toplevel_component), m_eToolbar(NULL)
  43. {
  44.   Widget url_frame;
  45.  
  46.   url_frame = XmCreateFrame(parent, "editBarFrame", NULL, 0);
  47.   XtVaSetValues(url_frame,
  48.                 XmNshadowType,      XmSHADOW_OUT,
  49.                 XmNshadowThickness, 1,
  50.                 NULL);
  51.  
  52.   m_eToolbar = fe_EditorCreatePropertiesToolbar(context, url_frame, "editBar");
  53.  
  54.   XtManageChild(m_eToolbar);
  55.  
  56.   /* Add tooltip
  57.    */
  58.   fe_WidgetTreeWalk(m_eToolbar, fe_tooltip_mappee, NULL);
  59.  
  60.   setBaseWidget(url_frame);
  61. }
  62.  
  63. XFE_EditorBar::~XFE_EditorBar()
  64. {
  65. }
  66.  
  67.