#include <RcFile.h>
On most platforms they are stored in the ~/.qt/qtstalkerrc plain-text file. On "Mac OS X" they are stored in a binary plist.
See the Trolltech QSettings documentation and Qtstalker developer documentation.
Definition at line 48 of file RcFile.h.
enum RcFile::Parm |
Available parameters.
RcFile::RcFile | ( | ) |
Constructor.
Definition at line 37 of file RcFile.cpp.
References AppFont, BackgroundColor, BackTesterWindowSize, BarLength, BarsToLoad, BorderColor, ChartToolBarPos, COPath, Crosshairs, CurrentChart, DataPanelSize, DataPath, Def, DrawMode, EditStockWindowSize, FundamentalsPath, Grid, GridColor, GroupPath, HelpFilePath, HelpWindowSize, Home, IndexPath, IndicatorGroup, IndicatorPath, Key, LastAktiveNav, LastChartDir, LastDateTimeCOAdded, LastGroupUsed, LastIndicatorUsed, LastNewIndicator, LastQuotePlugin, LocalIndicatorsPath, LogScale, MainToolBarPos, MainWindowPos, MainWindowSize, NavAreaSize, NavigatorActiveButton, NavigatorPosition, PaperTradeMode, Pixelspace, PlotFont, PlotSizes, PortfolioPath, PrefColor, PrefColorCount, PrefDlgWindowSize, PSButton, PSButtonCount, QuotePluginPath, QuotePluginStorage, RecentChartsList, ScaleToScreen, ScannerPath, ScannerWindowSize, ShowBarSpSpinbox, ShowBarsToLoadField, ShowCmps15Btn, ShowCmpsComboBox, ShowCmpsDayBtn, ShowCmpsMtyBtn, ShowCmpsWkyBtn, ShowCrosshairBtn, ShowDataWindowBtn, ShowDrawModeBtn, ShowExtraToolbar, ShowGridBtn, ShowHelpButton, ShowMainQuoteBtn, ShowMenuBar, ShowNewIndicatorBtn, ShowPaperTradeBtn, ShowPrefBtn, ShowQuitBtn, ShowRecentCharts, ShowScaleToScreenBtn, ShowSidePanel, ShowSidePanelBtn, ShowSlider, TestPath, UserDocsPath, and Version.
RcFile::~RcFile | ( | ) |
Destructor.
Definition at line 211 of file RcFile.cpp.
void RcFile::loadData | ( | Parm | name, | |
QString & | value, | |||
const QString & | s = 0 | |||
) |
Definition at line 220 of file RcFile.cpp.
Referenced by GroupPage::addChartToGroup(), GroupPage::addGroupItem(), QtstalkerApp::addIndicatorButton(), IndicatorPage::addLocalIndicator(), ChartPage::ChartPage(), ChartToolbar::ChartToolbar(), Config::check034Conversion(), Preferences::createCTPage(), Preferences::createETPage(), Preferences::createMTPage(), ChartPage::deleteChart(), GroupPage::deleteGroup(), IndicatorPage::deleteIndicator(), IndicatorPage::deleteIndicatorGroup(), ChartPage::dumpSymbol(), ChartPage::exportChart(), ChartPage::exportSymbol(), ExtraToolbar::ExtraToolbar(), GroupPage::groupNoSelection(), GroupPage::GroupPage(), HelpWindow::HelpWindow(), IndicatorPage::IndicatorPage(), loadColor(), loadData(), loadFont(), loadPoint(), NavigatorTab::loadSettings(), Preferences::loadSettings(), loadSize(), loadSplitterSize(), MainMenubar::MainMenubar(), IndicatorPage::newIndicator(), ChartToolbar::ps1ButtonClicked(), ChartToolbar::ps2ButtonClicked(), ChartToolbar::ps3ButtonClicked(), QtstalkerApp::QtstalkerApp(), ExtraToolbar::slotAddRecentChart(), QtstalkerApp::slotDeleteIndicator(), IndicatorPlot::slotIndicatorHelp(), QtstalkerApp::slotIndicatorSummary(), QtstalkerApp::slotLoadMainToolbarSettings(), QtstalkerApp::slotQuotes(), ExtraToolbar::slotRecentChartSelected(), ExtraToolbar::slotRemoveRecentCharts(), ExtraToolbar::slotSetButtonView(), ChartToolbar::slotSetButtonView(), and IndicatorPage::updateList().
void RcFile::loadData | ( | Parm | name, | |
QString & | value, | |||
const | int | |||
) |
void RcFile::loadData | ( | Parm | name, | |
int & | value, | |||
const | int = -1 | |||
) |
void RcFile::loadData | ( | Parm | name, | |
bool & | value | |||
) |
void RcFile::saveData | ( | Parm | name, | |
QString & | value, | |||
const QString & | s = 0 | |||
) |
Definition at line 267 of file RcFile.cpp.
References Key.
Referenced by QtstalkerApp::barLengthChanged(), QtstalkerApp::loadChart(), IndicatorPage::newIndicator(), saveColor(), saveData(), saveFont(), savePoint(), NavigatorTab::saveSettings(), MainMenubar::saveSettings(), ExtraToolbar::saveSettings(), ChartToolbar::saveSettings(), saveSize(), saveSplitterSize(), Config::setup(), QtstalkerApp::slotChartUpdated(), IndicatorPage::slotGroupChanged(), QtstalkerApp::slotQuit(), QtstalkerApp::slotQuotes(), Preferences::slotSave(), ChartPage::~ChartPage(), and GroupPage::~GroupPage().
void RcFile::saveData | ( | Parm | name, | |
QString & | value, | |||
const | int | |||
) |
void RcFile::saveData | ( | Parm | name, | |
int | value, | |||
const | int = -1 | |||
) |
void RcFile::saveData | ( | Parm | name, | |
const | bool | |||
) |
void RcFile::loadColor | ( | Parm | name, | |
QColor & | color | |||
) |
Definition at line 309 of file RcFile.cpp.
References loadData().
Referenced by QtstalkerApp::addIndicatorButton(), and Preferences::loadSettings().
void RcFile::loadColor | ( | Parm | name, | |
QColor & | color, | |||
const | int | |||
) |
void RcFile::saveColor | ( | Parm | name, | |
QColor & | color | |||
) |
Definition at line 323 of file RcFile.cpp.
References saveData().
Referenced by Preferences::slotSave().
void RcFile::saveColor | ( | Parm | name, | |
QColor & | color, | |||
const | int | |||
) |
void RcFile::loadFont | ( | Parm | name, | |
QFont & | font | |||
) |
Definition at line 335 of file RcFile.cpp.
References loadData().
Referenced by QtstalkerApp::addIndicatorButton(), Preferences::loadSettings(), and QtstalkerApp::QtstalkerApp().
void RcFile::saveFont | ( | Parm | name, | |
QFont & | font | |||
) |
Definition at line 350 of file RcFile.cpp.
References saveData().
Referenced by Preferences::slotSave().
void RcFile::loadSplitterSize | ( | Parm | name, | |
QSplitter * | sp, | |||
const QString & | n = 0 | |||
) |
Definition at line 361 of file RcFile.cpp.
References loadData().
Referenced by QtstalkerApp::QtstalkerApp(), and QtstalkerApp::slotLoadPlotSizes().
void RcFile::saveSplitterSize | ( | Parm | name, | |
QSplitter * | sp, | |||
const QString & | n = 0 | |||
) |
Definition at line 376 of file RcFile.cpp.
References saveData().
Referenced by QtstalkerApp::slotQuit(), and QtstalkerApp::slotSavePlotSizes().
void RcFile::loadPoint | ( | Parm | name, | |
QPoint & | p, | |||
const | int = -1 | |||
) |
Definition at line 389 of file RcFile.cpp.
References loadData().
Referenced by QtstalkerApp::QtstalkerApp().
void RcFile::savePoint | ( | Parm | name, | |
const QPoint & | p, | |||
const | int = -1 | |||
) |
Definition at line 399 of file RcFile.cpp.
References saveData().
Referenced by QtstalkerApp::slotQuit().
void RcFile::loadSize | ( | Parm | name, | |
QSize & | sz, | |||
const | int = -1 | |||
) |
Definition at line 406 of file RcFile.cpp.
References loadData().
Referenced by HelpWindow::HelpWindow(), Preferences::loadSettings(), QtstalkerApp::QtstalkerApp(), and StocksDialog::StocksDialog().
void RcFile::saveSize | ( | Parm | name, | |
const QSize & | sz, | |||
const | int = -1 | |||
) |
Definition at line 416 of file RcFile.cpp.
References saveData().
Referenced by HelpWindow::exit(), QtstalkerApp::slotQuit(), Preferences::~Preferences(), and StocksDialog::~StocksDialog().
char* RcFile::Key[MAX_PARM] [private] |
char* RcFile::Def[MAX_PARM] [private] |