Brief description of class still missing. More...
#include <AsciiSignalFormatEditor.h>
Public Member Functions | |
AsciiSignalFormatEditor (QWidget *parent=0, Qt::WindowFlags f=0) | |
const AsciiSignalFormat & | format () const |
void | setFormat (const AsciiSignalFormat &f) |
~AsciiSignalFormatEditor () |
Brief description of class still missing.
Full description of class still missing
GeopsyGui::AsciiSignalFormatEditor::AsciiSignalFormatEditor | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Description of constructor still missing
References GeopsyGui::AsciiSignalComponentsWidget::setFormat(), GeopsyGui::AsciiSignalRulesWidget::setFormat(), GeopsyGui::AsciiSignalComponentsWidget::setReader(), and TRACE.
: Dialog(parent, f) { TRACE; _reader=new AsciiSignalFormatReader(this); connect(_reader, SIGNAL(dataChanged()), this, SLOT(readerReady())); setupUi(this); on_headerType_currentIndexChanged(); _rules=new AsciiSignalRulesWidget(this, Qt::Window); _rules->setFormat(&_format); _rules->hide(); _components=new AsciiSignalComponentsWidget(this, Qt::Window); _components->setFormat(&_format); _components->setReader(_reader); _components->hide(); // TODO: convert error display to a LogView }
const AsciiSignalFormat& GeopsyGui::AsciiSignalFormatEditor::format | ( | ) | const [inline] |
{return _format;}
void GeopsyGui::AsciiSignalFormatEditor::setFormat | ( | const AsciiSignalFormat & | f | ) |
References GeopsyCore::AbstractFileFormat::extensions(), GeopsyCore::AsciiSignalFormat::headerLineCount(), GeopsyCore::AsciiSignalFormat::headerPattern(), GeopsyCore::AsciiSignalFormat::headerType(), GeopsyCore::AbstractFileFormat::name(), GeopsyCore::AsciiSignalFormatReader::setFileName(), GeopsyGui::AsciiSignalComponentsWidget::setFormat(), GeopsyCore::AsciiSignalFormatReader::setFormat(), GeopsyGui::AsciiSignalRulesWidget::setFormat(), GeopsyCore::AsciiSignalFormat::timeFormat(), and TRACE.
{ TRACE; _format=f; nameEdit->setText(_format.name()); extensionEdit->setText(_format.extensions().join(",")); switch(_format.headerType()) { case AsciiSignalFormat::NoHeader: headerType->setCurrentIndex(0); break; case AsciiSignalFormat::FixedHeader: headerType->setCurrentIndex(1); break; case AsciiSignalFormat::HeaderPattern: headerType->setCurrentIndex(2); break; case AsciiSignalFormat::EndHeaderPattern: headerType->setCurrentIndex(3); break; } headerCount->setValue(_format.headerLineCount()); headerPattern->setText(_format.headerPattern()); timeFormat->setText(_format.timeFormat()); _rules->setFormat(&_format); _components->setFormat(&_format); _reader->setFormat(_format); _reader->setFileName(exampleEdit->text()); }