wxMaxima
CsvWiz.h
Go to the documentation of this file.
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 // Copyright (C) 2017-2018 Gunter Königsmann <wxMaxima@physikbuch.de>
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 //
21 // SPDX-License-Identifier: GPL-2.0+
22 
27 #ifndef CSVWIZ_H
28 #define CSVWIZ_H
29 
30 #include "precomp.h"
31 #include <wx/wx.h>
32 #include <wx/button.h>
33 #include <wx/radiobut.h>
34 #include <wx/persist.h>
35 #include <wx/persist/toplevel.h>
36 
37 #include "BTextCtrl.h"
38 #include <wx/filedlg.h>
39 #include <wx/choice.h>
40 #include "Configuration.h"
41 
43 class CsvImportWiz : public wxDialog
44 {
45 public:
46 
47  CsvImportWiz(wxWindow *parent, Configuration *config);
48  ~CsvImportWiz();
49  wxString GetFilename(){return m_filename->GetValue();}
50  wxString GetSeparator();
51 protected:
52  void OnBrowse(wxCommandEvent &event);
53 private:
54  wxButton *m_browseButton;
55  BTextCtrl *m_filename;
56  wxChoice *m_separator;
57 };
58 
60 class CsvExportWiz : public wxDialog
61 {
62 public:
63 
64  CsvExportWiz(wxWindow *parent, Configuration *config, wxString objectType);
65  ~CsvExportWiz();
66  wxString GetFilename(){return m_filename->GetValue();}
67  wxString GetMatrix(){return m_matrix->GetValue();}
68  wxString GetSeparator();
69 protected:
70  void OnBrowse(wxCommandEvent &event);
71 private:
72  wxButton *m_browseButton;
73  BTextCtrl *m_matrix;
74  BTextCtrl *m_filename;
75  wxChoice *m_separator;
76 };
77 
78 #endif // CSVWIZ_H
CsvImportWiz
A wizard for explicit plots using draw.
Definition: CsvWiz.h:43
CsvExportWiz
A wizard for explicit plots using draw.
Definition: CsvWiz.h:60
Configuration
Definition: Configuration.h:83
BTextCtrl
Definition: BTextCtrl.h:32