1 #ifndef __MathPlotConfig__ 2 #define __MathPlotConfig__ 9 #include "MathPlotConfigBuilder.h" 13 #include <wx/colordlg.h> 14 #include <wx/fontdlg.h> 15 #include <wx/fileconf.h> 18 #ifdef ENABLE_MP_NAMESPACE 20 #endif // ENABLE_MP_NAMESPACE 23 class WXDLLIMPEXP_MATHPLOT
mpLayer;
25 class WXDLLIMPEXP_MATHPLOT
mpLine;
28 class WXDLLIMPEXP_MATHPLOT
mpScale;
29 class WXDLLIMPEXP_MATHPLOT
mpText;
38 wxFileConfig(wxEmptyString, wxEmptyString, localFilename) {}
41 void SetSettings(wxWindow* win);
42 void GetSettings(wxWindow* win);
44 void DoPosition(
bool set, wxWindow *win);
45 void DoRecursiveSearch(
bool set, wxWindow *win,
const wxString &path = wxEmptyString,
int level = 0);
51 typedef enum __ConfigPageIndex
71 void Initialize(mpConfigPageId
id = mpcpiNone);
72 void SelectChoiceSerie(
unsigned int serie);
73 void CreateSettingsFile(
const wxString& filename,
const wxString& path = wxEmptyString,
bool apply =
false);
74 void ApplySettings(
void);
85 void OnnbConfigPageChanged( wxNotebookEvent& event );
86 void OnbFontClick( wxCommandEvent& event );
87 void OnbColorClick( wxCommandEvent& event );
88 void OnAxisSelect( wxCommandEvent& event );
89 void OnbAddAxisClick( wxCommandEvent& event );
90 void OnbDelAxisClick( wxCommandEvent& event );
91 void OncbAutoScaleClick( wxCommandEvent& event );
92 void OncbFormatSelect( wxCommandEvent& event );
93 void OnChoiceSeries( wxCommandEvent& event );
94 void OnbDelSeriesClick( wxCommandEvent& event );
95 void OnChoiceLinesSelect( wxCommandEvent& event );
96 void OnbAddLinesClick( wxCommandEvent& event );
97 void OnbDelLinesClick( wxCommandEvent& event );
98 void OnbApplyClick( wxCommandEvent& event );
99 void OnQuit( wxCommandEvent& event );
104 wxButton* colourButton;
111 wxChoice* CurrentChoice;
112 bool fontTitleChanged;
113 bool fontLegendChanged;
114 bool fontAxisChanged;
117 bool SerieVisibleChange;
119 void Apply(
int pageIndex,
bool updateFont =
false);
120 void UpdateSelectedSerie(
void);
121 void UpdateSelectedLine(
void);
122 void UpdateAxis(
void);
123 void FillYAxisList(wxChoice* yChoice,
bool clearChoice =
true);
125 void DoButtonColour(wxButton* button,
const wxColour& colour);
126 void DoApplyColour(
const wxColour& colour);
127 void UpdateFont(
mpLayer* layer, wxButton* button,
bool get_set);
128 void SetFontChildren(wxButton* p,
const wxFontData& fontdata);
130 wxBrushStyle IdToBrushStyle(
int id);
131 int BrushStyleToId(wxBrushStyle style);
134 #ifdef ENABLE_MP_NAMESPACE 136 #endif // ENABLE_MP_NAMESPACE 138 #endif // __MathPlotConfig__ MathPlotConfigSettings * GetSettingsHandle(void)
Give access to m_settings if we want to save some others parameters.
Definition: MathPlotConfig.h:78
Class MathPlotConfigDialogBuilder.
Definition: MathPlotConfigBuilder.h:50
Abstract class providing a line.
Definition: mathplot.h:1478
Canvas for plotting mpLayer implementations.
Definition: mathplot.h:2708
Implements the legend to be added to the plot This layer allows you to add a legend to describe the p...
Definition: mathplot.h:1282
Implementing MathPlotConfigDialogBuilder.
Definition: MathPlotConfig.h:75
Helper class to save/restore configuration.
Definition: MathPlotConfig.h:48
Implements an overlay box which shows the mouse coordinates in plot units.
Definition: mathplot.h:1196
Plot layer implementing an abstract function plot class.
Definition: mathplot.h:1378
Plot layer implementing an abstract scale ruler.
Definition: mathplot.h:2208
Plot layer implementing a text string.
Definition: mathplot.h:3918
Plot layer, abstract base class.
Definition: mathplot.h:716