Public Member Functions
ExportFileType Class Reference

#include <ExportFileType.h>

Inheritance diagram for ExportFileType:
QGpGuiTools::Dialog QGpGuiTools::FrameGrabber

List of all members.

Public Member Functions

 ExportFileType (QWidget *parent=0, Qt::WFlags fl=0)
SignalFileFormat format () const
int maximumSignalsPerFile () const
void setFormatList (bool addTableFormat)
bool useOriginalBaseName () const

Constructor & Destructor Documentation

ExportFileType::ExportFileType ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

References TRACE.

    : Dialog(parent, fl)
{
  TRACE;
  setupUi(this);
}

Member Function Documentation

References TRACE.

Referenced by GeopsyMainWindow::exportSignal(), and setFormatList().

{
  TRACE;
  return _formats.at(type->currentIndex()).second;
}

References TRACE.

Referenced by GeopsyMainWindow::exportSignal().

{
  TRACE;
  return maximumSignalsPerFileBut->isChecked() ? maximumSignalsPerFileEdit->value() : 0;
}
void ExportFileType::setFormatList ( bool  addTableFormat)

References GeopsyCore::SignalFileFormat::captionFilter(), format(), GeopsyCore::SignalFileFormat::isReadOnly(), QGpCoreTools::tr(), and TRACE.

Referenced by GeopsyMainWindow::exportSignal().

{
  TRACE;
  SignalFileFormat format;
  for(int i=1; i<SignalFileFormat::FormatCount; i++) {
    format=(SignalFileFormat::Format) i;
    if(!format.isReadOnly()) {
      _formats.append(QPair<QString, SignalFileFormat>(format.captionFilter(), format));
    }
  }
  if(addTableFormat) {
    _formats.append(QPair<QString, SignalFileFormat>(tr("Table"), SignalFileFormat::Temporary));
  }
  qSort(_formats);
  int n=_formats.count();
  for(int i=0; i<n; i++) {
    type->addItem(_formats.at(i).first);
  }
}

References TRACE.

Referenced by GeopsyMainWindow::exportSignal().

{
  TRACE;
  return useOriginalBaseNameBut->isChecked();
}

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