Preferences Class Reference

#include <Preferences.h>

Collaboration diagram for Preferences:

Collaboration graph
[legend]

List of all members.

Public Slots

void slotHelp ()
void slotSave ()
void slotModified ()

Signals

void signalMenubar (bool)
void signalExtraToolbar (bool)
void signalBackgroundColor (QColor)
void signalBorderColor (QColor)
void signalGridColor (QColor)
void signalPlotFont (QFont)
void signalAppFont (QFont)
void signalLoadChart ()
void signalReloadToolBars ()

Public Member Functions

 Preferences (QWidget *)
 ~Preferences ()
void createGeneralPage ()
void createColorPage ()
void createFontPage ()
void createMTPage ()
void createCTPage ()
void createETPage ()
void loadSettings ()

Private Attributes

QSize sz
QString helpFile
bool menubar
bool extraToolbar
int ps1Button
int ps2Button
int ps3Button
QColor backgroundColor
QColor borderColor
QColor gridColor
QFont plotFont
QFont appFont
QCheckBox * menubarCheck
QCheckBox * extraToolbarCheck
QSpinBox * bs1Spinner
QSpinBox * bs2Spinner
QSpinBox * bs3Spinner
ColorButtonbackgroundColorButton
ColorButtonborderColorButton
ColorButtongridColorButton
FontButtonplotFontButton
FontButtonappFontButton
QCheckBox * quitBtnCheck
QCheckBox * prefBtnCheck
QCheckBox * sidePanelBtnCheck
QCheckBox * gridBtnCheck
QCheckBox * scaleToScreenBtnCheck
QCheckBox * crosshairBtnCheck
QCheckBox * paperTradeBtnCheck
QCheckBox * drawModeBtnCheck
QCheckBox * newIndicatorBtnCheck
QCheckBox * dataWindowBtnCheck
QCheckBox * mainQuoteBtnCheck
QCheckBox * helpButtonCheck
QCheckBox * sliderCheck
QCheckBox * barsToLoadFieldCheck
QCheckBox * barSpSpinboxCheck
QCheckBox * cmps15BtnCheck
QCheckBox * cmpsDayBtnCheck
QCheckBox * cmpsWkyBtnCheck
QCheckBox * cmpsMtyBtnCheck
QCheckBox * cmpsComboBoxCheck
QCheckBox * recentComboBoxCheck


Detailed Description

Definition at line 37 of file Preferences.h.


Constructor & Destructor Documentation

Preferences::Preferences ( QWidget *  w  ) 

Definition at line 30 of file Preferences.cpp.

References createColorPage(), createCTPage(), createETPage(), createFontPage(), createGeneralPage(), createMTPage(), helpFile, loadSettings(), slotHelp(), slotSave(), and sz.

Preferences::~Preferences (  ) 

Definition at line 58 of file Preferences.cpp.

References RcFile::PrefDlgWindowSize, and RcFile::saveSize().


Member Function Documentation

void Preferences::signalMenubar ( bool   )  [signal]

Referenced by slotSave().

void Preferences::signalExtraToolbar ( bool   )  [signal]

Referenced by slotSave().

void Preferences::signalBackgroundColor ( QColor   )  [signal]

Referenced by slotSave().

void Preferences::signalBorderColor ( QColor   )  [signal]

Referenced by slotSave().

void Preferences::signalGridColor ( QColor   )  [signal]

Referenced by slotSave().

void Preferences::signalPlotFont ( QFont   )  [signal]

Referenced by slotSave().

void Preferences::signalAppFont ( QFont   )  [signal]

Referenced by slotSave().

void Preferences::signalLoadChart (  )  [signal]

Referenced by slotSave().

void Preferences::signalReloadToolBars (  )  [signal]

Referenced by slotSave().

void Preferences::createGeneralPage (  ) 

Definition at line 82 of file Preferences.cpp.

References bs1Spinner, bs2Spinner, bs3Spinner, extraToolbar, extraToolbarCheck, menubar, menubarCheck, ps1Button, ps2Button, ps3Button, and slotModified().

Referenced by Preferences().

void Preferences::createColorPage (  ) 

Definition at line 145 of file Preferences.cpp.

References backgroundColor, backgroundColorButton, borderColor, borderColorButton, gridColor, gridColorButton, ColorButton::setColorButton(), and slotModified().

Referenced by Preferences().

void Preferences::createFontPage (  ) 

Definition at line 193 of file Preferences.cpp.

References appFont, appFontButton, plotFont, plotFontButton, and slotModified().

Referenced by Preferences().

void Preferences::createMTPage (  ) 

Definition at line 228 of file Preferences.cpp.

References crosshairBtnCheck, dataWindowBtnCheck, drawModeBtnCheck, gridBtnCheck, helpButtonCheck, RcFile::loadData(), mainQuoteBtnCheck, newIndicatorBtnCheck, paperTradeBtnCheck, prefBtnCheck, quitBtnCheck, scaleToScreenBtnCheck, RcFile::ShowCrosshairBtn, RcFile::ShowDataWindowBtn, RcFile::ShowDrawModeBtn, RcFile::ShowGridBtn, RcFile::ShowHelpButton, RcFile::ShowMainQuoteBtn, RcFile::ShowNewIndicatorBtn, RcFile::ShowPaperTradeBtn, RcFile::ShowPrefBtn, RcFile::ShowQuitBtn, RcFile::ShowScaleToScreenBtn, RcFile::ShowSidePanelBtn, sidePanelBtnCheck, and slotModified().

Referenced by Preferences().

void Preferences::createCTPage (  ) 

Definition at line 351 of file Preferences.cpp.

References barSpSpinboxCheck, barsToLoadFieldCheck, cmps15BtnCheck, cmpsComboBoxCheck, cmpsDayBtnCheck, cmpsMtyBtnCheck, cmpsWkyBtnCheck, RcFile::loadData(), RcFile::ShowBarSpSpinbox, RcFile::ShowBarsToLoadField, RcFile::ShowCmps15Btn, RcFile::ShowCmpsComboBox, RcFile::ShowCmpsDayBtn, RcFile::ShowCmpsMtyBtn, RcFile::ShowCmpsWkyBtn, RcFile::ShowSlider, sliderCheck, and slotModified().

Referenced by Preferences().

void Preferences::createETPage (  ) 

Definition at line 437 of file Preferences.cpp.

References RcFile::loadData(), recentComboBoxCheck, RcFile::ShowRecentCharts, and slotModified().

Referenced by Preferences().

void Preferences::loadSettings (  ) 

Definition at line 64 of file Preferences.cpp.

References appFont, RcFile::AppFont, backgroundColor, RcFile::BackgroundColor, borderColor, RcFile::BorderColor, extraToolbar, gridColor, RcFile::GridColor, RcFile::loadColor(), RcFile::loadData(), RcFile::loadFont(), RcFile::loadSize(), menubar, plotFont, RcFile::PlotFont, RcFile::PrefDlgWindowSize, ps1Button, ps2Button, ps3Button, RcFile::PSButton, RcFile::ShowExtraToolbar, RcFile::ShowMenuBar, and sz.

Referenced by Preferences().

void Preferences::slotHelp (  )  [slot]

Definition at line 596 of file Preferences.cpp.

References helpFile.

Referenced by Preferences().

void Preferences::slotSave (  )  [slot]

Definition at line 467 of file Preferences.cpp.

References RcFile::AppFont, appFont, appFontButton, RcFile::BackgroundColor, backgroundColor, backgroundColorButton, barSpSpinboxCheck, barsToLoadFieldCheck, RcFile::BorderColor, borderColor, borderColorButton, bs1Spinner, bs2Spinner, bs3Spinner, cmps15BtnCheck, cmpsComboBoxCheck, cmpsDayBtnCheck, cmpsMtyBtnCheck, cmpsWkyBtnCheck, crosshairBtnCheck, dataWindowBtnCheck, drawModeBtnCheck, extraToolbar, extraToolbarCheck, ColorButton::getColor(), FontButton::getFont(), gridBtnCheck, RcFile::GridColor, gridColor, gridColorButton, helpButtonCheck, mainQuoteBtnCheck, menubar, menubarCheck, newIndicatorBtnCheck, paperTradeBtnCheck, RcFile::PlotFont, plotFont, plotFontButton, prefBtnCheck, ps1Button, ps2Button, ps3Button, RcFile::PSButton, quitBtnCheck, recentComboBoxCheck, RcFile::saveColor(), RcFile::saveData(), RcFile::saveFont(), scaleToScreenBtnCheck, RcFile::ShowBarSpSpinbox, RcFile::ShowBarsToLoadField, RcFile::ShowCmps15Btn, RcFile::ShowCmpsComboBox, RcFile::ShowCmpsDayBtn, RcFile::ShowCmpsMtyBtn, RcFile::ShowCmpsWkyBtn, RcFile::ShowCrosshairBtn, RcFile::ShowDataWindowBtn, RcFile::ShowDrawModeBtn, RcFile::ShowExtraToolbar, RcFile::ShowGridBtn, RcFile::ShowHelpButton, RcFile::ShowMainQuoteBtn, RcFile::ShowMenuBar, RcFile::ShowNewIndicatorBtn, RcFile::ShowPaperTradeBtn, RcFile::ShowPrefBtn, RcFile::ShowQuitBtn, RcFile::ShowRecentCharts, RcFile::ShowScaleToScreenBtn, RcFile::ShowSidePanelBtn, RcFile::ShowSlider, sidePanelBtnCheck, signalAppFont(), signalBackgroundColor(), signalBorderColor(), signalExtraToolbar(), signalGridColor(), signalLoadChart(), signalMenubar(), signalPlotFont(), signalReloadToolBars(), and sliderCheck.

Referenced by Preferences().

void Preferences::slotModified (  )  [slot]

Definition at line 603 of file Preferences.cpp.

Referenced by createColorPage(), createCTPage(), createETPage(), createFontPage(), createGeneralPage(), and createMTPage().


Member Data Documentation

QSize Preferences::sz [private]

Definition at line 69 of file Preferences.h.

Referenced by loadSettings(), and Preferences().

QString Preferences::helpFile [private]

Definition at line 70 of file Preferences.h.

Referenced by Preferences(), and slotHelp().

bool Preferences::menubar [private]

Definition at line 71 of file Preferences.h.

Referenced by createGeneralPage(), loadSettings(), and slotSave().

bool Preferences::extraToolbar [private]

Definition at line 72 of file Preferences.h.

Referenced by createGeneralPage(), loadSettings(), and slotSave().

int Preferences::ps1Button [private]

Definition at line 73 of file Preferences.h.

Referenced by createGeneralPage(), loadSettings(), and slotSave().

int Preferences::ps2Button [private]

Definition at line 74 of file Preferences.h.

Referenced by createGeneralPage(), loadSettings(), and slotSave().

int Preferences::ps3Button [private]

Definition at line 75 of file Preferences.h.

Referenced by createGeneralPage(), loadSettings(), and slotSave().

QColor Preferences::backgroundColor [private]

Definition at line 76 of file Preferences.h.

Referenced by createColorPage(), loadSettings(), and slotSave().

QColor Preferences::borderColor [private]

Definition at line 77 of file Preferences.h.

Referenced by createColorPage(), loadSettings(), and slotSave().

QColor Preferences::gridColor [private]

Definition at line 78 of file Preferences.h.

Referenced by createColorPage(), loadSettings(), and slotSave().

QFont Preferences::plotFont [private]

Definition at line 79 of file Preferences.h.

Referenced by createFontPage(), loadSettings(), and slotSave().

QFont Preferences::appFont [private]

Definition at line 80 of file Preferences.h.

Referenced by createFontPage(), loadSettings(), and slotSave().

QCheckBox* Preferences::menubarCheck [private]

Definition at line 81 of file Preferences.h.

Referenced by createGeneralPage(), and slotSave().

QCheckBox* Preferences::extraToolbarCheck [private]

Definition at line 82 of file Preferences.h.

Referenced by createGeneralPage(), and slotSave().

QSpinBox* Preferences::bs1Spinner [private]

Definition at line 83 of file Preferences.h.

Referenced by createGeneralPage(), and slotSave().

QSpinBox* Preferences::bs2Spinner [private]

Definition at line 84 of file Preferences.h.

Referenced by createGeneralPage(), and slotSave().

QSpinBox* Preferences::bs3Spinner [private]

Definition at line 85 of file Preferences.h.

Referenced by createGeneralPage(), and slotSave().

ColorButton* Preferences::backgroundColorButton [private]

Definition at line 86 of file Preferences.h.

Referenced by createColorPage(), and slotSave().

ColorButton* Preferences::borderColorButton [private]

Definition at line 87 of file Preferences.h.

Referenced by createColorPage(), and slotSave().

ColorButton* Preferences::gridColorButton [private]

Definition at line 88 of file Preferences.h.

Referenced by createColorPage(), and slotSave().

FontButton* Preferences::plotFontButton [private]

Definition at line 89 of file Preferences.h.

Referenced by createFontPage(), and slotSave().

FontButton* Preferences::appFontButton [private]

Definition at line 90 of file Preferences.h.

Referenced by createFontPage(), and slotSave().

QCheckBox* Preferences::quitBtnCheck [private]

Definition at line 92 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::prefBtnCheck [private]

Definition at line 93 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::sidePanelBtnCheck [private]

Definition at line 94 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::gridBtnCheck [private]

Definition at line 95 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::scaleToScreenBtnCheck [private]

Definition at line 96 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::crosshairBtnCheck [private]

Definition at line 97 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::paperTradeBtnCheck [private]

Definition at line 98 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::drawModeBtnCheck [private]

Definition at line 99 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::newIndicatorBtnCheck [private]

Definition at line 100 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::dataWindowBtnCheck [private]

Definition at line 101 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::mainQuoteBtnCheck [private]

Definition at line 102 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::helpButtonCheck [private]

Definition at line 103 of file Preferences.h.

Referenced by createMTPage(), and slotSave().

QCheckBox* Preferences::sliderCheck [private]

Definition at line 105 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::barsToLoadFieldCheck [private]

Definition at line 106 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::barSpSpinboxCheck [private]

Definition at line 107 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::cmps15BtnCheck [private]

Definition at line 108 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::cmpsDayBtnCheck [private]

Definition at line 109 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::cmpsWkyBtnCheck [private]

Definition at line 110 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::cmpsMtyBtnCheck [private]

Definition at line 111 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::cmpsComboBoxCheck [private]

Definition at line 112 of file Preferences.h.

Referenced by createCTPage(), and slotSave().

QCheckBox* Preferences::recentComboBoxCheck [private]

Definition at line 113 of file Preferences.h.

Referenced by createETPage(), and slotSave().


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