KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_rule_area_properties.cpp File Reference
#include <advanced_config.h>
#include <kiface_base.h>
#include <confirm.h>
#include <board.h>
#include <footprint.h>
#include <pcb_edit_frame.h>
#include <pcbnew_settings.h>
#include <zone_settings.h>
#include <dialog_rule_area_properties_base.h>
#include <panel_rule_area_properties_keepout_base.h>
#include <panel_rule_area_properties_placement_base.h>
#include <widgets/unit_binder.h>
#include <wx/statbox.h>
#include <wx/statline.h>
#include <wx/radiobut.h>

Go to the source code of this file.

Classes

class  DIALOG_RULE_AREA_PROPERTIES
 

Macros

#define LAYER_LIST_COLUMN_CHECK   0
 
#define LAYER_LIST_COLUMN_ICON   1
 
#define LAYER_LIST_COLUMN_NAME   2
 
#define LAYER_LIST_ROW_ALL_INNER_LAYERS   1
 

Functions

int InvokeRuleAreaEditor (PCB_BASE_FRAME *aCaller, ZONE_SETTINGS *aZoneSettings, BOARD *aBoard, CONVERT_SETTINGS *aConvertSettings)
 Function InvokeRuleAreaEditor invokes up a modal dialog window for copper zone editing.
 

Macro Definition Documentation

◆ LAYER_LIST_COLUMN_CHECK

#define LAYER_LIST_COLUMN_CHECK   0

Definition at line 42 of file dialog_rule_area_properties.cpp.

◆ LAYER_LIST_COLUMN_ICON

#define LAYER_LIST_COLUMN_ICON   1

Definition at line 43 of file dialog_rule_area_properties.cpp.

◆ LAYER_LIST_COLUMN_NAME

#define LAYER_LIST_COLUMN_NAME   2

Definition at line 44 of file dialog_rule_area_properties.cpp.

◆ LAYER_LIST_ROW_ALL_INNER_LAYERS

#define LAYER_LIST_ROW_ALL_INNER_LAYERS   1

Definition at line 45 of file dialog_rule_area_properties.cpp.

Function Documentation

◆ InvokeRuleAreaEditor()

int InvokeRuleAreaEditor ( PCB_BASE_FRAME aCaller,
ZONE_SETTINGS aSettings,
BOARD aBoard = nullptr,
CONVERT_SETTINGS aConvertSettings = nullptr 
)

Function InvokeRuleAreaEditor 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 92 of file dialog_rule_area_properties.cpp.

References DIALOG_SHIM::ShowModal().

Referenced by ZONE_CREATE_HELPER::createNewZone(), CONVERT_TOOL::CreatePolys(), PCB_EDIT_FRAME::Edit_Zone_Params(), FOOTPRINT_EDIT_FRAME::OnEditItemRequest(), and BOARD_EDITOR_CONTROL::ZoneDuplicate().