KiCad PCB EDA Suite
pcbnew.h File Reference
#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 32 of file pcbnew.h.

◆ TEXTS_MAX_WIDTH

#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )

Maximum text width in internal units (10 inches)

Definition at line 33 of file pcbnew.h.

◆ TEXTS_MIN_SIZE

#define TEXTS_MIN_SIZE   Mils2iu( 1 )

Minimum text size in internal units (1 mil)

Definition at line 31 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 301 of file pcbnew/pcbnew.cpp.

302 {
303 #if defined( KICAD_SCRIPTING )
304  // Reload plugin list: reload Python plugins if they are newer than the already loaded,
305  // and load new plugins
306  char cmd[1024];
307 
308  snprintf( cmd, sizeof( cmd ), "pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) );
309 
310  PyLOCK lock;
311 
312  // ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
313  int retv = PyRun_SimpleString( cmd );
314 
315  if( retv != 0 )
316  wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
317 #endif
318 }
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:95

References PyScriptingPath(), and TO_UTF8.

Referenced by PCB_EDIT_FRAME::PythonPluginsReload().