void FeatureExporter::exportItem(QTextStream &otxt, const Feature &feature) const { QStringList list; list << QString("%1").arg(feature.gene()) << QString("%1").arg(feature.x()) << QString("%1").arg(feature.y()) << QString("%1").arg(feature.count()); exportStrings(otxt, list); }
void DisassemblerView::createStringsMenu() { this->_stringsmenu = new QMenu(this); QAction* actcopystring = this->_stringsmenu->addAction(QIcon(":/action_icons/res/copy.png"), "Copy"); QAction* actcopystringonly = this->_stringsmenu->addAction(QIcon(":/action_icons/res/copy.png"), "Copy String"); this->_stringsmenu->addSeparator(); QAction* actexportcsv = this->_stringsmenu->addAction(QIcon(":/action_icons/res/export.png"), "Export as CSV"); connect(actcopystring, SIGNAL(triggered()), this, SLOT(copyString())); connect(actcopystringonly, SIGNAL(triggered()), this, SLOT(copyStringOnly())); connect(actexportcsv, SIGNAL(triggered()), this, SLOT(exportStrings())); }
void FeatureExporter::exportItem(QTextStream &otxt, const DataProxy::FeatureList &featureList) const { // prepend header if (m_detailLevel.testFlag(FeatureExporter::Comments)) { QStringList list; list << "gene_name" << "x" << "y" << "reads_count"; otxt << QString("# "); exportStrings(otxt, list); } for (const auto &feature : featureList) { exportItem(otxt, *feature); } }