All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GeopsyGui::AsciiSignalFormatEditor Class Reference

Brief description of class still missing. More...

#include <AsciiSignalFormatEditor.h>

Inheritance diagram for GeopsyGui::AsciiSignalFormatEditor:
QGpGuiTools::Dialog QGpGuiTools::FrameGrabber

List of all members.

Public Member Functions

 AsciiSignalFormatEditor (QWidget *parent=0, Qt::WindowFlags f=0)
const AsciiSignalFormatformat () const
void setFormat (const AsciiSignalFormat &f)
 ~AsciiSignalFormatEditor ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

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
}

Description of destructor still missing

References TRACE.

{
  TRACE;
  delete _rules;
  delete _components;
}

Member Function Documentation

{return _format;}

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());
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines