Relacs Core Library
0.9.8
|
#include <repros.h>
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 |
RePro * | repro (int index) const |
RePro * | repro (const string &name) const |
int | nameIndex (const string &name) const |
RePro * | nameRepro (const string &name) const |
int | currentRePro (void) const |
void | activateRePro (RePro *repro, int macroaction=0) |
void | setMacro (const string &name, const string ¶m) |
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) |
Options & | dialogOptions (void) |
const ReProsList & | repros () const |
Friends | |
ostream & | operator<< (ostream &str, const RePros &repros) |
Container handling RePros.
typedef vector<ReProData*> ReProsList |
RePros | ( | RELACSWidget * | rw = 0 , |
QWidget * | parent = 0 |
||
) |
Initializes RePros and create all available repros.
References Plugins::create(), RePro::disable(), ConfigDialog::headerImageFile(), Plugins::ident(), ConfigDialog::name(), RePros::noMacro(), Plugins::plugins(), RePros::repro(), RELACSPlugin::ReProId, RELACSPlugin::setRELACSWidget(), RELACSPlugin::setWidget(), RePros::startRePro(), RePros::stopRePro(), Plugins::type(), MessageBox::warning(), and RELACSPlugin::widget().
~RePros | ( | void | ) |
References Plugins::destroy(), name, RePros::repro(), and RELACSPlugin::ReProId.
void message | ( | const string & | msg | ) |
Displays the message msg of a RePro.
References Str::eraseMarkup(), RELACSWidget::printlog(), and RePros::repro().
Referenced by RELACSWidget::doStopActivity(), RePro::message(), and RELACSWidget::startIdle().
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().
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().
|
inline |
The number of repros.
Referenced by Macros::check(), and RELACSWidget::RELACSWidget().
RePro * repro | ( | int | index | ) | const |
The RePro with index index.
Referenced by RePros::assignTracesEvents(), Macros::check(), RePros::index(), RePros::message(), RePros::modeChanged(), RePros::nameRepro(), RePros::notifyMetaData(), RePros::notifyStimulusData(), RePros::raise(), RePros::repro(), RELACSPlugin::repro(), RePros::RePros(), RePros::sessionStarted(), RePros::sessionStopped(), RePros::setSettings(), and RePros::~RePros().
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 |
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 | ) |
Copy each RePro's Options to its RePro::settings().
References RePros::repro(), and RELACSPlugin::setSettings().
Referenced by RELACSWidget::startFirstAcquisition(), and RELACSWidget::startIdle().
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().
|
inline |
Referenced by MacroEditor::setRepros().
|
slot |
Launches the options dialog of the current RePro.
Referenced by RePros::addMenu().
|
slot |
Raise the widget of the previous RePro.
|
slot |
Displays help for the current RePro.
Referenced by RePros::addMenu().
|
slot |
Save the widget of the current RePro to a file.
Referenced by RePros::addMenu().
|
signal |
Stop the currently running repro.
Referenced by RePros::RePros().
|
signal |
Start repro. macroaction is set to Macros::NoMacro.
Referenced by RePros::RePros().
|
signal |
This is emitted right before startRePro() in order to indicate that the repro was not started from a macro.
Referenced by RePros::RePros().
|
signal |
The repro name was reloaded.
|
friend |