KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_sim_command.cpp File Reference
#include "dialog_sim_command.h"
#include <sim/spice_circuit_model.h>
#include <sim/ngspice.h>
#include <sim/simulator_frame.h>
#include <sim/sim_plot_tab.h>
#include <confirm.h>
#include <eda_pattern_match.h>
#include <wx/tokenzr.h>
#include <vector>
#include <utility>

Go to the source code of this file.

Macros

#define GET_STR(val)
 
#define TO_INT(ctrl)
 

Functions

static bool empty (const wxTextEntryBase *aCtrl)
 
static void setStringSelection (wxChoice *aCtrl, const wxString &aStr)
 
static wxString getStringSelection (const wxChoice *aCtrl)
 

Macro Definition Documentation

◆ GET_STR

#define GET_STR (   val)
Value:
val, false /* no units */ )
constexpr EDA_IU_SCALE unityScale
Definition: base_units.h:111
KICOMMON_API wxString MessageTextFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=true, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
A helper to convert the double length aValue to a string in inches, millimeters, or unscaled units.
Definition: eda_units.cpp:408

◆ TO_INT

#define TO_INT (   ctrl)
Value:
ctrl->GetValue() )
KICOMMON_API long long int ValueFromString(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Function ValueFromString converts aTextValue in aUnits to internal units used by the application.
Definition: eda_units.cpp:671

Function Documentation

◆ empty()

static bool empty ( const wxTextEntryBase *  aCtrl)
static

Definition at line 41 of file dialog_sim_command.cpp.

Referenced by NETLIST::AnyFootprintsLinked(), BOOST_AUTO_TEST_CASE(), PROPERTY_BASE::Choices(), DATABASE_CONNECTION::columnsFor(), DSN::SPECCTRA_DB::doNET(), DSN::SPECCTRA_DB::doSUPPLY_PIN(), DSN::SPECCTRA_DB::doWAS_IS(), PAD_TOOL::EnumeratePads(), KIFONT::STROKE_GLYPH::Finalize(), DSN::SPECCTRA_DB::FromBOARD(), PCB_IO_IPC2581::generateAvlSection(), SCHEMATIC::GetContextualTextVars(), PROPERTY_MANAGER::GetDisplayOrder(), PROPERTY_MANAGER::GetGroupDisplayOrder(), NL_3D_VIEWER_PLUGIN_IMPL::GetIsSelectionEmpty(), NL_SCHEMATIC_PLUGIN_IMPL::GetIsSelectionEmpty(), NL_GERBVIEW_PLUGIN_IMPL::GetIsSelectionEmpty(), NL_PL_EDITOR_PLUGIN_IMPL::GetIsSelectionEmpty(), NL_PCBNEW_PLUGIN_IMPL::GetIsSelectionEmpty(), PNS::ROUTER::getNearestRatnestAnchor(), PROPERTY_MANAGER::GetProperties(), PLUGIN_CONTENT_MANAGER::GetRepositoryPackages(), FOOTPRINT_EDIT_FRAME::GetTargetFPID(), SYMBOL_EDIT_FRAME::GetTargetLibId(), PCB_SELECTION_TOOL::itemPassesFilter(), SPICE_GENERATOR_RAW_SPICE::ItemPins(), SIM_MODEL_SOURCE::makeParamInfos(), SCH_EDIT_FRAME::OnImportProject(), FOOTPRINT_EDIT_FRAME::OnSaveFootprintAsPng(), PCB_EDIT_FRAME::RecreateBOMFileFromBoard(), PCB_TUNING_PATTERN::Remove(), SHAPE_POLY_SET::Simplify(), SCH_SHEET_LIST::TestForRecursion(), DIALOG_SIM_COMMAND::TransferDataFromWindow(), DIALOG_EXPORT_2581::TransferDataFromWindow(), DIALOG_SIM_COMMAND::TransferDataToWindow(), DIALOG_SIM_MODEL< T >::TransferDataToWindow(), and EDIT_POINTS::ViewBBox().

◆ getStringSelection()

static wxString getStringSelection ( const wxChoice *  aCtrl)
static

◆ setStringSelection()

static void setStringSelection ( wxChoice *  aCtrl,
const wxString &  aStr 
)
static

Definition at line 47 of file dialog_sim_command.cpp.

Referenced by DIALOG_SIM_COMMAND::parseCommand().