cctw  0.2.1
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper Class Reference

#include <cctwdoublematrix3x3property.h>

Inheritance diagram for CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper:
Inheritance graph
Collaboration diagram for CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper:
Collaboration graph

Public Slots

void setSubValue (int row, int col, double value, int index)
 
void setValue (double value)
 

Signals

void subValueChanged (int row, int col, double value, int index)
 

Public Member Functions

 CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper (QDoubleSpinBox *spinBox, CctwDoubleMatrix3x3Property *property, int row, int col)
 
void connect ()
 

Private Attributes

QDoubleSpinBox * m_DoubleSpinBox
 
CctwDoubleMatrix3x3Propertym_Property
 
int m_Row
 
int m_Col
 

Detailed Description

Definition at line 48 of file cctwdoublematrix3x3property.h.

Constructor & Destructor Documentation

CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper ( QDoubleSpinBox *  spinBox,
CctwDoubleMatrix3x3Property property,
int  row,
int  col 
)

Member Function Documentation

void CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::connect ( )

Definition at line 254 of file cctwdoublematrix3x3property.cpp.

References m_DoubleSpinBox, and setValue().

Referenced by CctwDoubleMatrix3x3Property::linkTo().

255 {
256  CONNECT_CHECK(QObject::connect(m_DoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(setValue(double)), Qt::DirectConnection));
257 }
void CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::setSubValue ( int  row,
int  col,
double  value,
int  index 
)
slot

Definition at line 259 of file cctwdoublematrix3x3property.cpp.

References m_Col, m_DoubleSpinBox, m_Property, and m_Row.

260 {
261  if (m_Property->index() == index) {
262  if (m_Row == row && m_Col == col) {
263  if (m_DoubleSpinBox->value() != value) {
264  bool block = m_DoubleSpinBox->blockSignals(true);
265  m_DoubleSpinBox->setValue(value);
266  m_DoubleSpinBox->blockSignals(block);
267  }
268  }
269  }
270 }
void CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::setValue ( double  value)
slot
void CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::subValueChanged ( int  row,
int  col,
double  value,
int  index 
)
signal

Referenced by setValue().

Member Data Documentation

int CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::m_Col
private

Definition at line 68 of file cctwdoublematrix3x3property.h.

Referenced by setSubValue(), and setValue().

QDoubleSpinBox* CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::m_DoubleSpinBox
private

Definition at line 65 of file cctwdoublematrix3x3property.h.

Referenced by connect(), and setSubValue().

CctwDoubleMatrix3x3Property* CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::m_Property
private

Definition at line 66 of file cctwdoublematrix3x3property.h.

Referenced by setSubValue(), and setValue().

int CctwDoubleMatrix3x3PropertyDoubleSpinBoxHelper::m_Row
private

Definition at line 67 of file cctwdoublematrix3x3property.h.

Referenced by setSubValue(), and setValue().


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