KiCad PCB EDA Suite
libedit.cpp File Reference
#include <fctsys.h>
#include <pgm_base.h>
#include <confirm.h>
#include <gestfich.h>
#include <tools/ee_actions.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 <sch_legacy_plugin.h>
#include <dialog_choose_component.h>
#include <symbol_tree_model_adapter.h>
#include <tool/tool_manager.h>
#include <dialogs/dialog_lib_new_component.h>
#include <dialog_helpers.h>
#include <wx/clipbrd.h>

Go to the source code of this file.

Functions

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

Function Documentation

◆ synchronizeLibEditScreenSettings()

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

Synchronize 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 209 of file libedit.cpp.

211 {
212  aIncomingScreen.SetGrid( aCurrentScreen.GetGridSize() );
213 }
const wxRealPoint & GetGridSize() const
Return the grid size of the currently selected grid.
Definition: base_screen.h:279
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().