KiCad PCB EDA Suite
tool_pcb_editor.cpp File Reference

PCB editor toolbars build/rebuild functions. More...

#include <fctsys.h>
#include <kiface_i.h>
#include <help_common_strings.h>
#include <dialog_helpers.h>
#include <pcb_edit_frame.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <bitmaps.h>
#include <class_board.h>
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <hotkeys.h>
#include <pcb_layer_box_selector.h>
#include <view/view.h>
#include <wx/wupdlock.h>
#include <memory>
#include <pgm_base.h>

Go to the source code of this file.

Macros

#define SEL_LAYER_HELP
 
#define BM_LAYERICON_SIZE   24
 
#define ADD_TOOL(id, xpm, tooltip)   m_mainToolBar->AddTool( id, wxEmptyString, KiScaledBitmap( xpm, this ), tooltip );
 

Functions

bool IsWxPythonLoaded ()
 

Variables

static std::unique_ptr< wxBitmap > LayerPairBitmap
 
static const char s_BitmapLayerIcon [BM_LAYERICON_SIZE][BM_LAYERICON_SIZE]
 

Detailed Description

PCB editor toolbars build/rebuild functions.

Definition in file tool_pcb_editor.cpp.

Macro Definition Documentation

#define ADD_TOOL (   id,
  xpm,
  tooltip 
)    m_mainToolBar->AddTool( id, wxEmptyString, KiScaledBitmap( xpm, this ), tooltip );
#define BM_LAYERICON_SIZE   24

Definition at line 62 of file tool_pcb_editor.cpp.

Referenced by PCB_EDIT_FRAME::PrepareLayerIndicator().

#define SEL_LAYER_HELP
Value:
_( \
"Show active layer selections\nand select layer pair for route and place via" )

Definition at line 55 of file tool_pcb_editor.cpp.

Referenced by PCB_EDIT_FRAME::ReCreateHToolbar().

Function Documentation

bool IsWxPythonLoaded ( )

Definition at line 67 of file python_scripting.cpp.

References name, swigAddModule(), and wxPythonLoaded.

Referenced by PCB_EDIT_FRAME::ReCreateHToolbar().

68 {
69  return wxPythonLoaded;
70 }
static bool wxPythonLoaded

Variable Documentation

std::unique_ptr<wxBitmap> LayerPairBitmap
static
const char s_BitmapLayerIcon[BM_LAYERICON_SIZE][BM_LAYERICON_SIZE]
static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