3Depict
|
#include <configFile.h>
Public Member Functions | |
ConfigFile () | |
~ConfigFile () | |
void | addRecentFile (const std::string &str) |
void | getRecentFiles (std::vector< std::string > &filenames) const |
void | removeRecentFile (const std::string &str) |
unsigned int | read () |
bool | write () |
bool | configLoadedOK () const |
std::string | getErrMessage () const |
void | getFilterDefaults (std::vector< Filter * > &defs) |
void | setFilterDefaults (const std::vector< Filter * > &defs) |
Filter * | getDefaultFilter (unsigned int type) const |
bool | getHaveMaxPoints () const |
size_t | getMaxPoints () const |
void | setMaxPoints (size_t maxP) |
bool | getPanelEnabled (unsigned int panelID) const |
Return startup status of UI panels. More... | |
void | setPanelEnabled (unsigned int panelID, bool enabled, bool permanent=false) |
Return startup status of UI panels. More... | |
unsigned int | getMouseMoveRate () const |
Get the mouse movement rate (for all but zoom) More... | |
unsigned int | getMouseZoomRate () const |
Get the mouse movement rate for zoom. More... | |
void | setMouseZoomRate (unsigned int rate) |
void | setMouseMoveRate (unsigned int rate) |
unsigned int | getStartupPanelMode () const |
Return the current panelmode. More... | |
void | setStartupPanelMode (unsigned int panelM) |
Set the mode to use for recalling the startup panel layout. More... | |
bool | getInitialAppSize (unsigned int &x, unsigned int &y) const |
Returns true if we have a suggested initial window size; with x & y being the suggestion. More... | |
void | setInitialAppSize (unsigned int x, unsigned int y) |
Set the initial window suggested size. More... | |
bool | getAllowOnlineVersionCheck () const |
void | setAllowOnline (bool v) |
Set if the program is allowed to access network resources. More... | |
void | setAllowOnlineVersionCheck (bool v) |
Set if the program is allowed to phone home to get latest version #s. More... | |
void | setLeftRightSashPos (float fraction) |
Set the position for the main window left/right sash. More... | |
void | setTopBottomSashPos (float fraction) |
Set the position for the top/bottom sash. More... | |
void | setFilterSashPos (float fraction) |
Set the position for the filter property/tree sash. More... | |
void | setPlotListSashPos (float fraction) |
Set the position for the plot list panel. More... | |
float | getLeftRightSashPos () const |
Set the position for the main window left/right sash. More... | |
float | getTopBottomSashPos () const |
Set the position for the top/bottom sash. More... | |
float | getFilterSashPos () const |
Set the position for the filter property/tree sash. More... | |
float | getPlotListSashPos () const |
Set the position for the plot list panel. More... | |
bool | wantStartupTips () const |
Does the user want startup tips. More... | |
void | setWantStartupTips (bool want) |
Set if tips are to be shown on startup. More... | |
bool | getWantStartupOrthoCam () const |
Get if user wants an orhtographic camera on startup. More... | |
void | setWantStartupOrthoCam (bool want) |
Static Public Member Functions | |
static bool | createConfigDir () |
static std::string | getConfigDir () |
static unsigned int | getMaxHistory () |
ConfigFile::ConfigFile | ( | ) |
ConfigFile::~ConfigFile | ( | ) |
void ConfigFile::addRecentFile | ( | const std::string & | str | ) |
References MAX_RECENT.
|
inline |
References createConfigDir(), and getConfigDir().
|
static |
References getConfigDir().
Referenced by configLoadedOK(), and write().
bool ConfigFile::getAllowOnlineVersionCheck | ( | ) | const |
Referenced by MainWindowFrame::MainWindowFrame(), and setMouseMoveRate().
|
static |
References PROGRAM_NAME, and stlStr().
Referenced by configLoadedOK(), createConfigDir(), read(), and write().
Filter * ConfigFile::getDefaultFilter | ( | unsigned int | type | ) | const |
References ASSERT, and makeFilter().
Referenced by filterCloneTests(), and getErrMessage().
|
inline |
References getDefaultFilter(), getFilterDefaults(), getMaxHistory(), and setFilterDefaults().
Referenced by MainWindowFrame::MainWindowFrame().
void ConfigFile::getFilterDefaults | ( | std::vector< Filter * > & | defs | ) |
|
inline |
Set the position for the filter property/tree sash.
|
inline |
bool ConfigFile::getInitialAppSize | ( | unsigned int & | x, |
unsigned int & | y | ||
) | const |
Returns true if we have a suggested initial window size; with x & y being the suggestion.
Referenced by setMouseMoveRate().
|
inline |
Set the position for the main window left/right sash.
|
static |
References MAX_RECENT.
Referenced by getErrMessage(), and MainWindowFrame::MainWindowFrame().
|
inline |
|
inline |
Get the mouse movement rate (for all but zoom)
|
inline |
Get the mouse movement rate for zoom.
bool ConfigFile::getPanelEnabled | ( | unsigned int | panelID | ) | const |
Return startup status of UI panels.
References ASSERT, CONFIG_PANELMODE_NONE, CONFIG_PANELMODE_REMEMBER, CONFIG_PANELMODE_SPECIFY, and CONFIG_STARTUPPANEL_END_ENUM.
Referenced by setMaxPoints().
|
inline |
Set the position for the plot list panel.
void ConfigFile::getRecentFiles | ( | std::vector< std::string > & | filenames | ) | const |
unsigned int ConfigFile::getStartupPanelMode | ( | ) | const |
Return the current panelmode.
Referenced by setMouseMoveRate().
|
inline |
Set the position for the top/bottom sash.
|
inline |
Get if user wants an orhtographic camera on startup.
unsigned int ConfigFile::read | ( | ) |
References boolStrDec(), Filter::canBeHazardous(), CONFIG_ERR_BADFILE, CONFIG_ERR_NOFILE, CONFIG_ERR_NOPARSER, CONFIG_FILENAME, CONFIG_PANELMODE_END_ENUM, CONFIG_PANELMODE_NONE, CONFIG_STARTUPPANEL_CONTROL, CONFIG_STARTUPPANEL_END_ENUM, CONFIG_STARTUPPANEL_PLOTLIST, CONFIG_STARTUPPANEL_RAWDATA, getConfigDir(), makeFilter(), MAX_MOUSE_PERCENT, MAX_RECENT, Filter::readState(), stream_cast(), TRANS, XMLGetAttrib(), XMLGetNextElemAttrib(), XMLHelpFwdToElem(), and XMLHelpNextType().
Referenced by filterCloneTests(), and MainWindowFrame::MainWindowFrame().
void ConfigFile::removeRecentFile | ( | const std::string & | str | ) |
void ConfigFile::setAllowOnline | ( | bool | v | ) |
Set if the program is allowed to access network resources.
Referenced by setMouseMoveRate().
void ConfigFile::setAllowOnlineVersionCheck | ( | bool | v | ) |
Set if the program is allowed to phone home to get latest version #s.
Referenced by setMouseMoveRate().
void ConfigFile::setFilterDefaults | ( | const std::vector< Filter * > & | defs | ) |
void ConfigFile::setFilterSashPos | ( | float | fraction | ) |
Set the position for the filter property/tree sash.
References ASSERT.
Referenced by setMouseMoveRate().
void ConfigFile::setInitialAppSize | ( | unsigned int | x, |
unsigned int | y | ||
) |
Set the initial window suggested size.
Referenced by setMouseMoveRate().
void ConfigFile::setLeftRightSashPos | ( | float | fraction | ) |
Set the position for the main window left/right sash.
References ASSERT.
Referenced by setMouseMoveRate().
|
inline |
References getPanelEnabled(), and setPanelEnabled().
|
inline |
|
inline |
void ConfigFile::setPanelEnabled | ( | unsigned int | panelID, |
bool | enabled, | ||
bool | permanent = false |
||
) |
Return startup status of UI panels.
References ASSERT, CONFIG_PANELMODE_SPECIFY, and CONFIG_STARTUPPANEL_END_ENUM.
Referenced by setMaxPoints().
void ConfigFile::setPlotListSashPos | ( | float | fraction | ) |
Set the position for the plot list panel.
References ASSERT.
Referenced by setMouseMoveRate().
void ConfigFile::setStartupPanelMode | ( | unsigned int | panelM | ) |
Set the mode to use for recalling the startup panel layout.
References ASSERT, and CONFIG_PANELMODE_END_ENUM.
Referenced by setMouseMoveRate().
void ConfigFile::setTopBottomSashPos | ( | float | fraction | ) |
Set the position for the top/bottom sash.
References ASSERT.
Referenced by setMouseMoveRate().
|
inline |
|
inline |
Set if tips are to be shown on startup.
|
inline |
Does the user want startup tips.
bool ConfigFile::write | ( | ) |