wxMaxima
Loading...
Searching...
No Matches
src
wizards
Gen3Wiz.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 GEN3WIZ_H
24
#define GEN3WIZ_H
25
26
#include "precomp.h"
27
#include <wx/wx.h>
28
#include <wx/statline.h>
29
30
#include "BTextCtrl.h"
31
32
// cppcheck-suppress ctuOneDefinitionRuleViolation
33
class
Gen3Wiz
:
public
wxDialog
34
{
35
public
:
36
Gen3Wiz
(wxString lab1, wxString lab2, wxString lab3,
37
const
wxString &val1,
const
wxString &val2,
const
wxString &val3,
38
Configuration
*cfg,
39
wxWindow *parent,
int
id
,
const
wxString &title,
40
bool
eq =
false
,
41
const
wxString &warning = wxEmptyString,
42
const
wxString &warningToolTip = wxEmptyString,
43
const
wxPoint &pos = wxDefaultPosition,
44
const
wxSize &size = wxDefaultSize,
45
long
style = wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxRESIZE_BORDER | wxCAPTION | wxCLOSE_BOX | wxCLIP_CHILDREN);
46
47
void
SetValue(
const
wxString &s)
48
{
49
text_ctrl_1->SetValue(s);
50
text_ctrl_1->SetSelection(-1, -1);
51
}
52
53
wxString GetValue1()
54
{
55
return
text_ctrl_1->GetValue();
56
};
57
58
wxString GetValue2()
59
{
60
return
text_ctrl_2->GetValue();
61
};
62
63
wxString GetValue3()
64
{
65
return
text_ctrl_3->GetValue();
66
};
67
void
SetLabel1ToolTip(wxString toolTip){label_2->SetToolTip(toolTip);}
68
void
SetLabel2ToolTip(wxString toolTip){label_3->SetToolTip(toolTip);}
69
void
SetLabel3ToolTip(wxString toolTip){label_4->SetToolTip(toolTip);}
70
71
private
:
72
void
set_properties();
73
74
void
do_layout();
75
76
protected
:
77
wxStaticText *label_2;
78
BTextCtrl
*text_ctrl_1;
79
wxStaticText *label_3;
80
BTextCtrl
*text_ctrl_2;
81
wxStaticText *label_4;
82
BTextCtrl
*text_ctrl_3;
83
wxStaticLine *static_line_1;
84
wxButton *button_1;
85
wxButton *button_2;
86
wxStaticText *m_warning;
87
wxString m_warningText;
88
};
89
90
#endif
// GEN3WIZ_H
BTextCtrl
A wxTextCtrl with parenthesis matching.
Definition:
BTextCtrl.h:33
Configuration
The configuration storage for the current worksheet.
Definition:
Configuration.h:85
Gen3Wiz
Definition:
Gen3Wiz.h:34
Generated by
1.9.6