wxMaxima
Loading...
Searching...
No Matches
GenWiz.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// 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
23#ifndef GENWIZ_H
24#define GENWIZ_H
25
26#include "precomp.h"
27#include "GenWizPanel.h"
28
34class GenWiz : public wxDialog
35{
36public:
37 GenWiz(wxWindow *parent, Configuration *cfg, MaximaManual *manual,
38 const wxString &title,
39 const wxString &description, const wxString &description_tooltip,
40 const wxString &commandRule,
41 wxString label1, wxString defaultval1, wxString tooltip1 = {},
42 wxString label2 = {}, wxString defaultval2 = {}, wxString tooltip2 = {},
43 wxString label3 = {}, wxString defaultval3 = {}, wxString tooltip3 = {},
44 wxString label4 = {}, wxString defaultval4 = {}, wxString tooltip4 = {},
45 wxString label5 = {}, wxString defaultval5 = {}, wxString tooltip5 = {},
46 wxString label6 = {}, wxString defaultval6 = {}, wxString tooltip6 = {},
47 wxString label7 = {}, wxString defaultval7 = {}, wxString tooltip7 = {},
48 wxString label8 = {}, wxString defaultval8 = {}, wxString tooltip8 = {},
49 wxString label9 = {}, wxString defaultval9 = {}, wxString tooltip9 = {});
50
52 wxString operator[](int i) const { return m_panel->operator[](i); }
54 wxString GetOutput() const {return m_panel->GetOutput();}
56 wxString GetHelpKeyword(int ID){return m_panel->GetHelpKeyword(ID);}
57
58protected:
61};
62
63#endif // GENWIZ_H
The configuration storage for the current worksheet.
Definition: Configuration.h:85
A dockable, embeddable generic wizard.
Definition: GenWizPanel.h:43
wxString GetOutput() const
Returns the command the wizard has generated, if commandRule wasn't empty.
Definition: GenWizPanel.h:88
A generic wizard dialogue.
Definition: GenWiz.h:35
wxString operator[](int i) const
Returns the contents of the nth field.
Definition: GenWiz.h:52
wxString GetHelpKeyword(int ID)
If we generate a help keyword event this function tells what keyword it was for.
Definition: GenWiz.h:56
wxString GetOutput() const
Returns the command the wizard has generated, if commandRule wasn't empty.
Definition: GenWiz.h:54
GenWizPanel * m_panel
The contents of the dialogue.
Definition: GenWiz.h:60
Definition: MaximaManual.h:59