Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/* $XConsortium: MenuBar.C /main/2 1995/07/17 14:06:37 drk $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#include "MenuBar.h"
#include "Menu.h"
#include <Xm/RowColumn.h>
MenuBar::MenuBar(MotifUI *parent,
char *name)
: MotifUI(parent, name, NULL)
{
_w = XtVaCreateManagedWidget("menuBar", xmRowColumnWidgetClass,
parent->InnerWidget(),
XmNrowColumnType, XmMENU_BAR, NULL);
XtVaSetValues(parent->InnerWidget(), XmNmenuBar, _w, NULL);
InstallHelpCB();
}
void MenuBar::SetHelpMenu(Menu *menu)
{
XtVaSetValues(_w, XmNmenuHelpWidget, menu->GetCascade(), NULL);
}
MenuBar::~MenuBar()
{
// Empty
}