/***************************** LICENSE START ***********************************

 Copyright 2012 ECMWF and INPE. This software is distributed under the terms
 of the Apache License version 2.0. In applying this license, ECMWF does not
 waive the privileges and immunities granted to it by virtue of its status as
 an Intergovernmental Organization or submit itself to any jurisdiction.

 ***************************** LICENSE END *************************************/

#include <QAction>
#include <QDebug>
#include <QFile>
#include <QHeaderView>
#include <QLabel>
#include <QHBoxLayout>
#include <QMenu>
#include <QPlainTextEdit>
#include <QSlider>
#include <QSpinBox>
#include <QSplitter>
#include <QTextBrowser>
#include <QToolButton>
#include <QTreeView>
#include <QVBoxLayout>

#include "MvQCursorDataWidget.h"

MvQCursorDataWidget::MvQCursorDataWidget(QWidget* parent) :
    QWidget(parent)
{
    QVBoxLayout* layout = new QVBoxLayout;
    setLayout(layout);

    te_ = new QPlainTextEdit;
    layout->addWidget(te_);
}


MvQCursorDataWidget::~MvQCursorDataWidget()
{
}


/*void MvQCursorDataWidget::dataIsAboutToChange()
{
	model_->dataIsAboutToChange();
}*/

void MvQCursorDataWidget::slotReset(QPointF coord, QList<ValuesCollector> val)
{
    /*QString s;
	s+="Lat=";
	s+=QString::number(coord.y(),'f',2);
	s+=" Lon=";
	s+=QString::number(coord.x(),'f',2);

	foreach(ValuesCollector d,val)
	{
		if(d.size() > 0)
		{
		  	for(ValuesCollectorPoint::iterator it =  d[0].begin(); it != d[0].end(); it++)			  			
			{
		  		s+="\n";
				s+=QString::number((*it).value()) + " (";
				s+=QString::number((*it).y(),'f',2) + ",";
				s+=QString::number((*it).x(),'f',2) + ")";
			}	
		}
	}	
	
	te_->setPlainText(s);*/
}
