string ofxRPiCameraVideoGrabber::currentStateToString() { stringstream info; info << "sharpness " << getSharpness() << endl; info << "contrast " << getContrast() << endl; info << "brightness " << getBrightness() << endl; info << "saturation " << getSaturation() << endl; info << "ISO " << getISO() << endl; info << "AutoISO " << getAutoISO() << endl; info << "DRE " << getDRE() << endl; info << "cropRectangle " << getCropRectangle() << endl; info << "zoomLevelNormalized " << getZoomLevelNormalized() << endl; info << "mirror " << getMirror() << endl; info << "rotation " << getRotation() << endl; info << "imageFilter " << getImageFilter() << endl; info << "exposurePreset " << getExposurePreset() << endl; info << "evCompensation " << getEvCompensation() << endl; info << "autoShutter " << getAutoShutter() << endl; info << "shutterSpeed " << getShutterSpeed() << endl; info << "meteringType " << getMeteringType() << endl; info << "SoftwareSaturationEnabled " << isSoftwareSaturationEnabled() << endl; info << "SoftwareSharpeningEnabled " << isSoftwareSharpeningEnabled() << endl; //OMXCameraSettings info << omxCameraSettings.toString() << endl; return info.str(); }
/* void AdjustNames::resizeEvent( QResizeEvent * event ) { int w = event->size().width(); int h = event->size().height(); BackFrame->resize(event->size()); if( w > 300 && h > 150 ) { Cancel->setGeometry(w-85,h-36,77,26); Next->setGeometry(w-168,h-36,77,26); line->setGeometry(14,h-53,w-21,16); title->setGeometry(220,21,w-299,18); instructions->setGeometry(220,h-79,w-229,18); tableWidget->setGeometry(220, 45, w-229, h-130); } } */ void AdjustNames::show() { QDialog::show(); scenarioName->setText(QString( "Scenario Name: ") + extractor->setup->scenarioName->text()); scenarioDirectory->setText(QString("Scenario Directory: ") + extractor->setup->scenarioDirectory->text()); tableWidget->clearContents(); tableWidget->setRowCount(0); tableWidget->horizontalHeaderItem(0)->setToolTip("This is the node id used by the EXata/QualNet simulator and GUI"); tableWidget->horizontalHeaderItem(1)->setToolTip("This is the name used by the HLA federate that published the entity"); tableWidget->horizontalHeaderItem(2)->setToolTip("Enter text to change the name that will be used by the EXata/QualNet simulator and GUI"); tableWidget->horizontalHeaderItem(3)->setToolTip("Enter an icon file name or browse to change the icon used by the EXata/QualNet simulator and GUI"); QAbstractItemModel* model = tableWidget->model(); SNT_HLA::NodeSet::iterator it = extractor->ns->begin(); //QFontMetrics fontMetrics = tableWidget->fontMetrics(); //int iconWidth = 0; while( it != extractor->ns->end() ) { QApplication::processEvents(); if( extractor == 0 ) break; if( (*it)->entity ) { QString name((*it)->getNodeName()); int id = (*it)->NodeId; QString iconName((*it)->getIconName().c_str()); QIcon icon(iconName); QFileInfo iconInfo(iconName); int row = tableWidget->rowCount(); tableWidget->insertRow(row); QModelIndex index = model->index(row, 1, QModelIndex()); model->setData(index, name); index = model->index(row, 2, QModelIndex()); model->setData(index, name); index = model->index(row, 0, QModelIndex()); model->setData(index, id); tableWidget->item(row, 0)->setFlags(0); tableWidget->item(row, 1)->setFlags(0); FileNameWidget* wid = new FileNameWidget("Open Icon File", extractor->exeHome+"/gui/icons", getImageFilter(),tableWidget); wid->setText(iconName); wid->setToolTip("Enter an icon file name or browse to change the icon used by the EXata/QualNet simulator and GUI"); tableWidget->setCellWidget(row, 3, wid); tableWidget->item(row,0)->setToolTip("This is the node id used by the EXata/QualNet simulator and GUI"); tableWidget->item(row,1)->setToolTip("This is the name used by the HLA federate that published the entity"); tableWidget->item(row,2)->setToolTip("Enter text to change the name that will be used by the EXata/QualNet simulator and GUI"); tableWidget->resizeColumnToContents(0); tableWidget->resizeColumnToContents(1); tableWidget->resizeColumnToContents(2); } //tableWidget->setColumnWidth(3, iconWidth); it++; } }