#include <ChartToolbar.h>
Definition at line 37 of file ChartToolbar.h.
Definition at line 50 of file ChartToolbar.h.
ChartToolbar::ChartToolbar | ( | QMainWindow * | mw | ) |
Definition at line 33 of file ChartToolbar.cpp.
References barCount, RcFile::BarLength, BarLengthFocus, barsChanged(), barsChangedValidate(), BarsLoadedFocus, BarSpacingFocus, RcFile::BarsToLoad, ChartPannerFocus, cmpsBtn15, cmpsBtn15Clicked(), cmpsBtnD, cmpsBtnDClicked(), cmpsBtnM, cmpsBtnMClicked(), cmpsBtnW, cmpsBtnWClicked(), compressionCombo, compressionList, focusFlag, BarData::getBarLengthList(), RcFile::loadData(), minPixelspace, paperTradeDate(), paperTradeNextBar(), RcFile::Pixelspace, pixelspace, ps1Button, ps1ButtonClicked(), ps2Button, ps2ButtonClicked(), ps3Button, ps3ButtonClicked(), ptDate, ptdButton, ptnButton, rcfile, signalBarLengthChanged(), signalPixelspaceChanged(), signalSliderChanged(), slider, slotAccel(), slotOrientationChanged(), and ToolbarFocus.
ChartToolbar::~ChartToolbar | ( | ) |
Definition at line 139 of file ChartToolbar.cpp.
void ChartToolbar::signalBarLengthChanged | ( | int | ) | [signal] |
Referenced by ChartToolbar(), cmpsBtn15Clicked(), cmpsBtnDClicked(), cmpsBtnMClicked(), and cmpsBtnWClicked().
void ChartToolbar::signalPixelspaceChanged | ( | int | ) | [signal] |
Referenced by ChartToolbar().
void ChartToolbar::signalSliderChanged | ( | int | ) | [signal] |
Referenced by ChartToolbar().
void ChartToolbar::signalBarsChanged | ( | int | ) | [signal] |
Referenced by barsChanged().
void ChartToolbar::signalPaperTradeNextBar | ( | ) | [signal] |
Referenced by paperTradeDate(), and paperTradeNextBar().
int ChartToolbar::getBars | ( | ) |
Definition at line 143 of file ChartToolbar.cpp.
References barCount.
Referenced by QtstalkerApp::loadChart(), saveSettings(), QtstalkerApp::slotChartUpdated(), and QtstalkerApp::slotIndicatorSummary().
void ChartToolbar::enableSlider | ( | bool | d | ) |
Definition at line 153 of file ChartToolbar.cpp.
References slider.
Referenced by QtstalkerApp::slotOpenChart().
void ChartToolbar::setPixelspace | ( | int | min, | |
int | d | |||
) |
int ChartToolbar::getPixelspace | ( | ) |
Definition at line 166 of file ChartToolbar.cpp.
References pixelspace.
Referenced by QtstalkerApp::addIndicatorButton(), saveSettings(), and setSliderStart().
int ChartToolbar::getBarLengthInt | ( | ) |
Definition at line 171 of file ChartToolbar.cpp.
References compressionCombo.
Referenced by QtstalkerApp::addIndicatorButton(), QtstalkerApp::barLengthChanged(), QtstalkerApp::loadChart(), saveSettings(), and QtstalkerApp::slotIndicatorSummary().
QString ChartToolbar::getBarLength | ( | ) |
Definition at line 176 of file ChartToolbar.cpp.
References compressionCombo.
Referenced by QtstalkerApp::getWindowCaption().
int ChartToolbar::getSlider | ( | ) |
Definition at line 181 of file ChartToolbar.cpp.
References slider.
Referenced by QtstalkerApp::addIndicatorButton(), and QtstalkerApp::slotPixelspaceChanged().
int ChartToolbar::setSliderStart | ( | int | width, | |
int | records | |||
) |
Definition at line 186 of file ChartToolbar.cpp.
References getPixelspace(), and slider.
Referenced by QtstalkerApp::setSliderStart().
void ChartToolbar::saveSettings | ( | ) |
Definition at line 209 of file ChartToolbar.cpp.
References RcFile::BarLength, RcFile::BarsToLoad, getBarLengthInt(), getBars(), getPixelspace(), RcFile::Pixelspace, rcfile, and RcFile::saveData().
Referenced by QtstalkerApp::slotQuit().
void ChartToolbar::getPaperTradeDate | ( | QDateTime & | d | ) |
Definition at line 478 of file ChartToolbar.cpp.
References ptDate.
Referenced by QtstalkerApp::loadChart().
void ChartToolbar::setFocus | ( | ) | [slot] |
Definition at line 282 of file ChartToolbar.cpp.
References BarLengthFocus, compressionCombo, and focusFlag.
Referenced by slotAccel().
void ChartToolbar::slotAccel | ( | int | id | ) | [slot] |
Definition at line 288 of file ChartToolbar.cpp.
References barCount, BarLengthFocus, BarsLoadedFocus, BarSpacingFocus, ChartPannerFocus, compressionCombo, focusFlag, pixelspace, setFocus(), slider, and ToolbarFocus.
Referenced by ChartToolbar(), and doKeyPress().
void ChartToolbar::doKeyPress | ( | QKeyEvent * | key | ) | [slot] |
Definition at line 316 of file ChartToolbar.cpp.
References BarLengthFocus, BarsLoadedFocus, BarSpacingFocus, ChartPannerFocus, focusFlag, slotAccel(), and ToolbarFocus.
void ChartToolbar::barsChanged | ( | ) | [slot] |
Definition at line 368 of file ChartToolbar.cpp.
References barCount, and signalBarsChanged().
Referenced by ChartToolbar().
void ChartToolbar::paperTradeDate | ( | ) | [slot] |
Definition at line 483 of file ChartToolbar.cpp.
References PrefDialog::addDateItem(), PrefDialog::addTimeItem(), PrefDialog::createPage(), PrefDialog::getDate(), ptDate, and signalPaperTradeNextBar().
Referenced by ChartToolbar().
void ChartToolbar::paperTradeNextBar | ( | ) | [slot] |
Definition at line 528 of file ChartToolbar.cpp.
References compressionCombo, ptDate, ptdButton, and signalPaperTradeNextBar().
Referenced by ChartToolbar().
void ChartToolbar::paperTradeClicked | ( | bool | d | ) | [slot] |
Definition at line 512 of file ChartToolbar.cpp.
References barCount, ptdButton, and ptnButton.
Referenced by QtstalkerApp::initToolBar(), and QtstalkerApp::slotPaperTradeChanged().
void ChartToolbar::ps1ButtonClicked | ( | ) | [slot] |
Definition at line 387 of file ChartToolbar.cpp.
References RcFile::loadData(), pixelspace, RcFile::PSButton, and rcfile.
Referenced by ChartToolbar().
void ChartToolbar::ps2ButtonClicked | ( | ) | [slot] |
Definition at line 399 of file ChartToolbar.cpp.
References RcFile::loadData(), pixelspace, RcFile::PSButton, and rcfile.
Referenced by ChartToolbar().
void ChartToolbar::ps3ButtonClicked | ( | ) | [slot] |
Definition at line 411 of file ChartToolbar.cpp.
References RcFile::loadData(), pixelspace, RcFile::PSButton, and rcfile.
Referenced by ChartToolbar().
void ChartToolbar::cmpsBtnMClicked | ( | ) | [slot] |
Definition at line 423 of file ChartToolbar.cpp.
References cmpsBtn15, cmpsBtnD, cmpsBtnW, compressionCombo, and signalBarLengthChanged().
Referenced by ChartToolbar().
void ChartToolbar::cmpsBtnWClicked | ( | ) | [slot] |
Definition at line 433 of file ChartToolbar.cpp.
References cmpsBtn15, cmpsBtnD, cmpsBtnM, compressionCombo, and signalBarLengthChanged().
Referenced by ChartToolbar().
void ChartToolbar::cmpsBtnDClicked | ( | ) | [slot] |
Definition at line 443 of file ChartToolbar.cpp.
References cmpsBtn15, cmpsBtnM, cmpsBtnW, compressionCombo, and signalBarLengthChanged().
Referenced by ChartToolbar().
void ChartToolbar::cmpsBtn15Clicked | ( | ) | [slot] |
Definition at line 453 of file ChartToolbar.cpp.
References cmpsBtnD, cmpsBtnM, cmpsBtnW, compressionCombo, and signalBarLengthChanged().
Referenced by ChartToolbar().
void ChartToolbar::slotSetButtonView | ( | ) | [slot] |
Definition at line 219 of file ChartToolbar.cpp.
References barCount, cmpsBtn15, cmpsBtnD, cmpsBtnM, cmpsBtnW, compressionCombo, RcFile::loadData(), pixelspace, ps1Button, ps2Button, ps3Button, RcFile::PSButton, rcfile, RcFile::ShowBarSpSpinbox, RcFile::ShowBarsToLoadField, RcFile::ShowCmps15Btn, RcFile::ShowCmpsComboBox, RcFile::ShowCmpsDayBtn, RcFile::ShowCmpsMtyBtn, RcFile::ShowCmpsWkyBtn, RcFile::ShowSlider, and slider.
Referenced by QtstalkerApp::initToolBar().
void ChartToolbar::slotOrientationChanged | ( | Orientation | o | ) | [private, slot] |
void ChartToolbar::barsChangedValidate | ( | ) | [private, slot] |
QComboBox* ChartToolbar::compressionCombo [private] |
Definition at line 91 of file ChartToolbar.h.
Referenced by ChartToolbar(), cmpsBtn15Clicked(), cmpsBtnDClicked(), cmpsBtnMClicked(), cmpsBtnWClicked(), getBarLength(), getBarLengthInt(), paperTradeNextBar(), setFocus(), slotAccel(), and slotSetButtonView().
QSpinBox* ChartToolbar::pixelspace [private] |
Definition at line 92 of file ChartToolbar.h.
Referenced by ChartToolbar(), getPixelspace(), ps1ButtonClicked(), ps2ButtonClicked(), ps3ButtonClicked(), setPixelspace(), slotAccel(), and slotSetButtonView().
QLineEdit* ChartToolbar::barCount [private] |
Definition at line 93 of file ChartToolbar.h.
Referenced by barsChanged(), barsChangedValidate(), ChartToolbar(), getBars(), paperTradeClicked(), slotAccel(), and slotSetButtonView().
QSlider* ChartToolbar::slider [private] |
Definition at line 94 of file ChartToolbar.h.
Referenced by ChartToolbar(), enableSlider(), getSlider(), setSliderStart(), slotAccel(), slotOrientationChanged(), and slotSetButtonView().
MenuAction ChartToolbar::focusFlag [private] |
Definition at line 95 of file ChartToolbar.h.
Referenced by ChartToolbar(), doKeyPress(), setFocus(), and slotAccel().
QToolButton* ChartToolbar::ptdButton [private] |
Definition at line 96 of file ChartToolbar.h.
Referenced by ChartToolbar(), paperTradeClicked(), and paperTradeNextBar().
QToolButton* ChartToolbar::ptnButton [private] |
Definition at line 97 of file ChartToolbar.h.
Referenced by ChartToolbar(), and paperTradeClicked().
QDateTime ChartToolbar::ptDate [private] |
Definition at line 98 of file ChartToolbar.h.
Referenced by ChartToolbar(), getPaperTradeDate(), paperTradeDate(), and paperTradeNextBar().
QStringList ChartToolbar::compressionList [private] |
QToolButton* ChartToolbar::cmpsBtnM [private] |
Definition at line 100 of file ChartToolbar.h.
Referenced by ChartToolbar(), cmpsBtn15Clicked(), cmpsBtnDClicked(), cmpsBtnWClicked(), and slotSetButtonView().
QToolButton* ChartToolbar::cmpsBtnW [private] |
Definition at line 101 of file ChartToolbar.h.
Referenced by ChartToolbar(), cmpsBtn15Clicked(), cmpsBtnDClicked(), cmpsBtnMClicked(), and slotSetButtonView().
QToolButton* ChartToolbar::cmpsBtnD [private] |
Definition at line 102 of file ChartToolbar.h.
Referenced by ChartToolbar(), cmpsBtn15Clicked(), cmpsBtnMClicked(), cmpsBtnWClicked(), and slotSetButtonView().
QToolButton* ChartToolbar::cmpsBtn15 [private] |
Definition at line 103 of file ChartToolbar.h.
Referenced by ChartToolbar(), cmpsBtnDClicked(), cmpsBtnMClicked(), cmpsBtnWClicked(), and slotSetButtonView().
QToolButton* ChartToolbar::ps1Button [private] |
Definition at line 104 of file ChartToolbar.h.
Referenced by ChartToolbar(), and slotSetButtonView().
QToolButton* ChartToolbar::ps2Button [private] |
Definition at line 105 of file ChartToolbar.h.
Referenced by ChartToolbar(), and slotSetButtonView().
QToolButton* ChartToolbar::ps3Button [private] |
Definition at line 106 of file ChartToolbar.h.
Referenced by ChartToolbar(), and slotSetButtonView().
int ChartToolbar::minPixelspace [private] |
RcFile ChartToolbar::rcfile [private] |
Definition at line 109 of file ChartToolbar.h.
Referenced by ChartToolbar(), ps1ButtonClicked(), ps2ButtonClicked(), ps3ButtonClicked(), saveSettings(), and slotSetButtonView().