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
b58beebb
Commit
b58beebb
authored
Jun 13, 2007
by
raburton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set native eol on newly added text files
parent
89b3eb5a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
699 additions
and
699 deletions
+699
-699
cleaningoptions_dialog.cpp
pcbnew/cleaningoptions_dialog.cpp
+255
-255
cleaningoptions_dialog.h
pcbnew/cleaningoptions_dialog.h
+115
-115
win_eda_cleaningoptionsframe.cpp
pcbnew/win_eda_cleaningoptionsframe.cpp
+220
-220
win_eda_cleaningoptionsframe.h
pcbnew/win_eda_cleaningoptionsframe.h
+109
-109
No files found.
pcbnew/cleaningoptions_dialog.cpp
View file @
b58beebb
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: cleaningoptions_dialog.cpp
// Name: cleaningoptions_dialog.cpp
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 25/05/2007 14:24:54
// Created: 25/05/2007 14:24:54
// RCS-ID:
// RCS-ID:
// Copyright: GNU License
// Copyright: GNU License
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 25/05/2007 14:24:54
// Generated by DialogBlocks (unregistered), 25/05/2007 14:24:54
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "cleaningoptions_dialog.h"
#pragma implementation "cleaningoptions_dialog.h"
#endif
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#ifdef __BORLANDC__
#pragma hdrstop
#pragma hdrstop
#endif
#endif
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/wx.h"
#endif
#endif
////@begin includes
////@begin includes
////@end includes
////@end includes
#include "cleaningoptions_dialog.h"
#include "cleaningoptions_dialog.h"
////@begin XPM images
////@begin XPM images
////@end XPM images
////@end XPM images
/*!
/*!
* WinEDA_CleaningOptionsFrame type definition
* WinEDA_CleaningOptionsFrame type definition
*/
*/
IMPLEMENT_DYNAMIC_CLASS
(
WinEDA_CleaningOptionsFrame
,
wxDialog
)
IMPLEMENT_DYNAMIC_CLASS
(
WinEDA_CleaningOptionsFrame
,
wxDialog
)
/*!
/*!
* WinEDA_CleaningOptionsFrame event table definition
* WinEDA_CleaningOptionsFrame event table definition
*/
*/
BEGIN_EVENT_TABLE
(
WinEDA_CleaningOptionsFrame
,
wxDialog
)
BEGIN_EVENT_TABLE
(
WinEDA_CleaningOptionsFrame
,
wxDialog
)
////@begin WinEDA_CleaningOptionsFrame event table entries
////@begin WinEDA_CleaningOptionsFrame event table entries
EVT_CLOSE
(
WinEDA_CleaningOptionsFrame
::
OnCloseWindow
)
EVT_CLOSE
(
WinEDA_CleaningOptionsFrame
::
OnCloseWindow
)
EVT_BUTTON
(
ID_BUTTON_EXECUTE
,
WinEDA_CleaningOptionsFrame
::
OnButtonExecuteClick
)
EVT_BUTTON
(
ID_BUTTON_EXECUTE
,
WinEDA_CleaningOptionsFrame
::
OnButtonExecuteClick
)
////@end WinEDA_CleaningOptionsFrame event table entries
////@end WinEDA_CleaningOptionsFrame event table entries
END_EVENT_TABLE
()
END_EVENT_TABLE
()
/*!
/*!
* WinEDA_CleaningOptionsFrame constructors
* WinEDA_CleaningOptionsFrame constructors
*/
*/
WinEDA_CleaningOptionsFrame
::
WinEDA_CleaningOptionsFrame
()
WinEDA_CleaningOptionsFrame
::
WinEDA_CleaningOptionsFrame
()
{
{
Init
();
Init
();
}
}
WinEDA_CleaningOptionsFrame
::
WinEDA_CleaningOptionsFrame
(
WinEDA_PcbFrame
*
parent
,
wxDC
*
DC
,
wxWindowID
id
,
WinEDA_CleaningOptionsFrame
::
WinEDA_CleaningOptionsFrame
(
WinEDA_PcbFrame
*
parent
,
wxDC
*
DC
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
{
{
Init
();
Init
();
m_Parent
=
parent
;
m_Parent
=
parent
;
m_DC
=
DC
;
m_DC
=
DC
;
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
}
}
/*!
/*!
* WinEDA_CleaningOptionsFrame creator
* WinEDA_CleaningOptionsFrame creator
*/
*/
bool
WinEDA_CleaningOptionsFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
bool
WinEDA_CleaningOptionsFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
{
{
////@begin WinEDA_CleaningOptionsFrame creation
////@begin WinEDA_CleaningOptionsFrame creation
SetExtraStyle
(
wxWS_EX_BLOCK_EVENTS
);
SetExtraStyle
(
wxWS_EX_BLOCK_EVENTS
);
wxDialog
::
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
wxDialog
::
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
CreateControls
();
CreateControls
();
if
(
GetSizer
())
if
(
GetSizer
())
{
{
GetSizer
()
->
SetSizeHints
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
}
}
Centre
();
Centre
();
////@end WinEDA_CleaningOptionsFrame creation
////@end WinEDA_CleaningOptionsFrame creation
return
true
;
return
true
;
}
}
/*!
/*!
* WinEDA_CleaningOptionsFrame destructor
* WinEDA_CleaningOptionsFrame destructor
*/
*/
WinEDA_CleaningOptionsFrame
::~
WinEDA_CleaningOptionsFrame
()
WinEDA_CleaningOptionsFrame
::~
WinEDA_CleaningOptionsFrame
()
{
{
////@begin WinEDA_CleaningOptionsFrame destruction
////@begin WinEDA_CleaningOptionsFrame destruction
////@end WinEDA_CleaningOptionsFrame destruction
////@end WinEDA_CleaningOptionsFrame destruction
}
}
/*!
/*!
* Member initialisation
* Member initialisation
*/
*/
void
WinEDA_CleaningOptionsFrame
::
Init
()
void
WinEDA_CleaningOptionsFrame
::
Init
()
{
{
m_Parent
=
NULL
;
m_Parent
=
NULL
;
////@begin WinEDA_CleaningOptionsFrame member initialisation
////@begin WinEDA_CleaningOptionsFrame member initialisation
m_CleanViasOpt
=
NULL
;
m_CleanViasOpt
=
NULL
;
m_MergetSegmOpt
=
NULL
;
m_MergetSegmOpt
=
NULL
;
m_DeleteunconnectedOpt
=
NULL
;
m_DeleteunconnectedOpt
=
NULL
;
m_ConnectToPadsOpt
=
NULL
;
m_ConnectToPadsOpt
=
NULL
;
////@end WinEDA_CleaningOptionsFrame member initialisation
////@end WinEDA_CleaningOptionsFrame member initialisation
}
}
/*!
/*!
* Control creation for WinEDA_CleaningOptionsFrame
* Control creation for WinEDA_CleaningOptionsFrame
*/
*/
void
WinEDA_CleaningOptionsFrame
::
CreateControls
()
void
WinEDA_CleaningOptionsFrame
::
CreateControls
()
{
{
////@begin WinEDA_CleaningOptionsFrame content construction
////@begin WinEDA_CleaningOptionsFrame content construction
// Generated by DialogBlocks, 28/05/2007 19:08:46 (unregistered)
// Generated by DialogBlocks, 28/05/2007 19:08:46 (unregistered)
WinEDA_CleaningOptionsFrame
*
itemDialog1
=
this
;
WinEDA_CleaningOptionsFrame
*
itemDialog1
=
this
;
wxBoxSizer
*
itemBoxSizer2
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
itemBoxSizer2
=
new
wxBoxSizer
(
wxVERTICAL
);
itemDialog1
->
SetSizer
(
itemBoxSizer2
);
itemDialog1
->
SetSizer
(
itemBoxSizer2
);
wxBoxSizer
*
itemBoxSizer3
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
itemBoxSizer3
=
new
wxBoxSizer
(
wxHORIZONTAL
);
itemBoxSizer2
->
Add
(
itemBoxSizer3
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
itemBoxSizer3
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
wxStaticBox
*
itemStaticBoxSizer4Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBox
*
itemStaticBoxSizer4Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBoxSizer
*
itemStaticBoxSizer4
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer4Static
,
wxVERTICAL
);
wxStaticBoxSizer
*
itemStaticBoxSizer4
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer4Static
,
wxVERTICAL
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
m_CleanViasOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_CLEAN_VIAS
,
_
(
"Delete redundant vias"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_CleanViasOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_CLEAN_VIAS
,
_
(
"Delete redundant vias"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_CleanViasOpt
->
SetValue
(
false
);
m_CleanViasOpt
->
SetValue
(
false
);
itemStaticBoxSizer4
->
Add
(
m_CleanViasOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_CleanViasOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_MergetSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_MERGE_SEGMENTS
,
_
(
"Merge segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MergetSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_MERGE_SEGMENTS
,
_
(
"Merge segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MergetSegmOpt
->
SetValue
(
false
);
m_MergetSegmOpt
->
SetValue
(
false
);
itemStaticBoxSizer4
->
Add
(
m_MergetSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_MergetSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_DeleteunconnectedOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX1
,
_
(
"Delete unconnected tracks"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteunconnectedOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX1
,
_
(
"Delete unconnected tracks"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteunconnectedOpt
->
SetValue
(
false
);
m_DeleteunconnectedOpt
->
SetValue
(
false
);
itemStaticBoxSizer4
->
Add
(
m_DeleteunconnectedOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_DeleteunconnectedOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_ConnectToPadsOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX
,
_
(
"Connect stubs to Pads"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ConnectToPadsOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX
,
_
(
"Connect stubs to Pads"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ConnectToPadsOpt
->
SetValue
(
false
);
m_ConnectToPadsOpt
->
SetValue
(
false
);
itemStaticBoxSizer4
->
Add
(
m_ConnectToPadsOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_ConnectToPadsOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
wxBoxSizer
*
itemBoxSizer9
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
itemBoxSizer9
=
new
wxBoxSizer
(
wxVERTICAL
);
itemBoxSizer3
->
Add
(
itemBoxSizer9
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
itemBoxSizer3
->
Add
(
itemBoxSizer9
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
wxButton
*
itemButton10
=
new
wxButton
(
itemDialog1
,
ID_BUTTON_EXECUTE
,
_
(
"Clean pcb"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton10
=
new
wxButton
(
itemDialog1
,
ID_BUTTON_EXECUTE
,
_
(
"Clean pcb"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemButton10
->
SetDefault
();
itemButton10
->
SetDefault
();
itemBoxSizer9
->
Add
(
itemButton10
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
itemBoxSizer9
->
Add
(
itemButton10
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
// Set validators
// Set validators
m_CleanViasOpt
->
SetValidator
(
wxGenericValidator
(
&
s_CleanVias
)
);
m_CleanViasOpt
->
SetValidator
(
wxGenericValidator
(
&
s_CleanVias
)
);
m_MergetSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_MergeSegments
)
);
m_MergetSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_MergeSegments
)
);
m_DeleteunconnectedOpt
->
SetValidator
(
wxGenericValidator
(
&
s_DeleteUnconnectedSegm
)
);
m_DeleteunconnectedOpt
->
SetValidator
(
wxGenericValidator
(
&
s_DeleteUnconnectedSegm
)
);
////@end WinEDA_CleaningOptionsFrame content construction
////@end WinEDA_CleaningOptionsFrame content construction
}
}
/*!
/*!
* Should we show tooltips?
* Should we show tooltips?
*/
*/
bool
WinEDA_CleaningOptionsFrame
::
ShowToolTips
()
bool
WinEDA_CleaningOptionsFrame
::
ShowToolTips
()
{
{
return
true
;
return
true
;
}
}
/*!
/*!
* Get bitmap resources
* Get bitmap resources
*/
*/
wxBitmap
WinEDA_CleaningOptionsFrame
::
GetBitmapResource
(
const
wxString
&
name
)
wxBitmap
WinEDA_CleaningOptionsFrame
::
GetBitmapResource
(
const
wxString
&
name
)
{
{
// Bitmap retrieval
// Bitmap retrieval
////@begin WinEDA_CleaningOptionsFrame bitmap retrieval
////@begin WinEDA_CleaningOptionsFrame bitmap retrieval
wxUnusedVar
(
name
);
wxUnusedVar
(
name
);
return
wxNullBitmap
;
return
wxNullBitmap
;
////@end WinEDA_CleaningOptionsFrame bitmap retrieval
////@end WinEDA_CleaningOptionsFrame bitmap retrieval
}
}
/*!
/*!
* Get icon resources
* Get icon resources
*/
*/
wxIcon
WinEDA_CleaningOptionsFrame
::
GetIconResource
(
const
wxString
&
name
)
wxIcon
WinEDA_CleaningOptionsFrame
::
GetIconResource
(
const
wxString
&
name
)
{
{
// Icon retrieval
// Icon retrieval
////@begin WinEDA_CleaningOptionsFrame icon retrieval
////@begin WinEDA_CleaningOptionsFrame icon retrieval
wxUnusedVar
(
name
);
wxUnusedVar
(
name
);
return
wxNullIcon
;
return
wxNullIcon
;
////@end WinEDA_CleaningOptionsFrame icon retrieval
////@end WinEDA_CleaningOptionsFrame icon retrieval
}
}
/*!
/*!
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_EXECUTE
* wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_EXECUTE
*/
*/
void
WinEDA_CleaningOptionsFrame
::
OnButtonExecuteClick
(
wxCommandEvent
&
event
)
void
WinEDA_CleaningOptionsFrame
::
OnButtonExecuteClick
(
wxCommandEvent
&
event
)
{
{
s_CleanVias
=
m_CleanViasOpt
->
GetValue
();
s_CleanVias
=
m_CleanViasOpt
->
GetValue
();
s_MergeSegments
=
m_MergetSegmOpt
->
GetValue
();
s_MergeSegments
=
m_MergetSegmOpt
->
GetValue
();
s_DeleteUnconnectedSegm
=
m_DeleteunconnectedOpt
->
GetValue
();
s_DeleteUnconnectedSegm
=
m_DeleteunconnectedOpt
->
GetValue
();
s_ConnectToPads
=
m_ConnectToPadsOpt
->
GetValue
();
s_ConnectToPads
=
m_ConnectToPadsOpt
->
GetValue
();
Clean_Pcb_Items
(
m_Parent
,
m_DC
);
Clean_Pcb_Items
(
m_Parent
,
m_DC
);
Close
(
TRUE
);
Close
(
TRUE
);
}
}
/*!
/*!
* wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME
* wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME
*/
*/
void
WinEDA_CleaningOptionsFrame
::
OnCloseWindow
(
wxCloseEvent
&
event
)
void
WinEDA_CleaningOptionsFrame
::
OnCloseWindow
(
wxCloseEvent
&
event
)
{
{
s_CleanVias
=
m_CleanViasOpt
->
GetValue
();
s_CleanVias
=
m_CleanViasOpt
->
GetValue
();
s_MergeSegments
=
m_MergetSegmOpt
->
GetValue
();
s_MergeSegments
=
m_MergetSegmOpt
->
GetValue
();
s_DeleteUnconnectedSegm
=
m_DeleteunconnectedOpt
->
GetValue
();
s_DeleteUnconnectedSegm
=
m_DeleteunconnectedOpt
->
GetValue
();
s_ConnectToPads
=
m_ConnectToPadsOpt
->
GetValue
();
s_ConnectToPads
=
m_ConnectToPadsOpt
->
GetValue
();
event
.
Skip
();
event
.
Skip
();
}
}
pcbnew/cleaningoptions_dialog.h
View file @
b58beebb
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: cleaningoptions_dialog.h
// Name: cleaningoptions_dialog.h
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 25/05/2007 14:24:54
// Created: 25/05/2007 14:24:54
// RCS-ID:
// RCS-ID:
// Copyright: GNU License
// Copyright: GNU License
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 25/05/2007 14:24:54
// Generated by DialogBlocks (unregistered), 25/05/2007 14:24:54
#ifndef _CLEANINGOPTIONS_DIALOG_H_
#ifndef _CLEANINGOPTIONS_DIALOG_H_
#define _CLEANINGOPTIONS_DIALOG_H_
#define _CLEANINGOPTIONS_DIALOG_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "cleaningoptions_dialog.h"
#pragma interface "cleaningoptions_dialog.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_WIN_EDA_CLEANINGOPTIONSFRAME 10000
#define ID_WIN_EDA_CLEANINGOPTIONSFRAME 10000
#define ID_CHECKBOX_CLEAN_VIAS 10001
#define ID_CHECKBOX_CLEAN_VIAS 10001
#define ID_CHECKBOX_MERGE_SEGMENTS 10003
#define ID_CHECKBOX_MERGE_SEGMENTS 10003
#define ID_CHECKBOX1 10005
#define ID_CHECKBOX1 10005
#define ID_CHECKBOX 10004
#define ID_CHECKBOX 10004
#define ID_BUTTON_EXECUTE 10006
#define ID_BUTTON_EXECUTE 10006
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options")
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options")
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION wxDefaultPosition
#define SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION wxDefaultPosition
////@end control identifiers
////@end control identifiers
/*!
/*!
* WinEDA_CleaningOptionsFrame class declaration
* WinEDA_CleaningOptionsFrame class declaration
*/
*/
class
WinEDA_CleaningOptionsFrame
:
public
wxDialog
class
WinEDA_CleaningOptionsFrame
:
public
wxDialog
{
{
DECLARE_DYNAMIC_CLASS
(
WinEDA_CleaningOptionsFrame
)
DECLARE_DYNAMIC_CLASS
(
WinEDA_CleaningOptionsFrame
)
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
public
:
public
:
/// Constructors
/// Constructors
WinEDA_CleaningOptionsFrame
();
WinEDA_CleaningOptionsFrame
();
WinEDA_CleaningOptionsFrame
(
WinEDA_PcbFrame
*
parent
,
wxDC
*
DC
,
WinEDA_CleaningOptionsFrame
(
WinEDA_PcbFrame
*
parent
,
wxDC
*
DC
,
wxWindowID
id
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE
);
wxWindowID
id
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE
);
/// Creation
/// Creation
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE
);
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_CLEANINGOPTIONSFRAME_STYLE
);
/// Destructor
/// Destructor
~
WinEDA_CleaningOptionsFrame
();
~
WinEDA_CleaningOptionsFrame
();
/// Initialises member variables
/// Initialises member variables
void
Init
();
void
Init
();
/// Creates the controls and sizers
/// Creates the controls and sizers
void
CreateControls
();
void
CreateControls
();
////@begin WinEDA_CleaningOptionsFrame event handler declarations
////@begin WinEDA_CleaningOptionsFrame event handler declarations
/// wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME
/// wxEVT_CLOSE_WINDOW event handler for ID_WIN_EDA_CLEANINGOPTIONSFRAME
void
OnCloseWindow
(
wxCloseEvent
&
event
);
void
OnCloseWindow
(
wxCloseEvent
&
event
);
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_EXECUTE
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON_EXECUTE
void
OnButtonExecuteClick
(
wxCommandEvent
&
event
);
void
OnButtonExecuteClick
(
wxCommandEvent
&
event
);
////@end WinEDA_CleaningOptionsFrame event handler declarations
////@end WinEDA_CleaningOptionsFrame event handler declarations
////@begin WinEDA_CleaningOptionsFrame member function declarations
////@begin WinEDA_CleaningOptionsFrame 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_CleaningOptionsFrame member function declarations
////@end WinEDA_CleaningOptionsFrame member function declarations
/// Should we show tooltips?
/// Should we show tooltips?
static
bool
ShowToolTips
();
static
bool
ShowToolTips
();
////@begin WinEDA_CleaningOptionsFrame member variables
////@begin WinEDA_CleaningOptionsFrame member variables
wxCheckBox
*
m_CleanViasOpt
;
wxCheckBox
*
m_CleanViasOpt
;
wxCheckBox
*
m_MergetSegmOpt
;
wxCheckBox
*
m_MergetSegmOpt
;
wxCheckBox
*
m_DeleteunconnectedOpt
;
wxCheckBox
*
m_DeleteunconnectedOpt
;
wxCheckBox
*
m_ConnectToPadsOpt
;
wxCheckBox
*
m_ConnectToPadsOpt
;
////@end WinEDA_CleaningOptionsFrame member variables
////@end WinEDA_CleaningOptionsFrame member variables
WinEDA_PcbFrame
*
m_Parent
;
WinEDA_PcbFrame
*
m_Parent
;
wxDC
*
m_DC
;
wxDC
*
m_DC
;
};
};
#endif
#endif
// _CLEANINGOPTIONS_DIALOG_H_
// _CLEANINGOPTIONS_DIALOG_H_
pcbnew/win_eda_cleaningoptionsframe.cpp
View file @
b58beebb
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: win_eda_cleaningoptionsframe.cpp
// Name: win_eda_cleaningoptionsframe.cpp
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 25/05/2007 13:39:29
// Created: 25/05/2007 13:39:29
// RCS-ID:
// RCS-ID:
// Copyright: GNU License
// Copyright: GNU License
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 25/05/2007 13:39:29
// Generated by DialogBlocks (unregistered), 25/05/2007 13:39:29
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "win_eda_cleaningoptionsframe.h"
#pragma implementation "win_eda_cleaningoptionsframe.h"
#endif
#endif
// For compilers that support precompilation, includes "wx/wx.h".
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#ifdef __BORLANDC__
#pragma hdrstop
#pragma hdrstop
#endif
#endif
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/wx.h"
#endif
#endif
////@begin includes
////@begin includes
////@end includes
////@end includes
#include "win_eda_cleaningoptionsframe.h"
#include "win_eda_cleaningoptionsframe.h"
////@begin XPM images
////@begin XPM images
////@end XPM images
////@end XPM images
/*!
/*!
* Win_EDA_CleaningOptionsFrame type definition
* Win_EDA_CleaningOptionsFrame type definition
*/
*/
IMPLEMENT_DYNAMIC_CLASS
(
Win_EDA_CleaningOptionsFrame
,
wxDialog
)
IMPLEMENT_DYNAMIC_CLASS
(
Win_EDA_CleaningOptionsFrame
,
wxDialog
)
/*!
/*!
* Win_EDA_CleaningOptionsFrame event table definition
* Win_EDA_CleaningOptionsFrame event table definition
*/
*/
BEGIN_EVENT_TABLE
(
Win_EDA_CleaningOptionsFrame
,
wxDialog
)
BEGIN_EVENT_TABLE
(
Win_EDA_CleaningOptionsFrame
,
wxDialog
)
////@begin Win_EDA_CleaningOptionsFrame event table entries
////@begin Win_EDA_CleaningOptionsFrame event table entries
////@end Win_EDA_CleaningOptionsFrame event table entries
////@end Win_EDA_CleaningOptionsFrame event table entries
END_EVENT_TABLE
()
END_EVENT_TABLE
()
/*!
/*!
* Win_EDA_CleaningOptionsFrame constructors
* Win_EDA_CleaningOptionsFrame constructors
*/
*/
Win_EDA_CleaningOptionsFrame
::
Win_EDA_CleaningOptionsFrame
()
Win_EDA_CleaningOptionsFrame
::
Win_EDA_CleaningOptionsFrame
()
{
{
Init
();
Init
();
}
}
Win_EDA_CleaningOptionsFrame
::
Win_EDA_CleaningOptionsFrame
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
Win_EDA_CleaningOptionsFrame
::
Win_EDA_CleaningOptionsFrame
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
{
{
Init
();
Init
();
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
}
}
/*!
/*!
* Win_EDA_CleaningOptionsFrame creator
* Win_EDA_CleaningOptionsFrame creator
*/
*/
bool
Win_EDA_CleaningOptionsFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
bool
Win_EDA_CleaningOptionsFrame
::
Create
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
caption
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
{
{
////@begin Win_EDA_CleaningOptionsFrame creation
////@begin Win_EDA_CleaningOptionsFrame creation
SetExtraStyle
(
wxWS_EX_BLOCK_EVENTS
);
SetExtraStyle
(
wxWS_EX_BLOCK_EVENTS
);
wxDialog
::
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
wxDialog
::
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
CreateControls
();
CreateControls
();
if
(
GetSizer
())
if
(
GetSizer
())
{
{
GetSizer
()
->
SetSizeHints
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
}
}
Centre
();
Centre
();
////@end Win_EDA_CleaningOptionsFrame creation
////@end Win_EDA_CleaningOptionsFrame creation
return
true
;
return
true
;
}
}
/*!
/*!
* Win_EDA_CleaningOptionsFrame destructor
* Win_EDA_CleaningOptionsFrame destructor
*/
*/
Win_EDA_CleaningOptionsFrame
::~
Win_EDA_CleaningOptionsFrame
()
Win_EDA_CleaningOptionsFrame
::~
Win_EDA_CleaningOptionsFrame
()
{
{
////@begin Win_EDA_CleaningOptionsFrame destruction
////@begin Win_EDA_CleaningOptionsFrame destruction
////@end Win_EDA_CleaningOptionsFrame destruction
////@end Win_EDA_CleaningOptionsFrame destruction
}
}
/*!
/*!
* Member initialisation
* Member initialisation
*/
*/
void
Win_EDA_CleaningOptionsFrame
::
Init
()
void
Win_EDA_CleaningOptionsFrame
::
Init
()
{
{
////@begin Win_EDA_CleaningOptionsFrame member initialisation
////@begin Win_EDA_CleaningOptionsFrame member initialisation
m_CleanViasOpt
=
NULL
;
m_CleanViasOpt
=
NULL
;
m_MergetSegmOpt
=
NULL
;
m_MergetSegmOpt
=
NULL
;
m_DeleteNullSegmOpt
=
NULL
;
m_DeleteNullSegmOpt
=
NULL
;
m_DeleteunconnectedOpt
=
NULL
;
m_DeleteunconnectedOpt
=
NULL
;
m_ConnectToPadsOpt
=
NULL
;
m_ConnectToPadsOpt
=
NULL
;
////@end Win_EDA_CleaningOptionsFrame member initialisation
////@end Win_EDA_CleaningOptionsFrame member initialisation
}
}
/*!
/*!
* Control creation for Win_EDA_CleaningOptionsFrame
* Control creation for Win_EDA_CleaningOptionsFrame
*/
*/
void
Win_EDA_CleaningOptionsFrame
::
CreateControls
()
void
Win_EDA_CleaningOptionsFrame
::
CreateControls
()
{
{
////@begin Win_EDA_CleaningOptionsFrame content construction
////@begin Win_EDA_CleaningOptionsFrame content construction
// Generated by DialogBlocks, 25/05/2007 13:58:52 (unregistered)
// Generated by DialogBlocks, 25/05/2007 13:58:52 (unregistered)
Win_EDA_CleaningOptionsFrame
*
itemDialog1
=
this
;
Win_EDA_CleaningOptionsFrame
*
itemDialog1
=
this
;
wxBoxSizer
*
itemBoxSizer2
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
itemBoxSizer2
=
new
wxBoxSizer
(
wxVERTICAL
);
itemDialog1
->
SetSizer
(
itemBoxSizer2
);
itemDialog1
->
SetSizer
(
itemBoxSizer2
);
wxBoxSizer
*
itemBoxSizer3
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
itemBoxSizer3
=
new
wxBoxSizer
(
wxHORIZONTAL
);
itemBoxSizer2
->
Add
(
itemBoxSizer3
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
itemBoxSizer3
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
wxStaticBox
*
itemStaticBoxSizer4Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBox
*
itemStaticBoxSizer4Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBoxSizer
*
itemStaticBoxSizer4
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer4Static
,
wxVERTICAL
);
wxStaticBoxSizer
*
itemStaticBoxSizer4
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer4Static
,
wxVERTICAL
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer4
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
m_CleanViasOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_CLEAN_VIAS
,
_
(
"Delete redundant vias"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_CleanViasOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_CLEAN_VIAS
,
_
(
"Delete redundant vias"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_CleanViasOpt
->
SetValue
(
true
);
m_CleanViasOpt
->
SetValue
(
true
);
itemStaticBoxSizer4
->
Add
(
m_CleanViasOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_CleanViasOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_MergetSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_MERGE_SEGMENTS
,
_
(
"Merge segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MergetSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_MERGE_SEGMENTS
,
_
(
"Merge segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_MergetSegmOpt
->
SetValue
(
true
);
m_MergetSegmOpt
->
SetValue
(
true
);
itemStaticBoxSizer4
->
Add
(
m_MergetSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_MergetSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_DeleteNullSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_DELETE_NULL_SEGM
,
_
(
"Delete 0 lenght segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteNullSegmOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX_DELETE_NULL_SEGM
,
_
(
"Delete 0 lenght segments"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteNullSegmOpt
->
SetValue
(
true
);
m_DeleteNullSegmOpt
->
SetValue
(
true
);
itemStaticBoxSizer4
->
Add
(
m_DeleteNullSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_DeleteNullSegmOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_DeleteunconnectedOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX1
,
_
(
"Delete unconnected tracks"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteunconnectedOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX1
,
_
(
"Delete unconnected tracks"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DeleteunconnectedOpt
->
SetValue
(
true
);
m_DeleteunconnectedOpt
->
SetValue
(
true
);
itemStaticBoxSizer4
->
Add
(
m_DeleteunconnectedOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_DeleteunconnectedOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
m_ConnectToPadsOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX
,
_
(
"Connect to Pads"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ConnectToPadsOpt
=
new
wxCheckBox
(
itemDialog1
,
ID_CHECKBOX
,
_
(
"Connect to Pads"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_ConnectToPadsOpt
->
SetValue
(
false
);
m_ConnectToPadsOpt
->
SetValue
(
false
);
itemStaticBoxSizer4
->
Add
(
m_ConnectToPadsOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
itemStaticBoxSizer4
->
Add
(
m_ConnectToPadsOpt
,
0
,
wxALIGN_LEFT
|
wxALL
,
5
);
wxStaticBox
*
itemStaticBoxSizer10Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBox
*
itemStaticBoxSizer10Static
=
new
wxStaticBox
(
itemDialog1
,
wxID_ANY
,
_
(
"Static"
));
wxStaticBoxSizer
*
itemStaticBoxSizer10
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer10Static
,
wxVERTICAL
);
wxStaticBoxSizer
*
itemStaticBoxSizer10
=
new
wxStaticBoxSizer
(
itemStaticBoxSizer10Static
,
wxVERTICAL
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer10
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
itemBoxSizer3
->
Add
(
itemStaticBoxSizer10
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxALL
,
5
);
wxButton
*
itemButton11
=
new
wxButton
(
itemDialog1
,
ID_BUTTON_EXECUTE
,
_
(
"Clean pcb"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxButton
*
itemButton11
=
new
wxButton
(
itemDialog1
,
ID_BUTTON_EXECUTE
,
_
(
"Clean pcb"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemButton11
->
SetDefault
();
itemButton11
->
SetDefault
();
itemStaticBoxSizer10
->
Add
(
itemButton11
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
itemStaticBoxSizer10
->
Add
(
itemButton11
,
0
,
wxALIGN_CENTER_HORIZONTAL
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
5
,
5
,
0
,
wxGROW
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
5
,
5
,
0
,
wxGROW
|
wxALL
,
5
);
wxStaticText
*
itemStaticText13
=
new
wxStaticText
(
itemDialog1
,
wxID_STATIC
,
_
(
"Infos:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
wxStaticText
*
itemStaticText13
=
new
wxStaticText
(
itemDialog1
,
wxID_STATIC
,
_
(
"Infos:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
itemBoxSizer2
->
Add
(
itemStaticText13
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxTOP
|
wxADJUST_MINSIZE
,
5
);
itemBoxSizer2
->
Add
(
itemStaticText13
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxTOP
|
wxADJUST_MINSIZE
,
5
);
wxTextCtrl
*
itemTextCtrl14
=
new
wxTextCtrl
(
itemDialog1
,
ID_TEXTCTRL1
,
_T
(
""
),
wxDefaultPosition
,
wxSize
(
-
1
,
120
),
wxTE_MULTILINE
);
wxTextCtrl
*
itemTextCtrl14
=
new
wxTextCtrl
(
itemDialog1
,
ID_TEXTCTRL1
,
_T
(
""
),
wxDefaultPosition
,
wxSize
(
-
1
,
120
),
wxTE_MULTILINE
);
itemBoxSizer2
->
Add
(
itemTextCtrl14
,
0
,
wxGROW
|
wxALL
,
5
);
itemBoxSizer2
->
Add
(
itemTextCtrl14
,
0
,
wxGROW
|
wxALL
,
5
);
// Set validators
// Set validators
m_CleanViasOpt
->
SetValidator
(
wxGenericValidator
(
&
s_CleanVias
)
);
m_CleanViasOpt
->
SetValidator
(
wxGenericValidator
(
&
s_CleanVias
)
);
m_MergetSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_MergeSegments
)
);
m_MergetSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_MergeSegments
)
);
m_DeleteNullSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_Delete0lenSegm
)
);
m_DeleteNullSegmOpt
->
SetValidator
(
wxGenericValidator
(
&
s_Delete0lenSegm
)
);
m_DeleteunconnectedOpt
->
SetValidator
(
wxGenericValidator
(
&
s_DeleteUnconnectedSegm
)
);
m_DeleteunconnectedOpt
->
SetValidator
(
wxGenericValidator
(
&
s_DeleteUnconnectedSegm
)
);
////@end Win_EDA_CleaningOptionsFrame content construction
////@end Win_EDA_CleaningOptionsFrame content construction
}
}
/*!
/*!
* Should we show tooltips?
* Should we show tooltips?
*/
*/
bool
Win_EDA_CleaningOptionsFrame
::
ShowToolTips
()
bool
Win_EDA_CleaningOptionsFrame
::
ShowToolTips
()
{
{
return
true
;
return
true
;
}
}
/*!
/*!
* Get bitmap resources
* Get bitmap resources
*/
*/
wxBitmap
Win_EDA_CleaningOptionsFrame
::
GetBitmapResource
(
const
wxString
&
name
)
wxBitmap
Win_EDA_CleaningOptionsFrame
::
GetBitmapResource
(
const
wxString
&
name
)
{
{
// Bitmap retrieval
// Bitmap retrieval
////@begin Win_EDA_CleaningOptionsFrame bitmap retrieval
////@begin Win_EDA_CleaningOptionsFrame bitmap retrieval
wxUnusedVar
(
name
);
wxUnusedVar
(
name
);
return
wxNullBitmap
;
return
wxNullBitmap
;
////@end Win_EDA_CleaningOptionsFrame bitmap retrieval
////@end Win_EDA_CleaningOptionsFrame bitmap retrieval
}
}
/*!
/*!
* Get icon resources
* Get icon resources
*/
*/
wxIcon
Win_EDA_CleaningOptionsFrame
::
GetIconResource
(
const
wxString
&
name
)
wxIcon
Win_EDA_CleaningOptionsFrame
::
GetIconResource
(
const
wxString
&
name
)
{
{
// Icon retrieval
// Icon retrieval
////@begin Win_EDA_CleaningOptionsFrame icon retrieval
////@begin Win_EDA_CleaningOptionsFrame icon retrieval
wxUnusedVar
(
name
);
wxUnusedVar
(
name
);
return
wxNullIcon
;
return
wxNullIcon
;
////@end Win_EDA_CleaningOptionsFrame icon retrieval
////@end Win_EDA_CleaningOptionsFrame icon retrieval
}
}
pcbnew/win_eda_cleaningoptionsframe.h
View file @
b58beebb
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: win_eda_cleaningoptionsframe.h
// Name: win_eda_cleaningoptionsframe.h
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 25/05/2007 13:39:29
// Created: 25/05/2007 13:39:29
// RCS-ID:
// RCS-ID:
// Copyright: GNU License
// Copyright: GNU License
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 25/05/2007 13:39:29
// Generated by DialogBlocks (unregistered), 25/05/2007 13:39:29
#ifndef _WIN_EDA_CLEANINGOPTIONSFRAME_H_
#ifndef _WIN_EDA_CLEANINGOPTIONSFRAME_H_
#define _WIN_EDA_CLEANINGOPTIONSFRAME_H_
#define _WIN_EDA_CLEANINGOPTIONSFRAME_H_
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface "win_eda_cleaningoptionsframe.h"
#pragma interface "win_eda_cleaningoptionsframe.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_WIN_EDA_CLEANINGOPTIONSFRAME 10000
#define ID_WIN_EDA_CLEANINGOPTIONSFRAME 10000
#define ID_CHECKBOX_CLEAN_VIAS 10001
#define ID_CHECKBOX_CLEAN_VIAS 10001
#define ID_CHECKBOX_MERGE_SEGMENTS 10003
#define ID_CHECKBOX_MERGE_SEGMENTS 10003
#define ID_CHECKBOX_DELETE_NULL_SEGM 10002
#define ID_CHECKBOX_DELETE_NULL_SEGM 10002
#define ID_CHECKBOX1 10005
#define ID_CHECKBOX1 10005
#define ID_CHECKBOX 10004
#define ID_CHECKBOX 10004
#define ID_BUTTON_EXECUTE 10006
#define ID_BUTTON_EXECUTE 10006
#define ID_TEXTCTRL1 10007
#define ID_TEXTCTRL1 10007
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options")
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE _("Cleaning options")
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME ID_WIN_EDA_CLEANINGOPTIONSFRAME
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE wxSize(400, 300)
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION wxDefaultPosition
#define SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION wxDefaultPosition
////@end control identifiers
////@end control identifiers
/*!
/*!
* Win_EDA_CleaningOptionsFrame class declaration
* Win_EDA_CleaningOptionsFrame class declaration
*/
*/
class
Win_EDA_CleaningOptionsFrame
:
public
wxDialog
class
Win_EDA_CleaningOptionsFrame
:
public
wxDialog
{
{
DECLARE_DYNAMIC_CLASS
(
Win_EDA_CleaningOptionsFrame
)
DECLARE_DYNAMIC_CLASS
(
Win_EDA_CleaningOptionsFrame
)
DECLARE_EVENT_TABLE
()
DECLARE_EVENT_TABLE
()
public
:
public
:
/// Constructors
/// Constructors
Win_EDA_CleaningOptionsFrame
();
Win_EDA_CleaningOptionsFrame
();
Win_EDA_CleaningOptionsFrame
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE
);
Win_EDA_CleaningOptionsFrame
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE
);
/// Creation
/// Creation
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE
);
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_SIZE
,
long
style
=
SYMBOL_WIN_EDA_CLEANINGOPTIONSFRAME_STYLE
);
/// Destructor
/// Destructor
~
Win_EDA_CleaningOptionsFrame
();
~
Win_EDA_CleaningOptionsFrame
();
/// Initialises member variables
/// Initialises member variables
void
Init
();
void
Init
();
/// Creates the controls and sizers
/// Creates the controls and sizers
void
CreateControls
();
void
CreateControls
();
////@begin Win_EDA_CleaningOptionsFrame event handler declarations
////@begin Win_EDA_CleaningOptionsFrame event handler declarations
////@end Win_EDA_CleaningOptionsFrame event handler declarations
////@end Win_EDA_CleaningOptionsFrame event handler declarations
////@begin Win_EDA_CleaningOptionsFrame member function declarations
////@begin Win_EDA_CleaningOptionsFrame 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 Win_EDA_CleaningOptionsFrame member function declarations
////@end Win_EDA_CleaningOptionsFrame member function declarations
/// Should we show tooltips?
/// Should we show tooltips?
static
bool
ShowToolTips
();
static
bool
ShowToolTips
();
////@begin Win_EDA_CleaningOptionsFrame member variables
////@begin Win_EDA_CleaningOptionsFrame member variables
wxCheckBox
*
m_CleanViasOpt
;
wxCheckBox
*
m_CleanViasOpt
;
wxCheckBox
*
m_MergetSegmOpt
;
wxCheckBox
*
m_MergetSegmOpt
;
wxCheckBox
*
m_DeleteNullSegmOpt
;
wxCheckBox
*
m_DeleteNullSegmOpt
;
wxCheckBox
*
m_DeleteunconnectedOpt
;
wxCheckBox
*
m_DeleteunconnectedOpt
;
wxCheckBox
*
m_ConnectToPadsOpt
;
wxCheckBox
*
m_ConnectToPadsOpt
;
////@end Win_EDA_CleaningOptionsFrame member variables
////@end Win_EDA_CleaningOptionsFrame member variables
};
};
#endif
#endif
// _WIN_EDA_CLEANINGOPTIONSFRAME_H_
// _WIN_EDA_CLEANINGOPTIONSFRAME_H_
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