Relacs  0.9.8
Public Slots | Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
RELACSPlugin Class Reference

#include <relacsplugin.h>

Inheritance diagram for RELACSPlugin:
Inheritance graph
[legend]
Collaboration diagram for RELACSPlugin:
Collaboration graph
[legend]

Public Slots

virtual void saveDoxygenOptions (void)
 
virtual void saveWidget (void)
 
- Public Slots inherited from ConfigDialog
virtual void dialog (void)
 
virtual void help (void)
 
virtual void notifyDialog (const Options &opt)
 

Public Member Functions

 RELACSPlugin (const string &configident="", int configgroup=0, const string &name="", const string &pluginset="", const string &author="unknown", const string &version="unknown", const string &date=__DATE__)
 
virtual ~RELACSPlugin (void)
 
QWidget * widget (void)
 
void setWidget (QWidget *widget)
 
void setLayout (QLayout *layout)
 
int desktopWidth (void) const
 
int desktopHeight (void) const
 
virtual void setName (const string &name)
 
string pluginSet (void) const
 
string uniqueName (void) const
 
void setShortUniqueName (void)
 
void setLongUniqueName (void)
 
void updateUniqueName (void)
 
const Optionssettings (void) const
 
Optionssettings (void)
 
void setSettings (void)
 
virtual void modeChanged (void)
 
virtual void notifyMetaData (void)
 
virtual void notifyStimulusData (void)
 
void setRELACSWidget (RELACSWidget *rw)
 
virtual string helpFileName (void) const
 
const InListtraces (void) const
 
const InDatatrace (int index) const
 
const InDatatrace (const string &ident) const
 
int traceIndex (const string &ident) const
 
string traceNames (void) const
 
string rawTraceNames (void) const
 
const EventListevents (void) const
 
const EventDataevents (int index) const
 
const EventDataevents (const string &ident) const
 
const EventDatastimulusEvents (void) const
 
const EventDatarestartEvents (void) const
 
const EventDatarecordingEvents (void) const
 
int traceInputTrace (int trace) const
 
int traceInputTrace (const string &ident) const
 
int traceInputEvent (int trace) const
 
int traceInputEvent (const string &ident) const
 
int eventInputTrace (int event) const
 
int eventInputTrace (const string &ident) const
 
int eventInputEvent (int event) const
 
int eventInputEvent (const string &ident) const
 
double signalTime (void) const
 
double currentTime (void) const
 
double currentTimeRaw (void) const
 
void addTracesEvents (deque< InList * > &data, deque< EventList * > &events)
 
void setTracesEvents (const InList &data, const EventList &event)
 
void assignTracesEvents (const InList &data, const EventList &events)
 
void assignTracesEvents (void)
 
void updateDerivedTracesEvents (void)
 
int getData (double mintracetime=0.0, double prevsignal=-1000.0)
 
int outTracesSize (void) const
 
int outTraceIndex (const string &name) const
 
string outTraceName (int index) const
 
string outTraceNames (void) const
 
const TraceSpecoutTrace (int index) const
 
const TraceSpecoutTrace (const string &name) const
 
void setSignalDelay (int device, double delay)
 
bool acquisition (void) const
 
bool simulation (void) const
 
bool analysis (void) const
 
bool idle (void) const
 
string modeStr (void) const
 
OptionsrelacsSettings (void)
 
const OptionsrelacsSettings (void) const
 
void lockRelacsSettings (void) const
 
void unlockRelacsSettings (void) const
 
QMutex * relacsSettingsMutex (void)
 
string path (void) const
 
string addPath (const string &file) const
 
string defaultPath (void) const
 
string addDefaultPath (const string &file) const
 
bool saving (void) const
 
OptionsstimulusData (void)
 
const OptionsstimulusData (void) const
 
int stimulusDataTraceFlag (void) const
 
void lockStimulusData (void) const
 
void unlockStimulusData (void) const
 
QMutex * stimulusDataMutex (void)
 
MetaDatametaData (void)
 
const MetaDatametaData (void) const
 
void lockMetaData (void) const
 
void unlockMetaData (void) const
 
QMutex * metaDataMutex (void)
 
AllDevicesdevices (void) const
 
Devicedevice (const string &ident)
 
void updateDeviceMenu (void)
 
DigitalIOdigitalIO (const string &ident)
 
Triggertrigger (const string &ident)
 
Attenuateattenuator (const string &name)
 
Filterfilter (const string &name)
 
FilterfilterTrace (int index)
 
FilterfilterTrace (const string &name)
 
OptionsfilterOpts (const string &name)
 
OptionsfilterTraceOpts (int index)
 
OptionsfilterTraceOpts (const string &name)
 
void lockFilter (const string &name)
 
void lockFilterTrace (int index)
 
void lockFilterTrace (const string &name)
 
void unlockFilter (const string &name)
 
void unlockFilterTrace (int index)
 
void unlockFilterTrace (const string &name)
 
void autoConfigureFilter (Filter *filter, double tbegin, double tend)
 
void autoConfigureFilter (Filter *filter, double duration)
 
void autoConfigureFilter (double tbegin, double tend)
 
void autoConfigureFilter (double duration)
 
Filterdetector (const string &name)
 
FilterdetectorEvents (int index)
 
FilterdetectorEvents (const string &name)
 
OptionsdetectorOpts (const string &name)
 
OptionsdetectorEventsOpts (int index)
 
OptionsdetectorEventsOpts (const string &name)
 
void lockDetector (const string &name)
 
void lockDetectorEvents (int index)
 
void lockDetectorEvents (const string &name)
 
void unlockDetector (const string &name)
 
void unlockDetectorEvents (int index)
 
void unlockDetectorEvents (const string &name)
 
void autoConfigureDetector (Filter *detector, double tbegin, double tend)
 
void autoConfigureDetector (Filter *detector, double duration)
 
void autoConfigureDetectors (double tbegin, double tend)
 
void autoConfigureDetectors (double duration)
 
double sessionTime (void) const
 
string sessionTimeStr (void) const
 
bool sessionRunning (void) const
 
int reproCount (void) const
 
virtual void sessionStarted (void)
 
virtual void sessionStopped (bool saved)
 
bool globalKeyEvents (void)
 
void setGlobalKeyEvents (bool global=true)
 
- Public Member Functions inherited from ConfigDialog
 ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__)
 
virtual ~ConfigDialog (void)
 
string name (void) const
 
string author (void) const
 
virtual void setAuthor (const string &author)
 
string version (void) const
 
virtual void setVersion (const string &version)
 
string date (void) const
 
virtual void setDate (const string &date)
 
virtual OptWidgetdialogOptions (OptDialog *od, string *tabhotkeys=0)
 
virtual void dialogButtons (OptDialog *od)
 
virtual void dialogEmptyMessage (OptDialog *od)
 
int dialogSelectMask (void) const
 
void setDialogSelectMask (int mask)
 
void addDialogSelectMask (int mask)
 
int dialogReadOnlyMask (void) const
 
void setDialogReadOnlyMask (int mask)
 
void addDialogReadOnlyMask (int mask)
 
int dialogStyle (void) const
 
void setDialogStyle (int style)
 
void addDialogStyle (int style)
 
string dialogCaption (void) const
 
void setDialogCaption (const string &caption)
 
bool dialogHeader (void) const
 
void setDialogHeader (bool d)
 
string headerBackgroundColor (void) const
 
void setHeaderBackgroundColor (const string &color)
 
string headerForegroundColor (void) const
 
void setHeaderForegroundColor (const string &color)
 
string headerImageFile (void) const
 
void setHeaderImageFile (const string &file)
 
virtual void dialogHeaderWidget (OptDialog *od)
 
bool dialogHelp (void) const
 
void setDialogHelp (bool d)
 
string helpCaption (void) const
 
void setHelpCaption (const string &caption)
 
string helpPath (int inx=0) const
 
int helpPathes (void) const
 
void clearHelpPathes (void)
 
void setHelpPath (const string &path)
 
void addHelpPath (const string &path)
 
bool dialogOpen (void) const
 
bool helpOpen (void) const
 
QWidget * mainWidget (void)
 
virtual void setMainWidget (QWidget *widget)
 
void lock () const
 
void unlock () const
 
bool tryLock (int timeout=1)
 
QMutex * mutex (void)
 
- Public Member Functions inherited from ConfigClass
 ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0)
 
 ConfigClass (const ConfigClass &C)
 
virtual ~ConfigClass (void)
 
const string & configIdent (void) const
 
void setConfigIdent (const string &ident)
 
int configGroup (void) const
 
void setConfigGroup (int group)
 
int configMode (void) const
 
void setConfigMode (int mode)
 
void addConfigMode (int mode)
 
void delConfigMode (int mode)
 
int configSelectMask (void) const
 
void setConfigSelectMask (int mask)
 
void addConfig (void)
 
void readConfig (void)
 
virtual void readConfig (StrQueue &sq)
 
virtual void saveConfig (ofstream &str)
 
virtual int configSize (void) const
 
virtual void config (void)
 
virtual void preConfig (void)
 
- Public Member Functions inherited from Options
 Options (void)
 
 Options (const Options &o)
 
 Options (const Options &o, int flags)
 
 Options (const string &name, const string &type, int flags, int style)
 
 Options (const Str &opttxt, const string &assignment=":=", const string &separator=",;")
 
 Options (const StrQueue &sq, const string &assignment=":=")
 
 Options (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0)
 
virtual ~Options (void)
 
Optionsoperator= (const Options &o)
 
Optionsassign (const Options &o)
 
Optionsappend (const Options &o)
 
Optionsadd (const Options &o)
 
Optionsinsert (const Options &o, const string &atname="")
 
Optionsassign (const Options &o, int flags)
 
Optionscopy (Options &o, int flags)
 
Optionsappend (const Options &o, int flags)
 
Optionsadd (const Options &o, int flags)
 
Optionsinsert (const Options &o, int flags, const string &atname="")
 
Parameterassign (const string &name, const string &value)
 
OptionsparentSection (void)
 
const OptionsparentSection (void) const
 
void setParentSection (Options *parentsection)
 
void resetParents (void)
 
OptionsrootSection (void)
 
const OptionsrootSection (void) const
 
string name (void) const
 
virtual void setName (const string &name, const string &type)
 
string type (void) const
 
void setType (const string &type)
 
string include (void) const
 
void setInclude (const string &include)
 
void setInclude (const string &url, const string &name)
 
int flag (void) const
 
bool flag (int selectflag) const
 
OptionssetFlag (int flag)
 
OptionsaddFlag (int flag)
 
OptionsdelFlag (int flag)
 
OptionsclearFlag (void)
 
int style (void) const
 
OptionssetStyle (int style)
 
OptionsaddStyle (int style)
 
OptionsdelStyle (int style)
 
OptionsclearStyle (void)
 
bool checkType (int mask) const
 
Str warning (void) const
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
section_iterator sectionsBegin (void)
 
section_iterator sectionsEnd (void)
 
const_section_iterator sectionsBegin (void) const
 
const_section_iterator sectionsEnd (void) const
 
const_iterator find (const string &pattern, int level=-1) const
 
iterator find (const string &pattern, int level=-1)
 
const_iterator rfind (const string &pattern, int level=-1) const
 
iterator rfind (const string &pattern, int level=-1)
 
const_section_iterator findSection (const string &pattern, int level=-1) const
 
section_iterator findSection (const string &pattern, int level=-1)
 
const_section_iterator rfindSection (const string &pattern, int level=-1) const
 
section_iterator rfindSection (const string &pattern, int level=-1)
 
const Parameteroperator[] (int i) const
 
Parameteroperator[] (int i)
 
const Parameteroperator[] (const string &name) const
 
Parameteroperator[] (const string &name)
 
const Optionssection (int i) const
 
Optionssection (int i)
 
const Optionssection (const string &name) const
 
Optionssection (const string &name)
 
Str request (const string &name) const
 
ParametersetRequest (const string &name, const string &request)
 
Parameter::ValueType valueType (const string &name) const
 
ParametersetValueType (const string &name, Parameter::ValueType type)
 
int flags (const string &name) const
 
bool flags (const string &name, int flag) const
 
ParametersetFlags (const string &name, int flags)
 
ParameteraddFlags (const string &name, int flags)
 
ParameterdelFlags (const string &name, int flags)
 
ParameterclearFlags (const string &name)
 
bool changed (const string &name)
 
int style (const string &name) const
 
ParametersetStyle (const string &name, int style)
 
ParameteraddStyle (const string &name, int style)
 
ParameterdelStyle (const string &name, int style)
 
Str format (const string &name) const
 
ParametersetFormat (const string &name, int width=0, int prec=-1, char fmt='g')
 
ParametersetFormat (const string &name, const string &format)
 
int formatWidth (const string &name) const
 
int size (const string &name) const
 
Parameteradd (const Parameter &np)
 
Parameterinsert (const Parameter &np, const string &atname="")
 
ParameteraddText (const string &name, const string &request, const string &dflt, int flags=0, int style=0)
 
ParameteraddText (const string &name, const string &dflt="", int flags=0, int style=0)
 
ParameterinsertText (const string &name, const string &atname, const string &request, const string &dflt, int flags=0, int style=0)
 
ParameterinsertText (const string &name, const string &atname="", const string &dflt="", int flags=0, int style=0)
 
Str text (const string &name, int index, const string &dflt="", const string &format="", const string &unit="") const
 
Str text (const string &name, const string &dflt="", const string &format="", const string &unit="") const
 
void texts (const string &name, vector< string > &s, const string &format="", const string &unit="") const
 
Str allText (const string &name, const string &dflt="", const string &format="", const string &unit="", const string &separator=", ") const
 
ParametersetText (const string &name, const string &strg)
 
ParametersetText (const string &name, const Parameter &p)
 
ParameterpushText (const string &name, const string &strg)
 
Str defaultText (const string &name, const string &format="", const string &unit="") const
 
ParametersetDefaultText (const string &name, const string &dflt)
 
ParameteraddSelection (const string &name, const string &request, const string &selection, int flags=0, int style=0)
 
ParameteraddSelection (const string &name, const string &selection="", int flags=0, int style=0)
 
ParameterinsertSelection (const string &name, const string &atname, const string &request, const string &selection, int flags=0, int style=0)
 
ParameterinsertSelection (const string &name, const string &atname="", const string &selection="", int flags=0, int style=0)
 
ParameterselectText (const string &name, const string &strg, int add=0)
 
ParameterselectText (const string &name, int index)
 
int index (const string &name) const
 
int index (const string &name, const string &strg) const
 
ParameteraddNumber (const string &name, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, double dflt, const string &unit, int flags, int style=0)
 
ParameteraddNumber (const string &name, double dflt, double error, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameteraddNumber (const string &name, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &request, double dflt, double minimum, double maximum=MAXDOUBLE, double step=1.0, const string &unit="", const string &outputunit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &request, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, double dflt, const string &unit="", const string &format="", int flags=0, int style=0)
 
ParameterinsertNumber (const string &name, const string &atname, const string &unit="", const string &format="", int flags=0, int style=0)
 
double number (const string &name, double dflt=0.0, const string &unit="", int index=0) const
 
double number (const string &name, const string &unit, double dflt=0.0, int index=0) const
 
double number (const string &name, int index, double dflt=0.0, const string &unit="") const
 
double number (const string &name, int index, const string &unit, double dflt=0.0) const
 
void numbers (const string &name, vector< double > &n, const string &unit="") const
 
double error (const string &name, const string &unit="", int index=0) const
 
double error (const string &name, int index, const string &unit="") const
 
void errors (const string &name, vector< double > &n, const string &unit="") const
 
ParametersetNumber (const string &name, double number, double error, const string &unit="")
 
ParametersetNumber (const string &name, double number, const string &unit="")
 
ParameterpushNumber (const string &name, double number, double error=-1.0, const string &unit="")
 
ParameterpushNumber (const string &name, double number, const string &unit)
 
ParametersetNumber (const string &name, const Parameter &p)
 
double defaultNumber (const string &name, const string &unit="") const
 
ParametersetDefaultNumber (const string &name, double dflt, const string &unit="")
 
double minimum (const string &name, const string &unit="") const
 
double maximum (const string &name, const string &unit="") const
 
double step (const string &name, const string &unit="") const
 
ParametersetStep (const string &name, double step, const string &unit="")
 
ParametersetMinMax (const string &name, double minimum=-MAXDOUBLE, double maximum=MAXDOUBLE, double step=1.0, const string &unit="")
 
Str unit (const string &name) const
 
Str outUnit (const string &name) const
 
ParametersetUnit (const string &name, const string &internunit, const string &outunit="")
 
ParametersetOutUnit (const string &name, const string &outputunit)
 
ParameterchangeUnit (const string &name, const string &internunit)
 
ParameteraddInteger (const string &name, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0)
 
ParameteraddInteger (const string &name, long dflt, const string &unit="", int width=0, int flags=0, int style=0)
 
ParameteraddInteger (const string &name, const string &unit="")
 
ParameterinsertInteger (const string &name, const string &atname, const string &request, long dflt, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="", const string &outputunit="", int width=0, int flags=0, int style=0)
 
ParameterinsertInteger (const string &name, const string &atname, long dflt, const string &unit="", int width=0, int flags=0, int style=0)
 
ParameterinsertInteger (const string &name, const string &atname, const string &unit="", int width=0, int flags=0, int style=0)
 
long integer (const string &name, const string &unit="", long dflt=0, int index=0) const
 
long integer (const string &name, int index, long dflt=0, const string &unit="") const
 
long integer (const string &name, int index, const string &unit, long dflt=0) const
 
void integers (const string &name, vector< long > &n, const string &unit="") const
 
void integers (const string &name, vector< int > &n, const string &unit="") const
 
ParametersetInteger (const string &name, long number, long error, const string &unit="")
 
ParametersetInteger (const string &name, long number, const string &unit="")
 
ParameterpushInteger (const string &name, long number, long error, const string &unit="")
 
ParameterpushInteger (const string &name, long number, const string &unit="")
 
ParametersetInteger (const string &name, const Parameter &p)
 
long defaultInteger (const string &name, const string &unit="") const
 
ParametersetDefaultInteger (const string &name, long dflt, const string &unit="")
 
ParametersetMinMax (const string &name, long minimum=LONG_MIN, long maximum=LONG_MAX, long step=1, const string &unit="")
 
ParametersetMinMax (const string &name, int minimum, int maximum, int step=1, const string &unit="")
 
ParameteraddBoolean (const string &name, const string &request, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const char *name, const char *request, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const string &name, bool dflt, int flags=0, int style=0)
 
ParameteraddBoolean (const char *name, bool dflt, int flags=0, int style=0)
 
ParameterinsertBoolean (const string &name, const string &atname="", const string &request="", bool dflt=false, int flags=0, int style=0)
 
ParameterinsertBoolean (const string &name, const string &atname, int flags=0, int style=0)
 
bool boolean (const string &name, bool dflt=false, int index=0) const
 
bool boolean (const string &name, int index, bool dflt=false) const
 
void booleans (const string &name, vector< bool > &n) const
 
ParametersetBoolean (const string &name, bool b)
 
ParametersetBoolean (const string &name, const Parameter &p)
 
bool defaultBoolean (const string &name) const
 
ParametersetDefaultBoolean (const string &name, bool dflt)
 
ParameteraddDate (const string &name, const string &request, int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameteraddDate (const string &name, int year, int month, int day, int flags=0, int style=0)
 
ParameteraddDate (const string &name, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname="", const string &request="", int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname, int year=0, int month=0, int day=0, int flags=0, int style=0)
 
ParameterinsertDate (const string &name, const string &atname, int flags=0, int style=0)
 
const Parameterdate (const string &name, int index, int &year, int &month, int &day) const
 
ParametersetDate (const string &name, int year, int month, int day)
 
ParametersetDate (const string &name, const string &date)
 
ParametersetDate (const string &name, const struct tm &date)
 
ParametersetDate (const string &name, const time_t &time)
 
ParametersetCurrentDate (const string &name)
 
ParametersetDate (const string &name, const Parameter &p)
 
const ParameterdefaultDate (const string &name, int index, int &year, int &month, int &day) const
 
ParametersetDefaultDate (const string &name, int year, int month, int day)
 
ParameteraddTime (const string &name, const string &request, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameteraddTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0, int flags=0, int style=0)
 
ParameteraddTime (const string &name, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname="", const string &request="", int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname, int hour=0, int minutes=0, int seconds=0, int milliseconds=0, int flags=0, int style=0)
 
ParameterinsertTime (const string &name, const string &atname, int flags=0, int style=0)
 
const Parametertime (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const
 
ParametersetTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0)
 
ParametersetTime (const string &name, const string &time)
 
ParametersetTime (const string &name, const struct tm &time)
 
ParametersetTime (const string &name, const time_t &time)
 
ParametersetCurrentTime (const string &name)
 
ParametersetTime (const string &name, const Parameter &p)
 
const ParameterdefaultTime (const string &name, int index, int &hour, int &minutes, int &seconds, int &milliseconds) const
 
ParametersetDefaultTime (const string &name, int hour, int minutes, int seconds, int milliseconds=0)
 
OptionsnewSection (int level, const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const string &name, int flag, int style=0)
 
OptionsnewSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const string &name, int flag, int style=0)
 
OptionsnewSubSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const string &name, int flag, int style=0)
 
OptionsnewSubSubSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const string &name, int flag, int style=0)
 
OptionsaddSection (const string &name, const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const string &name, int flag, int style=0)
 
OptionsinsertSection (const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const string &name, const string &atpattern, int flag, int style=0)
 
OptionsnewSection (int level, const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (int level, const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsnewSubSubSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsnewSubSubSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsaddSection (const Options &opt, int selectmask, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const Options &opt, const string &name="", const string &type="", int flag=0, int style=0)
 
OptionsaddSection (const Options &opt, const string &name, int flag, int style=0)
 
OptionsinsertSection (const Options &opt, int selectmask, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const Options &opt, const string &name, const string &atpattern, const string &type="", int flag=0, int style=0)
 
OptionsinsertSection (const Options &opt, const string &name, const string &atpattern, int flag, int style=0)
 
OptionsnewSection (Options *opt, bool newparent=false)
 
OptionsaddSection (Options *opt, bool newparent=false)
 
OptionsinsertSection (Options *opt, const string &atpattern, bool newparent=false)
 
OptionsnewSections (Options *opt, bool newparent=false)
 
void endSection (void)
 
void clearSections (void)
 
void setSection (Options &opt)
 
void lastSection (void)
 
int up (void)
 
int down (void)
 
ParametersetDefault (const string &name)
 
OptionssetDefaults (int flags=0)
 
ParametersetToDefault (const string &name)
 
OptionssetToDefaults (int flags=0)
 
Optionserase (iterator p)
 
Optionserase (section_iterator p)
 
Optionserase (Options *s)
 
Optionserase (const string &pattern)
 
Optionserase (int selectflag)
 
Optionspop (void)
 
OptionspopSection (void)
 
Optionsflatten (Options *root=0)
 
Optionsclear (bool revert=true)
 
int size (void) const
 
int size (int selectflag) const
 
bool empty (void) const
 
int parameterSize (void) const
 
int parameterSize (int flags) const
 
int sectionsSize (void) const
 
int sectionsSize (int flags) const
 
bool exist (const string &pattern) const
 
bool existSection (const string &pattern) const
 
OptionssetFlags (int flags, int selectflag=0)
 
OptionsaddFlags (int flags, int selectflag=0)
 
OptionsdelFlags (int flags, int selectflag=0)
 
OptionssetValueTypeFlags (int flags, int typemask)
 
OptionsaddValueTypeFlags (int flags, int typemask)
 
OptionsdelValueTypeFlags (int flags, int typemask)
 
OptionssetStyles (int style, int selectflag=0)
 
OptionsaddStyles (int style, int selectflag=0)
 
OptionsdelStyles (int style, int selectflag=0)
 
int styleSize (int style) const
 
OptionssetValueTypeStyles (int style, int typemask)
 
OptionsaddValueTypeStyles (int style, int typemask)
 
OptionsdelValueTypeStyles (int style, int typemask)
 
int nameWidth (int selectmask=0, bool detailed=false, bool escape=false) const
 
string save (int selectmask=0, int flags=0) const
 
ostream & save (ostream &str, const string &start="", int selectmask=0, int flags=0, int width=-1) const
 
ostream & save (ostream &str, const string &textformat, const string &numberformat, const string &boolformat="%i=%b", const string &dateformat="%i=%04Y-%02m-%02d", const string &timeformat="%i=%02H:%02M:%02S", const string &sectionformat="%i", int selectmask=0, const string &start="") const
 
ostream & saveXML (ostream &str, int selectmask=0, int flags=0, int level=0, int indent=4) const
 
Optionsread (const string &opttxt, int flag, const string &assignment=":=", const string &separator=",;", int *indent=0)
 
Optionsread (const string &opttxt, const string &assignment=":=", const string &separator=",;")
 
istream & read (istream &str, int flag, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0)
 
istream & read (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", Str *line=0)
 
Optionsread (const StrQueue &sq, int flag=0, const string &assignment=":=")
 
bool read (const Parameter &p, int flag=0)
 
Optionsread (const Options &o, int flags=0, int flag=0)
 
bool readAppend (const Parameter &p)
 
OptionsreadAppend (const Options &o, int flags=0)
 
Optionsload (const Str &opttxt, const string &assignment=":=", const string &separator=",;", int *indent=0, int *indentspacing=0, int *level=0)
 
istream & load (istream &str, const string &assignment=":=", const string &comment="#", const string &stop="", string *line=0)
 
Optionsload (const StrQueue &sq, const string &assignment=":=")
 
virtual void notify (void)
 
void callNotifies (void)
 
bool setNotify (bool notify=true)
 
bool unsetNotify (void)
 
bool notifying (void) const
 

Static Public Attributes

static const int DeviceId = 0x0001
 
static const int AnalogInputId = 0x0002
 
static const int AnalogOutputId = 0x0004
 
static const int DigitalIOId = 0x0008
 
static const int TriggerId = 0x0010
 
static const int AttenuatorId = 0x0020
 
static const int AttenuateId = 0x0040
 
static const int ModelId = 0x0080
 
static const int FilterId = 0x0100
 
static const int ReProId = 0x0200
 
static const int ControlId = 0x0400
 
static const int Core = 0
 
static const int Plugins = 1
 
- Static Public Attributes inherited from Options
static const int NonDefault = Parameter::NonDefault
 
static const long TabSection = 0x04000000
 

Protected Slots

void startTheSession (void)
 
void stopTheSession (void)
 
void toggleSession (void)
 
void removeFocus (void)
 
void muteAudioMonitor (void)
 
void unmuteAudioMonitor (void)
 
virtual void customEvent (QEvent *qce)
 
void widgetDestroyed (QObject *obj)
 
- Protected Slots inherited from ConfigDialog
void notificationFromDialog (const Parameter &p)
 
virtual void dClosed (int r)
 
virtual void hClosed (int r)
 

Protected Member Functions

virtual void setPluginSet (const string &pluginset)
 
void printlog (const string &s) const
 
void warning (const string &s, double timeout=0.0)
 
void info (const string &s, double timeout=0.0)
 
void postCustomEvent (int type=0)
 
int maxVoltages (const InData &data, vector< double > &ranges) const
 
int maxValues (const InData &data, vector< double > &ranges) const
 
void setGain (const InData &data, int gainindex)
 
void adjustGain (const InData &data, double maxvalue)
 
void adjustGain (const InData &data, double minvalue, double maxvalue)
 
void adjust (const InData &data, double tbegin, double tend, double threshold)
 
void adjust (const InData &data, double duration, double threshold)
 
int activateGains (void)
 
Controlcontrol (int index)
 
Controlcontrol (const string &name)
 
OptionscontrolOpts (int index)
 
OptionscontrolOpts (const string &name)
 
void lockControl (int index)
 
void lockControl (const string &name)
 
void unlockControl (int index)
 
void unlockControl (const string &name)
 
Modelmodel (void)
 
OptionsmodelOpts (void)
 
void lockModel (void)
 
void unlockModel (void)
 
ReProsrepros (void)
 
OptionsreprosDialogOpts (void)
 
ReProrepro (int index)
 
ReProrepro (const string &name)
 
OptionsreproOpts (int index)
 
OptionsreproOpts (const string &name)
 
void lockRePro (int index)
 
void lockRePro (const string &name)
 
void unlockRePro (int index)
 
void unlockRePro (const string &name)
 
ReProcurrentRePro (void)
 
OptionscurrentReProOpts (void)
 
void lockCurrentRePro (void)
 
void unlockCurrentRePro (void)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual bool eventFilter (QObject *obj, QEvent *event)
 
void setWaitMouseCursor (void)
 
void restoreMouseCursor (void)
 
- Protected Member Functions inherited from ConfigDialog
void setDialogOpen (bool open=true)
 
void setHelpOpen (bool open=true)
 

Protected Attributes

RELACSWidgetRW
 
- Protected Attributes inherited from ConfigDialog
Options DialogOptions
 

Additional Inherited Members

- Public Types inherited from ConfigClass
enum  Action { Save =1, Dialog =2, Help =4, Menu =8 }
 
- Public Types inherited from Options
enum  SaveFlags {
  NoName = 1, NoType = 2, NoInclude = 4, SwitchNameType = 8,
  Embrace = 16, PrintRequest = 32, FirstOnly = 64, PrintType = 128,
  PrintStyle = 256, DontCloseSection = 512, AlwaysQuote = 1024, EscapeQuotes = 2048
}
 
typedef deque< Parameter >
::iterator 
iterator
 
typedef deque< Parameter >
::const_iterator 
const_iterator
 
typedef deque< Options * >
::iterator 
section_iterator
 
typedef deque< Options * >
::const_iterator 
const_section_iterator
 
- Signals inherited from ConfigDialog
void dialogAccepted (void)
 
void dialogAction (int r)
 
void dialogClosed (int r)
 
- Static Public Member Functions inherited from ConfigClass
static void setConfigureClasses (ConfigureClasses *cfg)
 
- Static Public Member Functions inherited from Options
static double floorLog10 (double v)
 
static double floor10 (double v, double scale=1.0)
 
static double ceil10 (double v, double scale=1.0)
 

Detailed Description

Adds specific functions for RELACS plugins to ConfigDialog.

Whenever the RELACSPlugin is started (a RePro whenever it is executed, all other plugins when an acquisition is started) the current values of the Options are saved and can be later on accesed via settings().

A warning meassage can be displayed in a popup window with warning() An info meassage can be displayed in a popup window with info(). Both warning() and info() write the message together with the current time to standard error as well. For only writing a message to standard error together with the current time use printlog().

All input traces and events can be accessed with traces() and events(), respectively. Single input traces and events can be accessed with trace( int ), trace( const string &), events( int ), and events( const string & ), respectively. The index of the trace or events that was filtered to obtain an input trace can be retrieved with the traceInputTrace() and traceInputEvent() functions. The index of the trace or events of which some events were detected can be retrieved with the eventInputTrace() and eventInputEvent() functions.

The gains for the input channels of the data acquisition board can be set with setGain(), adjustGain(), adjust(), activateGains(). Use these functions with care! Make sure that you do not interfere with other RELACS plugins.

The current mode() of RELACS can be acquisition(), simulation(), analysis(), or idle(). If the mode is changed, modeChanged() is called that you can reimplement according to your needs.

Whenever a recording session is started or stopped, sessionStarted() or sessionStopped() are called, respectively. You can implement these virtual functions according to your needs. Other functions related to sessions are sessionData(), sessionTime(), sessionTimeStr(), sessionRunning(), reproCount().

The meta data sections of the current recording can be accessed by metaData(). Don't forget to lock every acces to metaData() with lockMetaData() and unlockMetaData(). Whenever some of the meta data are set to new values, the virtual function notifyMetaData() is called, that you can implement according to your needs.

Same stimulation related information is stored in stimulusData(). Don't forget to lock every acces to stimulusData() with lockStimulusData() and unlockStimulusData(). Whenever some of the stimulus data are set to new values, the virtual function notifyStimulusData() is called, that you can implement according to your needs.

All other RELACS plugins can be accessed: devices(), device(), attenuator(), digitalIO(), trigger(), filter(), filterOpts(), autoConfigureFilter(), detector(), detectorOpts(), autoConfigureDetector(), control(), controlOpts(), repros(), reprosDialogOpts(), repro(), reproOpts(), currentRePro(), currentReProOpts() but should be locked with lockFilter(), unlockFilter(), lockDetector(), unlockDetector(), lockControl(), unlockControl(), lockRePro(), unlockRePro(). Note, however, that inside the RePro::main() and Control::main() functions the input data, event data, and the own data are already locked.

addPath() prepends the current directory for data storage to a filename. addPath() prepends the default directory for data storage. saving() returns true whenever voltage traces and eventlists are saved to disk (via SaveFiles).

Use update() or postCustomEvent() for thread save drawing and other interactions with the GUI.

For thread-save changes of the mouse cursor indicating some busy action use setWaitMouseCursor() and restoreMouseCursor().

You can handle key press and release events of a RELACSPlugin that has a widget by reimplementing keyPressEvent() and keyReleaseEvent(). Usually, the events are only delivered, if the corresponding widget() is visible. If you want he key event handlers to be called irrespective of the widgets visibility, then call setGlobalKeyEvents().

Some integers for identifying the type of the RELACS plugin are defined and are used by the addDevice, addAttenuate, addAttuator, addAnalogInput, addAnalogOutput, addDigitalIO, addTrigger, addModel, addFilter, addDetector, addControl, and addRePro macros.

Two groups of configuration files are defined as Core and Plugins.

Constructor & Destructor Documentation

RELACSPlugin ( const string &  configident = "",
int  configgroup = 0,
const string &  name = "",
const string &  pluginset = "",
const string &  author = "unknown",
const string &  version = "unknown",
const string &  date = __DATE__ 
)

Construct an RELACSPlugin. The identifier configident is used for identifying this class in the configuration file of group configgroup. name has to be exactly the name of the class. The class belongs to the set of plugins named pluginset. The implementation of a class derived from RELACSPlugin has a version and was written by author on date.

See Also
setConfigIdent(), setConfigGroup(), setName(), setTitle(), setAuthor(), setDate(), setVersion()

References ConfigDialog::addDialogStyle(), OptWidget::BoldSectionsStyle, ConfigDialog::name(), RELACSPlugin::RW, and RELACSPlugin::setPluginSet().

~RELACSPlugin ( void  )
virtual

Destruct the RELACSPlugin.

Member Function Documentation

QWidget * widget ( void  )
void setWidget ( QWidget *  widget)

Declare widget as the main widget of this class.

Note
call this function only once in the constructor.
See Also
widget(), setLayout()

References RELACSPlugin::widget(), and RELACSPlugin::widgetDestroyed().

Referenced by PlotTrace::PlotTrace(), ReProData::reload(), RePros::RePros(), and RELACSPlugin::setLayout().

void setLayout ( QLayout *  layout)

Declare layout as the main layout of this class. A container widget for the layout is created automatically.

Note
call this function only once in the constructor.
See Also
widget(), setWidget()

References RELACSPlugin::setWidget().

Referenced by DefaultSession::DefaultSession().

int desktopWidth ( void  ) const

The width in pixels of the desktop.

See Also
desktopHeight()
int desktopHeight ( void  ) const

The height in pixels of the desktop.

See Also
desktopWidth()
void setName ( const string &  name)
virtual

Set the name of the RELACSPlugin to name. Also calls updateUniqueName().

Reimplemented from ConfigDialog.

Reimplemented in Filter, Control, and RePro.

References ConfigDialog::setName(), and RELACSPlugin::updateUniqueName().

Referenced by RePro::setName(), Control::setName(), and Filter::setName().

string pluginSet ( void  ) const

The name of the plugin set the class belongs to.

Referenced by RELACSPlugin::helpFileName(), RELACSPlugin::saveDoxygenOptions(), and RELACSPlugin::setLongUniqueName().

string uniqueName ( void  ) const

A unique name of the class (either "name()" or "name()[pluginSet()]" ).

Referenced by Control::addActions(), ReProData::addMenu(), MacroCommand::check(), RELACSPlugin::customEvent(), RELACSPlugin::printlog(), RePros::raise(), and ReProData::reload().

void setShortUniqueName ( void  )

Set the unique name of the class to its name() (default).

References ConfigDialog::name().

Referenced by RELACSPlugin::updateUniqueName().

void setLongUniqueName ( void  )

Set the unique name of the class to "name()[pluginSet()]".

References ConfigDialog::name(), and RELACSPlugin::pluginSet().

Referenced by RELACSPlugin::updateUniqueName().

void updateUniqueName ( void  )

Updat the unique name of the class to a new name().

References RELACSPlugin::setLongUniqueName(), and RELACSPlugin::setShortUniqueName().

Referenced by RELACSPlugin::setName().

const Options & settings ( void  ) const
Returns
the plugin's options with the values at the time where the RELACSPlugin was started (a RePro whenever it was executed, all other plugins when an acquisition was started). The settings name is set to "Settings", its type is empty.
See Also
setSettings()
Options & settings ( void  )
Returns
the plugin's options with the values at the time where the RELACSPlugin was started (a RePro whenever it was executed, all other plugins when an acquisition was started). The settings name is set to "Settings", its type is empty.
See Also
setSettings()
void setSettings ( void  )

Copy the plugin's current Options to its settings().

References ConfigDialog::setName().

Referenced by RePros::setSettings().

void modeChanged ( void  )
virtual

Called whenever the acquisition mode is changed. The new mode() of RELACS can be acquisition(), simulation(), analysis(), or idle(). Reimplement this functions according to your needs.

Referenced by RePros::modeChanged(), and RELACSWidget::setMode().

void notifyMetaData ( void  )
virtual

This function is called whenever some values of meta data have been changed. Implement this function if the plugin needs to react to this. The meta data mutex is already locked when this function is entered.

Referenced by RePros::notifyMetaData(), and RELACSWidget::notifyMetaData().

void notifyStimulusData ( void  )
virtual

This function is called whenever some values of the stimulus data have been changed. Implement this function if the plugin needs to react to this. The stimulus data mutex is already locked when this function is entered.

Referenced by RePros::notifyStimulusData(), and RELACSWidget::notifyStimulusData().

void setRELACSWidget ( RELACSWidget rw)
string helpFileName ( void  ) const
virtual
Returns
the name of the file to be displayed in the help dialog. This implementation returns pluginSet() + '-' + name() + ".html".

Reimplemented from ConfigDialog.

References ConfigDialog::name(), and RELACSPlugin::pluginSet().

void setPluginSet ( const string &  pluginset)
protectedvirtual

Set the name of the plugin set the class belongs to to pluginset.

Referenced by RELACSPlugin::RELACSPlugin().

void printlog ( const string &  s) const
protected

Write the string s to standard error. The current time and the name of the plugin is written in front of s. Use this function instead of writing to cerr directly.

References RELACSWidget::printlog(), RELACSPlugin::RW, and RELACSPlugin::uniqueName().

Referenced by PlotTrace::customEvent(), RELACSPlugin::info(), PlotTrace::print(), and RELACSPlugin::warning().

void warning ( const string &  s,
double  timeout = 0.0 
)
protected

Opens a warning window with the message s. The message together with the current time and the name of the plugin is also written to standard error as a warning. If timeout is greater than zero, the message window is closed automatically after timeout seconds. Can be called directly from a non GUI thread.

References Str::eraseMarkup(), and RELACSPlugin::printlog().

void info ( const string &  s,
double  timeout = 0.0 
)
protected

Opens an info window with the message s. The message together with the current time and the name of the plugin is also written to standard error. If timeout is greater than zero, the message window is closed automatically after timeout seconds. Can be called directly from a non GUI thread.

References Str::eraseMarkup(), and RELACSPlugin::printlog().

Referenced by RELACSPlugin::saveWidget().

void postCustomEvent ( int  type = 0)
protected

Post a custom event for thread save manipulations of the GUI. This is just a shortcut for

QApplication::postEvent( this, new QCustomEvent( QEvent::Type( QEvent::User+type ) ) );

For your own events use values greater than 10 for type. To handle posted events, reimplement customEvent( QEvent* ). Don't forget to call RELACSPlugin::customEvent() from your reimplemented customEvent(). If, for example, you want to hide a widget, you call

Then you reimplement customEvent() like this:

void MyPlugin::customEvent( QEvent *qce )
{
if ( qce->type() == QEvent::User+10 ) {
// hide the widget here
}
else
}
See Also
customEvent()

Referenced by RePro::disable(), RePro::enable(), RELACSPlugin::restoreMouseCursor(), PlotTrace::setPlotContinuous(), PlotTrace::setPlotOn(), PlotTrace::setPlotSignal(), RELACSPlugin::setWaitMouseCursor(), and RELACSPlugin::updateDeviceMenu().

const InList & traces ( void  ) const
const InData & trace ( int  index) const
const InData & trace ( const string &  ident) const

Return the input trace with identifier ident.

See Also
traceIndex(), events(), traceInputTrace(), traceInputEvent(), eventInputTrace(), eventInputEvent()
int traceIndex ( const string &  ident) const

Return the index of the input trace with identifier ident.

See Also
events(), traceInputTrace(), traceInputEvent(), eventInputTrace(), eventInputEvent()

References InList::index().

string traceNames ( void  ) const

Returns the names of all input traces (raw traces and filtered traces) separated by '|'. This string can be used for a text Parameter. For example, to define an option that selects an input trace:

MyPlugin::MyPlugin( void )
{
addSelection( "intrace", "Input trace", "V-1" );
...
}
void MyPlugin::preConfig( void )
{
setText( "intrace", traceNames() );
setToDefault( "intrace" );
...
}
int MyPlugin::main( void )
{
int intrace = index( "intrace" );
...
}

References InList::size().

string rawTraceNames ( void  ) const

Returns the names of all raw input traces (with their source() == 0) separated by '|'. This string can be used for a text Parameter. For example, to define an option that selects an input trace:

MyPlugin::MyPlugin( void )
{
addSelection( "intrace", "Input trace", "V-1" );
...
}
void MyPlugin::preConfig( void )
{
setText( "intrace", rawTraceNames() );
setToDefault( "intrace" );
...
}
int MyPlugin::main( void )
{
int intrace = traceIndex( text( "intrace" ) );
...
}

References InList::size().

const EventList & events ( void  ) const
const EventData & events ( int  index) const
const EventData & events ( const string &  ident) const
Returns
the events with identifier ident.
See Also
traces(), traceIndex(), traceInputTrace(), traceInputEvent(), eventInputTrace(), eventInputEvent()
const EventData & stimulusEvents ( void  ) const
Returns
the times where stimuli started.
See Also
restartEvents(), recordingEvents(), events()
const EventData & restartEvents ( void  ) const
Returns
the times where the acquisition was restarted.
See Also
stimulusEvents(), recordingEvents(), events()
const EventData & recordingEvents ( void  ) const
Returns
the times where the recordings were started.
See Also
stimulusEvents(), restartEvents(), events()
int traceInputTrace ( int  trace) const

Return the index of the input trace that was filtered to obtain input trace with index trace.

See Also
traces(), events(), traceInputTrace( const string & ), traceInputEvent(), eventInputTrace(), eventInputEvent()

References RELACSPlugin::RW, and FilterDetectors::traceInputTrace().

int traceInputTrace ( const string &  ident) const

Return the index of the input trace that was filtered to obtain input trace with identifier ident.

See Also
traces(), events(), traceInputTrace( int ), traceInputEvent(), eventInputTrace(), eventInputEvent()

References RELACSPlugin::RW, and FilterDetectors::traceInputTrace().

int traceInputEvent ( int  trace) const

Return the index of the EventData that was filtered to obtain input trace with index trace.

See Also
traces(), events(), traceInputEvent( const string & ), traceInputTrace(), eventInputTrace(), eventInputEvent()

References RELACSPlugin::RW, and FilterDetectors::traceInputEvent().

int traceInputEvent ( const string &  ident) const

Return the index of the EventData that was filtered to obtain input trace with identifier ident.

See Also
traces(), events(), traceInputEvent( int ), traceInputTrace(), eventInputTrace(), eventInputEvent()

References RELACSPlugin::RW, and FilterDetectors::traceInputEvent().

int eventInputTrace ( int  event) const

Return the index of the input trace on which the events of the EventData with index event were detected.

See Also
traces(), events(), eventInputTrace( const string & ), eventInputEvent(), traceInputTrace(), traceInputEvent()

References FilterDetectors::eventInputTrace(), and RELACSPlugin::RW.

int eventInputTrace ( const string &  ident) const

Return the index of the input trace on which the events of the EventData with identifier ident were detected.

See Also
traces(), events(), eventInputTrace( int ), eventInputEvent(), traceInputTrace(), traceInputEvent()

References FilterDetectors::eventInputTrace(), and RELACSPlugin::RW.

int eventInputEvent ( int  event) const

Return the index of the EventData on which the events of the EventData with index event were detected.

See Also
traces(), events(), eventInputEvent( const string & ), eventInputTrace(), traceInputTrace(), traceInputEvent()

References FilterDetectors::eventInputEvent(), and RELACSPlugin::RW.

int eventInputEvent ( const string &  ident) const

Return the index of the EventData on which the events of the EventData with identifier ident were detected.

See Also
traces(), events(), eventInputEvent( int ), eventInputTrace(), traceInputTrace(), traceInputEvent()

References FilterDetectors::eventInputEvent(), and RELACSPlugin::RW.

double signalTime ( void  ) const
Returns
the time of the last signal.

Referenced by PlotTrace::signalTime(), and RePro::write().

double currentTime ( void  ) const
Returns
the current recording time of the input buffers.

References InList::currentTime().

Referenced by RELACSPlugin::adjust(), RePro::sleep(), and RePro::timeStamp().

double currentTimeRaw ( void  ) const
Returns
the smallest recording time of all raw traces (source == 0).

References InList::currentTimeRaw().

Referenced by PlotTrace::currentTime().

void addTracesEvents ( deque< InList * > &  data,
deque< EventList * > &  events 
)

Add the local copies of the data buffers to data and events.

Referenced by RELACSWidget::startFirstAcquisition().

void setTracesEvents ( const InList data,
const EventList event 
)

Copies pointers to each element of data and events to this.

References InList::add(), EventList::add(), InList::clear(), and EventList::clear().

void assignTracesEvents ( const InList data,
const EventList events 
)

Copies data and events to this by copying a pointer to the data buffers only.

References InList::assign(), and EventList::assign().

Referenced by RePros::assignTracesEvents(), and RELACSWidget::startFirstAcquisition().

void assignTracesEvents ( void  )

Copies again all settings and indices from the reference traces and events to this.

References InList::assign(), and EventList::assign().

void updateDerivedTracesEvents ( void  )

Updates the indices of derived traces and events (traces with source != 0 ).

References InList::updateDerived(), and EventList::updateDerived().

int getData ( double  mintracetime = 0.0,
double  prevsignal = -1000.0 
)

Make current trace and event data available to this. If mintracetime is greater than zero getData() waits until the input traces of the currently running acquisition contain a minimum number of data elements. Returns immediately in case of errors or the acquisition was stopped.

Parameters
[in]mintracetimeIf mintracetime is greater than zero, blocks until data upto mintracetime seconds are available.
[in]prevsignalIf in addition prevsignal is greater than zero, first block until the time of the last signal is greater than prevsignal and afterwards until data until the signal time plus mintracetime are available.
Returns
1 if the input traces contain the required data, 0 if interrupted, or -1 on error.

References RELACSWidget::getData(), and RELACSPlugin::RW.

Referenced by PlotTrace::plot(), RePro::sleep(), Control::sleep(), RePro::sleepWait(), Control::waitOnData(), Control::waitOnReProFinished(), Control::waitOnReProSleep(), Control::waitOnSessionPrestop(), Control::waitOnSessionStart(), Control::waitOnSessionStop(), and RePro::write().

int maxVoltages ( const InData data,
vector< double > &  ranges 
) const
protected

The list of input ranges the DAQ board supports for the input trace data.

Parameters
[in]datathe input trace that specifies the input device, channel, and unipolar/bipolar mode.
[out]rangesthe list of available ranges specified as the maximum voltage that can beacquired. The corresponding index can be passed directly to setGain(). On failure an empty list is returned.
Returns
0 in succes, otherwise an DAQError code.

References Acquire::maxVoltages(), DaqError::NoDevice, and RELACSPlugin::RW.

int maxValues ( const InData data,
vector< double > &  ranges 
) const
protected

The list of input ranges the DAQ board supports for the input trace data.

Parameters
[in]datathe input trace that specifies the input device, channel, and unipolar/bipolar mode.
[out]rangesthe list of available ranges specified as the maximum values measured in data.unit(). The corresponding index can be passed directly to setGain(). On failure an empty list is returned.
Returns
0 in succes, otherwise an DAQError code.

References Acquire::maxValues(), DaqError::NoDevice, and RELACSPlugin::RW.

void setGain ( const InData data,
int  gainindex 
)
protected

Set the gain for input trace data to gainindex. The smallest possible gain is indexed with gainindex = 0. Higher values for gainindex correspond to increasing gains. The current value of the gain index ca be retrieved directly from data via data.gainIndex(). It depends on your hardware what gain is corresponding to gainindex. In order to activate the new gain you have to call activateGains().

See Also
adjustGain( InData, double, double ), adjustGain( InData, double ), activateGains()

References RELACSPlugin::RW, and Acquire::setGain().

void adjustGain ( const InData data,
double  maxvalue 
)
protected

Adjust the gain for input trace data such that the maximum value of maxvalue is within the input range. In order to activate the new gain you have to call activateGains().

See Also
adjustGain( InData, double, double ), adjust(), activateGains()

References Acquire::adjustGain(), InData::ident(), RELACSPlugin::RW, InData::source(), RELACSPlugin::trace(), and FilterDetectors::traceInputTrace().

Referenced by RELACSPlugin::adjust().

void adjustGain ( const InData data,
double  minvalue,
double  maxvalue 
)
protected

Increases or decreases the gain for input trace data by one step. If maxvalue is larger than the maximum possible value of the current input range times, then the gain is decreased. If minvalue is smaller than the maximum possible value of the following input range, then the gain is increased. In order to activate the new gain you have to call activateGains().

See Also
adjustGain( InData, double ), adjust(), activateGains()

References Acquire::adjustGain(), and RELACSPlugin::RW.

void adjust ( const InData data,
double  tbegin,
double  tend,
double  threshold 
)
protected

Adjust gain of analog input trace data by one step. The maximum absolute value of the trace data between time tbegin and time tend seconds is determined. If this value is greater than threshold times the maximum possible value of the current range the gain is decreased. If this value is smaller than threshold squared times the maximum possible value of the following range, then the gain is increased. In order to activate the new gain you have to call activateGains().

See Also
adjustGain( InData, double ), adjustGain( InData, double, double ), activateGains()

References RELACSPlugin::adjustGain(), relacs::max(), and CyclicSampleData< T >::maxAbs().

Referenced by RELACSPlugin::adjust().

void adjust ( const InData data,
double  duration,
double  threshold 
)
protected

Adjust the gain of trace data for the last duration seconds.

See Also
adjust()

References RELACSPlugin::adjust(), and RELACSPlugin::currentTime().

int activateGains ( void  )
protected

Activates the new gain settings for analog input traces set by adjustGain(). activateGains() assumes the data traces and events not to be locked and will write-lock the raw data.

Returns
-1 on failure.
See Also
adjustGain( InData, double ), adjustGain( InData, double, double ), adjust()

References RELACSWidget::activateGains(), and RELACSPlugin::RW.

int outTracesSize ( void  ) const

Return the number of output traces.

References Acquire::outTracesSize(), and RELACSPlugin::RW.

int outTraceIndex ( const string &  name) const

Return the index of the output trace with name name. If there isn't any trace with name name, -1 is returned.

References Acquire::outTraceIndex(), and RELACSPlugin::RW.

Referenced by RELACSPlugin::attenuator(), and StandardTraces::initStandardOutputs().

string outTraceName ( int  index) const

Return the name of the output trace with index index. If index is invalid, an empty string is returned.

References Acquire::outTraceName(), and RELACSPlugin::RW.

Referenced by StandardTraces::initStandardOutputs().

string outTraceNames ( void  ) const

Returns the names of all output traces separated by '|'. This string can be used for a text Parameter. For example, to define an option that selects an output trace:

MyPlugin::MyPlugin( void )
{
addSelection( "outtrace", "Output trace", "V-1" );
...
}
void MyPlugin::preConfig( void )
{
setText( "outtrace", outTraceNames() );
setToDefault( "outtrace" );
...
}
int MyPlugin::main( void )
{
int outtrace = index( "outtrace" );
...
}

References Acquire::outTraceName(), Acquire::outTracesSize(), and RELACSPlugin::RW.

const TraceSpec & outTrace ( int  index) const

Return the output trace with index index.

References Acquire::outTrace(), and RELACSPlugin::RW.

const TraceSpec & outTrace ( const string &  name) const

Return the output trace with name name.

References Acquire::outTrace(), and RELACSPlugin::RW.

void setSignalDelay ( int  device,
double  delay 
)

Set the delay in seconds it takes from starting analog output to the actual signal start for all channels of the analog output device device to delay.

References RELACSPlugin::RW, and Acquire::setSignalDelay().

bool acquisition ( void  ) const

True if the current working mode is to acquiring real data from a data acquisition board.

See Also
simulation(), analysis(), idle(), modeStr()

References RELACSWidget::acquisition(), and RELACSPlugin::RW.

bool simulation ( void  ) const

True if the current working mode is to simulate data using a Model.

See Also
acquisition(), analysis(), idle(), modeStr()

References RELACSPlugin::RW, and RELACSWidget::simulation().

bool analysis ( void  ) const

True if the current working mode is to reanalyse previously recorded or simulated data.

See Also
acquisition(), simulation(), idle(), modeStr()

References RELACSWidget::analysis(), and RELACSPlugin::RW.

bool idle ( void  ) const

True if the current working mode is to nothing, i.e. to wait for a selection from the user.

See Also
acquisition(), simulation(), analysis(), modeStr()

References RELACSWidget::idle(), and RELACSPlugin::RW.

string modeStr ( void  ) const

Returns a string describing the current mode.

See Also
acquisition(), simulation(), analysis(), idle()

References RELACSWidget::modeStr(), and RELACSPlugin::RW.

Options & relacsSettings ( void  )

Return general settings of RELACS.

See Also
lockRelacsSettings()

References RELACSPlugin::RW.

Referenced by PlotTrace::print(), RePro::reproPath(), RePro::reproTimeStr(), and RELACSPlugin::sessionTimeStr().

const Options & relacsSettings ( void  ) const

Return general settings of RELACS.

See Also
lockRelacsSettings()

References RELACSPlugin::RW.

void lockRelacsSettings ( void  ) const

Lock the mutex for the general settings of RELACS.

See Also
unlockRelacsSettings(), relacsSettings()

References ConfigDialog::lock(), and RELACSPlugin::RW.

Referenced by RePro::reproPath(), RePro::reproTimeStr(), and RELACSPlugin::sessionTimeStr().

void unlockRelacsSettings ( void  ) const

Unlock the mutex for the general settings of RELACS.

See Also
lockRelacsSettings(), relacsSettings()

References RELACSPlugin::RW, and ConfigDialog::unlock().

Referenced by RePro::reproPath(), RePro::reproTimeStr(), and RELACSPlugin::sessionTimeStr().

QMutex * relacsSettingsMutex ( void  )

The mutex for the general settings of RELACS.

References ConfigDialog::mutex(), and RELACSPlugin::RW.

string path ( void  ) const

The path where all data of the current session are stored.

See Also
addPath(), defaultPath()

References SaveFiles::path(), and RELACSPlugin::RW.

Referenced by PlotTrace::displayData(), and RePro::reproPath().

string addPath ( const string &  file) const

Returns file added to the base path for the current session.

See Also
path(), defaultPath()

References SaveFiles::addPath(), and RELACSPlugin::RW.

string defaultPath ( void  ) const

The default path where data are stored if no session is running.

See Also
path(), addDefaultPath()

References SaveFiles::defaultPath(), and RELACSPlugin::RW.

Referenced by PlotTrace::displayIndex().

string addDefaultPath ( const string &  file) const

Returns file added to the default path.

See Also
defaultPath(), path()

References SaveFiles::addDefaultPath(), and RELACSPlugin::RW.

bool saving ( void  ) const
Returns
true whenever voltage traes and eventlists are saved to disk via SaveFiles.

References RELACSPlugin::RW, and SaveFiles::saving().

Options & stimulusData ( void  )

The options that are stored with each stimulus in the trigger file.

Note
You have to lock and unlock usage of stimulusData() by calling lockStimulusData() and unlockStimulusData().
See Also
stimulusDataTraceFlag(), stimulusDataMutex()

References RELACSPlugin::RW.

Referenced by PlotTrace::print().

const Options & stimulusData ( void  ) const

The options that are stored with each stimulus in the trigger file.

Note
You have to lock and unlock usage of stimulusData() by calling lockStimulusData() and unlockStimulusData().
See Also
stimulusDataTraceFlag(), stimulusDataMutex()

References RELACSPlugin::RW.

int stimulusDataTraceFlag ( void  ) const

Flag that marks output traces in stimulusData().

See Also
stimulusData(), lockStimulusData()

References RELACSPlugin::RW, and SaveFiles::TraceFlag.

void lockStimulusData ( void  ) const

Lock the stimulus data mutex.

See Also
unlockStimulusData(), stimulusDataMutex(), stimulusData()

References SaveFiles::lock(), and RELACSPlugin::RW.

Referenced by PlotTrace::print().

void unlockStimulusData ( void  ) const

Unlock the stimulus data mutex.

See Also
lockStimulusData(), stimulusDataMutex(), stimulusData()

References RELACSPlugin::RW, and SaveFiles::unlock().

Referenced by PlotTrace::print().

QMutex * stimulusDataMutex ( void  )

The mutex for the stimulus data.

See Also
lockStimulusData(), stimulusData()

References SaveFiles::mutex(), and RELACSPlugin::RW.

MetaData & metaData ( void  )

Return a reference to the MetaData instance that manages all the meta data sections. MetaData is an Options, therefore, for example, you can retireve values from the meta data using something like metaData().number( "xyz" );

Note
You have to lock and unlock usage of metaData() by calling lockMetaData(), unlockMetaData().
See Also
metaDataMutex()

References RELACSPlugin::RW.

Referenced by PlotTrace::print().

const MetaData & metaData ( void  ) const

Return a const reference to the MetaData instance that manages all the meta data sections. MetaData is an Options, therefore, for example, you can retireve values from the meta data using something like metaData().number( "xyz" );

Note
You have to lock and unlock usage of metaData() by calling lockMetaData(), unlockMetaData().
See Also
metaDataMutex()

References RELACSPlugin::RW.

void lockMetaData ( void  ) const

Lock the meta data mutex.

See Also
unlockMetaData(), metaDataMutex()

References MetaData::lock(), and RELACSPlugin::RW.

Referenced by PlotTrace::print().

void unlockMetaData ( void  ) const

Unlock the meta data mutex.

See Also
lockMetaData(), metaDataMutex()

References RELACSPlugin::RW, and MetaData::unlock().

Referenced by PlotTrace::print().

QMutex * metaDataMutex ( void  )

The mutex for the meta data.

See Also
lockMetaData(), unlockMetaData()

References MetaData::mutex(), and RELACSPlugin::RW.

AllDevices * devices ( void  ) const

Return the complete device list.

References RELACSPlugin::RW.

Device * device ( const string &  ident)

Return the device with identifier ident.

References DeviceList< T, PluginID >::device(), and RELACSPlugin::RW.

void updateDeviceMenu ( void  )

If you changed the settings of an ordinary device (not an AnalogInput, AnanlogOutput, Attenuator, Attenuate) call this function in order to update the settings displayed in the device menu.

References RELACSPlugin::postCustomEvent().

DigitalIO * digitalIO ( const string &  ident)

Return the digital I/O device with identifier ident.

References DeviceList< T, PluginID >::device(), and RELACSPlugin::RW.

Trigger * trigger ( const string &  ident)

Return the trigger device with identifier ident.

References DeviceList< T, PluginID >::device(), and RELACSPlugin::RW.

Attenuate * attenuator ( const string &  name)

Return the attenuator for output trace name.

References Options::index(), Acquire::outTraceAttenuate(), RELACSPlugin::outTraceIndex(), and RELACSPlugin::RW.

Filter * filter ( const string &  name)
Filter * filterTrace ( int  index)
Filter * filterTrace ( const string &  name)

Return the filter for the trace name.

References FilterDetectors::filter(), InList::index(), and RELACSPlugin::RW.

Options & filterOpts ( const string &  name)

Return the options of the filter with name name.

References RELACSPlugin::filter().

Options & filterTraceOpts ( int  index)

Return the options of the filter for trace index.

References RELACSPlugin::filterTrace().

Options & filterTraceOpts ( const string &  name)

Return the options of the filter for trace name.

References RELACSPlugin::filterTrace().

void lockFilter ( const string &  name)

Lock the filter with name name.

References RELACSPlugin::filter(), and ConfigDialog::lock().

void lockFilterTrace ( int  index)

Lock the filter for trace index.

References RELACSPlugin::filterTrace(), and ConfigDialog::lock().

void lockFilterTrace ( const string &  name)

Lock the filter for trace name.

References RELACSPlugin::filterTrace(), and ConfigDialog::lock().

void unlockFilter ( const string &  name)

Unlock the filter with name name.

References RELACSPlugin::filter(), and ConfigDialog::unlock().

void unlockFilterTrace ( int  index)

Unlock the filter for trace index.

References RELACSPlugin::filterTrace(), and ConfigDialog::unlock().

void unlockFilterTrace ( const string &  name)

Unlock the filter for trace name.

References RELACSPlugin::filterTrace(), and ConfigDialog::unlock().

void autoConfigureFilter ( Filter filter,
double  tbegin,
double  tend 
)

Auto-configure the parameter of the filter filter on the time range from tbegin to tend.

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureFilter ( Filter filter,
double  duration 
)

Auto-configure the parameter of the filter filter on the last duration seconds of data.

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureFilter ( double  tbegin,
double  tend 
)

Auto-configure the parameter of all filter and detectors on the time range from tbegin to tend. Same function as autoConfigureDetectors( double, double )

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureFilter ( double  duration)

Auto-configure the parameter of the all filter and detectors on the last duration seconds of data. Same function as autoConfigureDetectors( double )

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

Filter * detector ( const string &  name)
Filter * detectorEvents ( int  index)
Filter * detectorEvents ( const string &  name)

Return the detector for event data name.

References FilterDetectors::detector(), EventList::index(), and RELACSPlugin::RW.

Options & detectorOpts ( const string &  name)

Return the options of the detector with name name.

References RELACSPlugin::detector().

Options & detectorEventsOpts ( int  index)

Return the options of the detector for event data index.

References RELACSPlugin::detectorEvents().

Options & detectorEventsOpts ( const string &  name)

Return the options of the detector for event data name.

References RELACSPlugin::detectorEvents().

void lockDetector ( const string &  name)

Lock the event detector with name name.

References RELACSPlugin::detector(), and ConfigDialog::lock().

void lockDetectorEvents ( int  index)

Lock the event detector for event data index.

References RELACSPlugin::detectorEvents(), and ConfigDialog::lock().

void lockDetectorEvents ( const string &  name)

Lock the event detector for event data name.

References RELACSPlugin::detectorEvents(), and ConfigDialog::lock().

void unlockDetector ( const string &  name)

Unlock the event detector with name name.

References RELACSPlugin::detector(), and ConfigDialog::unlock().

void unlockDetectorEvents ( int  index)

Unlock the event detector for event data index.

References RELACSPlugin::detectorEvents(), and ConfigDialog::unlock().

void unlockDetectorEvents ( const string &  name)

Unlock the event detector for event data name.

References RELACSPlugin::detectorEvents(), and ConfigDialog::unlock().

void autoConfigureDetector ( Filter detector,
double  tbegin,
double  tend 
)

Auto-configure the parameter of the detector detector on the time range from tbegin to tend.

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureDetector ( Filter detector,
double  duration 
)

Auto-configure the parameter of the detector detector on the last duration seconds of data.

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureDetectors ( double  tbegin,
double  tend 
)

Auto-configure the parameter of all filter and detectors on the time range from tbegin to tend. Same function as autoConfigureFilter( double, double )

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

void autoConfigureDetectors ( double  duration)

Auto-configure the parameter of the all filter and detectors on the last duration seconds of data. Same function as autoConfigureFilter( double )

References FilterDetectors::autoConfigure(), and RELACSPlugin::RW.

double sessionTime ( void  ) const

The elapsed time of the current session in seconds.

References RELACSPlugin::RW, and Session::sessionTime().

Referenced by RELACSPlugin::sessionTimeStr().

string sessionTimeStr ( void  ) const
bool sessionRunning ( void  ) const

True if a session is currently running.

References Session::running(), and RELACSPlugin::RW.

int reproCount ( void  ) const

The number of so far executed RePros of the running session.

References Session::reproCount(), and RELACSPlugin::RW.

void startTheSession ( void  )
protectedslot

Start a new session, if it is not already running, and calls the startsession - macro.

Note
This function must not be called from a non GUI thread!

References RELACSPlugin::RW, and Session::startTheSession().

void stopTheSession ( void  )
protectedslot

Stop a running session.

Note
This function must not be called from a non GUI thread!

References RELACSPlugin::RW, and Session::stopTheSession().

void toggleSession ( void  )
protectedslot

Toggles the status of the session: stops a running session or start a new session if no session is running.

Note
This function must not be called from a non GUI thread!

References RELACSPlugin::RW, and Session::toggleSession().

Referenced by DefaultSession::DefaultSession().

void removeFocus ( void  )
protectedslot

Move the focus back to the top level window. Call this function, for example, for a button that wa clicked, by connecting removeFocus() to the button's clicked() signal.

References RELACSPlugin::RW.

void sessionStarted ( void  )
virtual

This function is called whenever a new recording session is started. Implement this function to do, for example, some initialization.

Reimplemented in RePro, and DefaultSession.

Referenced by RELACSWidget::startSession().

void sessionStopped ( bool  saved)
virtual

This function is called whenever a recording session is stopped. Implement this function to do, for example, some initialization or reset. If the session was saved saved is set to true.

Reimplemented in RePro, and DefaultSession.

Referenced by RELACSWidget::stopSession().

Control * control ( int  index)
protected

Return the control with index index.

References ControlTabs::control(), and RELACSPlugin::RW.

Referenced by RELACSPlugin::controlOpts(), RELACSPlugin::lockControl(), and RELACSPlugin::unlockControl().

Control * control ( const string &  name)
protected

Return the control with name name.

References ControlTabs::control(), and RELACSPlugin::RW.

Options & controlOpts ( int  index)
protected

Return the options of the control widget with index index.

References RELACSPlugin::control().

Options & controlOpts ( const string &  name)
protected

Return the options of the control widget with name name.

References RELACSPlugin::control().

void lockControl ( int  index)
protected

Lock the control with index index.

References RELACSPlugin::control(), and ConfigDialog::lock().

void lockControl ( const string &  name)
protected

Lock the control with name name.

References RELACSPlugin::control(), and ConfigDialog::lock().

void unlockControl ( int  index)
protected

Unlock the control with index index.

References RELACSPlugin::control(), and ConfigDialog::unlock().

void unlockControl ( const string &  name)
protected

Unlock the control with name name.

References RELACSPlugin::control(), and ConfigDialog::unlock().

Model * model ( void  )
protected
Options & modelOpts ( void  )
protected

Return the options of the model.

References RELACSPlugin::model().

void lockModel ( void  )
protected

Lock the model mutex.

References ConfigDialog::lock(), and RELACSPlugin::model().

void unlockModel ( void  )
protected

Unlock the model mutex.

References RELACSPlugin::model(), and ConfigDialog::unlock().

RePros * repros ( void  )
protected

Return the list of RePros.

References RELACSPlugin::RW.

Referenced by RePro::macroName(), RePro::macroParam(), and RePro::message().

Options & reprosDialogOpts ( void  )
protected

Return the additional options for the RePros dialog.

References RePros::dialogOptions(), and RELACSPlugin::RW.

Referenced by RePro::dialog().

RePro * repro ( int  index)
protected
RePro * repro ( const string &  name)
protected

Return the RePro with name name.

References RePros::repro(), and RELACSPlugin::RW.

Options & reproOpts ( int  index)
protected

Return the options of the RePro with index index.

References RELACSPlugin::repro().

Options & reproOpts ( const string &  name)
protected

Return the options of the RePro with name name.

References RELACSPlugin::repro().

void lockRePro ( int  index)
protected

Lock the RePro with index index.

References ConfigDialog::lock(), and RELACSPlugin::repro().

void lockRePro ( const string &  name)
protected

Lock the RePro with name name.

References ConfigDialog::lock(), and RELACSPlugin::repro().

void unlockRePro ( int  index)
protected

Unlock the RePro with index index.

References RELACSPlugin::repro(), and ConfigDialog::unlock().

void unlockRePro ( const string &  name)
protected

Unlock the RePro with name name.

References RELACSPlugin::repro(), and ConfigDialog::unlock().

RePro * currentRePro ( void  )
protected
Options & currentReProOpts ( void  )
protected

Return the options of the currently running RePro.

References RELACSPlugin::currentRePro().

void lockCurrentRePro ( void  )
protected

Lock the current RePro.

References RELACSPlugin::currentRePro(), and ConfigDialog::lock().

void unlockCurrentRePro ( void  )
protected

Unlock the current RePro.

References RELACSPlugin::currentRePro(), and ConfigDialog::unlock().

void keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Reimplement this function in case you need to handle key-press events.

Note
this RELACSPlugin needs to have a widget, set by setWidget() or setLayout(), in order to have keyPressEvent() called.

Reimplemented in RePro, and PlotTrace.

Referenced by RELACSPlugin::eventFilter(), and PlotTrace::keyPressEvent().

void keyReleaseEvent ( QKeyEvent *  event)
protectedvirtual

Reimplement this function in case you need to handle key-release events.

Note
this RELACSPlugin needs to have a widget, set by setWidget() or setLayout(), in order to have keyPressEvent() called.

Reimplemented in RePro.

Referenced by RELACSPlugin::eventFilter().

bool eventFilter ( QObject *  obj,
QEvent *  event 
)
protectedvirtual

This function calls keyPressEvent() and keyReleaseEvent() by listening to the events the widget() is receiving.

Reimplemented in RePro.

References RELACSPlugin::keyPressEvent(), and RELACSPlugin::keyReleaseEvent().

Referenced by RePro::eventFilter().

void setWaitMouseCursor ( void  )
protected

Set the mouse cursor of the application for indicating busy activity in a thread-safe way.

See Also
restoreMouseCursor()

References RELACSPlugin::postCustomEvent().

void restoreMouseCursor ( void  )
protected

Restore the mouse cursor of the application in a thread-safe way.

See Also
setWaitMouseCursor()

References RELACSPlugin::postCustomEvent().

bool globalKeyEvents ( void  )
Returns
true if the key event handlers should be called irrespective of the visibility of the corresponding widget.
See Also
setGlobalKeyEvents(), keyPressEvent(), keyReleaseEvent(), setWidget()
void setGlobalKeyEvents ( bool  global = true)

Set global to true in order to make the key event handlers to be called irrespective of the visibility of the corresponding widget().

See Also
globalKeyEvents(), keyPressEvent(), keyReleaseEvent(), setWidget()
void saveDoxygenOptions ( void  )
virtualslot

Write the plugin's options to standard output in a format that can directly be used for the doxygen documentation of the plugin.

References ConfigDialog::author(), ConfigDialog::date(), ConfigDialog::name(), RELACSPlugin::pluginSet(), Options::save(), and ConfigDialog::version().

Referenced by Control::addActions(), and Model::addActions().

void saveWidget ( void  )
virtualslot

Save the plugin's widget as an png file to the current working directory. The name of the png file is the plugin's name() in lowercase.

References RELACSPlugin::info(), Str::lower(), and ConfigDialog::name().

Referenced by Control::addActions(), and Model::addActions().

void muteAudioMonitor ( void  )
protectedslot

Mute the audio monitor.

References AudioMonitor::mute(), and RELACSPlugin::RW.

void unmuteAudioMonitor ( void  )
protectedslot

Unmute the audio monitor.

References RELACSPlugin::RW, and AudioMonitor::unmute().

void customEvent ( QEvent *  qce)
protectedvirtualslot
void widgetDestroyed ( QObject *  obj)
protectedslot

Informs the plugin that the associated widget is going to be destroyed.

Referenced by RELACSPlugin::setWidget().

Member Data Documentation

const int DeviceId = 0x0001
static

The identifier for plugins derived from the Device-class.

const int AnalogInputId = 0x0002
static

The identifier for plugins derived from the AnalogInput-class.

Referenced by RELACSWidget::RELACSWidget().

const int AnalogOutputId = 0x0004
static

The identifier for plugins derived from the AnalogOutput-class.

Referenced by RELACSWidget::RELACSWidget().

const int DigitalIOId = 0x0008
static

The identifier for plugins derived from the AnalogOutput-class.

const int TriggerId = 0x0010
static

The identifier for plugins derived from the Trigger-class.

const int AttenuatorId = 0x0020
static

The identifier for plugins derived from the Attenuator-class.

Referenced by RELACSWidget::RELACSWidget().

const int AttenuateId = 0x0040
static

The identifier for plugins derived from the Attenuate-class.

const int ModelId = 0x0080
static

The identifier for plugins derived from the Model-class.

Referenced by RELACSWidget::RELACSWidget(), and RELACSWidget::~RELACSWidget().

const int FilterId = 0x0100
static

The identifier for plugins derived from the Filter-class.

Referenced by FilterDetectors::clear(), and FilterDetectors::createFilters().

const int ReProId = 0x0200
static

The identifier for plugins derived from the RePro-class.

Referenced by ReProData::reload(), RePros::RePros(), and RePros::~RePros().

const int ControlId = 0x0400
static

The identifier for plugins derived from the Control-class.

Referenced by ControlTabs::createControls(), and ControlTabs::~ControlTabs().

const int Core = 0
static

Config-File group for RELACS core classes (=0).

Referenced by MetaData::add(), RELACSWidget::RELACSWidget(), and RELACSWidget::startSession().

const int Plugins = 1
static
RELACSWidget* RW
protected

Pointer to the main RELACSWidget.

Referenced by RELACSPlugin::acquisition(), RELACSPlugin::activateGains(), RELACSPlugin::addDefaultPath(), RePro::addPath(), RELACSPlugin::addPath(), RELACSPlugin::adjustGain(), RELACSPlugin::analysis(), RELACSPlugin::attenuator(), RELACSPlugin::autoConfigureDetector(), RELACSPlugin::autoConfigureDetectors(), RELACSPlugin::autoConfigureFilter(), RELACSPlugin::control(), RELACSPlugin::currentRePro(), RELACSPlugin::customEvent(), RELACSPlugin::defaultPath(), RELACSPlugin::detector(), RELACSPlugin::detectorEvents(), RELACSPlugin::device(), RELACSPlugin::devices(), RePro::dialog(), RELACSPlugin::digitalIO(), RePro::directWrite(), PlotTrace::displayData(), PlotTrace::displayIndex(), RELACSPlugin::eventInputEvent(), RELACSPlugin::eventInputTrace(), RELACSPlugin::filter(), RELACSPlugin::filterTrace(), RELACSPlugin::getData(), RELACSPlugin::idle(), PlotTrace::init(), RePro::intensities(), RePro::keepFocus(), RePro::levels(), RELACSPlugin::lockMetaData(), RELACSPlugin::lockRelacsSettings(), RELACSPlugin::lockStimulusData(), RePro::maxIntensity(), RePro::maxLevel(), RELACSPlugin::maxValues(), RELACSPlugin::maxVoltages(), RELACSPlugin::metaData(), RELACSPlugin::metaDataMutex(), RePro::minIntensity(), RePro::minLevel(), RELACSPlugin::model(), RELACSPlugin::modeStr(), PlotTrace::moveEnd(), PlotTrace::moveLeft(), PlotTrace::moveRight(), PlotTrace::moveSignalOffsLeft(), PlotTrace::moveSignalOffsRight(), PlotTrace::moveStart(), PlotTrace::moveToSignal(), RELACSPlugin::muteAudioMonitor(), RELACSPlugin::outTrace(), RELACSPlugin::outTraceIndex(), RELACSPlugin::outTraceName(), RELACSPlugin::outTraceNames(), RELACSPlugin::outTracesSize(), RELACSPlugin::path(), RELACSPlugin::printlog(), RELACSPlugin::RELACSPlugin(), RELACSPlugin::relacsSettings(), RELACSPlugin::relacsSettingsMutex(), RELACSPlugin::removeFocus(), RELACSPlugin::repro(), RELACSPlugin::reproCount(), RELACSPlugin::repros(), RELACSPlugin::reprosDialogOpts(), RELACSPlugin::saving(), RELACSPlugin::sessionRunning(), RELACSPlugin::sessionTime(), RELACSPlugin::sessionTimeStr(), RELACSPlugin::setGain(), RELACSPlugin::setRELACSWidget(), RePro::setSaving(), RELACSPlugin::setSignalDelay(), RELACSPlugin::simulation(), RePro::sleep(), RELACSPlugin::startTheSession(), RePro::startWrite(), RELACSPlugin::stimulusData(), RELACSPlugin::stimulusDataMutex(), RELACSPlugin::stimulusDataTraceFlag(), RELACSPlugin::stopTheSession(), RePro::stopWrite(), RePro::testWrite(), PlotTrace::toggleGrid(), RELACSPlugin::toggleSession(), PlotTrace::toggleTrigger(), RELACSPlugin::traceInputEvent(), RELACSPlugin::traceInputTrace(), RePro::tracePlotContinuous(), RePro::tracePlotOff(), RePro::tracePlotOn(), RePro::tracePlotSignal(), RELACSPlugin::trigger(), RELACSPlugin::unlockMetaData(), RELACSPlugin::unlockRelacsSettings(), RELACSPlugin::unlockStimulusData(), RELACSPlugin::unmuteAudioMonitor(), PlotTrace::viewEnd(), PlotTrace::viewSignal(), PlotTrace::viewWrapped(), Control::waitOnData(), Control::waitOnReProFinished(), Control::waitOnReProSleep(), Control::waitOnSessionPrestop(), Control::waitOnSessionStart(), Control::waitOnSessionStop(), RePro::write(), RePro::writeZero(), PlotTrace::zoomIn(), and PlotTrace::zoomOut().


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