KiCad PCB EDA Suite
dialog_copper_zones.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <confirm.h>
#include <pcb_edit_frame.h>
#include <zones.h>
#include <bitmaps.h>
#include <widgets/unit_binder.h>
#include <class_zone.h>
#include <class_board.h>
#include <dialog_copper_zones_base.h>

Go to the source code of this file.

Classes

class  DIALOG_COPPER_ZONE
 

Macros

#define MIN_THICKNESS   ZONE_THICKNESS_MIN_VALUE_MIL*IU_PER_MILS
 

Functions

int InvokeCopperZonesEditor (PCB_BASE_FRAME *aCaller, ZONE_SETTINGS *aSettings)
 Function InvokeCopperZonesEditor invokes up a modal dialog window for copper zone editing. More...
 

Macro Definition Documentation

◆ MIN_THICKNESS

#define MIN_THICKNESS   ZONE_THICKNESS_MIN_VALUE_MIL*IU_PER_MILS

Definition at line 103 of file dialog_copper_zones.cpp.

Function Documentation

◆ InvokeCopperZonesEditor()

int InvokeCopperZonesEditor ( PCB_BASE_FRAME aCaller,
ZONE_SETTINGS aSettings 
)

Function InvokeCopperZonesEditor invokes up a modal dialog window for copper zone editing.

Parameters
aCalleris the PCB_BASE_FRAME calling parent window for the modal dialog, and it gives access to the BOARD through PCB_BASE_FRAME::GetBoard().
aSettingspoints to the ZONE_SETTINGS to edit.
Returns
int - tells if user aborted, changed only one zone, or all of them.

Definition at line 96 of file dialog_copper_zones.cpp.

97 {
98  DIALOG_COPPER_ZONE dlg( aCaller, aSettings );
99 
100  return dlg.ShowModal();
101 }

Referenced by PCB_EDIT_FRAME::Begin_Zone(), ZONE_CREATE_HELPER::createNewZone(), PCB_EDIT_FRAME::duplicateZone(), PCB_EDIT_FRAME::Edit_Zone_Params(), and PCB_EDITOR_CONTROL::ZoneDuplicate().