Public Member Functions

PlotPropertiesDialog Class Reference

#include <PlotPropertiesDialog.h>

Inheritance diagram for PlotPropertiesDialog:
Inheritance graph
[legend]
Collaboration diagram for PlotPropertiesDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PlotPropertiesDialog (PlotProperties *plotProperties, QWidget *parent=0)
virtual ~PlotPropertiesDialog ()

Constructor & Destructor Documentation

PlotPropertiesDialog::PlotPropertiesDialog ( PlotProperties plotProperties,
QWidget parent = 0 
)

  : QDialog(parent), m_plotProperties(plotProperties)
{
  //qDebug( "PlotPropertiesDialog::PlotPropertiesDialog" );

  setupUi( this );

  // Currently not implemented
  m_lineStyleGroupBox->setEnabled(false);

  if ( m_plotProperties == NULL ) return;

  if ( m_plotProperties->lineStyle() == PlotProperties::Lines )
  {
    m_lineStyleLinesRadioButton->setChecked( true );
  }
  else if ( m_plotProperties->lineStyle() == PlotProperties::ThinLines )
  {
    m_lineStyleThinLinesRadioButton->setChecked( true );
  }
  else if ( m_plotProperties->lineStyle() == PlotProperties::Dots )
  {
    m_lineStyleDotsRadioButton->setChecked( true );
  }
  else  if ( m_plotProperties->lineStyle() == PlotProperties::DotsLines )
  {
    m_lineStyleDotsLinesRadioButton->setChecked( true );
  }
  else
  {
    m_lineStyleThinLinesRadioButton->setChecked( true );
  }

  m_enableGridCheckBox->setChecked( m_plotProperties->isGridEnabled() );

  m_xAxisAutoscaleCheckBox->setChecked( m_plotProperties->xAxisAutoscale() );
  m_xAxisMinimumDateEdit->setDate(m_plotProperties->xAxisMinimum());
  m_xAxisMaximumDateEdit->setDate(m_plotProperties->xAxisMaximum());

  m_yAxisAutoscaleCheckBox->setChecked( m_plotProperties->yAxisAutoscale() );
  m_yAxisMinimumLineEdit->setText(QString::number(m_plotProperties->yAxisMinimum()));
  m_yAxisMaximumLineEdit->setText(QString::number(m_plotProperties->yAxisMaximum()));

  updateAxesCheckBoxes();

  connect( this, SIGNAL( accepted() ), this, SLOT( write() ) );
  connect( m_xAxisAutoscaleCheckBox, SIGNAL( clicked() ), this, SLOT( updateAxesCheckBoxes() ) );
  connect( m_yAxisAutoscaleCheckBox, SIGNAL( clicked() ), this, SLOT( updateAxesCheckBoxes() ) );
  connect( m_xAxisMinimumDateEdit, SIGNAL(dateChanged(QDate)), this, SLOT(xAxisValueChanged()), Qt::QueuedConnection );
  connect( m_xAxisMaximumDateEdit, SIGNAL(dateChanged(QDate)), this, SLOT(xAxisValueChanged()), Qt::QueuedConnection );
}

PlotPropertiesDialog::~PlotPropertiesDialog (  )  [virtual]

{
  //qDebug( "PlotPropertiesDialog::~PlotPropertiesDialog" );
}


The documentation for this class was generated from the following files: