#include <cctwunitcellproperty.h>
 | 
|   | CctwUnitCellProperty (QcepSettingsSaverWPtr saver, QObject *parent, const char *name, CctwUnitCell value, QString toolTip) | 
|   | 
|   | CctwUnitCellProperty (QcepSettingsSaverWPtr saver, QObject *parent, const char *name, double a, double b, double c, double alpha, double beta, double gamma, QString toolTip) | 
|   | 
| CctwUnitCell  | value () const  | 
|   | 
| CctwUnitCell  | defaultValue () const  | 
|   | 
| QString  | toString (const CctwUnitCell &mat) | 
|   | 
Definition at line 7 of file cctwunitcellproperty.h.
 
  
  
      
        
          | CctwUnitCellProperty::CctwUnitCellProperty  | 
          ( | 
          QcepSettingsSaverWPtr  | 
          saver,  | 
         
        
           | 
           | 
          QObject *  | 
          parent,  | 
         
        
           | 
           | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          CctwUnitCell  | 
          value,  | 
         
        
           | 
           | 
          QString  | 
          toolTip  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
explicit   | 
  
 
 
  
  
      
        
          | CctwUnitCellProperty::CctwUnitCellProperty  | 
          ( | 
          QcepSettingsSaverWPtr  | 
          saver,  | 
         
        
           | 
           | 
          QObject *  | 
          parent,  | 
         
        
           | 
           | 
          const char *  | 
          name,  | 
         
        
           | 
           | 
          double  | 
          a,  | 
         
        
           | 
           | 
          double  | 
          b,  | 
         
        
           | 
           | 
          double  | 
          c,  | 
         
        
           | 
           | 
          double  | 
          alpha,  | 
         
        
           | 
           | 
          double  | 
          beta,  | 
         
        
           | 
           | 
          double  | 
          gamma,  | 
         
        
           | 
           | 
          QString  | 
          toolTip  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
explicit   | 
  
 
 
  
  
      
        
          | void CctwUnitCellProperty::fromScriptValue  | 
          ( | 
          const QScriptValue &  | 
          obj,  | 
         
        
           | 
           | 
          CctwUnitCell &  | 
          cell  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | void CctwUnitCellProperty::registerMetaTypes  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | void CctwUnitCellProperty::resetValue  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Definition at line 110 of file cctwunitcellproperty.cpp.
References defaultValue(), and setValue().
  112   if (qcepDebug(DEBUG_PROPERTIES)) {
 
  113     printMessage(tr(
"%1: CctwqtUnitCellProperty::resetValue").arg(name()));
 
CctwUnitCell defaultValue() const 
 
void setValue(CctwUnitCell val, int index)
 
 
 
 
  
  
      
        
          | void CctwUnitCellProperty::setDefaultValue  | 
          ( | 
          CctwUnitCell  | 
          val | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
  
  
      
        
          | void CctwUnitCellProperty::setValue  | 
          ( | 
          CctwUnitCell  | 
          val,  | 
         
        
           | 
           | 
          int  | 
          index  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
slot   | 
  
 
Definition at line 54 of file cctwunitcellproperty.cpp.
References toString().
Referenced by resetValue().
   57     printMessage(tr(
"%1 CctwqtUnitCellProperty::setValue(CctwUnitCell %2, int %3) [%4]")
 
   58                  .arg(name()).arg(
toString(val)).arg(index).arg(this->index()));
 
   61   if (index == this->index()) {
 
QString toString(const CctwUnitCell &mat)
 
void setValue(CctwUnitCell val, int index)
 
 
 
 
Definition at line 76 of file cctwunitcellproperty.cpp.
References m_Value, toString(), and valueChanged().
   78   QcepMutexLocker lock(__FILE__, __LINE__, &m_Mutex);
 
   80   if (qcepDebug(DEBUG_PROPERTIES)) {
 
   81     printMessage(tr(
"%1 CctwqtUnitCellProperty::setValue(CctwUnitCell %2)")
 
   87       printMessage(tr(
"%1: CctwqtUnitCellProperty::setValue(CctwUnitCell %2) [%3]")
 
   88                    .arg(name()).arg(
toString(val)).arg(index()));
 
   93     QcepSettingsSaverPtr saver(m_Saver);
 
QString toString(const CctwUnitCell &mat)
 
void valueChanged(CctwUnitCell val, int index)
 
 
 
 
  
  
      
        
          | QScriptValue CctwUnitCellProperty::toScriptValue  | 
          ( | 
          QScriptEngine *  | 
          engine,  | 
         
        
           | 
           | 
          const CctwUnitCell &  | 
          cell  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Definition at line 147 of file cctwunitcellproperty.cpp.
References CctwUnitCell::a(), CctwUnitCell::alpha(), CctwUnitCell::b(), CctwUnitCell::beta(), CctwUnitCell::c(), and CctwUnitCell::gamma().
Referenced by CctwScriptEngine::CctwScriptEngine().
  149   QScriptValue obj = engine->newArray(6);
 
  151   obj.setProperty(0, cell.
a());
 
  152   obj.setProperty(1, cell.
b());
 
  153   obj.setProperty(2, cell.
c());
 
  154   obj.setProperty(3, cell.
alpha());
 
  155   obj.setProperty(4, cell.
beta());
 
  156   obj.setProperty(5, cell.
gamma());
 
 
 
 
      
        
          | QString CctwUnitCellProperty::toString  | 
          ( | 
          const CctwUnitCell &  | 
          mat | ) | 
           | 
        
      
 
 
  
  
      
        
          | void CctwUnitCellProperty::valueChanged  | 
          ( | 
          CctwUnitCell  | 
          val,  | 
         
        
           | 
           | 
          int  | 
          index  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
signal   | 
  
 
 
The documentation for this class was generated from the following files: