Patch-clamp Relacs Plugins  0.9.8
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SetDC Class Reference

#include <setdc.h>

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

Public Member Functions

 SetDC (void)
 
virtual void preConfig (void)
 
virtual void notify (void)
 
virtual int main (void)
 
- 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
 
virtual void setName (const string &name)
 
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)
 
virtual string helpFileName (void) const
 
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)
 

Protected Slots

void setValue (double value)
 
void setValue (void)
 
void keepValue (void)
 
void resetDC (void)
 
void zeroDC (void)
 
void setStep (int index)
 
- Protected Slots inherited from ConfigDialog
void notificationFromDialog (const Parameter &p)
 
virtual void dClosed (int r)
 
virtual void hClosed (int r)
 

Protected Member Functions

void analyze (double duration)
 
virtual void keyPressEvent (QKeyEvent *e)
 
virtual void customEvent (QEvent *qce)
 
- Protected Member Functions inherited from ConfigDialog
void setDialogOpen (bool open=true)
 
void setHelpOpen (bool open=true)
 

Protected Attributes

DoubleSpinBoxEW
 
QComboBox * CW
 
QLabel * DCStepLabel
 
QLabel * CurrentUnitLabel1
 
QLabel * CurrentUnitLabel2
 
QLabel * VoltageLabel
 
QLabel * VoltageUnitLabel
 
QLabel * RateLabel
 
MultiPlot P
 
QPushButton * OKButton
 
QPushButton * CancelButton
 
QPushButton * ResetButton
 
QPushButton * ZeroButton
 
bool ShowStdev
 
bool SetValue
 
bool Finished
 
string IUnit
 
double DCAmplitude
 
double OrgDCAmplitude
 
double DCStep
 
int DCStepIndex
 
- Protected Attributes inherited from ConfigDialog
Options DialogOptions
 

Static Protected Attributes

static const int NDCSteps = 10
 
static const double DCSteps [NDCSteps] = { 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1.0 }
 

Additional Inherited Members

- Public Types inherited from ConfigClass
enum  Action
 
- Public Slots inherited from ConfigDialog
virtual void dialog (void)
 
virtual void help (void)
 
virtual void notifyDialog (const Options &opt)
 
- 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)
 

Detailed Description

[RePro] Interactively set the DC current.

Author
Jan Benda
Version
1.6 (Sep 13, 2014)
Screenshot
setdc.png
Options
  • outcurrent=Current-1: Output trace (string)
  • dcamplitudesel=to absolute value: Set DC amplitude (string)
  • dcamplitude=0nA: DC amplitude (number)
  • dcamplitudefrac=90%: Fraction of threshold (number)
  • dcamplitudedecr=0.1nA: Decrement below threshold (number)
  • interactive=false: Set dc amplitude interactively (boolean)
  • dcamplitudestep=0.001nA: Stepsize for entering dc (number)
  • showstep=true: Show stepsize widget (boolean)
  • duration=2seconds: Duration for analysis (number)
  • update=0.5seconds: Update time for analysis (number)
  • showstdev=true: Print standard deviation of voltage (boolean)
Key shortcuts
  • ALT+ArrowUp: Increase stepsize for setting the DC current
  • ALT+ArrowUp: Decrease stepsize for setting the DC current

Constructor & Destructor Documentation

SetDC ( void  )

Member Function Documentation

void preConfig ( void  )
virtual

Reimplemented from ConfigClass.

References SetDC::VoltageUnitLabel.

void notify ( void  )
virtual
int main ( void  )
virtual
void analyze ( double  duration)
protected
void keyPressEvent ( QKeyEvent *  e)
protectedvirtual
void customEvent ( QEvent *  qce)
protectedvirtual
void setValue ( double  value)
protectedslot
void setValue ( void  )
protectedslot
void keepValue ( void  )
protectedslot
void resetDC ( void  )
protectedslot
void zeroDC ( void  )
protectedslot

References SetDC::EW.

Referenced by SetDC::SetDC().

void setStep ( int  index)
protectedslot

Member Data Documentation

DoubleSpinBox* EW
protected
QComboBox* CW
protected
QLabel* DCStepLabel
protected

Referenced by SetDC::customEvent(), and SetDC::SetDC().

QLabel* CurrentUnitLabel1
protected

Referenced by SetDC::notify(), and SetDC::SetDC().

QLabel* CurrentUnitLabel2
protected
QLabel* VoltageLabel
protected

Referenced by SetDC::customEvent(), and SetDC::SetDC().

QLabel* VoltageUnitLabel
protected

Referenced by SetDC::preConfig(), and SetDC::SetDC().

QLabel* RateLabel
protected

Referenced by SetDC::customEvent(), and SetDC::SetDC().

MultiPlot P
protected
QPushButton* OKButton
protected
QPushButton* CancelButton
protected
QPushButton* ResetButton
protected
QPushButton* ZeroButton
protected
bool ShowStdev
protected
bool SetValue
protected
bool Finished
protected
string IUnit
protected

Referenced by SetDC::main(), and SetDC::notify().

double DCAmplitude
protected

Referenced by SetDC::main(), and SetDC::setValue().

double OrgDCAmplitude
protected

Referenced by SetDC::main(), and SetDC::resetDC().

double DCStep
protected
int DCStepIndex
protected
const int NDCSteps = 10
staticprotected
const double DCSteps = { 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1.0 }
staticprotected

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