本文整理汇总了C++中TTrigger::setIsActive方法的典型用法代码示例。如果您正苦于以下问题:C++ TTrigger::setIsActive方法的具体用法?C++ TTrigger::setIsActive怎么用?C++ TTrigger::setIsActive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TTrigger
的用法示例。
在下文中一共展示了TTrigger::setIsActive方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: removeAllTempTriggers
void TriggerUnit::removeAllTempTriggers()
{
typedef list<TTrigger *>::const_iterator I;
for( I it = mTriggerRootNodeList.begin(); it != mTriggerRootNodeList.end(); it++)
{
TTrigger * pChild = *it;
if( pChild->isTempTrigger() )
{
pChild->setIsActive( false );
markCleanup( pChild );
}
}
}
示例2: readTriggerGroup
void XMLimport::readTriggerGroup( TTrigger * pParent )
{
TTrigger * pT;
if( pParent )
{
pT = new TTrigger( pParent, mpHost );
}
else
{
pT = new TTrigger( 0, mpHost );
}
if (module){
pT->mModuleMember = true;
}
mpHost->getTriggerUnit()->registerTrigger( pT );
pT->setIsActive( (attributes().value("isActive") == "yes" ) );
pT->mIsFolder = ( attributes().value("isFolder") == "yes" );
pT->mIsTempTrigger = ( attributes().value("isTempTrigger") == "yes" );
pT->mIsMultiline = ( attributes().value("isMultiline") == "yes" );
pT->mPerlSlashGOption = ( attributes().value("isPerlSlashGOption") == "yes" );
pT->mIsColorizerTrigger = ( attributes().value("isColorizerTrigger") == "yes" );
pT->mFilterTrigger = ( attributes().value("isFilterTrigger") == "yes" );
pT->mSoundTrigger = ( attributes().value("isSoundTrigger") == "yes" );
pT->mColorTrigger = ( attributes().value("isColorTrigger") == "yes" );
pT->mColorTriggerBg = ( attributes().value("isColorTriggerBg") == "yes" );
pT->mColorTriggerFg = ( attributes().value("isColorTriggerFg") == "yes" );
while( ! atEnd() )
{
readNext();
//qDebug()<<"[INFO] element:"<<name().toString()<<" text:"<<text().toString();
if( isEndElement() ) break;
if( isStartElement() )
{
if( name() == "name" )
{
pT->setName( readElementText() );
continue;
}
else if( name() == "script")
{
pT->mScript = readElementText();
continue;
}
else if( name() == "packageName")
{
pT->mPackageName = readElementText();
continue;
}
else if( name() == "triggerType" )
{
pT->mTriggerType = readElementText().toInt();
continue;
}
else if( name() == "conditonLineDelta" )
{
pT->mConditionLineDelta = readElementText().toInt();
continue;
}
else if( name() == "mStayOpen" )
{
pT->mStayOpen = readElementText().toInt();
continue;
}
else if( name() == "mCommand" )
{
pT->mCommand = readElementText();
continue;
}
else if( name() == "mFgColor")
{
pT->mFgColor.setNamedColor( readElementText() );
continue;
}
else if( name() == "mBgColor")
{
pT->mBgColor.setNamedColor( readElementText() );
continue;
}
else if( name() == "colorTriggerFgColor")
{
pT->mColorTriggerFgColor.setNamedColor( readElementText() );
continue;
}
else if( name() == "colorTriggerBgColor")
{
pT->mColorTriggerBgColor.setNamedColor( readElementText() );
continue;
}
else if( name() == "mSoundFile" )
{
pT->mSoundFile = readElementText();
continue;
}
//.........这里部分代码省略.........