FormulaEdit Class Reference

#include <FormulaEdit.h>

Collaboration diagram for FormulaEdit:

Collaboration graph
[legend]

List of all members.

Public Types

enum  FormulaEditType { Indicator, Logic }

Public Slots

void editPlotItem ()
void deletePlotItem ()
void insertPlotItem ()
void openRule ()
void includeRule ()
void slotDoubleClicked (QListBoxItem *)
void functionDialog ()

Public Member Functions

 FormulaEdit (QWidget *, int)
 ~FormulaEdit ()
void setLine (QString &)
void getText (QString &)
int getLines ()
void getVariableList (QStringList &, bool)

Protected Attributes

QTextEdit * formula
QListBox * plot
Toolbarftoolbar
Toolbarptoolbar
QStringList functionList
QStringList lineTypes
Config config
FormulaEditType type
QStringList formulaList


Detailed Description

Definition at line 32 of file FormulaEdit.h.


Member Enumeration Documentation

enum FormulaEdit::FormulaEditType

Enumerator:
Indicator 
Logic 

Definition at line 38 of file FormulaEdit.h.


Constructor & Destructor Documentation

FormulaEdit::FormulaEdit ( QWidget *  w,
int  t 
)

Definition at line 41 of file FormulaEdit.cpp.

References Toolbar::addButton(), deletePlotItem(), editPlotItem(), formula, ftoolbar, functionDialog(), Toolbar::getButton(), PlotLine::getLineTypes(), includeRule(), insertPlotItem(), lineTypes, openRule(), plot, ptoolbar, slotDoubleClicked(), type, and Toolbar::Vertical.

FormulaEdit::~FormulaEdit (  ) 

Definition at line 120 of file FormulaEdit.cpp.


Member Function Documentation

void FormulaEdit::setLine ( QString &  d  ) 

Definition at line 236 of file FormulaEdit.cpp.

References formula, and plot.

Referenced by TesterStopPage::loadCustomStopRule(), TesterRulePage::loadEditRule(), Scanner::loadRule(), openRule(), and CUSDialog::setLine().

void FormulaEdit::getText ( QString &  s  ) 

Definition at line 273 of file FormulaEdit.cpp.

References formula, and plot.

Referenced by TesterRulePage::getEditRule(), CUSDialog::getList(), TesterStopPage::loadCustomLongStop(), TesterStopPage::loadCustomShortStop(), TesterStopPage::saveCustomStopRule(), TesterRulePage::saveEditRule(), Scanner::saveRule(), and Scanner::scan().

int FormulaEdit::getLines (  ) 

Definition at line 387 of file FormulaEdit.cpp.

References formula.

Referenced by TesterStopPage::customStop(), TesterStopPage::loadCustomLongStop(), and TesterStopPage::loadCustomShortStop().

void FormulaEdit::getVariableList ( QStringList &  l,
bool  flag 
)

Definition at line 476 of file FormulaEdit.cpp.

References formula, and BarData::getInputFields().

Referenced by editPlotItem(), functionDialog(), and insertPlotItem().

void FormulaEdit::editPlotItem (  )  [slot]

Definition at line 172 of file FormulaEdit.cpp.

References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getCombo(), PrefDialog::getText(), getVariableList(), lineTypes, and plot.

Referenced by FormulaEdit(), and slotDoubleClicked().

void FormulaEdit::deletePlotItem (  )  [slot]

Definition at line 231 of file FormulaEdit.cpp.

References plot.

Referenced by FormulaEdit().

void FormulaEdit::insertPlotItem (  )  [slot]

Definition at line 124 of file FormulaEdit.cpp.

References PrefDialog::addColorItem(), PrefDialog::addComboItem(), PrefDialog::addTextItem(), PrefDialog::createPage(), PrefDialog::getColor(), PrefDialog::getCombo(), PrefDialog::getText(), getVariableList(), lineTypes, and plot.

Referenced by FormulaEdit().

void FormulaEdit::openRule (  )  [slot]

Definition at line 282 of file FormulaEdit.cpp.

References config, Config::getData(), Config::IndicatorPath, and setLine().

Referenced by FormulaEdit().

void FormulaEdit::includeRule (  )  [slot]

Definition at line 443 of file FormulaEdit.cpp.

References config, formula, Config::getData(), Config::IndicatorGroup, and Config::IndicatorPath.

Referenced by FormulaEdit().

void FormulaEdit::slotDoubleClicked ( QListBoxItem *   )  [slot]

Definition at line 382 of file FormulaEdit.cpp.

References editPlotItem().

Referenced by FormulaEdit().

void FormulaEdit::functionDialog (  )  [slot]

Definition at line 392 of file FormulaEdit.cpp.

References config, IndicatorPlugin::formatDialog(), formula, Config::getIndicatorList(), Config::getIndicatorPlugin(), IndicatorPlugin::getPluginName(), getVariableList(), and IndicatorPlugin::setFormatMethod().

Referenced by FormulaEdit().


Member Data Documentation

QTextEdit* FormulaEdit::formula [protected]

Definition at line 62 of file FormulaEdit.h.

Referenced by FormulaEdit(), functionDialog(), getLines(), getText(), getVariableList(), includeRule(), and setLine().

QListBox* FormulaEdit::plot [protected]

Definition at line 63 of file FormulaEdit.h.

Referenced by deletePlotItem(), editPlotItem(), FormulaEdit(), getText(), insertPlotItem(), and setLine().

Toolbar* FormulaEdit::ftoolbar [protected]

Definition at line 64 of file FormulaEdit.h.

Referenced by FormulaEdit().

Toolbar* FormulaEdit::ptoolbar [protected]

Definition at line 65 of file FormulaEdit.h.

Referenced by FormulaEdit().

QStringList FormulaEdit::functionList [protected]

Definition at line 66 of file FormulaEdit.h.

QStringList FormulaEdit::lineTypes [protected]

Definition at line 67 of file FormulaEdit.h.

Referenced by editPlotItem(), FormulaEdit(), and insertPlotItem().

Config FormulaEdit::config [protected]

Definition at line 68 of file FormulaEdit.h.

Referenced by functionDialog(), includeRule(), and openRule().

FormulaEditType FormulaEdit::type [protected]

Definition at line 69 of file FormulaEdit.h.

Referenced by FormulaEdit().

QStringList FormulaEdit::formulaList [protected]

Definition at line 70 of file FormulaEdit.h.


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