KiCad PCB EDA Suite
dialog_copper_zones.cpp File Reference
#include <wx/wx.h>
#include <fctsys.h>
#include <kiface_i.h>
#include <confirm.h>
#include <PolyLine.h>
#include <pcbnew.h>
#include <wxPcbStruct.h>
#include <zones.h>
#include <base_units.h>
#include <class_zone.h>
#include <class_board.h>
#include <dialog_copper_zones_base.h>
#include <wx/imaglist.h>
#include <wx/listctrl.h>
#include <layers_id_colors_and_visibility.h>

Go to the source code of this file.

Classes

class  DIALOG_COPPER_ZONE
 Class DIALOG_COPPER_ZONE is the derived class from dialog_copper_zone_frame created by wxFormBuilder. More...
 

Macros

#define LAYER_BITMAP_SIZE_X   20
 
#define LAYER_BITMAP_SIZE_Y   10
 
#define CLEARANCE_MAX_VALUE   ZONE_CLEARANCE_MAX_VALUE_MIL*IU_PER_MILS
 

Functions

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

Macro Definition Documentation

#define CLEARANCE_MAX_VALUE   ZONE_CLEARANCE_MAX_VALUE_MIL*IU_PER_MILS
#define LAYER_BITMAP_SIZE_X   20
#define LAYER_BITMAP_SIZE_Y   10

Function Documentation

ZONE_EDIT_T 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
ZONE_EDIT_T - tells if user aborted, changed only one zone, or all of them.

Definition at line 129 of file dialog_copper_zones.cpp.

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().

130 {
131  DIALOG_COPPER_ZONE dlg( aCaller, aSettings );
132 
133  ZONE_EDIT_T result = ZONE_EDIT_T( dlg.ShowModal() );
134  return result;
135 }
ZONE_EDIT_T
Exit codes for zone editing dialogs.
Definition: zones.h:47
Class DIALOG_COPPER_ZONE is the derived class from dialog_copper_zone_frame created by wxFormBuilder...