FuturesDialog Class Reference

#include <FuturesDialog.h>

Collaboration diagram for FuturesDialog:

Collaboration graph
[legend]

List of all members.

Public Slots

void deleteRecord ()
void saveRecord ()
void slotDateSearch (QDateTime)
void saveChart ()
void help ()
void slotFirstRecord ()
void slotLastRecord ()
void slotPrevRecord ()
void slotNextRecord ()

Public Member Functions

 FuturesDialog (QString, DbPlugin *, DBIndex *)
 ~FuturesDialog ()
void createDetailsPage ()
void createDataPage ()
void updateFields (Bar &)
bool getReloadFlag ()

Private Attributes

DbPlugindb
QLineEdit * title
QString helpFile
BarEditbarEdit
QDateTime currentDate
DBIndexindex
QString symbol
bool reloadFlag


Detailed Description

Definition at line 32 of file FuturesDialog.h.


Constructor & Destructor Documentation

FuturesDialog::FuturesDialog ( QString  p,
DbPlugin d,
DBIndex i 
)

Definition at line 32 of file FuturesDialog.cpp.

References createDataPage(), createDetailsPage(), currentDate, db, DBBase::getSymbol(), help(), helpFile, index, reloadFlag, saveChart(), and symbol.

FuturesDialog::~FuturesDialog (  ) 

Definition at line 57 of file FuturesDialog.cpp.


Member Function Documentation

void FuturesDialog::createDetailsPage (  ) 

Definition at line 61 of file FuturesDialog.cpp.

References db, Bar::getDateTimeString(), Bar::getEmptyFlag(), Exchange::getExchange(), DBIndexItem::getExchange(), DbPlugin::getFirstBar(), DBIndexItem::getFuturesMonth(), DBIndexItem::getFuturesType(), DBIndex::getIndexItem(), DbPlugin::getLastBar(), DBIndexItem::getSymbol(), DBIndexItem::getTitle(), DBIndexItem::getType(), index, symbol, and title.

Referenced by FuturesDialog().

void FuturesDialog::createDataPage (  ) 

Definition at line 158 of file FuturesDialog.cpp.

References barEdit, BarEdit::createField(), deleteRecord(), saveRecord(), slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().

Referenced by FuturesDialog().

void FuturesDialog::updateFields ( Bar record  ) 

Definition at line 323 of file FuturesDialog.cpp.

References barEdit, BarEdit::clearButtons(), currentDate, Bar::getClose(), Bar::getDate(), Bar::getDateTimeString(), Bar::getHigh(), Bar::getLow(), Bar::getOI(), Bar::getOpen(), Bar::getTickFlag(), Bar::getVolume(), BarEdit::setDate(), and BarEdit::setField().

Referenced by slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().

bool FuturesDialog::getReloadFlag (  ) 

Definition at line 358 of file FuturesDialog.cpp.

References reloadFlag.

Referenced by DbPlugin::futuresPref().

void FuturesDialog::deleteRecord (  )  [slot]

Definition at line 197 of file FuturesDialog.cpp.

References barEdit, db, DBBase::deleteData(), BarEdit::getDate(), Bar::getDateTimeString(), reloadFlag, and Bar::setDate().

Referenced by createDataPage().

void FuturesDialog::saveRecord (  )  [slot]

Definition at line 210 of file FuturesDialog.cpp.

References barEdit, db, BarEdit::getDate(), BarEdit::getField(), reloadFlag, DbPlugin::setBar(), Bar::setClose(), Bar::setDate(), Bar::setHigh(), Bar::setLow(), Bar::setOI(), Bar::setOpen(), and Bar::setVolume().

Referenced by createDataPage(), and saveChart().

void FuturesDialog::slotDateSearch ( QDateTime  dt  )  [slot]

Definition at line 246 of file FuturesDialog.cpp.

References db, Bar::getEmptyFlag(), DbPlugin::getSearchBar(), and updateFields().

Referenced by createDataPage().

void FuturesDialog::saveChart (  )  [slot]

Definition at line 255 of file FuturesDialog.cpp.

References barEdit, DBIndex::getIndexItem(), BarEdit::getSaveFlag(), index, reloadFlag, saveRecord(), DBIndex::setIndexItem(), DBIndexItem::setTitle(), symbol, and title.

Referenced by FuturesDialog().

void FuturesDialog::help (  )  [slot]

Definition at line 281 of file FuturesDialog.cpp.

References helpFile.

Referenced by FuturesDialog().

void FuturesDialog::slotFirstRecord (  )  [slot]

Definition at line 287 of file FuturesDialog.cpp.

References db, Bar::getEmptyFlag(), DbPlugin::getFirstBar(), and updateFields().

Referenced by createDataPage().

void FuturesDialog::slotLastRecord (  )  [slot]

Definition at line 296 of file FuturesDialog.cpp.

References db, Bar::getEmptyFlag(), DbPlugin::getLastBar(), and updateFields().

Referenced by createDataPage().

void FuturesDialog::slotPrevRecord (  )  [slot]

Definition at line 314 of file FuturesDialog.cpp.

References currentDate, db, Bar::getEmptyFlag(), DbPlugin::getPrevBar(), and updateFields().

Referenced by createDataPage().

void FuturesDialog::slotNextRecord (  )  [slot]

Definition at line 305 of file FuturesDialog.cpp.

References currentDate, db, Bar::getEmptyFlag(), DbPlugin::getNextBar(), and updateFields().

Referenced by createDataPage().


Member Data Documentation

DbPlugin* FuturesDialog::db [private]

Definition at line 56 of file FuturesDialog.h.

Referenced by createDetailsPage(), deleteRecord(), FuturesDialog(), saveRecord(), slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().

QLineEdit* FuturesDialog::title [private]

Definition at line 57 of file FuturesDialog.h.

Referenced by createDetailsPage(), and saveChart().

QString FuturesDialog::helpFile [private]

Definition at line 58 of file FuturesDialog.h.

Referenced by FuturesDialog(), and help().

BarEdit* FuturesDialog::barEdit [private]

Definition at line 59 of file FuturesDialog.h.

Referenced by createDataPage(), deleteRecord(), saveChart(), saveRecord(), and updateFields().

QDateTime FuturesDialog::currentDate [private]

Definition at line 60 of file FuturesDialog.h.

Referenced by FuturesDialog(), slotNextRecord(), slotPrevRecord(), and updateFields().

DBIndex* FuturesDialog::index [private]

Definition at line 61 of file FuturesDialog.h.

Referenced by createDetailsPage(), FuturesDialog(), and saveChart().

QString FuturesDialog::symbol [private]

Definition at line 62 of file FuturesDialog.h.

Referenced by createDetailsPage(), FuturesDialog(), and saveChart().

bool FuturesDialog::reloadFlag [private]

Definition at line 63 of file FuturesDialog.h.

Referenced by deleteRecord(), FuturesDialog(), getReloadFlag(), saveChart(), and saveRecord().


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