зеркало из https://github.com/mozilla/gecko-dev.git
Add support for url bars.
This commit is contained in:
Родитель
c8e09d1cea
Коммит
8df71b6b6a
|
@ -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 ();
|
||||
|
|
Загрузка…
Ссылка в новой задаче