wxMathPlot - Plot Library for wxWidgets Applications
Public Member Functions | List of all members
MathPlotConfigDialog Class Reference

Dialog box for configuring the plot's layer objects In this dialog, you can configure: More...

#include <MathPlotConfig.h>

Inheritance diagram for MathPlotConfigDialog:
[legend]
Collaboration diagram for MathPlotConfigDialog:
[legend]

Public Member Functions

 MathPlotConfigDialog (wxWindow *parent, wxWindowID id=-1)
 Create a dialog window to configure the plot's layer objects.
 
void Initialize (mpConfigPageId id=mpcpiNone)
 Initialize the dialog box by retrieving the layer properties.
 
void SelectChoiceSerie (unsigned int serie)
 Select the series by number.
 
void CreateSettingsFile (const wxString &filename, const wxString &path=wxEmptyString, bool apply=false)
 Create a file to store the properties of mpTitle, mpInfoCoords and mpInfoLegend layers.
 
void ApplySettings (void)
 Apply the settings loaded in the configuration file.
 
MathPlotConfigSettingsGetSettingsHandle (void)
 Give access to m_settings if we want to save some others parameters.
 

Detailed Description

Dialog box for configuring the plot's layer objects In this dialog, you can configure:

Constructor & Destructor Documentation

◆ MathPlotConfigDialog()

MathPlotConfigDialog::MathPlotConfigDialog ( wxWindow *  parent,
wxWindowID  id = -1 
)

Create a dialog window to configure the plot's layer objects.

Parameters
parentthe handle of the plot window
idan ID for the dialog window (default -1)

Member Function Documentation

◆ CreateSettingsFile()

void MathPlotConfigDialog::CreateSettingsFile ( const wxString &  filename,
const wxString &  path = wxEmptyString,
bool  apply = false 
)

Create a file to store the properties of mpTitle, mpInfoCoords and mpInfoLegend layers.

Parameters
filenamethe name of the configuration file
paththe path for the file (if empty, the directory of the program is used)
applyif true then load and apply the settings immediately.

◆ Initialize()

void MathPlotConfigDialog::Initialize ( mpConfigPageId  id = mpcpiNone)

Initialize the dialog box by retrieving the layer properties.

Parameters
idthe page to be open in the dialog window (default first page)

◆ SelectChoiceSerie()

void MathPlotConfigDialog::SelectChoiceSerie ( unsigned int  serie)

Select the series by number.

Parameters
seriethe number of the series in the list