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> 17 #include <wx/valnum.h> 19 #if defined(MP_ENABLE_NAMESPACE) || defined(ENABLE_MP_NAMESPACE) 21 #endif // MP_ENABLE_NAMESPACE 43 wxFileConfig(wxEmptyString, wxEmptyString, localFilename) {}
50 void SetSettings(wxWindow* win);
56 void GetSettings(wxWindow* win);
64 void DoPosition(
bool set, wxWindow *win);
73 void DoRecursiveSearch(
bool set, wxWindow *win,
const wxString &path = wxEmptyString,
int level = 0);
94 const wxString& message,
long size,
const wxString prompt[],
double *values,
95 const wxPoint& pos = wxDefaultPosition)
97 Create(parent, title, message, size, prompt, values, pos);
104 bool Create(wxWindow* parent,
const wxString& title,
105 const wxString& message,
long size,
const wxString prompt[],
double *values,
106 const wxPoint& pos = wxDefaultPosition);
109 void OnOK(wxCommandEvent& event);
110 void OnCancel(wxCommandEvent& event);
113 std::vector<wxTextCtrl *> m_ctrls;
114 wxDECLARE_EVENT_TABLE();
121 typedef enum __ConfigPageIndex
159 void Initialize(mpConfigPageId
id = mpcpiNone);
165 void SelectChoiceSerie(
unsigned int serie);
171 void SelectChoiceYAxis(
int yAxisID);
180 void CreateSettingsFile(
const wxString& filename,
const wxString& path = wxEmptyString,
bool apply =
false);
185 void ApplySettings(
void);
197 void OnnbConfigPageChanged( wxNotebookEvent& event );
198 void OnbFontClick( wxCommandEvent& event );
199 void OnbColorClick( wxCommandEvent& event );
200 void OnAxisSelect( wxCommandEvent& event );
201 void OnbAddAxisClick( wxCommandEvent& event );
202 void OnbDelAxisClick( wxCommandEvent& event );
203 void OncbAutoScaleClick( wxCommandEvent& event );
204 void OncbFormatSelect( wxCommandEvent& event );
205 void OnChoiceSeries( wxCommandEvent& event );
206 void OnbDelSeriesClick( wxCommandEvent& event );
207 void OncbSeriesShowNameClick( wxCommandEvent& event );
208 void OncbAutoStepClick( wxCommandEvent& event );
209 void OnChoiceLinesSelect( wxCommandEvent& event );
210 void OnbAddLinesClick( wxCommandEvent& event );
211 void OnbDelLinesClick( wxCommandEvent& event );
212 void OnbApplyClick( wxCommandEvent& event );
213 void OnbApplyAndFitClick( wxCommandEvent& event );
214 void OnQuit( wxCommandEvent& event );
218 unsigned int int_top, int_bottom, int_left, int_right, int_extra;
220 double scale_min, scale_max;
225 void CompleteInitialization(
void);
230 wxButton* colourButton;
237 wxChoice* CurrentChoice;
238 bool fontTitleChanged;
239 bool fontLegendChanged;
240 bool fontAxisChanged;
243 bool SerieVisibleChange;
245 void Apply(
int pageIndex,
bool updateFont =
false);
246 void UpdateSelectedSerie(
void);
247 void UpdateSelectedLine(
void);
248 void UpdateAxis(
void);
249 void FillYAxisList(wxChoice* yChoice,
bool clearChoice =
true);
250 void UpdateSeriesStep(
void);
252 void DoButtonColour(wxButton* button,
const wxColour& colour);
253 void DoApplyColour(
const wxColour& colour);
254 void UpdateFont(
mpLayer* layer, wxButton* button,
bool get_set);
255 void SetFontChildren(wxButton* p,
const wxFontData& fontdata);
257 wxBrushStyle IdToBrushStyle(
int id);
258 int BrushStyleToId(wxBrushStyle style);
261 #if defined(MP_ENABLE_NAMESPACE) || defined(ENABLE_MP_NAMESPACE) 263 #endif // MP_ENABLE_NAMESPACE 265 #endif // __MathPlotConfig__
Implements an overlay box which shows the mouse coordinates in plot units.
Definition: mathplot.h:1365
#define WXDLLIMPEXP_MATHPLOT
Definition uses windows dll to export function.
Definition: mathplot.h:90
Helper class to save/restore configuration.
Definition: MathPlotConfig.h:50
Plot layer implementing an abstract function plot class.
Definition: mathplot.h:1761
MathPlotConfigSettings(const wxString &localFilename)
Manages the backup of configuration window data.
Definition: MathPlotConfig.h:42
Abstract class providing a line.
Definition: mathplot.h:1918
wxMultiTextCtrlDialog(wxWindow *parent, const wxString &title, const wxString &message, long size, const wxString prompt[], double *values, const wxPoint &pos=wxDefaultPosition)
Constructor.
Definition: MathPlotConfig.h:93
Dialog box for configuring the plot's layer objects In this dialog, you can configure: ...
Definition: MathPlotConfig.h:155
MathPlotConfigSettings * GetSettingsHandle(void)
Give access to m_settings if we want to save some others parameters.
Definition: MathPlotConfig.h:190
Plot layer implementing a text string.
Definition: mathplot.h:4860
Canvas for plotting mpLayer implementations.
Definition: mathplot.h:3515
Class MathPlotConfigDialogBuilder.
Definition: MathPlotConfigBuilder.h:39
Implement the legend to be added to the plot This layer allows you to add a legend to describe the pl...
Definition: mathplot.h:1497
wxMultiTextCtrlDialog class A simple text control dialog window that support several text control ...
Definition: MathPlotConfig.h:95
Plot layer implementing an abstract scale ruler.
Definition: mathplot.h:2871
Plot layer, abstract base class.
Definition: mathplot.h:862