本文整理汇总了C++中Author::getEmail方法的典型用法代码示例。如果您正苦于以下问题:C++ Author::getEmail方法的具体用法?C++ Author::getEmail怎么用?C++ Author::getEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Author
的用法示例。
在下文中一共展示了Author::getEmail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: showModuleTab
//.........这里部分代码省略.........
}
nodeCombo->addItem(mod->getHost());
if(QString(mod->getHost()) != "localhost"){
nodeCombo->addItem("localhost");
}
ResourcePContainer resources = manager->getKnowledgeBase()->getResources();
for(ResourcePIterator itr=resources.begin(); itr!=resources.end(); itr++){
Computer* comp = dynamic_cast<Computer*>(*itr);
if(comp && !compareString(comp->getName(), "localhost")){
nodeCombo->addItem(comp->getName());
}
}
connect(nodeCombo, SIGNAL(editTextChanged(QString)), paramsSignalMapper, SLOT(map()));
connect(nodeCombo, SIGNAL(currentIndexChanged(int)), paramsSignalMapper, SLOT(map()));
paramsSignalMapper->setMapping(nodeCombo,nodeCombo);
connect(deployerCombo, SIGNAL(editTextChanged(QString)), paramsSignalMapper, SLOT(map()));
connect(deployerCombo, SIGNAL(currentIndexChanged(int)), paramsSignalMapper, SLOT(map()));
paramsSignalMapper->setMapping(deployerCombo,deployerCombo);
/*****************************/
// Populate paramters
for(int i=0;i<mod->argumentCount();i++){
Argument a = mod->getArgumentAt(i);
QTreeWidgetItem *it = new QTreeWidgetItem(modParams,QStringList() << a.getParam());
QComboBox *paramCombo = new QComboBox();
paramCombo->setEditable(true);
paramCombo->addItem(a.getValue());
if(strcmp(a.getDefault(),a.getValue()) != 0 ){
paramCombo->addItem(a.getDefault());
}
moduleProperties->setItemWidget(it,1,paramCombo);
connect(paramCombo, SIGNAL(editTextChanged(QString)), paramsSignalMapper, SLOT(map()));
connect(paramCombo, SIGNAL(currentIndexChanged(int)), paramsSignalMapper, SLOT(map()));
paramsSignalMapper->setMapping(paramCombo,paramCombo);
}
/*****************************/
moduleProperties->setItemWidget(modDeployer,1,deployerCombo);
moduleProperties->setItemWidget(modNode,1,nodeCombo);
modParams->setExpanded(true);
QTreeWidgetItem *nameItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Name" << mod->getName());
QTreeWidgetItem *versionItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Version" << mod->getVersion());
QTreeWidgetItem *descriptionItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Description" << mod->getDescription());
QTreeWidgetItem *parametersItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Parameters");
for(int i=0;i<mod->argumentCount();i++){
Argument a = mod->getArgumentAt(i);
QTreeWidgetItem *it = new QTreeWidgetItem(parametersItem,QStringList() << a.getParam() << a.getDescription());
}
QTreeWidgetItem *authorsItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Authors" );
for(int i=0;i<mod->authorCount();i++){
Author a = mod->getAuthorAt(i);
QTreeWidgetItem *it = new QTreeWidgetItem(authorsItem,QStringList() << a.getName() << a.getEmail());
}
QTreeWidgetItem *inputsItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Inputs" );
for(int i=0;i<mod->inputCount();i++){
InputData a = mod->getInputAt(i);
QTreeWidgetItem *type = new QTreeWidgetItem(inputsItem,QStringList() << "Type" << a.getName());
QTreeWidgetItem *port = new QTreeWidgetItem(type,QStringList() << "Port" << a.getPort());
QTreeWidgetItem *desc = new QTreeWidgetItem(type,QStringList() << "Description" << a.getDescription());
QTreeWidgetItem *req = new QTreeWidgetItem(type,QStringList() << "Required" << (a.isRequired() ? "yes" : "no"));
Q_UNUSED(port);
Q_UNUSED(desc);
Q_UNUSED(req);
}
QTreeWidgetItem *outputsItem = new QTreeWidgetItem(moduleDescription,QStringList() << "Outputs" );
for(int i=0;i<mod->outputCount();i++){
OutputData a = mod->getOutputAt(i); //TODO controllare
QTreeWidgetItem *type = new QTreeWidgetItem(outputsItem,QStringList() << "Type" << a.getName());
QTreeWidgetItem *port = new QTreeWidgetItem(type,QStringList() << "Port" << a.getPort());
QTreeWidgetItem *desc = new QTreeWidgetItem(type,QStringList() << "Description" << a.getDescription());
Q_UNUSED(port);
Q_UNUSED(desc);
}
moduleDescription->addTopLevelItem(nameItem);
moduleDescription->addTopLevelItem(versionItem);
moduleDescription->addTopLevelItem(descriptionItem);
moduleDescription->addTopLevelItem(parametersItem);
moduleDescription->addTopLevelItem(authorsItem);
moduleDescription->addTopLevelItem(inputsItem);
moduleDescription->addTopLevelItem(outputsItem);
connect(moduleProperties,SIGNAL(itemChanged(QTreeWidgetItem*,int)),this,SLOT(onModItemChanged(QTreeWidgetItem*,int)));
connect(moduleProperties,SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)),this,SLOT(onModItemDoubleClicked(QTreeWidgetItem*,int)));
}