//<<<<<< INCLUDES                                                       >>>>>>

#include "Utilities/Configuration/interface/Architecture.h"
#include "Visualisation/CustomTracker/interface/VisCuTkTwig.h"
#include "Ig_Modules/IgTextModel/interface/IgTextRep.h"
#include <qapplication.h>
#include <strstream>

//<<<<<< PRIVATE DEFINES                                                >>>>>>
//<<<<<< PRIVATE CONSTANTS                                              >>>>>>
//<<<<<< PRIVATE TYPES                                                  >>>>>>
//<<<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>>>
//<<<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>>>
//<<<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>>>
//<<<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>>>
//<<<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>>>
//<<<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>>>

/** Initialise the Custom Tracker event twig. */
VisCuTkTwig::VisCuTkTwig (IgState *state, IgTwig *parent)
    : EventObserverTwig (state, parent, "CustomTracker")
{
}

/** Update object property description. */
void
VisCuTkTwig::update (IgTextRep *rep) 
{
    // Get debugging dump.
    EventObserverTwig::update (rep);

    // Prepare the property description.
    std::ostrstream text;
    text << "<table width='100%'><tr><td>Custom Tracker event</td><td>"
	 << "</table>"
	 << '\0';

    // Send it over.
    qApp->lock ();
    rep->setText (text.str ());
    text.freeze (0);
    qApp->unlock (false);
}
