KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sim_tab.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2016-2023 CERN
5 * Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 * @author Sylwester Kocjan <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 3
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * https://www.gnu.org/licenses/gpl-3.0.html
21 * or you may search the http://www.gnu.org website for the version 3 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#ifndef __SIM_PLOT_PANEL_BASE_H
27#define __SIM_PLOT_PANEL_BASE_H
28
29#include <sim/sim_types.h>
31#include <wx/panel.h>
32#include <wx/sizer.h>
33#include <wx/stattext.h>
34
35
36class SIM_TAB : public wxWindow
37{
38public:
39 SIM_TAB();
40 SIM_TAB( const wxString& aSimCommand, wxWindow* parent );
41 virtual ~SIM_TAB();
42
43 static bool IsPlottable( SIM_TYPE aSimType );
44
45 virtual void OnLanguageChanged() = 0;
46
47 SIM_TYPE GetSimType() const;
48
49 const wxString& GetSimCommand() const { return m_simCommand; }
50 void SetSimCommand( const wxString& aSimCommand ) { m_simCommand = aSimCommand; }
51
52 int GetSimOptions() const { return m_simOptions; }
53 void SetSimOptions( int aOptions ) { m_simOptions = aOptions; }
54
56 void SetLastSchTextSimCommand( const wxString& aCmd ) { m_lastSchTextSimCommand = aCmd; }
57
58 const wxString& GetSpicePlotName() const { return m_spicePlotName; }
59 void SetSpicePlotName( const wxString& aPlotName ) { m_spicePlotName = aPlotName; }
60
61private:
62 wxString m_simCommand;
63 unsigned m_simOptions;
66};
67
68
69class SIM_NOPLOT_TAB : public SIM_TAB
70{
71public:
72 SIM_NOPLOT_TAB( const wxString& aSimCommand, wxWindow* parent );
73
74 virtual ~SIM_NOPLOT_TAB();
75
76 void OnLanguageChanged() override;
77
78private:
79 wxSizer* m_sizer;
80 wxStaticText* m_textInfo;
81};
82
83
84#endif
wxStaticText * m_textInfo
Definition: sim_tab.h:80
wxSizer * m_sizer
Definition: sim_tab.h:79
void OnLanguageChanged() override
Definition: sim_tab.cpp:102
virtual ~SIM_NOPLOT_TAB()
Definition: sim_tab.cpp:97
int GetSimOptions() const
Definition: sim_tab.h:52
const wxString & GetSpicePlotName() const
Definition: sim_tab.h:58
SIM_TAB()
Definition: sim_tab.cpp:33
unsigned m_simOptions
Definition: sim_tab.h:63
void SetLastSchTextSimCommand(const wxString &aCmd)
Definition: sim_tab.h:56
virtual void OnLanguageChanged()=0
SIM_TYPE GetSimType() const
Definition: sim_tab.cpp:71
wxString m_simCommand
Definition: sim_tab.h:62
wxString m_lastSchTextSimCommand
Definition: sim_tab.h:64
void SetSimCommand(const wxString &aSimCommand)
Definition: sim_tab.h:50
const wxString & GetSimCommand() const
Definition: sim_tab.h:49
static bool IsPlottable(SIM_TYPE aSimType)
Definition: sim_tab.cpp:53
void SetSimOptions(int aOptions)
Definition: sim_tab.h:53
wxString m_spicePlotName
Definition: sim_tab.h:65
virtual ~SIM_TAB()
Definition: sim_tab.cpp:48
wxString GetLastSchTextSimCommand() const
Definition: sim_tab.h:55
void SetSpicePlotName(const wxString &aPlotName)
Definition: sim_tab.h:59
SIM_TYPE
< Possible simulation types
Definition: sim_types.h:32