Exemple #1
0
/*
    Constructor with known variable
*/
QEPeriodic::QEPeriodic( const QString &variableNameIn, QWidget *parent ) : QFrame( parent ), QEWidget( this ) {
    setVariableName( variableNameIn, 0 );

    setup();

    activate();
}
Exemple #2
0
//==============================================================================
// Drag and Drop
void QEPeriodic::setDrop( QVariant drop )
{
    QStringList PVs = drop.toString().split( ' ' );
    for( int i = 0; i < PVs.size() && i < QEPERIODIC_NUM_VARIABLES; i++ )
    {
        setVariableName( PVs[i], i );
        establishConnection( i );
    }
}
Exemple #3
0
void
OperandDataBaseType::
setVariableNameList ( const list<string> & X )
   {
  // This interface is to support the addition of a list of variables into the data base
  // this occurs when we add all the variables represented in a synthesized attribute
  // to a new attribute (as part of the the assemble process).

#if 0
     printf ("In OperandDataBaseType::setVariableNameList(): Now add the information in X to the current database \n");
     printf ("... X names -------------  (list size = %d): %s \n",X.size(),StringUtility::listToString(X).c_str());
  // printf ("... variableNameList names (list size = %d): %s \n",variableNameList.size(),StringUtility::listToString(variableNameList).c_str());
#endif

     bool appendedNewArrayOperand = FALSE;
     list<string>::const_iterator i;
     for (i = X.begin(); i != X.end(); i++)
        {
       // printf ("Looping through variable names \n");
#if 1
       // newer implementation (shorter)
          setVariableName(*i);
#else
          appendedNewArrayOperand = ArrayOperandDataBase::contains(arrayOperandList,*i);

          if ( appendedNewArrayOperand == FALSE )
             {
               printf ("append database info to array operand already present (name = %s) \n",(*i).c_str());
               arrayOperandList.push_back( ArrayOperandDataBase(*i) );
             }
            else
             {
               printf ("Variable already exists (name = %s) \n",(*i).c_str());
             }

          ROSE_ASSERT (arrayOperandList.size() > 0);
#endif
        }

#if 0
  // variableNameList = X;

  // This steals the data out of the X list (X.size() == 0 afterwards)
     variableNameList.merge(X);

     variableNameList.sort();
     variableNameList.unique();
#endif

#if 0
     printf ("Exiting in OperandDataBaseType::setVariableNameList() \n");
     ROSE_ABORT();
#endif
   }
Exemple #4
0
void
OperandDataBaseType::
setVariableNameList ( const list<string> & X )
   {
  // This interface is to support the addition of a list of variables into the data base this occurs
  // when we add all the variables represented in a synthesized attribute to a new attribute (as
  // part of the the assemble process).

#if 0
     printf ("In OperandDataBaseType::setVariableNameList(): Now add the information in X to the current database \n");
     printf ("... X names -------------  (list size = %d): %s \n",X.size(),StringUtility::listToString(X).c_str());
  // printf ("... variableNameList names (list size = %d): %s \n",variableNameList.size(),StringUtility::listToString(variableNameList).c_str());
#endif

     bool appendedNewArrayOperand = FALSE;
     list<string>::const_iterator i;
     for (i = X.begin(); i != X.end(); i++)
        {
       // printf ("Looping through variable names \n");
          setVariableName(*i);
        }
   }
/*
    Create a CA aware spin box with a variable name already known
*/
QESpinBox::QESpinBox( const QString &variableNameIn, QWidget *parent ) : QDoubleSpinBox( parent ), QEWidget( this ) {
    setVariableName( variableNameIn, 0 );

    setup();

}
void QESpinBox::paste (QVariant s)
{
    setVariableName( s.toString(), 0 );
    establishConnection( 0 );
}
//==============================================================================
// Drag drop
void QESpinBox::setDrop( QVariant drop )
{
    setVariableName( drop.toString(), 0 );
    establishConnection( 0 );
}
Exemple #8
0
/*!
    Constructor with known variable
*/
QCaLineEdit::QCaLineEdit( const QString& variableNameIn, QWidget *parent ) : QLineEdit( parent ), QCaWidget() {
    setVariableName( variableNameIn, 0 );

    setup();
}
Exemple #9
0
// Access functions for variableName and variableNameSubstitutions
// variable substitutions Example: SECTOR=01 will result in any occurance of $SECTOR in variable name being replaced with 01.
void QCaLineEdit::setVariableNameAndSubstitutions( QString variableNameIn, QString variableNameSubstitutionsIn, unsigned int variableIndex )
{
    setVariableNameSubstitutions( variableNameSubstitutionsIn );
    setVariableName( variableNameIn, variableIndex );
    establishConnection( variableIndex );
}
Exemple #10
0
/*
    Constructor with known variable
*/
QELineEdit::QELineEdit( const QString& variableNameIn, QWidget *parent ) : QEGenericEdit( variableNameIn, parent )
{
    setup();
    setVariableName( variableNameIn, 0 );
    activate();
}
/*
    Constructor with known variable
*/
QESlider::QESlider( const QString &variableNameIn, QWidget *parent ) : QSlider( parent ), QEWidget( this ) {

    setup();
    setVariableName( variableNameIn, 0 );

}
Exemple #12
0
/*!
    Create a CA aware spin box with a variable name already known
*/
QCaSpinBox::QCaSpinBox( const QString &variableNameIn, QWidget *parent ) : QSpinBox( parent ), QCaWidget() {
    setVariableName( variableNameIn, 0 );

    setup();

}
Exemple #13
0
//==============================================================================
// Drag drop
//
void QEGenericEdit::setDrop( QVariant drop )
{
    setVariableName( drop.toString(), 0 );
    establishConnection( 0 );
}
Exemple #14
0
/*
    Constructor with known variable
*/
QELabel::QELabel( const QString &variableNameIn, QWidget *parent ) : QLabel( parent ), QEWidget( this )  {
    setup();
    setVariableName( variableNameIn, 0 );
    activate();
}