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 290 of file pcbnew/pcbnew.cpp.

291 {
292 #if defined( KICAD_SCRIPTING )
293  // Reload plugin list: reload Python plugins if they are newer than the already loaded,
294  // and load new plugins
295  char cmd[1024];
296 
297  snprintf( cmd, sizeof( cmd ), "pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) );
298 
299  PyLOCK lock;
300 
301  // ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
302  int retv = PyRun_SimpleString( cmd );
303 
304  if( retv != 0 )
305  wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
306 #endif
307 }
#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().