wxMaxima
Loading...
Searching...
No Matches
ScrollingGenWizPanel.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 SCROLLINGGENWIZ_H
24#define SCROLLINGGENWIZ_H
25
26#include "precomp.h"
27#include "GenWizPanel.h"
28#include <wx/scrolwin.h>
29#include <wx/panel.h>
30
31class ScrollingGenWizPanel : public wxScrolled<wxPanel>
32{
33public:
34 ScrollingGenWizPanel(wxWindow *parent, Configuration *cfg, MaximaManual *manual,
35 const wxString &description = {}, const wxString &description_tooltip = {},
36 const wxString &commandRule = {},
37 const wxString &label1 = {}, const wxString &defaultval1 = {}, const wxString &tooltip1 = {},
38 const wxString &label2 = {}, const wxString &defaultval2 = {}, const wxString &tooltip2 = {},
39 const wxString &label3 = {}, const wxString &defaultval3 = {}, const wxString &tooltip3 = {},
40 const wxString &label4 = {}, const wxString &defaultval4 = {}, const wxString &tooltip4 = {},
41 const wxString &label5 = {}, const wxString &defaultval5 = {}, const wxString &tooltip5 = {},
42 const wxString &label6 = {}, const wxString &defaultval6 = {}, const wxString &tooltip6 = {},
43 const wxString &label7 = {}, const wxString &defaultval7 = {}, const wxString &tooltip7 = {},
44 const wxString &label8 = {}, const wxString &defaultval8 = {}, const wxString &tooltip8 = {},
45 const wxString &label9 = {}, const wxString &defaultval9 = {}, const wxString &tooltip9 = {});
46
47 wxString operator[](int i) const { return m_panel->operator[](i); }
48
49 wxString GetOutput() const {return m_panel->GetOutput();}
50
51 void NewWizard(const wxString &description, const wxString &description_tooltip,
52 const wxString &commandRule,
53 const wxString &label1, const wxString &defaultval1, const wxString &tooltip1,
54 const wxString &label2, const wxString &defaultval2, const wxString &tooltip2,
55 const wxString &label3, const wxString &defaultval3, const wxString &tooltip3,
56 const wxString &label4, const wxString &defaultval4, const wxString &tooltip4,
57 const wxString &label5, const wxString &defaultval5, const wxString &tooltip5,
58 const wxString &label6, const wxString &defaultval6, const wxString &tooltip6,
59 const wxString &label7, const wxString &defaultval7, const wxString &tooltip7,
60 const wxString &label8, const wxString &defaultval8, const wxString &tooltip8,
61 const wxString &label9, const wxString &defaultval9, const wxString &tooltip9)
62 {
63 m_panel->NewWizard(description, description_tooltip,
64 commandRule,
65 label1, defaultval1, tooltip1,
66 label2, defaultval2, tooltip2,
67 label3, defaultval3, tooltip3,
68 label4, defaultval4, tooltip4,
69 label5, defaultval5, tooltip5,
70 label6, defaultval6, tooltip6,
71 label7, defaultval7, tooltip7,
72 label8, defaultval8, tooltip8,
73 label9, defaultval9, tooltip9
74 );
75 }
76
77 wxButton *GetOKButton() const {return m_panel->GetOKButton();}
78 wxButton *GetAbortButton() const {return m_panel->GetAbortButton();}
79 wxButton *GetInsertButton() const{return m_panel->GetInsertButton();}
80 wxString GetHelpKeyword(int ID){return m_panel->GetHelpKeyword(ID);}
81
82protected:
83 GenWizPanel *m_panel;
84 void OnSize(wxSizeEvent &event);
85};
86
87#endif // SCROLLINGGENWIZ_H
The configuration storage for the current worksheet.
Definition: Configuration.h:85
A dockable, embeddable generic wizard.
Definition: GenWizPanel.h:43
void NewWizard(wxString description, const wxString &description_tooltip, const wxString &commandRule, const wxString &label1, const wxString &defaultval1, const wxString &tooltip1, const wxString &label2, const wxString &defaultval2, const wxString &tooltip2, const wxString &label3, const wxString &defaultval3, const wxString &tooltip3, const wxString &label4, const wxString &defaultval4, const wxString &tooltip4, const wxString &label5, const wxString &defaultval5, const wxString &tooltip5, const wxString &label6, const wxString &defaultval6, const wxString &tooltip6, const wxString &label7, const wxString &defaultval7, const wxString &tooltip7, const wxString &label8, const wxString &defaultval8, const wxString &tooltip8, const wxString &label9, const wxString &defaultval9, const wxString &tooltip9)
Replace the contents of this panel with a new wizard.
Definition: GenWizPanel.cpp:150
wxString GetOutput() const
Returns the command the wizard has generated, if commandRule wasn't empty.
Definition: GenWizPanel.h:88
Definition: MaximaManual.h:59
Definition: ScrollingGenWizPanel.h:32
Definition: CellPointers.h:32