KiCad PCB EDA Suite
pcbnew.h File Reference
#include <fctsys.h>
#include <convert_to_biu.h>

Go to the source code of this file.

Macros

#define TEXTS_MIN_SIZE   Mils2iu( 1 )
 Minimum text size in internal units (1 mil) More...
 
#define TEXTS_MAX_SIZE   Mils2iu( 10000 )
 Maximum text size in internal units (10 inches) More...
 
#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )
 Maximum text width in internal units (10 inches) More...
 

Functions

void PythonPluginsReloadBase ()
 Helper function PythonPluginsReloadBase Reload Python plugins if they are newer than the already loaded, and load new plugins if any It calls the LoadPlugins(bundlepath) Python method see kicadplugins.i. More...
 

Macro Definition Documentation

◆ TEXTS_MAX_SIZE

#define TEXTS_MAX_SIZE   Mils2iu( 10000 )

Maximum text size in internal units (10 inches)

Definition at line 33 of file pcbnew.h.

◆ TEXTS_MAX_WIDTH

#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )

Maximum text width in internal units (10 inches)

Definition at line 34 of file pcbnew.h.

◆ TEXTS_MIN_SIZE

#define TEXTS_MIN_SIZE   Mils2iu( 1 )

Minimum text size in internal units (1 mil)

Definition at line 32 of file pcbnew.h.

Function Documentation

◆ PythonPluginsReloadBase()

void PythonPluginsReloadBase ( )

Helper function PythonPluginsReloadBase Reload Python plugins if they are newer than the already loaded, and load new plugins if any It calls the LoadPlugins(bundlepath) Python method see kicadplugins.i.

Definition at line 302 of file pcbnew/pcbnew.cpp.

303 {
304 #if defined( KICAD_SCRIPTING )
305  // Reload plugin list: reload Python plugins if they are newer than the already loaded,
306  // and load new plugins
307  char cmd[1024];
308 
309  snprintf( cmd, sizeof( cmd ), "pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) );
310 
311  PyLOCK lock;
312 
313  // ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
314  int retv = PyRun_SimpleString( cmd );
315 
316  if( retv != 0 )
317  wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
318 #endif
319 }
wxString PyScriptingPath(bool aUserPath)
Find the Python scripting path.
#define TO_UTF8(wxstring)
Macro TO_UTF8 converts a wxString to a UTF8 encoded C string for all wxWidgets build modes.
Definition: macros.h:100

References PyScriptingPath(), and TO_UTF8.

Referenced by PCB_EDIT_FRAME::PythonPluginsReload().