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 42 wxFileConfig(wxEmptyString, wxEmptyString, localFilename) {}
49 void SetSettings(wxWindow* win);
55 void GetSettings(wxWindow* win);
63 void DoPosition(
bool set, wxWindow *win);
72 void DoRecursiveSearch(
bool set, wxWindow *win,
const wxString &path = wxEmptyString,
int level = 0);
93 const wxString& message,
long size,
const wxString prompt[],
double *values,
94 const wxPoint& pos = wxDefaultPosition)
96 Create(parent, title, message, size, prompt, values, pos);
103 bool Create(wxWindow* parent,
const wxString& title,
104 const wxString& message,
long size,
const wxString prompt[],
double *values,
105 const wxPoint& pos = wxDefaultPosition);
108 void OnOK(wxCommandEvent& event);
109 void OnCancel(wxCommandEvent& event);
112 std::vector<wxTextCtrl *> m_ctrls;
113 wxDECLARE_EVENT_TABLE();
120 typedef enum __ConfigPageIndex
158 void Initialize(mpConfigPageId
id = mpcpiNone);
164 void SelectChoiceSerie(
unsigned int serie);
172 void CreateSettingsFile(
const wxString& filename,
const wxString& path = wxEmptyString,
bool apply =
false);
177 void ApplySettings(
void);
189 void OnnbConfigPageChanged( wxNotebookEvent& event );
190 void OnbFontClick( wxCommandEvent& event );
191 void OnbColorClick( wxCommandEvent& event );
192 void OnAxisSelect( wxCommandEvent& event );
193 void OnbAddAxisClick( wxCommandEvent& event );
194 void OnbDelAxisClick( wxCommandEvent& event );
195 void OncbAutoScaleClick( wxCommandEvent& event );
196 void OncbFormatSelect( wxCommandEvent& event );
197 void OnChoiceSeries( wxCommandEvent& event );
198 void OnbDelSeriesClick( wxCommandEvent& event );
199 void OncbSeriesShowNameClick( wxCommandEvent& event );
200 void OncbAutoStepClick( wxCommandEvent& event );
201 void OnChoiceLinesSelect( wxCommandEvent& event );
202 void OnbAddLinesClick( wxCommandEvent& event );
203 void OnbDelLinesClick( wxCommandEvent& event );
204 void OnbApplyClick( wxCommandEvent& event );
205 void OnbApplyAndFitClick( wxCommandEvent& event );
206 void OnQuit( wxCommandEvent& event );
211 wxButton* colourButton;
218 wxChoice* CurrentChoice;
219 bool fontTitleChanged;
220 bool fontLegendChanged;
221 bool fontAxisChanged;
224 bool SerieVisibleChange;
226 void Apply(
int pageIndex,
bool updateFont =
false);
227 void UpdateSelectedSerie(
void);
228 void UpdateSelectedLine(
void);
229 void UpdateAxis(
void);
230 void FillYAxisList(wxChoice* yChoice,
bool clearChoice =
true);
231 void UpdateSeriesStep(
void);
233 void DoButtonColour(wxButton* button,
const wxColour& colour);
234 void DoApplyColour(
const wxColour& colour);
235 void UpdateFont(
mpLayer* layer, wxButton* button,
bool get_set);
236 void SetFontChildren(wxButton* p,
const wxFontData& fontdata);
238 wxBrushStyle IdToBrushStyle(
int id);
239 int BrushStyleToId(wxBrushStyle style);
242 #ifdef ENABLE_MP_NAMESPACE 244 #endif // ENABLE_MP_NAMESPACE 246 #endif // __MathPlotConfig__ MathPlotConfigSettings * GetSettingsHandle(void)
Give access to m_settings if we want to save some others parameters.
Definition: MathPlotConfig.h:182
Class MathPlotConfigDialogBuilder.
Definition: MathPlotConfigBuilder.h:41
Abstract class providing a line.
Definition: mathplot.h:1795
Canvas for plotting mpLayer implementations.
Definition: mathplot.h:3361
Implement the legend to be added to the plot This layer allows you to add a legend to describe the pl...
Definition: mathplot.h:1493
Dialog box for configuring the plot's layer objects In this dialog, you can configure: ...
Definition: MathPlotConfig.h:154
MathPlotConfigSettings(const wxString &localFilename)
Manages the backup of configuration window data.
Definition: MathPlotConfig.h:41
#define WXDLLIMPEXP_MATHPLOT
Definition uses windows dll to export function.
Definition: mathplot.h:77
Helper class to save/restore configuration.
Definition: MathPlotConfig.h:49
wxMultiTextCtrlDialog(wxWindow *parent, const wxString &title, const wxString &message, long size, const wxString prompt[], double *values, const wxPoint &pos=wxDefaultPosition)
Constructor.
Definition: MathPlotConfig.h:92
Implements an overlay box which shows the mouse coordinates in plot units.
Definition: mathplot.h:1371
Plot layer implementing an abstract function plot class.
Definition: mathplot.h:1641
wxMultiTextCtrlDialog class A simple text control dialog window that support several text control ...
Definition: MathPlotConfig.h:94
Plot layer implementing an abstract scale ruler.
Definition: mathplot.h:2736
Plot layer implementing a text string.
Definition: mathplot.h:4738
Plot layer, abstract base class.
Definition: mathplot.h:867