KiCad PCB EDA Suite
toolbars_pcb_editor.cpp File Reference
#include <bitmaps.h>
#include <class_board.h>
#include <confirm.h>
#include <dialog_helpers.h>
#include <fctsys.h>
#include <kiface_i.h>
#include <memory>
#include <pcb_edit_frame.h>
#include <pcb_layer_box_selector.h>
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <pcbnew_settings.h>
#include <pgm_base.h>
#include <settings/color_settings.h>
#include <settings/common_settings.h>
#include <tool/action_toolbar.h>
#include <tool/actions.h>
#include <tools/pcb_actions.h>
#include <view/view.h>
#include <wx/wupdlock.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 );
 
#define TOGGLE_TOOL(toolbar, tool)   toolbar->Toggle( tool, IsCurrentTool( tool ) )
 

Functions

bool IsWxPythonLoaded ()
 

Variables

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

Macro Definition Documentation

◆ ADD_TOOL

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

◆ BM_LAYERICON_SIZE

#define BM_LAYERICON_SIZE   24

Definition at line 57 of file toolbars_pcb_editor.cpp.

◆ SEL_LAYER_HELP

#define SEL_LAYER_HELP
Value:
_( \
"Show active layer selections\nand select layer pair for route and place via" )
#define _(s)
Definition: 3d_actions.cpp:33

Definition at line 50 of file toolbars_pcb_editor.cpp.

◆ TOGGLE_TOOL

#define TOGGLE_TOOL (   toolbar,
  tool 
)    toolbar->Toggle( tool, IsCurrentTool( tool ) )

Function Documentation

◆ IsWxPythonLoaded()

bool IsWxPythonLoaded ( )

Definition at line 69 of file python_scripting.cpp.

70 {
71  return wxPythonLoaded;
72 }
static bool wxPythonLoaded
True if the wxPython scripting layer was successfully loaded.

References wxPythonLoaded.

Referenced by PCB_EDIT_FRAME::ReCreateHToolbar(), and PCB_EDIT_FRAME::SyncToolbars().

Variable Documentation

◆ LayerPairBitmap

std::unique_ptr<wxBitmap> LayerPairBitmap
static

Definition at line 55 of file toolbars_pcb_editor.cpp.

Referenced by PCB_EDIT_FRAME::PrepareLayerIndicator().

◆ s_BitmapLayerIcon

const char s_BitmapLayerIcon[BM_LAYERICON_SIZE][BM_LAYERICON_SIZE]
static
Initial value:
=
{
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 0, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 0, 1, 1, 1, 1, 3, 3, 2, 2, 2, 2, 2, 2, 2 },
{ 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, 1, 0, 3, 3, 2, 2, 2, 2, 2, 2, 2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