// This may look like C code, but it is really -*- C++ -*-

// $Revision: 1.1 $
// $Author: roman $
// $Date: 90/07/20 03:25:14 $

#include "eureka.h"
#include "Factory.h"

extern WidgetFactory Factory;

void Eureka::Create()
{
   AWidget* w;

   w = Factory.CreateWidget("workArea", "form", *world);


   factory = new World("Factory",
		       Factory.RetrieveClass("shell"),
		       *world);

   w = Factory.CreateWidget("widgetFactory", "box", *factory);

   Factory.Display(*w);

   factory->Popup(); 

}

void Eureka::Realize()
{
   System::Realize();
   factory->Realize();
}
