ChartToolbar Class Reference

#include <ChartToolbar.h>

Collaboration diagram for ChartToolbar:

Collaboration graph
[legend]

List of all members.

Public Types

enum  MenuAction {
  ToolbarFocus, BarLengthFocus, BarSpacingFocus, BarsLoadedFocus,
  ChartPannerFocus
}

Public Slots

void setFocus ()
void slotAccel (int)
void doKeyPress (QKeyEvent *)
void barsChanged ()
void paperTradeDate ()
void paperTradeNextBar ()
void paperTradeClicked (bool)
void ps1ButtonClicked ()
void ps2ButtonClicked ()
void ps3ButtonClicked ()
void cmpsBtnMClicked ()
void cmpsBtnWClicked ()
void cmpsBtnDClicked ()
void cmpsBtn15Clicked ()
void slotSetButtonView ()

Signals

void signalBarLengthChanged (int)
void signalPixelspaceChanged (int)
void signalSliderChanged (int)
void signalBarsChanged (int)
void signalPaperTradeNextBar ()

Public Member Functions

 ChartToolbar (QMainWindow *)
 ~ChartToolbar ()
int getBars ()
void enableSlider (bool)
void setPixelspace (int, int)
int getPixelspace ()
int getBarLengthInt ()
QString getBarLength ()
int getSlider ()
int setSliderStart (int width, int records)
void saveSettings ()
void getPaperTradeDate (QDateTime &)

Private Slots

void slotOrientationChanged (Orientation)
void barsChangedValidate ()

Private Attributes

QComboBox * compressionCombo
QSpinBox * pixelspace
QLineEdit * barCount
QSlider * slider
MenuAction focusFlag
QToolButton * ptdButton
QToolButton * ptnButton
QDateTime ptDate
QStringList compressionList
QToolButton * cmpsBtnM
QToolButton * cmpsBtnW
QToolButton * cmpsBtnD
QToolButton * cmpsBtn15
QToolButton * ps1Button
QToolButton * ps2Button
QToolButton * ps3Button
int minPixelspace
RcFile rcfile


Detailed Description

Definition at line 37 of file ChartToolbar.h.


Member Enumeration Documentation

enum ChartToolbar::MenuAction

Enumerator:
ToolbarFocus 
BarLengthFocus 
BarSpacingFocus 
BarsLoadedFocus 
ChartPannerFocus 

Definition at line 50 of file ChartToolbar.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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 
)

Definition at line 158 of file ChartToolbar.cpp.

References pixelspace.

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]

Definition at line 463 of file ChartToolbar.cpp.

References slider.

Referenced by ChartToolbar().

void ChartToolbar::barsChangedValidate (  )  [private, slot]

Definition at line 376 of file ChartToolbar.cpp.

References barCount.

Referenced by ChartToolbar().


Member Data Documentation

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]

Definition at line 99 of file ChartToolbar.h.

Referenced by ChartToolbar().

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]

Definition at line 108 of file ChartToolbar.h.

Referenced by ChartToolbar().

RcFile ChartToolbar::rcfile [private]

Definition at line 109 of file ChartToolbar.h.

Referenced by ChartToolbar(), ps1ButtonClicked(), ps2ButtonClicked(), ps3ButtonClicked(), saveSettings(), and slotSetButtonView().


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