Helper class to save/restore configuration.
More...
#include <MathPlotConfig.h>
|
| | 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) |
| |
|
| 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) |
| |
Helper class to save/restore configuration.
◆ MathPlotConfigSettings()
| MathPlotConfigSettings::MathPlotConfigSettings |
( |
const wxString & |
localFilename | ) |
|
|
inline |
Manages the backup of configuration window data.
- Parameters
-
| localFilename | the name of the file in which the data would be saved |
◆ 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
-
| win | the plot window handler |
◆ SetSettings()
| void MathPlotConfigSettings::SetSettings |
( |
wxWindow * |
win | ) |
|
Set the settings to the plot window.
- Parameters
-
| win | the plot window handler |