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

Go to the source code of this file.

Classes

class  DIALOG_KEEPOUT_AREA_PROPERTIES
 Class DIALOG_KEEPOUT_AREA_PROPERTIES 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
 

Functions

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

Macro Definition Documentation

#define LAYER_BITMAP_SIZE_X   20
#define LAYER_BITMAP_SIZE_Y   10

Function Documentation

ZONE_EDIT_T InvokeKeepoutAreaEditor ( PCB_BASE_FRAME aCaller,
ZONE_SETTINGS aSettings 
)

Function InvokeKeepoutAreaEditor 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 94 of file dialog_keepout_area_properties.cpp.

References ZONE_ABORT, and ZONE_OK.

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

95 {
96  DIALOG_KEEPOUT_AREA_PROPERTIES dlg( aCaller, aSettings );
97 
98  ZONE_EDIT_T result = ZONE_ABORT;
99 
100  if( dlg.ShowModal() == wxID_OK )
101  result = ZONE_OK;
102 
103  return result;
104 }
ZONE_EDIT_T
Exit codes for zone editing dialogs.
Definition: zones.h:47
if new values were accepted
Definition: zones.h:49
if no change
Definition: zones.h:48
Class DIALOG_KEEPOUT_AREA_PROPERTIES is the derived class from dialog_copper_zone_frame created by wx...