KiCad PCB EDA Suite
libedit.cpp File Reference

Eeschema component library editor. More...

#include <fctsys.h>
#include <kiway.h>
#include <gr_basic.h>
#include <macros.h>
#include <pgm_base.h>
#include <sch_draw_panel.h>
#include <confirm.h>
#include <gestfich.h>
#include <eeschema_id.h>
#include <general.h>
#include <lib_edit_frame.h>
#include <class_library.h>
#include <template_fieldnames.h>
#include <wildcards_and_files_ext.h>
#include <sch_edit_frame.h>
#include <symbol_lib_table.h>
#include <lib_manager.h>
#include <symbol_tree_pane.h>
#include <widgets/lib_tree.h>
#include <dialog_choose_component.h>
#include <symbol_tree_model_adapter.h>
#include <dialogs/dialog_lib_new_component.h>
#include <dialog_helpers.h>

Go to the source code of this file.

Functions

static void synchronizeLibEditScreenSettings (const SCH_SCREEN &aCurrentScreen, SCH_SCREEN &aIncomingScreen)
 Synchronise screen settings from a current screen into another screen. More...
 

Detailed Description

Eeschema component library editor.

Definition in file libedit.cpp.

Function Documentation

◆ synchronizeLibEditScreenSettings()

static void synchronizeLibEditScreenSettings ( const SCH_SCREEN aCurrentScreen,
SCH_SCREEN aIncomingScreen 
)
static

Synchronise screen settings from a current screen into another screen.

This can be used, for example, when loading a new screen into a frame, but you want the new screen to inherit some settings (e.g. grids) from the frame's current screen.

Parameters
aCurrentScreenthe existing frame screen
aIncomingScreena screen that is intended to replace the current screen

Definition at line 164 of file libedit.cpp.

166 {
167  aIncomingScreen.SetGrid( aCurrentScreen.GetGridSize() );
168 }
const wxRealPoint & GetGridSize() const
Return the grid size of the currently selected grid.
Definition: base_screen.h:410
int SetGrid(const wxRealPoint &size)
set the current grid size m_Grid.

References BASE_SCREEN::GetGridSize(), and BASE_SCREEN::SetGrid().

Referenced by LIB_EDIT_FRAME::LoadOneLibraryPartAux().