This commit is contained in:
ramiro%netscape.com 1998-10-07 07:50:40 +00:00
Родитель c8e09d1cea
Коммит 8df71b6b6a
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -31,6 +31,8 @@
#include <Xfe/ToolBar.h>
#include <Xfe/ToolTip.h>
#include "ToolbarUrlBar.h"
#if DEBUG_radha
#define D(x) x
#else
@ -255,6 +257,11 @@ XFE_RDFToolbar::addItem(HT_Resource node)
{
item = createSeparator(_toolbar);
}
// UrlBar
else if (HT_IsURLBar(node))
{
item = createUrlBar(_toolbar,node);
}
// Normal items
else
{
@ -536,6 +543,19 @@ XFE_RDFToolbar::createXfeCascade(Widget parent,HT_Resource entry)
return cascade;
}
//////////////////////////////////////////////////////////////////////////
Widget
XFE_RDFToolbar::createUrlBar(Widget parent,HT_Resource entry)
{
XP_ASSERT( XfeIsAlive(parent) );
XFE_ToolbarUrlBar * urlbar = new XFE_ToolbarUrlBar(_frame,
parent,
"urlBar");
urlbar->initialize();
return urlbar->getBaseWidget();
}
//////////////////////////////////////////////////////////////////////////
/* virtual */ void
XFE_RDFToolbar::updateAppearance()
{

Просмотреть файл

@ -77,6 +77,7 @@ protected:
// Toolbar component creation methods
Widget createXfeCascade (Widget parent, HT_Resource entry);
Widget createXfeButton (Widget parent, HT_Resource entry);
Widget createUrlBar (Widget parent, HT_Resource entry);
// Override RDFMenuToolbarBase methods
virtual void prepareToUpdateRoot ();