Relacs Core Library  0.9.8
Public Types | Public Slots | Signals | Public Member Functions | Friends | List of all members
RePros Class Reference

#include <repros.h>

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

Public Types

typedef vector< ReProData * > ReProsList
 

Public Slots

void dialog (void)
 
void raise (void)
 
void help (void)
 
void screenshot (void)
 

Signals

void stopRePro (void)
 
void startRePro (RePro *repro, int macroaction, bool saving)
 
void noMacro (RePro *repro)
 
void reloadRePro (const string &name)
 

Public Member Functions

 RePros (RELACSWidget *rw=0, QWidget *parent=0)
 
 ~RePros (void)
 
void message (const string &msg)
 
QLabel * display (QWidget *parent=0)
 
void addMenu (QMenu *menu, bool doxydoc)
 
void assignTracesEvents (const InList &il, const EventList &el)
 
void assignTracesEvents (void)
 
int index (const string &name) const
 
int index (const RePro *repro) const
 
void raise (int index)
 
void raise (RePro *repro)
 
void reload (RePro *repro)
 
void help (RePro *repro)
 
int size (void) const
 
ReProrepro (int index) const
 
ReProrepro (const string &name) const
 
int nameIndex (const string &name) const
 
RePronameRepro (const string &name) const
 
int currentRePro (void) const
 
void activateRePro (RePro *repro, int macroaction=0)
 
void setMacro (const string &name, const string &param)
 
string macroName (void) const
 
string macroParam (void) const
 
void modeChanged (void)
 
void notifyStimulusData (void)
 
void notifyMetaData (void)
 
void setSettings (void)
 
void sessionStarted (void)
 
void sessionStopped (bool saved)
 
OptionsdialogOptions (void)
 
const ReProsListrepros () const
 

Friends

ostream & operator<< (ostream &str, const RePros &repros)
 

Detailed Description

Container handling RePros.

Author
Jan Benda

Member Typedef Documentation

typedef vector<ReProData*> ReProsList

Constructor & Destructor Documentation

RePros ( RELACSWidget rw = 0,
QWidget *  parent = 0 
)
~RePros ( void  )

Member Function Documentation

void message ( const string &  msg)
QLabel * display ( QWidget *  parent = 0)

The display for RePro messages.

Referenced by RELACSWidget::RELACSWidget().

void addMenu ( QMenu *  menu,
bool  doxydoc 
)

Add the menu from which each RePro can be started and configured to menu. See ReProData::addMenu()

References RePros::dialog(), RePros::help(), and RePros::screenshot().

Referenced by RELACSWidget::RELACSWidget().

void assignTracesEvents ( const InList il,
const EventList el 
)

Copies il and el to each RePro by copying a pointer to the data buffers only.

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

Referenced by RELACSWidget::startFirstAcquisition().

void assignTracesEvents ( void  )

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

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

int index ( const string &  name) const

The index of the RePro with class name name.

References Str::lower(), and name.

Referenced by RePros::activateRePro(), RePros::help(), RePros::raise(), RePros::reload(), ReProData::reload(), and RePros::repro().

int index ( const RePro repro) const

The index of the RePro repro.

References RePros::repro().

void raise ( int  index)

Makes the repro specified by index visible.

References RePros::index().

Referenced by ReProData::raise(), and MacroCommand::view().

void raise ( RePro repro)

Makes the repro repro visible.

References RePros::repro(), RELACSPlugin::uniqueName(), and RELACSPlugin::widget().

void reload ( RePro repro)

Reloads the plugin of the repro repro.

References RePros::index().

Referenced by MacroCommand::reload().

void help ( RePro repro)

Display the help text of the repro repro.

References RePros::index().

Referenced by MacroCommand::help().

int size ( void  ) const
inline

The number of repros.

Referenced by Macros::check(), and RELACSWidget::RELACSWidget().

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

The RePro with class name name.

References RePros::index(), and RePros::repro().

int nameIndex ( const string &  name) const

The index of the RePro with name name.

References Str::find(), Str::lower(), and name.

Referenced by RePros::nameRepro().

RePro * nameRepro ( const string &  name) const

The RePro with name name.

References RePros::nameIndex(), and RePros::repro().

Referenced by MacroCommand::check(), and Macros::reloadRePro().

int currentRePro ( void  ) const
Returns
The index of the currently active RePro.

Referenced by ReProData::reload().

void activateRePro ( RePro repro,
int  macroaction = 0 
)

Makes repro the current RePro and raises its widget.

References Macro::ExplicitFallBack, and RePros::index().

Referenced by RELACSWidget::doStopActivity(), RELACSWidget::startIdle(), and RELACSWidget::startRePro().

void setMacro ( const string &  name,
const string &  param 
)

References name.

Referenced by RELACSWidget::startedMacro().

string macroName ( void  ) const

Return the name of the currently running macro. If the RePro was called from the RePro menu then "RePro" is returned.

Referenced by RePro::macroName().

string macroParam ( void  ) const

Return the parameters of the currently running macro..

Referenced by RePro::macroParam().

void modeChanged ( void  )

Calles modeChanged() of each RePro whenever the mode is changed.

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

Referenced by RELACSWidget::setMode().

void notifyStimulusData ( void  )

Inform each RePro that some stimulus data have been changed.

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

Referenced by RELACSWidget::notifyStimulusData().

void notifyMetaData ( void  )

Inform each RePro that some meta data have been changed.

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

Referenced by RELACSWidget::notifyMetaData().

void setSettings ( void  )
void sessionStarted ( void  )

Inform each RePro that a new session is started.

References RePros::repro(), and RePro::sessionStarted().

Referenced by RELACSWidget::startSession().

void sessionStopped ( bool  saved)

Inform each RePro that the session is stopped.

References RePros::repro(), and RePro::sessionStopped().

Referenced by RELACSWidget::stopSession().

Options & dialogOptions ( void  )

The additional options needed for RePro Dialogs.

Referenced by MacroCommand::dialog(), and RELACSPlugin::reprosDialogOpts().

const ReProsList& repros ( void  ) const
inline

Referenced by MacroEditor::setRepros().

void dialog ( void  )
slot

Launches the options dialog of the current RePro.

Referenced by RePros::addMenu().

void raise ( void  )
slot

Raise the widget of the previous RePro.

void help ( void  )
slot

Displays help for the current RePro.

Referenced by RePros::addMenu().

void screenshot ( void  )
slot

Save the widget of the current RePro to a file.

Referenced by RePros::addMenu().

void stopRePro ( void  )
signal

Stop the currently running repro.

Referenced by RePros::RePros().

void startRePro ( RePro repro,
int  macroaction,
bool  saving 
)
signal

Start repro. macroaction is set to Macros::NoMacro.

Referenced by RePros::RePros().

void noMacro ( RePro repro)
signal

This is emitted right before startRePro() in order to indicate that the repro was not started from a macro.

Referenced by RePros::RePros().

void reloadRePro ( const string &  name)
signal

The repro name was reloaded.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  str,
const RePros repros 
)
friend

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