KiCad PCB EDA Suite
pcbnew.h File Reference
#include <fctsys.h>
#include <base_struct.h>
#include <convert_to_biu.h>
#include <layers_id_colors_and_visibility.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...
 
#define FORCE_SKETCH   ( IS_DRAGGED | IN_EDIT )
 

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

◆ FORCE_SKETCH

#define FORCE_SKETCH   ( IS_DRAGGED | IN_EDIT )

Definition at line 44 of file pcbnew.h.

◆ TEXTS_MAX_SIZE

#define TEXTS_MAX_SIZE   Mils2iu( 10000 )

Maximum text size in internal units (10 inches)

Definition at line 39 of file pcbnew.h.

◆ TEXTS_MAX_WIDTH

#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )

Maximum text width in internal units (10 inches)

Definition at line 40 of file pcbnew.h.

◆ TEXTS_MIN_SIZE

#define TEXTS_MIN_SIZE   Mils2iu( 1 )

Minimum text size in internal units (1 mil)

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

289 {
290 #if defined( KICAD_SCRIPTING )
291  // Reload plugin list: reload Python plugins if they are newer than the already loaded,
292  // and load new plugins
293  char cmd[1024];
294 
295  snprintf( cmd, sizeof( cmd ), "pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) );
296 
297  PyLOCK lock;
298 
299  // ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
300  int retv = PyRun_SimpleString( cmd );
301 
302  if( retv != 0 )
303  wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
304 #endif
305 }
#define TO_UTF8(wxstring)
Macro TO_UTF8 converts a wxString to a UTF8 encoded C string for all wxWidgets build modes.
Definition: macros.h:48
wxString PyScriptingPath()
Find the Python scripting path.

References PyScriptingPath(), and TO_UTF8.

Referenced by PCB_EDIT_FRAME::PythonPluginsReload().