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 <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:411

◆ 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:693

Function Documentation

◆ empty()

static bool empty ( const wxTextEntryBase *  aCtrl)
static

◆ getStringSelection()

static wxString getStringSelection ( const wxChoice *  aCtrl)
static

◆ setStringSelection()

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

Definition at line 46 of file dialog_sim_command.cpp.

Referenced by DIALOG_SIM_COMMAND::parseCommand().