AbstractSpectrumModel Class Reference

Abstract baseclass for SpectrumModels. More...

#include <spectrummodel.h>

Inheritance diagram for AbstractSpectrumModel:

QAbstractItemModel Abstract1DSpectrumModel TwoDimSpectrumModel ClassicSpectrumModel SpectrumModel
Collaboration diagram for AbstractSpectrumModel:

Collaboration graph

List of all members.

Public Slots

virtual void saveToFile (QString)=0
 Save the spectrum to a file.
virtual void clearSpectrum ()=0
 Clear the whole spectrum.

Public Member Functions

 AbstractSpectrumModel (QObject *p)
 simple default-constructor
QModelIndex parent (const QModelIndex &) const
NSCore::NamedParameterTreeItemPointer config () const
 Access the configuration parameters.
virtual QString supportedFilters () const =0
 return the supported filters
int goodpulses () const
virtual int dimensions () const

Protected Attributes

int _goodpulses
QTimer * _changed_index_timer
QMutex _changed_index_lock
QList< QModelIndex > _changed_index
QTimer * _autosavetimer
QDateTime _mtime


int goodpulses

Private Slots

void changedIndexTimerTimeout ()
void autoSaveChanged ()
void autoSave ()

Detailed Description

Abstract baseclass for SpectrumModels.

This class provides the basic interface for SpectrumModels. That way several models can benefit from one gui.

See also:

Constructor & Destructor Documentation

AbstractSpectrumModel::AbstractSpectrumModel ( QObject p  ) 

simple default-constructor

Member Function Documentation

QModelIndex AbstractSpectrumModel::parent ( const QModelIndex &   )  const

NSCore::NamedParameterTreeItemPointer AbstractSpectrumModel::config (  )  const [inline]

Access the configuration parameters.

References _config.

virtual QString AbstractSpectrumModel::supportedFilters (  )  const [pure virtual]

return the supported filters

Implement this to return the valid file-endings your model can save. Is used in the file selection dialog.

Implemented in TwoDimSpectrumModel, SpectrumModel, and ClassicSpectrumModel.

int AbstractSpectrumModel::goodpulses (  )  const [inline]

References _goodpulses.

virtual int AbstractSpectrumModel::dimensions (  )  const [inline, virtual]

Reimplemented in TwoDimSpectrumModel.

virtual void AbstractSpectrumModel::saveToFile ( QString   )  [pure virtual, slot]

Save the spectrum to a file.

Implemented in TwoDimSpectrumModel, SpectrumModel, and ClassicSpectrumModel.

virtual void AbstractSpectrumModel::clearSpectrum (  )  [pure virtual, slot]

Clear the whole spectrum.

Implemented in TwoDimSpectrumModel, SpectrumModel, and ClassicSpectrumModel.

void AbstractSpectrumModel::changedIndexTimerTimeout (  )  [private, slot]

void AbstractSpectrumModel::autoSaveChanged (  )  [private, slot]

void AbstractSpectrumModel::autoSave (  )  [private, slot]

Member Data Documentation

Referenced by config().

QList<QModelIndex> AbstractSpectrumModel::_changed_index [protected]

QDateTime AbstractSpectrumModel::_mtime [protected]

Property Documentation

int AbstractSpectrumModel::goodpulses [read]

The documentation for this class was generated from the following file:

Generated on Tue Apr 12 02:10:10 2011 for epos by  doxygen 1.5.5