27 #include "../../../color/RGBAColor.h" 
   28 #include "../../../dataaccess/dataset/ObjectIdSet.h" 
   29 #include "../../../se.h" 
   38 #include <qwt_plot_curve.h> 
   39 #include <qwt_plot_grid.h> 
   40 #include <qwt_plot_histogram.h> 
   41 #include <qwt_plot_magnifier.h> 
   42 #include <qwt_plot_panner.h> 
   43 #include <qwt_plot_picker.h> 
   44 #include <qwt_plot_zoomer.h> 
   45 #include <qwt_picker_machine.h> 
   47 #include <qwt_symbol.h> 
   50 #include <qapplication.h> 
   70   setAutoFillBackground( 
true );
 
   71   setAutoReplot( 
true );
 
   78   m_panner =  
new QwtPlotPanner(this->canvas());
 
   79   m_panner->setMouseButton(Qt::RightButton);
 
   82   m_leftPicker = 
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
 
   83   m_leftPicker->setStateMachine(
new QwtPickerDragRectMachine );
 
   85   m_ctrlPicker = 
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
 
   86   m_ctrlPicker->setStateMachine(
new QwtPickerDragRectMachine );
 
   87   m_ctrlPicker->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton, Qt::ControlModifier);
 
   89   m_shiftPicker = 
new QwtPlotPicker(QwtPlot::xBottom, QwtPlot::yLeft, QwtPlotPicker::RectRubberBand, QwtPicker::AlwaysOff, this->canvas());
 
   90   m_shiftPicker->setStateMachine(
new QwtPickerDragRectMachine );
 
   91   m_shiftPicker->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton, Qt::ShiftModifier);
 
   97   canvas()->setCursor(Qt::CrossCursor);
 
  108   delete m_shiftPicker;
 
  118   m_chartStyle = newStyle;
 
  126     QApplication::setOverrideCursor(Qt::WaitCursor);
 
  127     const QwtPlotItemList& itmList = itemList(); 
 
  129     for ( QwtPlotItemIterator it = itmList.begin();
 
  130         it != itmList.end(); ++it )
 
  143     QApplication::restoreOverrideCursor();
 
  149   const QwtPlotItemList& itmList = itemList(); 
 
  151   for ( QwtPlotItemIterator it = itmList.begin();
 
  152       it != itmList.end(); ++it )
 
  172     QwtText title( m_chartStyle->getTitle());
 
  173     QwtText axisX(m_chartStyle->getAxisX());
 
  174     QwtText axisY(m_chartStyle->getAxisY());
 
  176     title.setFont(m_chartStyle->getTitleFont());
 
  177     axisX.setFont(m_chartStyle->getAxisFont());
 
  178     axisY.setFont(m_chartStyle->getAxisFont());
 
  181     setAxisTitle( QwtPlot::yLeft, axisY);
 
  182     setAxisTitle( QwtPlot::xBottom, axisX);
 
  184     if(m_chartStyle->getGridChecked())
 
  185       m_grid->attach(
this);
 
  189     canvas()->setPalette(m_chartStyle->getColor());
 
  195   QApplication::setOverrideCursor(Qt::WaitCursor);
 
  196   const QwtPlotItemList& itmList = itemList();
 
  197   for ( QwtPlotItemIterator it = itmList.begin();
 
  198       it != itmList.end(); ++it )
 
  202       if (QObject::sender() == m_ctrlPicker || QObject::sender() == m_shiftPicker)
 
  203         emit selected(static_cast<te::qt::widgets::ScatterChart*>(*it)->highlight( rect), 
true);
 
  205         emit selected(static_cast<te::qt::widgets::ScatterChart*>(*it)->highlight( rect), 
false);
 
  211       if (QObject::sender() == m_ctrlPicker || QObject::sender() == m_shiftPicker)
 
  212         emit selected(static_cast<te::qt::widgets::HistogramChart*>(*it)->highlight( rect), 
true);
 
  214         emit selected(static_cast<te::qt::widgets::HistogramChart*>(*it)->highlight( rect), 
false);
 
  219   QApplication::restoreOverrideCursor();
 
This class represents a set of unique ids created in the same context. i.e. from the same data set...
 
A class to represent a histogram chart. 
 
A class to represent a scatter's chart. 
 
A class used to define a chartDisplay's style. 
 
A class to represent a chart display.