QXRD  0.11.16
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
QcepDoublePointPropertyDoubleSpinBoxHelper Class Reference

#include <qcepproperty.h>

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

Public Slots

void setSubValue (int axis, double value, int index)
 
void setValue (double value)
 

Signals

void subValueChanged (int axis, double value, int index)
 

Public Member Functions

 QcepDoublePointPropertyDoubleSpinBoxHelper (QDoubleSpinBox *spinBox, QcepDoublePointProperty *property, int axis)
 
void connect ()
 

Private Attributes

QDoubleSpinBox * m_DoubleSpinBox
 
QcepDoublePointPropertym_Property
 
int m_Axis
 

Detailed Description

Definition at line 533 of file qcepproperty.h.

Constructor & Destructor Documentation

QcepDoublePointPropertyDoubleSpinBoxHelper::QcepDoublePointPropertyDoubleSpinBoxHelper ( QDoubleSpinBox *  spinBox,
QcepDoublePointProperty property,
int  axis 
)

Definition at line 2626 of file qcepproperty.cpp.

2627  : QObject(spinBox),
2628  m_DoubleSpinBox(spinBox),
2629  m_Property(property),
2630  m_Axis(axis)
2631 {
2632 }
QcepDoublePointProperty * m_Property
Definition: qcepproperty.h:549

Member Function Documentation

void QcepDoublePointPropertyDoubleSpinBoxHelper::connect ( )

Definition at line 2634 of file qcepproperty.cpp.

References CONNECT_CHECK, m_DoubleSpinBox, setValue(), and QcepByteArrayProperty::valueChanged().

Referenced by QcepDoublePointProperty::linkTo().

2635 {
2636  CONNECT_CHECK(QObject::connect(m_DoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(setValue(double)), Qt::DirectConnection));
2637 }
#define CONNECT_CHECK(res)
Definition: qcepmacros.h:14

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepDoublePointPropertyDoubleSpinBoxHelper::setSubValue ( int  axis,
double  value,
int  index 
)
slot

Definition at line 2639 of file qcepproperty.cpp.

References QcepProperty::index(), m_Axis, m_DoubleSpinBox, m_Property, and QcepByteArrayProperty::value().

2640 {
2641  if (m_Property->index() == index) {
2642  if (m_Axis == axis) {
2643  if (m_DoubleSpinBox->value() != value) {
2644  bool block = m_DoubleSpinBox->blockSignals(true);
2645  m_DoubleSpinBox->setValue(value);
2646  m_DoubleSpinBox->blockSignals(block);
2647  }
2648  }
2649  }
2650 }
QcepDoublePointProperty * m_Property
Definition: qcepproperty.h:549

Here is the call graph for this function:

void QcepDoublePointPropertyDoubleSpinBoxHelper::setValue ( double  value)
slot

Definition at line 2652 of file qcepproperty.cpp.

References QcepProperty::incIndex(), m_Axis, m_Property, and subValueChanged().

Referenced by connect().

2653 {
2654  emit subValueChanged(m_Axis, value, m_Property->incIndex(1));
2655 }
int incIndex(int step)
QcepDoublePointProperty * m_Property
Definition: qcepproperty.h:549
void subValueChanged(int axis, double value, int index)

Here is the call graph for this function:

Here is the caller graph for this function:

void QcepDoublePointPropertyDoubleSpinBoxHelper::subValueChanged ( int  axis,
double  value,
int  index 
)
signal

Referenced by setValue().

Here is the caller graph for this function:

Member Data Documentation

int QcepDoublePointPropertyDoubleSpinBoxHelper::m_Axis
private

Definition at line 550 of file qcepproperty.h.

Referenced by setSubValue(), and setValue().

QDoubleSpinBox* QcepDoublePointPropertyDoubleSpinBoxHelper::m_DoubleSpinBox
private

Definition at line 548 of file qcepproperty.h.

Referenced by connect(), and setSubValue().

QcepDoublePointProperty* QcepDoublePointPropertyDoubleSpinBoxHelper::m_Property
private

Definition at line 549 of file qcepproperty.h.

Referenced by setSubValue(), and setValue().


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