#include <spectrummodel.h>
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 | |
NSCore::NamedParameterTreeItem * | _config |
int | _goodpulses |
QTimer * | _changed_index_timer |
QMutex | _changed_index_lock |
QList< QModelIndex > | _changed_index |
QTimer * | _autosavetimer |
QDateTime | _mtime |
Properties | |
int | goodpulses |
Private Slots | |
void | changedIndexTimerTimeout () |
void | autoSaveChanged () |
void | autoSave () |
This class provides the basic interface for SpectrumModels. That way several models can benefit from one gui.
AbstractSpectrumModel::AbstractSpectrumModel | ( | QObject * | p | ) |
simple default-constructor
QModelIndex AbstractSpectrumModel::parent | ( | const QModelIndex & | ) | const |
NSCore::NamedParameterTreeItemPointer AbstractSpectrumModel::config | ( | ) | const [inline] |
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] |
Referenced by config().
int AbstractSpectrumModel::_goodpulses [protected] |
Referenced by ClassicSpectrumModel::clearSpectrum(), and goodpulses().
QTimer* AbstractSpectrumModel::_changed_index_timer [protected] |
QMutex AbstractSpectrumModel::_changed_index_lock [protected] |
QList<QModelIndex> AbstractSpectrumModel::_changed_index [protected] |
QTimer* AbstractSpectrumModel::_autosavetimer [protected] |
QDateTime AbstractSpectrumModel::_mtime [protected] |
Referenced by ClassicSpectrumModel::clearSpectrum().
int AbstractSpectrumModel::goodpulses [read] |