#include <FormulaEdit.h>
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 |
Toolbar * | ftoolbar |
Toolbar * | ptoolbar |
QStringList | functionList |
QStringList | lineTypes |
Config | config |
FormulaEditType | type |
QStringList | formulaList |
Definition at line 32 of file FormulaEdit.h.
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.
void FormulaEdit::setLine | ( | QString & | d | ) |
Definition at line 236 of file FormulaEdit.cpp.
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.
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] |
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().
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] |
Toolbar* FormulaEdit::ptoolbar [protected] |
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] |
QStringList FormulaEdit::formulaList [protected] |
Definition at line 70 of file FormulaEdit.h.