#include <StocksDialog.h>
Public Slots | |
void | deleteRecord () |
void | saveRecord () |
void | slotDateSearch (QDateTime) |
void | saveChart () |
void | help () |
void | split () |
void | slotFirstRecord () |
void | slotLastRecord () |
void | slotPrevRecord () |
void | slotNextRecord () |
Public Member Functions | |
StocksDialog (QString, DbPlugin *, DBIndex *) | |
~StocksDialog () | |
void | createDetailsPage () |
void | createDataPage () |
void | createFundamentalsPage () |
void | createSplitPage () |
void | updateFields (Bar &) |
bool | getReloadFlag () |
Private Attributes | |
DbPlugin * | db |
QLineEdit * | title |
QLineEdit * | splitRatio |
QString | helpFile |
QListView * | fundView |
BarEdit * | barEdit |
QDateEdit * | splitDate |
QDateTime | currentDate |
DBIndex * | index |
QString | symbol |
bool | reloadFlag |
Definition at line 33 of file StocksDialog.h.
Definition at line 35 of file StocksDialog.cpp.
References createDataPage(), createDetailsPage(), createFundamentalsPage(), createSplitPage(), currentDate, db, RcFile::EditStockWindowSize, DBBase::getSymbol(), help(), helpFile, index, RcFile::loadSize(), reloadFlag, saveChart(), and symbol.
StocksDialog::~StocksDialog | ( | ) |
Definition at line 68 of file StocksDialog.cpp.
References RcFile::EditStockWindowSize, and RcFile::saveSize().
void StocksDialog::createDetailsPage | ( | ) |
Definition at line 74 of file StocksDialog.cpp.
References db, Bar::getDateTimeString(), Bar::getEmptyFlag(), Exchange::getExchange(), DBIndexItem::getExchange(), DbPlugin::getFirstBar(), DBIndex::getIndexItem(), DbPlugin::getLastBar(), DBIndexItem::getSymbol(), DBIndexItem::getTitle(), DBIndexItem::getType(), index, symbol, and title.
Referenced by StocksDialog().
void StocksDialog::createDataPage | ( | ) |
Definition at line 156 of file StocksDialog.cpp.
References barEdit, BarEdit::createField(), deleteRecord(), saveRecord(), slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().
Referenced by StocksDialog().
void StocksDialog::createFundamentalsPage | ( | ) |
Definition at line 192 of file StocksDialog.cpp.
References fundView, Setting::getData(), DBIndex::getFundamentals(), Setting::getKeyList(), index, Setting::parse(), Setting::remove(), and symbol.
Referenced by StocksDialog().
void StocksDialog::createSplitPage | ( | ) |
Definition at line 237 of file StocksDialog.cpp.
References db, Bar::getDate(), Bar::getEmptyFlag(), DbPlugin::getLastBar(), split(), splitDate, and splitRatio.
Referenced by StocksDialog().
void StocksDialog::updateFields | ( | Bar & | record | ) |
Definition at line 506 of file StocksDialog.cpp.
References barEdit, BarEdit::clearButtons(), currentDate, Bar::getClose(), Bar::getDate(), Bar::getDateTimeString(), Bar::getHigh(), Bar::getLow(), Bar::getOpen(), Bar::getTickFlag(), Bar::getVolume(), BarEdit::setDate(), and BarEdit::setField().
Referenced by slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().
bool StocksDialog::getReloadFlag | ( | ) |
Definition at line 537 of file StocksDialog.cpp.
References reloadFlag.
Referenced by DbPlugin::stockPref().
void StocksDialog::deleteRecord | ( | ) | [slot] |
Definition at line 278 of file StocksDialog.cpp.
References barEdit, db, DBBase::deleteData(), BarEdit::getDate(), Bar::getDateTimeString(), reloadFlag, and Bar::setDate().
Referenced by createDataPage().
void StocksDialog::saveRecord | ( | ) | [slot] |
Definition at line 291 of file StocksDialog.cpp.
References barEdit, db, BarEdit::getDate(), BarEdit::getField(), reloadFlag, DbPlugin::setBar(), Bar::setClose(), Bar::setDate(), Bar::setHigh(), Bar::setLow(), Bar::setOpen(), and Bar::setVolume().
Referenced by createDataPage(), and saveChart().
void StocksDialog::slotDateSearch | ( | QDateTime | dt | ) | [slot] |
Definition at line 322 of file StocksDialog.cpp.
References db, Bar::getEmptyFlag(), DbPlugin::getSearchBar(), and updateFields().
Referenced by createDataPage().
void StocksDialog::saveChart | ( | ) | [slot] |
Definition at line 331 of file StocksDialog.cpp.
References barEdit, DBIndex::getIndexItem(), BarEdit::getSaveFlag(), index, reloadFlag, saveRecord(), DBIndex::setIndexItem(), DBIndexItem::setTitle(), symbol, and title.
Referenced by StocksDialog().
void StocksDialog::help | ( | ) | [slot] |
void StocksDialog::split | ( | ) | [slot] |
Definition at line 362 of file StocksDialog.cpp.
References COBase::adjustForSplit(), BarData::count(), db, DbPlugin::getAllBars(), BarData::getBar(), DBIndex::getChartObjects(), Bar::getClose(), COBase::getCO(), Bar::getDate(), Bar::getEmptyFlag(), DbPlugin::getFirstBar(), Bar::getHigh(), DBBase::getIndexKey(), DbPlugin::getLastBar(), Bar::getLow(), Bar::getOpen(), COBase::getSettings(), DBBase::getSymbol(), Bar::getVolume(), index, reloadFlag, DbPlugin::setBar(), DBIndex::setChartObject(), Bar::setClose(), Bar::setHigh(), Bar::setLow(), Bar::setOpen(), Bar::setVolume(), splitDate, and splitRatio.
Referenced by createSplitPage().
void StocksDialog::slotFirstRecord | ( | ) | [slot] |
Definition at line 470 of file StocksDialog.cpp.
References db, Bar::getEmptyFlag(), DbPlugin::getFirstBar(), and updateFields().
Referenced by createDataPage().
void StocksDialog::slotLastRecord | ( | ) | [slot] |
Definition at line 479 of file StocksDialog.cpp.
References db, Bar::getEmptyFlag(), DbPlugin::getLastBar(), and updateFields().
Referenced by createDataPage().
void StocksDialog::slotPrevRecord | ( | ) | [slot] |
Definition at line 497 of file StocksDialog.cpp.
References currentDate, db, Bar::getEmptyFlag(), DbPlugin::getPrevBar(), and updateFields().
Referenced by createDataPage().
void StocksDialog::slotNextRecord | ( | ) | [slot] |
Definition at line 488 of file StocksDialog.cpp.
References currentDate, db, Bar::getEmptyFlag(), DbPlugin::getNextBar(), and updateFields().
Referenced by createDataPage().
DbPlugin* StocksDialog::db [private] |
Definition at line 60 of file StocksDialog.h.
Referenced by createDetailsPage(), createSplitPage(), deleteRecord(), saveRecord(), slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), slotPrevRecord(), split(), and StocksDialog().
QLineEdit* StocksDialog::title [private] |
QLineEdit* StocksDialog::splitRatio [private] |
QString StocksDialog::helpFile [private] |
QListView* StocksDialog::fundView [private] |
BarEdit* StocksDialog::barEdit [private] |
Definition at line 65 of file StocksDialog.h.
Referenced by createDataPage(), deleteRecord(), saveChart(), saveRecord(), and updateFields().
QDateEdit* StocksDialog::splitDate [private] |
QDateTime StocksDialog::currentDate [private] |
Definition at line 67 of file StocksDialog.h.
Referenced by slotNextRecord(), slotPrevRecord(), StocksDialog(), and updateFields().
DBIndex* StocksDialog::index [private] |
Definition at line 68 of file StocksDialog.h.
Referenced by createDetailsPage(), createFundamentalsPage(), saveChart(), split(), and StocksDialog().
QString StocksDialog::symbol [private] |
Definition at line 69 of file StocksDialog.h.
Referenced by createDetailsPage(), createFundamentalsPage(), saveChart(), and StocksDialog().
bool StocksDialog::reloadFlag [private] |
Definition at line 70 of file StocksDialog.h.
Referenced by deleteRecord(), getReloadFlag(), saveChart(), saveRecord(), split(), and StocksDialog().