KiCad PCB EDA Suite
common.cpp File Reference
#include <fctsys.h>
#include <eda_base_frame.h>
#include <base_struct.h>
#include <common.h>
#include <macros.h>
#include <base_units.h>
#include <reporter.h>
#include <wx/process.h>
#include <wx/config.h>
#include <wx/utils.h>
#include <wx/stdpaths.h>
#include <wx/url.h>
#include <pgm_base.h>
#include <ki_mutex.h>

Go to the source code of this file.

Functions

wxSize GetTextSize (const wxString &aSingleLine, wxWindow *aWindow)
 Function GetTextSize returns the size of aSingleLine of text when it is rendered in aWindow using whatever font is currently set in that window. More...
 
bool EnsureTextCtrlWidth (wxTextCtrl *aCtrl, const wxString *aString)
 Function EnsureTextCtrlWidth sets the minimum pixel width on a text control in order to make a text string be fully visible within it. More...
 
void wxStringSplit (const wxString &aText, wxArrayString &aStrings, wxChar aSplitter)
 Function wxStringSplit splits aString to a string list separated at aSplitter. More...
 
int ProcessExecute (const wxString &aCommandLine, int aFlags, wxProcess *callback)
 Function ProcessExecute runs a child process. More...
 
timestamp_t GetNewTimeStamp ()
 
double RoundTo0 (double x, double precision)
 Round to the nearest precision. More...
 
wxConfigBase * GetNewConfig (const wxString &aProgName)
 Function GetNewConfig. More...
 
wxString GetKicadConfigPath ()
 Function GetKicadConfigPath. More...
 
const wxString ExpandEnvVarSubstitutions (const wxString &aString)
 Function ExpandEnvVarSubstitutions replaces any environment variable references with their values. More...
 
const wxString ResolveUriByEnvVars (const wxString &aUri)
 Function ResolveUriByEnvVars replaces any environment variables in file-path uris (leaving network-path uris alone). More...
 
bool EnsureFileDirectoryExists (wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter)
 Helper function EnsureFileDirectoryExists make aTargetFullFileName absolute and creates the path of this file if it doesn't yet exist. More...
 

Variables

EDA_UNITS_T g_UserUnit
 Global variables definitions. More...
 
COLOR4D g_GhostColor
 Draw color for moving objects. More...
 

Function Documentation

bool EnsureFileDirectoryExists ( wxFileName *  aTargetFullFileName,
const wxString &  aBaseFilename,
REPORTER aReporter = NULL 
)

Helper function EnsureFileDirectoryExists make aTargetFullFileName absolute and creates the path of this file if it doesn't yet exist.

Parameters
aTargetFullFileNamethe wxFileName containing the full path and file name to modify. The path may be absolute or relative to aBaseFilename .
aBaseFilenamea full filename. Only its path is used to set the aTargetFullFileName path.
aReportera point to a REPORTER object use to show messages (can be NULL)
Returns
true if aOutputDir already exists or was successfully created.

Definition at line 282 of file common.cpp.

References GetChars(), REPORTER::Report(), REPORTER::RPT_ERROR, and REPORTER::RPT_INFO.

Referenced by DIALOG_GEN_FOOTPRINT_POSITION::CreateFiles(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SVG_PRINT::ExportSVGFile(), DIALOG_GENDRILL::GenDrillAndMapFiles(), PLOT_CONTROLLER::OpenPlotfile(), and DIALOG_PLOT::Plot().

285 {
286  wxString msg;
287  wxString baseFilePath = wxFileName( aBaseFilename ).GetPath();
288 
289  // make aTargetFullFileName path, which is relative to aBaseFilename path (if it is not
290  // already an absolute path) absolute:
291  if( !aTargetFullFileName->MakeAbsolute( baseFilePath ) )
292  {
293  if( aReporter )
294  {
295  msg.Printf( _( "Cannot make path \"%s\" absolute with respect to \"%s\"." ),
296  GetChars( aTargetFullFileName->GetPath() ),
297  GetChars( baseFilePath ) );
298  aReporter->Report( msg, REPORTER::RPT_ERROR );
299  }
300 
301  return false;
302  }
303 
304  // Ensure the path of aTargetFullFileName exists, and create it if needed:
305  wxString outputPath( aTargetFullFileName->GetPath() );
306 
307  if( !wxFileName::DirExists( outputPath ) )
308  {
309  if( wxMkdir( outputPath ) )
310  {
311  if( aReporter )
312  {
313  msg.Printf( _( "Output directory \"%s\" created.\n" ), GetChars( outputPath ) );
314  aReporter->Report( msg, REPORTER::RPT_INFO );
315  return true;
316  }
317  }
318  else
319  {
320  if( aReporter )
321  {
322  msg.Printf( _( "Cannot create output directory \"%s\".\n" ),
323  GetChars( outputPath ) );
324  aReporter->Report( msg, REPORTER::RPT_ERROR );
325  }
326 
327  return false;
328  }
329  }
330 
331  return true;
332 }
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_UNDEFINED)=0
Function Report is a pure virtual function to override in the derived object.
bool EnsureTextCtrlWidth ( wxTextCtrl *  aCtrl,
const wxString *  aString = NULL 
)

Function EnsureTextCtrlWidth sets the minimum pixel width on a text control in order to make a text string be fully visible within it.

The current font within the text control is considered. The text can come either from the control or be given as an argument. If the text control is larger than needed, then nothing is done.

Parameters
aCtrlthe text control to potentially make wider.
aStringthe text that is used in sizing the control's pixel width. If NULL, then the text already within the control is used.
Returns
bool - true if the aCtrl had its size changed, else false.

Definition at line 109 of file common.cpp.

References GetTextSize().

Referenced by SCH_EDIT_FRAME::EditComponent(), DIALOG_LABEL_EDITOR::InitDialog(), and GERBVIEW_FRAME::UpdateTitleAndInfo().

110 {
111  wxWindow* window = aCtrl->GetParent();
112 
113  if( !window )
114  window = aCtrl;
115 
116  wxString ctrlText;
117 
118  if( !aString )
119  {
120  ctrlText = aCtrl->GetValue();
121  aString = &ctrlText;
122  }
123 
124  wxSize textz = GetTextSize( *aString, window );
125  wxSize ctrlz = aCtrl->GetSize();
126 
127  if( ctrlz.GetWidth() < textz.GetWidth() + 10 )
128  {
129  ctrlz.SetWidth( textz.GetWidth() + 10 );
130  aCtrl->SetSizeHints( ctrlz );
131  return true;
132  }
133 
134  return false;
135 }
wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Function GetTextSize returns the size of aSingleLine of text when it is rendered in aWindow using wha...
Definition: common.cpp:94
const wxString ExpandEnvVarSubstitutions ( const wxString &  aString)

Function ExpandEnvVarSubstitutions replaces any environment variable references with their values.

Parameters
aString= a string containing (perhaps) references to env var
Returns
a string where env var are replaced by their value

Definition at line 255 of file common.cpp.

Referenced by S3D_FILENAME_RESOLVER::addPath(), S3D_FILENAME_RESOLVER::checkEnvVarPath(), S3D_PLUGIN_MANAGER::checkPluginName(), S3D_PLUGIN_MANAGER::checkPluginPath(), S3D_FILENAME_RESOLVER::createPathList(), LIB_TABLE::ExpandSubstitutions(), S3D_CACHE::Get3DConfigDir(), WORKSHEET_LAYOUT::MakeFullFileName(), S3D_FILENAME_RESOLVER::ResolvePath(), ResolveUriByEnvVars(), S3D_FILENAME_RESOLVER::Set3DConfigDir(), S3D_CACHE::Set3DConfigDir(), S3D_FILENAME_RESOLVER::SetProjectDir(), S3D_FILENAME_RESOLVER::ShortenPath(), and DLG_3D_PATH_CONFIG::updateEnvVars().

256 {
257  // wxGetenv( wchar_t* ) is not re-entrant on linux.
258  // Put a lock on multithreaded use of wxGetenv( wchar_t* ), called from wxEpandEnvVars(),
259  static MUTEX getenv_mutex;
260 
261  MUTLOCK lock( getenv_mutex );
262 
263  // We reserve the right to do this another way, by providing our own member
264  // function.
265  return wxExpandEnvVars( aString );
266 }
boost::interprocess::interprocess_mutex MUTEX
Establish KiCad MUTEX choices here in this file: typedef MUTEX and typedef MUTLOCK.
Definition: ki_mutex.h:42
boost::interprocess::scoped_lock< MUTEX > MUTLOCK
Definition: ki_mutex.h:43
wxString GetKicadConfigPath ( )

Function GetKicadConfigPath.

Returns
A wxString containing the config path for Kicad

Definition at line 218 of file common.cpp.

Referenced by FP_LIB_TABLE::GetGlobalTableFileName(), SYMBOL_LIB_TABLE::GetGlobalTableFileName(), GetNewConfig(), and CACHE_WRAPPER::~CACHE_WRAPPER().

219 {
220  wxFileName cfgpath;
221 
222  // From the wxWidgets wxStandardPaths::GetUserConfigDir() help:
223  // Unix: ~ (the home directory)
224  // Windows: "C:\Documents and Settings\username\Application Data"
225  // Mac: ~/Library/Preferences
226  cfgpath.AssignDir( wxStandardPaths::Get().GetUserConfigDir() );
227 
228 #if !defined( __WINDOWS__ ) && !defined( __WXMAC__ )
229  wxString envstr;
230 
231  if( !wxGetEnv( wxT( "XDG_CONFIG_HOME" ), &envstr ) || envstr.IsEmpty() )
232  {
233  // XDG_CONFIG_HOME is not set, so use the fallback
234  cfgpath.AppendDir( wxT( ".config" ) );
235  }
236  else
237  {
238  // Override the assignment above with XDG_CONFIG_HOME
239  cfgpath.AssignDir( envstr );
240  }
241 #endif
242 
243  cfgpath.AppendDir( wxT( "kicad" ) );
244 
245  if( !cfgpath.DirExists() )
246  {
247  cfgpath.Mkdir( wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL );
248  }
249 
250  return cfgpath.GetPath();
251 }
wxConfigBase* GetNewConfig ( const wxString &  aProgName)

Function GetNewConfig.

Use this function instead of creating a new wxConfig so we can put config files in a more proper place for each platform. This is generally $HOME/.config/kicad/ in Linux according to the FreeDesktop specification at http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html The config object created here should be destroyed by the caller.

Parameters
aProgNameis the name of the program calling this function - can be obtained by calling Pgm().App().GetAppName(). This will be the actual file name of the config file.
Returns
A pointer to a new wxConfigBase derived object is returned. The caller is in charge of deleting it.

Definition at line 206 of file common.cpp.

References GetKicadConfigPath().

Referenced by BIN_MOD::Init(), PGM_BASE::InitPgm(), ReadHotkeyConfig(), and EDA_BASE_FRAME::WriteHotkeyConfig().

207 {
208  wxConfigBase* cfg = 0;
209  wxFileName configname;
210  configname.AssignDir( GetKicadConfigPath() );
211  configname.SetFullName( aProgName );
212 
213  cfg = new wxFileConfig( wxT( "" ), wxT( "" ), configname.GetFullPath() );
214  return cfg;
215 }
wxString GetKicadConfigPath()
Function GetKicadConfigPath.
Definition: common.cpp:218
timestamp_t GetNewTimeStamp ( )
wxSize GetTextSize ( const wxString &  aSingleLine,
wxWindow *  aWindow 
)

Function GetTextSize returns the size of aSingleLine of text when it is rendered in aWindow using whatever font is currently set in that window.

Definition at line 94 of file common.cpp.

Referenced by DIALOG_FIELDS_EDITOR_GLOBAL::DIALOG_FIELDS_EDITOR_GLOBAL(), EDA_DRAW_FRAME::EDA_DRAW_FRAME(), EnsureTextCtrlWidth(), DIALOG_NON_COPPER_ZONES_EDITOR::Init(), DIALOG_COPPER_ZONE::initDialog(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::recalculateColumns(), PL_EDITOR_FRAME::ReCreateHToolbar(), and TEXTE_PCB::TransformShapeWithClearanceToPolygonSet().

95 {
96  wxCoord width;
97  wxCoord height;
98 
99  {
100  wxClientDC dc( aWindow );
101  dc.SetFont( aWindow->GetFont() );
102  dc.GetTextExtent( aSingleLine, &width, &height );
103  }
104 
105  return wxSize( width, height );
106 }
int ProcessExecute ( const wxString &  aCommandLine,
int  aFlags = wxEXEC_ASYNC,
wxProcess *  callback = NULL 
)

Function ProcessExecute runs a child process.

Parameters
aCommandLineThe process and any arguments to it all in a single string.
aFlagsThe same args as allowed for wxExecute()
callbackwxProcess implementing OnTerminate to be run when the child process finishes
Returns
int - pid of process, 0 in case of error (like return values of wxExecute())

Definition at line 161 of file common.cpp.

Referenced by ExecuteFile(), GetAssociatedDocument(), DIALOG_FREEROUTE::OnLaunchButtonClick(), OpenFile(), OpenPDF(), and SCH_EDIT_FRAME::WriteNetListFile().

162 {
163  return wxExecute( aCommandLine, aFlags, callback );
164 }
const wxString ResolveUriByEnvVars ( const wxString &  aUri)

Function ResolveUriByEnvVars replaces any environment variables in file-path uris (leaving network-path uris alone).

Definition at line 269 of file common.cpp.

References ExpandEnvVarSubstitutions().

Referenced by SCH_EDIT_FRAME::Process_Special_Functions(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler(), and DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler().

270 {
271  // URL-like URI: return as is.
272  wxURL url( aUri );
273  if( url.GetError() == wxURL_NOERR )
274  return aUri;
275 
276  // Otherwise, the path points to a local file. Resolve environment
277  // variables if any.
278  return ExpandEnvVarSubstitutions( aUri );
279 }
const wxString ExpandEnvVarSubstitutions(const wxString &aString)
Function ExpandEnvVarSubstitutions replaces any environment variable references with their values...
Definition: common.cpp:255
double RoundTo0 ( double  x,
double  precision 
)

Round to the nearest precision.

Try to approximate a coordinate using a given precision to prevent rounding errors when converting from inches to mm.

ie round the unit value to 0 if unit is 1 or 2, or 8 or 9

Definition at line 183 of file common.cpp.

References KiROUND().

Referenced by SCH_BASE_FRAME::UpdateStatusBar().

184 {
185  assert( precision != 0 );
186 
187  long long ix = KiROUND( x * precision );
188 
189  if ( x < 0.0 )
190  ix = -ix;
191 
192  int remainder = ix % 10; // remainder is in precision mm
193 
194  if( remainder <= 2 )
195  ix -= remainder; // truncate to the near number
196  else if( remainder >= 8 )
197  ix += 10 - remainder; // round to near number
198 
199  if ( x < 0 )
200  ix = -ix;
201 
202  return (double) ix / precision;
203 }
static int KiROUND(double v)
KiROUND rounds a floating point number to an int using "round halfway cases away from zero"...
Definition: common.h:107
void wxStringSplit ( const wxString &  aText,
wxArrayString &  aStrings,
wxChar  aSplitter 
)

Function wxStringSplit splits aString to a string list separated at aSplitter.

Parameters
aTextis the text to split
aStringswill contain the splitted lines
aSplitteris the 'split' character

Definition at line 138 of file common.cpp.

Referenced by CINFO3D_VISU::AddShapeWithClearanceToContainer(), EDA_TEXT::Draw(), export_vrml_pcbtext(), EDA_TEXT::GetTextBox(), HTML_MESSAGE_BOX::ListSet(), DIALOG_FOOTPRINT_WIZARD_LIST::onShowTrace(), SCH_TEXT::Plot(), BRDITEMS_PLOTTER::PlotTextePcb(), TEXTE_PCB::TransformShapeWithClearanceToPolygonSet(), and EDA_TEXT::TransformTextShapeToSegmentList().

139 {
140  wxString tmp;
141 
142  for( unsigned ii = 0; ii < aText.Length(); ii++ )
143  {
144  if( aText[ii] == aSplitter )
145  {
146  aStrings.Add( tmp );
147  tmp.Clear();
148  }
149 
150  else
151  tmp << aText[ii];
152  }
153 
154  if( !tmp.IsEmpty() )
155  {
156  aStrings.Add( tmp );
157  }
158 }

Variable Documentation

COLOR4D g_GhostColor
EDA_UNITS_T g_UserUnit

Global variables definitions.

display units

TODO: All of these variables should be moved into the class were they are defined and used. Most of them probably belong in the application class.

Definition at line 57 of file common.cpp.

Referenced by DIALOG_COPPER_ZONE::AcceptOptions(), EDA_DRAW_FRAME::AddMenuZoomAndGrid(), Append_Track_Width_List(), DIALOG_PLOT::applyPlotSettings(), DIALOG_CREATE_ARRAY::calculateCircularArrayProperties(), class2gridRow(), DIALOG_DESIGN_RULES::CopyDimensionsListsToBoard(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToSelectedField(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copySelectedFieldToPanel(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copySelectedFieldToPanel(), PCB_EDIT_FRAME::Create_MuWaveComponent(), MWAVE::CreateMicrowaveInductor(), DIALOG_CREATE_ARRAY::DIALOG_CREATE_ARRAY(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_MOVE_EXACT::DIALOG_MOVE_EXACT(), DIALOG_POSITION_RELATIVE::DIALOG_POSITION_RELATIVE(), DIALOG_SET_GRID::DIALOG_SET_GRID(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_DRC_CONTROL::DisplayDRCValues(), GERBER_FILE_IMAGE::DisplayImageInfo(), EDA_DRAW_FRAME::DisplayUnitsMsg(), drawCursorStrings(), drawTicksAlongLine(), PCB_EDIT_FRAME::Edit_Gap(), LIB_EDIT_FRAME::EditGraphicSymbol(), SCH_EDIT_FRAME::EditLine(), SCH_EDIT_FRAME::EditSheet(), SCH_EDIT_FRAME::EditSheetPin(), FOOTPRINT_EDIT_FRAME::Enter_Edge_Width(), PCB_EDIT_FRAME::GenFootprintsReport(), FOOTPRINT_EDIT_FRAME::GetConfigurationSettings(), PL_EDITOR_FRAME::GetConfigurationSettings(), SCH_EDIT_FRAME::GetConfigurationSettings(), PCB_EDIT_FRAME::GetConfigurationSettings(), GERBVIEW_FRAME::GetConfigurationSettings(), DIALOG_PAGES_SETTINGS::GetCustomSizeMilsFromDialog(), DIALOG_SET_GRID::getGridOrigin(), DIALOG_SET_GRID::getGridSize(), LIB_CIRCLE::GetMsgPanelInfo(), LIB_RECTANGLE::GetMsgPanelInfo(), LIB_POLYLINE::GetMsgPanelInfo(), LIB_TEXT::GetMsgPanelInfo(), LIB_ARC::GetMsgPanelInfo(), LIB_BEZIER::GetMsgPanelInfo(), LIB_PIN::GetMsgPanelInfo(), LIB_FIELD::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), LIB_PIN::getMsgPanelInfoBase(), PANEL_PREV_3D::getOrientationVars(), getTickFormatForScale(), TRACK_VIA_SIZE_MENU::getTrackDescription(), TRACK_VIA_SIZE_MENU::getViaDescription(), GRID_MENU::GRID_MENU(), DIALOG_GENERALOPTIONS::init(), DIALOG_NON_COPPER_ZONES_EDITOR::Init(), DIALOG_PLOT::init_Dialog(), DIALOG_FOOTPRINT_BOARD_EDITOR::InitBoardProperties(), DIALOG_SVG_PRINT::initDialog(), DIALOG_GLOBAL_FOOTPRINTS_FIELDS_EDITION::initDialog(), DIALOG_PAGES_SETTINGS::initDialog(), DIALOG_LABEL_EDITOR::InitDialog(), DIALOG_COPPER_ZONE::initDialog(), DIALOG_DESIGN_RULES::InitDimensionsLists(), DIALOG_LIB_EDIT_TEXT::initDlg(), DIALOG_PLOT_SCHEMATIC::initDlg(), DIALOG_DESIGN_RULES::InitGlobalRules(), DIALOG_FOOTPRINT_FP_EDITOR::initModeditProperties(), DIALOG_DISPLAY_OPTIONS::initOptDialog(), PANEL_PREV_3D::initPanel(), DIALOG_MODEDIT_OPTIONS::initValues(), DIALOG_PAD_PROPERTIES::initValues(), DIALOG_PRINT_USING_PRINTER::initValues(), LengthDoubleToString(), GERBVIEW_FRAME::Liste_D_Codes(), Mils2mm(), MWAVE_POLYGONAL_SHAPE_DLG::MWAVE_POLYGONAL_SHAPE_DLG(), DIALOG_PADS_MASK_CLEARANCE::myInit(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::onCellChanging(), DIALOG_PAD_PROPERTIES::onCornerSizePercentChange(), DIALOG_COPPER_ZONE::OnCornerSmoothingModeChoice(), PANEL_PREV_3D::onDecrementOffset(), LIB_EDIT_FRAME::OnEditPin(), SCH_EDIT_FRAME::OnFindDrcMarker(), FOOTPRINT_VIEWER_FRAME::OnHotKey(), FOOTPRINT_EDIT_FRAME::OnHotKey(), PCB_EDIT_FRAME::OnHotKey(), GERBVIEW_FRAME::OnHotKey(), PANEL_PREV_3D::onIncrementOffset(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnInitDialog(), PGE::IFACE::OnKifaceStart(), PANEL_PREV_3D::onMouseWheelOffset(), DIALOG_DISPLAY_OPTIONS::OnOKBUttonClick(), DIALOG_GENERALOPTIONS::OnOkClick(), DIALOG_LIB_EDIT_TEXT::OnOkClick(), DIALOG_NON_COPPER_ZONES_EDITOR::OnOkClick(), TARGET_PROPERTIES_DIALOG_EDITOR::OnOkClick(), DIALOG_DIMENSION_EDITOR::OnOKClick(), SCH_EDIT_FRAME::OnPreferencesOptions(), DIALOG_LIB_EDIT_PIN::OnPropertiesChange(), EDA_DRAW_FRAME::OnSelectUnits(), EDA_DRAW_FRAME::OnUpdateUnits(), DIALOG_TRACK_VIA_PROPERTIES::onViaSelect(), DIALOG_PAD_PROPERTIES::padValuesOK(), PutValueInLocalUnits(), DIALOG_PAGES_SETTINGS::SavePageSettings(), PCB_BASE_FRAME::SaveSettings(), DIALOG_DESIGN_RULES::SetDataValidators(), DIALOG_SET_GRID::setGridSize(), PANEL_PREV_3D::SetModelDataIdx(), DIALOG_SVG_PRINT::SetPenWidth(), DIALOG_PRINT_USING_PRINTER::SetPenWidth(), GERBVIEW_CONTROL::SwitchUnits(), PCBNEW_CONTROL::SwitchUnits(), PCB_EDIT_FRAME::SyncMenusAndToolbars(), TARGET_PROPERTIES_DIALOG_EDITOR::TARGET_PROPERTIES_DIALOG_EDITOR(), DIALOG_DESIGN_RULES::TestDataValidity(), DIALOG_LABEL_EDITOR::TextPropertiesAccept(), DIALOG_EDIT_FPTEXT::TransferDataFromWindow(), DIALOG_EDIT_ONE_FIELD::TransferDataFromWindow(), DIALOG_PCB_TEXT_PROPERTIES::TransferDataFromWindow(), DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::TransferDataFromWindow(), DIALOG_GRAPHIC_ITEM_PROPERTIES::TransferDataFromWindow(), DIALOG_PAD_PRIMITIVES_PROPERTIES::TransferDataFromWindow(), DIALOG_LAYERS_SETUP::TransferDataFromWindow(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::TransferDataFromWindow(), DIALOG_CREATE_ARRAY::TransferDataFromWindow(), DIALOG_EDIT_ONE_FIELD::TransferDataToWindow(), DIALOG_LAYERS_SETUP::TransferDataToWindow(), DIALOG_PAD_PRIMITIVE_POLY_PROPS::TransferDataToWindow(), DIALOG_PAD_PRIMITIVES_TRANSFORM::Transform(), GERBVIEW_FRAME::updateDCodeSelectBox(), DIALOG_POSITION_RELATIVE::updateDlgTexts(), DIALOG_MOVE_EXACT::updateDlgTexts(), PCB_BASE_FRAME::updateGridSelectBox(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::updateNetInfo(), DIALOG_PAD_PROPERTIES::updateRoundRectCornerValues(), PL_EDITOR_FRAME::UpdateStatusBar(), SCH_BASE_FRAME::UpdateStatusBar(), PCB_BASE_FRAME::UpdateStatusBar(), GERBVIEW_FRAME::UpdateStatusBar(), PCB_EDIT_FRAME::updateTraceWidthSelectBox(), PCB_EDIT_FRAME::updateViaSizeSelectBox(), DIALOG_MODEDIT_FP_BODY_ITEM_PROPERTIES::Validate(), DIALOG_GRAPHIC_ITEM_PROPERTIES::Validate(), ValueFromString(), ValueFromTextCtrl(), and KIGFX::PREVIEW::ARC_ASSISTANT::ViewDraw().