MathPlot
Public Member Functions | Protected Member Functions | List of all members
MathPlotConfigSettings Class Reference

Helper class to save/restore configuration. More...

#include <MathPlotConfig.h>

Inheritance diagram for MathPlotConfigSettings:
Inheritance graph
[legend]
Collaboration diagram for MathPlotConfigSettings:
Collaboration graph
[legend]

Public Member Functions

 MathPlotConfigSettings (const wxString &localFilename)
 Manages the backup of configuration window data. More...
 
void SetSettings (wxWindow *win)
 Set the settings to the plot window. More...
 
void GetSettings (wxWindow *win)
 Get the settings from the plot window. More...
 
 MathPlotConfigSettings (const wxString &localFilename)
 
void SetSettings (wxWindow *win)
 
void GetSettings (wxWindow *win)
 

Protected Member Functions

void DoPosition (bool set, wxWindow *win)
 Get/set the position of the config window in the screen. More...
 
void DoRecursiveSearch (bool set, wxWindow *win, const wxString &path=wxEmptyString, int level=0)
 Search recursively all the widgets then get/set parameters. More...
 
void DoPosition (bool set, wxWindow *win)
 
void DoRecursiveSearch (bool set, wxWindow *win, const wxString &path=wxEmptyString, int level=0)
 

Detailed Description

Helper class to save/restore configuration.

Constructor & Destructor Documentation

◆ MathPlotConfigSettings()

MathPlotConfigSettings::MathPlotConfigSettings ( const wxString &  localFilename)
inline

Manages the backup of configuration window data.

Parameters
localFilenamethe name of the file in which the data would be saved

Member Function Documentation

◆ DoPosition()

void MathPlotConfigSettings::DoPosition ( bool  set,
wxWindow *  win 
)
protected

Get/set the position of the config window in the screen.

Parameters
set: set if true else get
win: the config window

◆ DoRecursiveSearch()

void MathPlotConfigSettings::DoRecursiveSearch ( bool  set,
wxWindow *  win,
const wxString &  path = wxEmptyString,
int  level = 0 
)
protected

Search recursively all the widgets then get/set parameters.

Parameters
set: set if true else get
win: the window (container)
path: the complete path (created with the name (class) of each window) to reach the window
level: the depth in the window (container) hierarchy

◆ GetSettings()

void MathPlotConfigSettings::GetSettings ( wxWindow *  win)

Get the settings from the plot window.

Parameters
winthe plot window handler

◆ SetSettings()

void MathPlotConfigSettings::SetSettings ( wxWindow *  win)

Set the settings to the plot window.

Parameters
winthe plot window handler