Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6991b496
Commit
6991b496
authored
Dec 19, 2007
by
raburton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set eol-style native on new files
parent
fbe30472
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1777 additions
and
1777 deletions
+1777
-1777
dialog_zones_by_polygon.cpp
pcbnew/dialog_zones_by_polygon.cpp
+453
-453
dialog_zones_by_polygon.h
pcbnew/dialog_zones_by_polygon.h
+130
-130
filling_zone_algorithm.cpp
pcbnew/filling_zone_algorithm.cpp
+612
-612
zones_by_polygon.cpp
pcbnew/zones_by_polygon.cpp
+582
-582
No files found.
pcbnew/dialog_zones_by_polygon.cpp
View file @
6991b496
This diff is collapsed.
Click to expand it.
pcbnew/dialog_zones_by_polygon.h
View file @
6991b496
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: dialog_zones_by_polygon.h
// Name: dialog_zones_by_polygon.h
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 25/01/2006 11:35:19
// Created: 25/01/2006 11:35:19
// RCS-ID:
// RCS-ID:
// Copyright: GNU License
// Copyright: GNU License
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 25/01/2006 11:35:19
// Generated by DialogBlocks (unregistered), 25/01/2006 11:35:19
#ifndef DIALOG_ZONES_H_
#ifndef DIALOG_ZONES_H_
#define DIALOG_ZONES_H_
#define DIALOG_ZONES_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "dialog_zones_by_polygon.h"
#pragma interface "dialog_zones_by_polygon.h"
#endif
#endif
/*!
/*!
* Includes
* Includes
*/
*/
////@begin includes
////@begin includes
#include "wx/valgen.h"
#include "wx/valgen.h"
////@end includes
////@end includes
/*!
/*!
* Forward declarations
* Forward declarations
*/
*/
////@begin forward declarations
////@begin forward declarations
////@end forward declarations
////@end forward declarations
/*!
/*!
* Control identifiers
* Control identifiers
*/
*/
////@begin control identifiers
////@begin control identifiers
#define ID_DIALOG 10000
#define ID_DIALOG 10000
#define ID_RADIOBOX3 10003
#define ID_RADIOBOX3 10003
#define ID_TEXTCTRL1 10007
#define ID_TEXTCTRL1 10007
#define ID_RADIOBOX4 10008
#define ID_RADIOBOX4 10008
#define ID_RADIOBOX5 10009
#define ID_RADIOBOX5 10009
#define ID_BUTTON 10010
#define ID_BUTTON 10010
#define ID_NET_SORTING_OPTION 10005
#define ID_NET_SORTING_OPTION 10005
#define ID_NETNAME_SELECTION 10001
#define ID_NETNAME_SELECTION 10001
#define wxID_LAYER_SELECTION 10004
#define wxID_LAYER_SELECTION 10004
#define ID_LAYER_CHOICE 10002
#define ID_LAYER_CHOICE 10002
#define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
#define SYMBOL_WINEDA_ZONEFRAME_TITLE _("Fill Zones Options")
#define SYMBOL_WINEDA_ZONEFRAME_TITLE _("Fill Zones Options")
#define SYMBOL_WINEDA_ZONEFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_ZONEFRAME_IDNAME ID_DIALOG
#define SYMBOL_WINEDA_ZONEFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_ZONEFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_ZONEFRAME_POSITION wxDefaultPosition
#define SYMBOL_WINEDA_ZONEFRAME_POSITION wxDefaultPosition
////@end control identifiers
////@end control identifiers
/*!
/*!
* Compatibility
* Compatibility
*/
*/
#ifndef wxCLOSE_BOX
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#define wxCLOSE_BOX 0x1000
#endif
#endif
/*!
/*!
* WinEDA_ZoneFrame class declaration
* WinEDA_ZoneFrame class declaration
*/
*/
class
WinEDA_ZoneFrame
:
public
wxDialog
class
WinEDA_ZoneFrame
:
public
wxDialog
{
{
DECLARE_DYNAMIC_CLASS
(
WinEDA_ZoneFrame
)
DECLARE_DYNAMIC_CLASS
(
WinEDA_ZoneFrame
)
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
public
:
public
:
/// Constructors
/// Constructors
WinEDA_ZoneFrame
(
);
WinEDA_ZoneFrame
(
);
WinEDA_ZoneFrame
(
WinEDA_PcbFrame
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_ZONEFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_ZONEFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_ZONEFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_ZONEFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_ZONEFRAME_STYLE
);
WinEDA_ZoneFrame
(
WinEDA_PcbFrame
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_ZONEFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_ZONEFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_ZONEFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_ZONEFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_ZONEFRAME_STYLE
);
/// Creation
/// Creation
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_ZONEFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_ZONEFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_ZONEFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_ZONEFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_ZONEFRAME_STYLE
);
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_ZONEFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_ZONEFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_ZONEFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_ZONEFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_ZONEFRAME_STYLE
);
/// Creates the controls and sizers
/// Creates the controls and sizers
void
CreateControls
();
void
CreateControls
();
////@begin WinEDA_ZoneFrame event handler declarations
////@begin WinEDA_ZoneFrame event handler declarations
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON
void
ExecFillZone
(
wxCommandEvent
&
event
);
void
ExecFillZone
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
void
OnCancelClick
(
wxCommandEvent
&
event
);
void
OnCancelClick
(
wxCommandEvent
&
event
);
/// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_NET_SORTING_OPTION
/// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_NET_SORTING_OPTION
void
OnNetSortingOptionSelected
(
wxCommandEvent
&
event
);
void
OnNetSortingOptionSelected
(
wxCommandEvent
&
event
);
////@end WinEDA_ZoneFrame event handler declarations
////@end WinEDA_ZoneFrame event handler declarations
////@begin WinEDA_ZoneFrame member function declarations
////@begin WinEDA_ZoneFrame member function declarations
/// Retrieves bitmap resources
/// Retrieves bitmap resources
wxBitmap
GetBitmapResource
(
const
wxString
&
name
);
wxBitmap
GetBitmapResource
(
const
wxString
&
name
);
/// Retrieves icon resources
/// Retrieves icon resources
wxIcon
GetIconResource
(
const
wxString
&
name
);
wxIcon
GetIconResource
(
const
wxString
&
name
);
////@end WinEDA_ZoneFrame member function declarations
////@end WinEDA_ZoneFrame member function declarations
/// Should we show tooltips?
/// Should we show tooltips?
static
bool
ShowToolTips
();
static
bool
ShowToolTips
();
////@begin WinEDA_ZoneFrame member variables
////@begin WinEDA_ZoneFrame member variables
wxRadioBox
*
m_GridCtrl
;
wxRadioBox
*
m_GridCtrl
;
wxStaticText
*
m_ClearanceValueTitle
;
wxStaticText
*
m_ClearanceValueTitle
;
wxTextCtrl
*
m_ZoneClearanceCtrl
;
wxTextCtrl
*
m_ZoneClearanceCtrl
;
wxRadioBox
*
m_FillOpt
;
wxRadioBox
*
m_FillOpt
;
wxRadioBox
*
m_OrientEdgesOpt
;
wxRadioBox
*
m_OrientEdgesOpt
;
wxRadioBox
*
m_NetSortingOption
;
wxRadioBox
*
m_NetSortingOption
;
wxListBox
*
m_ListNetNameSelection
;
wxListBox
*
m_ListNetNameSelection
;
wxListBox
*
m_LayerSelectionCtrl
;
wxListBox
*
m_LayerSelectionCtrl
;
////@end WinEDA_ZoneFrame member variables
////@end WinEDA_ZoneFrame member variables
WinEDA_PcbFrame
*
m_Parent
;
WinEDA_PcbFrame
*
m_Parent
;
int
m_LayerId
[
LAYER_COUNT
];
// Handle the real layer number from layer name position in m_LayerSelectionCtrl
int
m_LayerId
[
LAYER_COUNT
];
// Handle the real layer number from layer name position in m_LayerSelectionCtrl
};
};
#endif // DIALOG_ZONES_H_
#endif // DIALOG_ZONES_H_
pcbnew/filling_zone_algorithm.cpp
View file @
6991b496
This diff is collapsed.
Click to expand it.
pcbnew/zones_by_polygon.cpp
View file @
6991b496
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment