wxMaxima
Loading...
Searching...
No Matches
Plot2dWiz.h
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2//
3// Copyright (C) 2004-2015 Andrej Vodopivec <andrej.vodopivec@gmail.com>
4//
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// SPDX-License-Identifier: GPL-2.0+
21
22#ifndef PLOT2DWIZ_H
23#define PLOT2DWIZ_H
24
25#include "precomp.h"
26#include <wx/wx.h>
27#include <wx/statline.h>
28#include <wx/spinctrl.h>
29#include <wx/bmpbuttn.h>
30
31#include "BTextCtrl.h"
32
33// cppcheck-suppress ctuOneDefinitionRuleViolation
34class Plot2DWiz : public wxDialog
35{
36public:
37 Plot2DWiz(wxWindow *parent, int id,
38 Configuration *cfg,
39 const wxString &title,
40 const wxPoint &pos = wxDefaultPosition,
41 const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
42
43 void SetValue(wxString s);
44
45 wxString GetValue();
46
47private:
48 Configuration *m_configuration;
49
50 void set_properties();
51
52 void do_layout();
53
54 void OnButton(wxCommandEvent &event);
55
56 void OnCombobox(wxCommandEvent &event);
57
58 void OnFileBrowse(wxCommandEvent &event);
59
60 void OnPopupMenu(wxCommandEvent &event);
61
62 void Parse(wxString s);
63
64 enum
65 {
66 cartesian,
67 polar
68 };
69
70protected:
71 int type;
72 wxStaticText *label_2;
73 BTextCtrl *text_ctrl_1;
74 wxButton *button_3;
75 wxStaticText *label_3;
76 BTextCtrl *text_ctrl_2;
77 wxStaticText *label_4;
78 BTextCtrl *text_ctrl_3;
79 wxStaticText *label_5;
80 BTextCtrl *text_ctrl_4;
81 wxCheckBox *check_box_1;
82 wxStaticText *label_6;
83 BTextCtrl *text_ctrl_5;
84 wxStaticText *label_7;
85 BTextCtrl *text_ctrl_6;
86 wxStaticText *label_8;
87 BTextCtrl *text_ctrl_7;
88 wxCheckBox *check_box_2;
89 wxStaticText *label_9;
90 wxComboBox *combo_box_1;
91 wxStaticText *label_10;
92 wxSpinCtrl *text_ctrl_8;
93 wxStaticText *label_11;
94 wxComboBox *combo_box_2;
95 wxStaticText *label_12;
96 BTextCtrl *text_ctrl_9;
97 wxBitmapButton *button_4;
98 wxStaticLine *static_line_1;
99 wxButton *button_1;
100 wxButton *button_2;
101};
102
103class Plot2DPar : public wxDialog
104{
105public:
106 Plot2DPar(wxWindow *parent, int id, Configuration *configuration,
107 const wxString &title,
108 const wxPoint &pos = wxDefaultPosition,
109 const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
110
111 void SetValue(wxString s)
112 {
113 text_ctrl_1->SetValue(s);
114 text_ctrl_1->SetSelection(-1, -1);
115 }
116
117 wxString GetValue();
118
119private:
120 void set_properties();
121
122 void do_layout();
123
124protected:
125 wxStaticText *label_2;
126 wxStaticText *label_3;
127 BTextCtrl *text_ctrl_1;
128 wxStaticText *label_4;
129 BTextCtrl *text_ctrl_2;
130 wxStaticText *label_5;
131 BTextCtrl *text_ctrl_3;
132 wxStaticText *label_6;
133 BTextCtrl *text_ctrl_4;
134 BTextCtrl *text_ctrl_5;
135 wxStaticText *label_7;
136 wxSpinCtrl *spin_ctrl_1;
137 wxStaticLine *static_line_1;
138 wxButton *button_1;
139 wxButton *button_2;
140};
141
142class Plot2DDiscrete : public wxDialog
143{
144public:
145 Plot2DDiscrete(wxWindow *parent, int id,
146 Configuration *cfg,
147 const wxString &title,
148 const wxPoint &pos = wxDefaultPosition,
149 const wxSize &size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE);
150
151 void SetValue(wxString s)
152 {
153 text_ctrl_1->SetValue(s);
154 text_ctrl_1->SetSelection(-1, -1);
155 }
156
157 wxString GetValue();
158
159private:
160 void set_properties();
161
162 void do_layout();
163
164protected:
165 wxStaticText *label_2;
166 wxStaticText *label_3;
167 BTextCtrl *text_ctrl_1;
168 BTextCtrl *text_ctrl_2;
169 wxStaticLine *static_line_1;
170 wxButton *button_1;
171 wxButton *button_2;
172};
173
174
175#endif // PLOT2DWIZ_H
A wxTextCtrl with parenthesis matching.
Definition: BTextCtrl.h:33
The configuration storage for the current worksheet.
Definition: Configuration.h:85
Definition: Plot2dWiz.h:143
Definition: Plot2dWiz.h:104
Definition: Plot2dWiz.h:35