#include <CSV.h>
Public Slots | |
void | parse () |
void | reloadTimerChanged (int) |
void | dateRangeChanged (bool) |
void | newRule () |
void | editRule () |
void | deleteRule () |
void | help () |
Public Member Functions | |
CSV () | |
virtual | ~CSV () |
void | update () |
void | setDelimiter (QString &) |
void | getDate (QString &, QString &, Setting &, QDate &) |
void | getTime (QString &, QString &) |
bool | openDb (QString &, QString &, QString &, bool) |
void | loadSettings () |
void | saveSettings () |
void | getRule (Setting &) |
void | cancelUpdate () |
void | createMainPage () |
void | updateRules () |
Private Attributes | |
Config | config |
QString | delim |
FuturesData | fd |
DbPlugin | db |
QString | symbolOveride |
QString | futuresSymbol |
QString | futuresMonth |
bool | cancelFlag |
QString | lastPath |
QTimer * | reloadTimer |
QString | ruleDir |
FileButton * | file |
QLineEdit * | symbol |
QComboBox * | ruleCombo |
QDateEdit * | sdate |
QDateEdit * | edate |
QCheckBox * | dateRange |
QSpinBox * | minutes |
Definition at line 39 of file CSV.h.
CSV::CSV | ( | ) |
Definition at line 41 of file CSV.cpp.
References cancelFlag, config, createMainPage(), delim, Config::getData(), help(), QuotePlugin::helpFile, loadSettings(), parse(), QuotePlugin::pluginName, Config::QuotePluginStorage, reloadTimer, ruleDir, and updateRules().
CSV::~CSV | ( | ) | [virtual] |
void CSV::update | ( | ) | [virtual] |
Reimplemented from QuotePlugin.
Definition at line 78 of file CSV.cpp.
References minutes, parse(), and reloadTimer.
void CSV::setDelimiter | ( | QString & | d | ) |
void CSV::getDate | ( | QString & | k, | |
QString & | d, | |||
Setting & | r, | |||
QDate & | date | |||
) |
Definition at line 552 of file CSV.cpp.
References getTime(), and Setting::setData().
Referenced by parse().
void CSV::getTime | ( | QString & | d, | |
QString & | time | |||
) |
bool CSV::openDb | ( | QString & | path, | |
QString & | symbol, | |||
QString & | type, | |||
bool | tickFlag | |||
) |
Definition at line 721 of file CSV.cpp.
References QuotePlugin::chartIndex, DBBase::close(), DbPlugin::createNewFutures(), DbPlugin::createNewStock(), db, DbPlugin::Futures1, DBIndex::getIndexItem(), DBIndexItem::getQuotePlugin(), DBIndexItem::getSymbol(), DbPlugin::open(), QuotePlugin::pluginName, QuotePlugin::printStatusLogMessage(), DBIndexItem::setBarType(), DBIndex::setIndexItem(), DBIndexItem::setQuotePlugin(), DBIndexItem::setSymbol(), and DbPlugin::setType().
Referenced by parse().
void CSV::loadSettings | ( | ) |
Definition at line 782 of file CSV.cpp.
References dateRange, dateRangeChanged(), file, lastPath, minutes, ruleCombo, and FileButton::setFile().
Referenced by CSV().
void CSV::saveSettings | ( | ) |
void CSV::getRule | ( | Setting & | set | ) |
void CSV::cancelUpdate | ( | ) |
void CSV::createMainPage | ( | ) |
Definition at line 856 of file CSV.cpp.
References Toolbar::addButton(), QuotePlugin::baseWidget, dateRange, dateRangeChanged(), deleteRule(), edate, editRule(), file, Toolbar::getButton(), QuotePlugin::grid, lastPath, minutes, newRule(), reloadTimerChanged(), ruleCombo, sdate, symbol, QuotePlugin::toolbar, and updateRules().
Referenced by CSV().
void CSV::updateRules | ( | ) |
Definition at line 1076 of file CSV.cpp.
References ruleCombo, and ruleDir.
Referenced by createMainPage(), CSV(), deleteRule(), and newRule().
void CSV::parse | ( | ) | [slot] |
Definition at line 85 of file CSV.cpp.
References cancelFlag, QuotePlugin::chartIndex, DBBase::close(), Config::closePlugin(), config, Setting::count(), QuotePlugin::createDirectory(), dateRange, db, delim, QuotePlugin::downloadComplete(), edate, file, Setting::getData(), getDate(), Setting::getDouble(), FileButton::getFile(), DBIndex::getIndexItem(), Setting::getInt(), getRule(), getTime(), openDb(), QuotePlugin::printStatusLogMessage(), QuotePlugin::progressBar, sdate, DbPlugin::setBar(), Bar::setClose(), Setting::setData(), Bar::setDate(), setDelimiter(), Bar::setHigh(), DBIndex::setIndexItem(), Bar::setLow(), Bar::setOI(), Bar::setOpen(), QuotePlugin::setTFloat(), Bar::setTickFlag(), DBIndexItem::setTitle(), Bar::setVolume(), QuotePlugin::signalWakeup(), QuotePlugin::stringCanceled, QuotePlugin::stringDone, QuotePlugin::stripJunk(), symbol, symbolOveride, and QuotePlugin::tfloat.
void CSV::reloadTimerChanged | ( | int | t | ) | [slot] |
Definition at line 1053 of file CSV.cpp.
References QuotePlugin::printStatusLogMessage(), and reloadTimer.
Referenced by createMainPage().
void CSV::dateRangeChanged | ( | bool | d | ) | [slot] |
void CSV::newRule | ( | ) | [slot] |
Definition at line 938 of file CSV.cpp.
References ruleDir, and updateRules().
Referenced by createMainPage().
void CSV::editRule | ( | ) | [slot] |
void CSV::deleteRule | ( | ) | [slot] |
Definition at line 1010 of file CSV.cpp.
References ruleDir, and updateRules().
Referenced by createMainPage().
void CSV::help | ( | ) | [slot] |
Reimplemented from QuotePlugin.
Definition at line 1098 of file CSV.cpp.
References QuotePlugin::helpFile.
Referenced by CSV().
QString CSV::delim [private] |
FuturesData CSV::fd [private] |
QString CSV::symbolOveride [private] |
QString CSV::futuresSymbol [private] |
QString CSV::futuresMonth [private] |
bool CSV::cancelFlag [private] |
QString CSV::lastPath [private] |
Definition at line 76 of file CSV.h.
Referenced by createMainPage(), loadSettings(), and saveSettings().
QTimer* CSV::reloadTimer [private] |
QString CSV::ruleDir [private] |
Definition at line 78 of file CSV.h.
Referenced by CSV(), deleteRule(), editRule(), getRule(), newRule(), and updateRules().
FileButton* CSV::file [private] |
Reimplemented from QuotePlugin.
Definition at line 79 of file CSV.h.
Referenced by createMainPage(), loadSettings(), parse(), and saveSettings().
QLineEdit* CSV::symbol [private] |
QComboBox* CSV::ruleCombo [private] |
Definition at line 81 of file CSV.h.
Referenced by createMainPage(), getRule(), loadSettings(), saveSettings(), and updateRules().
QDateEdit* CSV::sdate [private] |
Definition at line 82 of file CSV.h.
Referenced by createMainPage(), dateRangeChanged(), and parse().
QDateEdit* CSV::edate [private] |
Definition at line 83 of file CSV.h.
Referenced by createMainPage(), dateRangeChanged(), and parse().
QCheckBox* CSV::dateRange [private] |
Definition at line 84 of file CSV.h.
Referenced by createMainPage(), loadSettings(), parse(), and saveSettings().
QSpinBox* CSV::minutes [private] |
Definition at line 85 of file CSV.h.
Referenced by createMainPage(), loadSettings(), saveSettings(), and update().