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...
 
#define PCBNEW_H
 
#define TEXTS_MIN_SIZE   Mils2iu( 1 )
 
#define TEXTS_MAX_SIZE   Mils2iu( 10000 )
 
#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )
 

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

◆ PCBNEW_H

#define PCBNEW_H

◆ TEXTS_MAX_SIZE [1/2]

#define TEXTS_MAX_SIZE   Mils2iu( 10000 )

Maximum text size in internal units (10 inches)

Definition at line 33 of file pcbnew.h.

◆ TEXTS_MAX_SIZE [2/2]

#define TEXTS_MAX_SIZE   Mils2iu( 10000 )

◆ TEXTS_MAX_WIDTH [1/2]

#define TEXTS_MAX_WIDTH   Mils2iu( 10000 )

◆ TEXTS_MAX_WIDTH [2/2]

#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 [1/2]

#define TEXTS_MIN_SIZE   Mils2iu( 1 )

Minimum text size in internal units (1 mil)

Definition at line 32 of file pcbnew.h.

◆ TEXTS_MIN_SIZE [2/2]

#define TEXTS_MIN_SIZE   Mils2iu( 1 )

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

296 {
297 #if defined( KICAD_SCRIPTING )
298  // Reload plugin list: reload Python plugins if they are newer than the already loaded,
299  // and load new plugins
300  char cmd[1024];
301 
302  snprintf( cmd, sizeof( cmd ), "pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) );
303 
304  PyLOCK lock;
305 
306  // ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
307  int retv = PyRun_SimpleString( cmd );
308 
309  if( retv != 0 )
310  wxLogError( "Python error %d occurred running command:\n\n`%s`", retv, cmd );
311 #endif
312 }
wxString PyScriptingPath()
Find the Python scripting path.
#define TO_UTF8(wxstring)

References PyScriptingPath(), and TO_UTF8.

Referenced by PCB_EDIT_FRAME::PythonPluginsReload().