KiCad PCB EDA Suite
dialog_non_copper_zones_properties.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <confirm.h>
#include <wxPcbStruct.h>
#include <base_units.h>
#include <class_board.h>
#include <class_zone.h>
#include <pcbnew.h>
#include <zones.h>
#include <wx/imaglist.h>
#include <dialog_non_copper_zones_properties_base.h>

Go to the source code of this file.

Classes

class  DIALOG_NON_COPPER_ZONES_EDITOR
 Class DIALOG_NON_COPPER_ZONES_EDITOR is a dialog editor for non copper zones properties, derived from DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE, which is maintained and created by wxFormBuilder. More...
 

Macros

#define LAYER_BITMAP_SIZE_X   20
 
#define LAYER_BITMAP_SIZE_Y   10
 

Functions

ZONE_EDIT_T InvokeNonCopperZonesEditor (PCB_BASE_FRAME *aParent, ZONE_CONTAINER *aZone, ZONE_SETTINGS *aSettings)
 Function InvokeNonCopperZonesEditor invokes up a modal dialog window for non-copper zone editing. More...
 

Macro Definition Documentation

#define LAYER_BITMAP_SIZE_X   20
#define LAYER_BITMAP_SIZE_Y   10

Function Documentation

ZONE_EDIT_T InvokeNonCopperZonesEditor ( PCB_BASE_FRAME aParent,
ZONE_CONTAINER aZone,
ZONE_SETTINGS aSettings 
)

Function InvokeNonCopperZonesEditor invokes up a modal dialog window for non-copper zone editing.

Parameters
aParentis the PCB_BASE_FRAME calling parent window for the modal dialog, and it gives access to the BOARD through PCB_BASE_FRAME::GetBoard().
aZoneis the ZONE_CONTAINER to edit.
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 80 of file dialog_non_copper_zones_properties.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().

82 {
83  DIALOG_NON_COPPER_ZONES_EDITOR dlg( aParent, aZone, aSettings );
84 
85  ZONE_EDIT_T result = ZONE_EDIT_T( dlg.ShowModal() );
86 
87  return result;
88 }
ZONE_EDIT_T
Exit codes for zone editing dialogs.
Definition: zones.h:47
Class DIALOG_NON_COPPER_ZONES_EDITOR is a dialog editor for non copper zones properties, derived from DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE, which is maintained and created by wxFormBuilder.