예제 #1
0
MultipleTraces::MultipleTraces(QWidget *parent,VIModel *pObjSubject,VIFunctionalLogic *pFunObj)
    : QMainWindow(parent,Qt::WindowSystemMenuHint)
{
	uiMT.setupUi(this);
	setWindowFlags(Qt::Widget);
	//	qDebug()<<"MultipleTraces Constructor";
    m_obVImodel = pObjSubject;
    m_objFunctionLogic = pFunObj;
	m_lstMultipleTraces.clear();
	m_mapCombinations = m_obVImodel->getPinCombinations();

    //m_lstMultipleTraces = m_obVImodel->getPinCombinations()
	//m_lstMultipleTraces.sort();
	connect(uiMT.objClose,SIGNAL(clicked()),this,SLOT(closeAppMT()));
	connect(uiMT.butNext,SIGNAL(clicked()),this,SLOT(onNext()));
	connect(uiMT.butPrev,SIGNAL(clicked()),this,SLOT(onPrevious()));
	connect(uiMT.butPass,SIGNAL(clicked()),this,SLOT(onPassTraces()));
	connect(uiMT.butFail,SIGNAL(clicked()),this,SLOT(onFailTraces()));
	connect(uiMT.butALL,SIGNAL(clicked()),this,SLOT(onAllTraces()));

	m_nSelectedIndex=0;
	//m_nEndIndex=0;
	uiMT.lblCombinations->setText(QString::number(m_obVImodel->getChipDialog(4),10));
	if(m_obVImodel->getChipDialog(4) > 6)
		uiMT.lblCurrenttoTotal->setText("1 to "+ QString::number(m_obVImodel->getChipDialog(4),10));
	else
		uiMT.lblCurrenttoTotal->setText(QString::number(m_obVImodel->getChipDialog(4),10)+ " to "+ QString::number(m_obVImodel->getChipDialog(4),10));

	initializeWaveProduct();
	isPassFlag=isFailFlag=false;
	//calculateCombinationalTraces(m_obVImodel->getClipLearntFlag());
	//LoadVITraces(m_nSelectedIndex);
}
예제 #2
0
int MultipleTraces::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: onNext(); break;
        case 1: onPrevious(); break;
        case 2: closeAppMT(); break;
        case 3: onPassTraces(); break;
        case 4: onFailTraces(); break;
        case 5: onAllTraces(); break;
        default: ;
        }
        _id -= 6;
    }
    return _id;
}