#include <BarEdit.h>
Public Slots | |
void | deleteRecord () |
void | saveRecord () |
void | slotDateSearch () |
void | textChanged (const QString &) |
void | slotFirstRecord () |
void | slotLastRecord () |
void | slotPrevRecord () |
void | slotNextRecord () |
Signals | |
void | signalDeleteRecord () |
void | signalSaveRecord () |
void | signalFirstRecord () |
void | signalLastRecord () |
void | signalPrevRecord () |
void | signalNextRecord () |
void | signalSearch (QDateTime) |
Public Member Functions | |
BarEdit (QWidget *) | |
~BarEdit () | |
void | clearRecordFields () |
void | createField (QString &, QString &, bool) |
void | getDate (QString &) |
void | setDate (QString &, bool) |
void | setField (QString &, QString &) |
void | getField (QString &, QString &) |
bool | getSaveFlag () |
void | saveRecordDialog () |
void | clearButtons () |
Private Attributes | |
QGridLayout * | grid |
QLineEdit * | date |
QDict< QLineEdit > | editList |
Toolbar * | toolbar |
bool | saveRecordFlag |
bool | ignoreSaveRecordFlag |
QString | saveLabel |
QString | deleteLabel |
Definition at line 32 of file BarEdit.h.
BarEdit::BarEdit | ( | QWidget * | w | ) |
Definition at line 38 of file BarEdit.cpp.
References Toolbar::addButton(), date, deleteLabel, deleteRecord(), editList, Toolbar::getButton(), grid, Toolbar::Horizontal, ignoreSaveRecordFlag, saveLabel, saveRecord(), saveRecordFlag, Toolbar::setButtonStatus(), slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), slotPrevRecord(), and toolbar.
BarEdit::~BarEdit | ( | ) |
Definition at line 123 of file BarEdit.cpp.
void BarEdit::signalDeleteRecord | ( | ) | [signal] |
Referenced by deleteRecord().
void BarEdit::signalSaveRecord | ( | ) | [signal] |
Referenced by saveRecord().
void BarEdit::signalFirstRecord | ( | ) | [signal] |
Referenced by slotFirstRecord().
void BarEdit::signalLastRecord | ( | ) | [signal] |
Referenced by slotLastRecord().
void BarEdit::signalPrevRecord | ( | ) | [signal] |
Referenced by slotPrevRecord().
void BarEdit::signalNextRecord | ( | ) | [signal] |
Referenced by slotNextRecord().
void BarEdit::signalSearch | ( | QDateTime | ) | [signal] |
Referenced by slotDateSearch().
void BarEdit::clearRecordFields | ( | ) |
Definition at line 217 of file BarEdit.cpp.
References date, editList, ignoreSaveRecordFlag, and saveRecordFlag.
Referenced by deleteRecord(), and slotDateSearch().
void BarEdit::createField | ( | QString & | l, | |
QString & | d, | |||
bool | f | |||
) |
Definition at line 127 of file BarEdit.cpp.
References editList, grid, and textChanged().
Referenced by StocksDialog::createDataPage(), and FuturesDialog::createDataPage().
void BarEdit::getDate | ( | QString & | r | ) |
Definition at line 265 of file BarEdit.cpp.
References date.
Referenced by StocksDialog::deleteRecord(), FuturesDialog::deleteRecord(), StocksDialog::saveRecord(), and FuturesDialog::saveRecord().
void BarEdit::setDate | ( | QString & | d, | |
bool | ||||
) |
Definition at line 252 of file BarEdit.cpp.
References date.
Referenced by StocksDialog::updateFields(), and FuturesDialog::updateFields().
void BarEdit::setField | ( | QString & | k, | |
QString & | d | |||
) |
Definition at line 241 of file BarEdit.cpp.
References editList, and ignoreSaveRecordFlag.
Referenced by StocksDialog::updateFields(), and FuturesDialog::updateFields().
void BarEdit::getField | ( | QString & | d, | |
QString & | r | |||
) |
Definition at line 257 of file BarEdit.cpp.
References editList.
Referenced by StocksDialog::saveRecord(), and FuturesDialog::saveRecord().
bool BarEdit::getSaveFlag | ( | ) |
Definition at line 270 of file BarEdit.cpp.
References saveRecordFlag.
Referenced by StocksDialog::saveChart(), and FuturesDialog::saveChart().
void BarEdit::saveRecordDialog | ( | ) |
Definition at line 299 of file BarEdit.cpp.
References saveLabel, saveRecord(), saveRecordFlag, Toolbar::setButtonStatus(), and toolbar.
Referenced by slotDateSearch(), slotFirstRecord(), slotLastRecord(), slotNextRecord(), and slotPrevRecord().
void BarEdit::clearButtons | ( | ) |
Definition at line 320 of file BarEdit.cpp.
References deleteLabel, saveLabel, Toolbar::setButtonStatus(), and toolbar.
Referenced by StocksDialog::updateFields(), and FuturesDialog::updateFields().
void BarEdit::deleteRecord | ( | ) | [slot] |
Definition at line 155 of file BarEdit.cpp.
References clearRecordFields(), deleteLabel, saveLabel, saveRecordFlag, Toolbar::setButtonStatus(), signalDeleteRecord(), and toolbar.
Referenced by BarEdit().
void BarEdit::saveRecord | ( | ) | [slot] |
Definition at line 177 of file BarEdit.cpp.
References saveLabel, saveRecordFlag, Toolbar::setButtonStatus(), signalSaveRecord(), and toolbar.
Referenced by BarEdit(), and saveRecordDialog().
void BarEdit::slotDateSearch | ( | ) | [slot] |
Definition at line 184 of file BarEdit.cpp.
References PrefDialog::addDateItem(), PrefDialog::addTimeItem(), clearRecordFields(), PrefDialog::createPage(), deleteLabel, PrefDialog::getDate(), PrefDialog::getTime(), saveLabel, saveRecordDialog(), Toolbar::setButtonStatus(), signalSearch(), and toolbar.
Referenced by BarEdit().
void BarEdit::textChanged | ( | const QString & | ) | [slot] |
Definition at line 232 of file BarEdit.cpp.
References ignoreSaveRecordFlag, saveLabel, saveRecordFlag, Toolbar::setButtonStatus(), and toolbar.
Referenced by createField().
void BarEdit::slotFirstRecord | ( | ) | [slot] |
Definition at line 275 of file BarEdit.cpp.
References saveRecordDialog(), and signalFirstRecord().
Referenced by BarEdit().
void BarEdit::slotLastRecord | ( | ) | [slot] |
Definition at line 281 of file BarEdit.cpp.
References saveRecordDialog(), and signalLastRecord().
Referenced by BarEdit().
void BarEdit::slotPrevRecord | ( | ) | [slot] |
Definition at line 293 of file BarEdit.cpp.
References saveRecordDialog(), and signalPrevRecord().
Referenced by BarEdit().
void BarEdit::slotNextRecord | ( | ) | [slot] |
Definition at line 287 of file BarEdit.cpp.
References saveRecordDialog(), and signalNextRecord().
Referenced by BarEdit().
QGridLayout* BarEdit::grid [private] |
QLineEdit* BarEdit::date [private] |
QDict<QLineEdit> BarEdit::editList [private] |
Definition at line 72 of file BarEdit.h.
Referenced by BarEdit(), clearRecordFields(), createField(), getField(), and setField().
Toolbar* BarEdit::toolbar [private] |
Definition at line 73 of file BarEdit.h.
Referenced by BarEdit(), clearButtons(), deleteRecord(), saveRecord(), saveRecordDialog(), slotDateSearch(), and textChanged().
bool BarEdit::saveRecordFlag [private] |
Definition at line 74 of file BarEdit.h.
Referenced by BarEdit(), clearRecordFields(), deleteRecord(), getSaveFlag(), saveRecord(), saveRecordDialog(), and textChanged().
bool BarEdit::ignoreSaveRecordFlag [private] |
Definition at line 75 of file BarEdit.h.
Referenced by BarEdit(), clearRecordFields(), setField(), and textChanged().
QString BarEdit::saveLabel [private] |
Definition at line 76 of file BarEdit.h.
Referenced by BarEdit(), clearButtons(), deleteRecord(), saveRecord(), saveRecordDialog(), slotDateSearch(), and textChanged().
QString BarEdit::deleteLabel [private] |
Definition at line 77 of file BarEdit.h.
Referenced by BarEdit(), clearButtons(), deleteRecord(), and slotDateSearch().