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
91d5bb58
Commit
91d5bb58
authored
Nov 30, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema: dialog ERC: minor enhancements and code cleaning.
parent
6559d6a5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2142 additions
and
2254 deletions
+2142
-2254
dialog_erc.cpp
eeschema/dialogs/dialog_erc.cpp
+91
-125
dialog_erc.h
eeschema/dialogs/dialog_erc.h
+8
-4
dialog_erc_base.cpp
eeschema/dialogs/dialog_erc_base.cpp
+143
-154
dialog_erc_base.fbp
eeschema/dialogs/dialog_erc_base.fbp
+1801
-1870
dialog_erc_base.h
eeschema/dialogs/dialog_erc_base.h
+99
-101
No files found.
eeschema/dialogs/dialog_erc.cpp
View file @
91d5bb58
...
...
@@ -60,7 +60,7 @@ END_EVENT_TABLE()
DIALOG_ERC
::
DIALOG_ERC
(
SCH_EDIT_FRAME
*
parent
)
:
DIALOG_ERC_BASE
(
parent
)
{
m_
P
arent
=
parent
;
m_
p
arent
=
parent
;
Init
();
GetSizer
()
->
SetSizeHints
(
this
);
...
...
@@ -70,11 +70,11 @@ DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) :
void
DIALOG_ERC
::
Init
()
{
m_
I
nitialized
=
false
;
m_
i
nitialized
=
false
;
for
(
int
ii
=
0
;
ii
<
PIN_NMAX
;
ii
++
)
for
(
int
jj
=
0
;
jj
<
PIN_NMAX
;
jj
++
)
m_
B
uttonList
[
ii
][
jj
]
=
NULL
;
m_
b
uttonList
[
ii
][
jj
]
=
NULL
;
m_WriteResultOpt
->
SetValue
(
m_writeErcFile
);
...
...
@@ -111,7 +111,7 @@ void DIALOG_ERC::OnEraseDrcMarkersClick( wxCommandEvent& event )
ScreenList
.
DeleteAllMarkers
(
MARK_ERC
);
m_MarkersList
->
ClearList
();
m_
P
arent
->
GetCanvas
()
->
Refresh
();
m_
p
arent
->
GetCanvas
()
->
Refresh
();
}
...
...
@@ -143,10 +143,11 @@ void DIALOG_ERC::OnErcCmpClick( wxCommandEvent& event )
m_MessagesList
->
AppendText
(
messageList
[
ii
]
);
}
// Double click on a marker info:
void
DIALOG_ERC
::
OnLeftDClickMarkersList
(
wxCommandEvent
&
event
)
// Single click on a marker info:
void
DIALOG_ERC
::
OnLeftClickMarkersList
(
wxCommandEvent
&
event
)
{
m_lastMarkerFound
=
NULL
;
int
index
=
m_MarkersList
->
GetSelection
();
if
(
index
<
0
)
...
...
@@ -154,55 +155,58 @@ void DIALOG_ERC::OnLeftDClickMarkersList( wxCommandEvent& event )
const
SCH_MARKER
*
marker
=
m_MarkersList
->
GetItem
(
(
unsigned
)
index
);
EndModal
(
1
);
// Search for the selected marker
SCH_SHEET_PATH
*
sheet
;
bool
NotFound
;
wxPoint
pos
=
marker
->
m_Pos
;
wxPoint
curpos
,
old_cursor_position
;
SCH_SHEET_LIST
SheetList
;
bool
notFound
=
true
;
NotFound
=
true
;
/* Search for the selected marker */
for
(
sheet
=
SheetList
.
GetFirst
();
sheet
!=
NULL
;
sheet
=
SheetList
.
GetNext
()
)
for
(
sheet
=
SheetList
.
GetFirst
();
sheet
;
sheet
=
SheetList
.
GetNext
()
)
{
SCH_ITEM
*
item
=
(
SCH_ITEM
*
)
sheet
->
LastDrawList
();
while
(
item
&&
NotFound
)
for
(
;
item
;
item
=
item
->
Next
()
)
{
if
(
item
==
marker
)
{
N
otFound
=
false
;
n
otFound
=
false
;
break
;
}
item
=
item
->
Next
();
}
if
(
N
otFound
==
false
)
if
(
n
otFound
==
false
)
break
;
}
if
(
NotFound
)
// Error
if
(
notFound
)
// Error
{
wxMessageBox
(
wxT
(
"OnLeftDClickMarkersList() error: Marker Not F
ound"
)
);
wxMessageBox
(
_
(
"Marker not f
ound"
)
);
return
;
}
if
(
*
sheet
!=
m_
P
arent
->
GetCurrentSheet
()
)
if
(
*
sheet
!=
m_
p
arent
->
GetCurrentSheet
()
)
{
sheet
->
LastScreen
()
->
SetZoom
(
m_
P
arent
->
GetScreen
()
->
GetZoom
()
);
m_
P
arent
->
SetCurrentSheet
(
*
sheet
);
m_
P
arent
->
GetCurrentSheet
().
UpdateAllScreenReferences
();
sheet
->
LastScreen
()
->
SetZoom
(
m_
p
arent
->
GetScreen
()
->
GetZoom
()
);
m_
p
arent
->
SetCurrentSheet
(
*
sheet
);
m_
p
arent
->
GetCurrentSheet
().
UpdateAllScreenReferences
();
}
m_Parent
->
GetScreen
()
->
SetCrossHairPosition
(
pos
);
m_Parent
->
RedrawScreen
(
pos
,
true
);
m_lastMarkerFound
=
marker
;
m_parent
->
GetScreen
()
->
SetCrossHairPosition
(
marker
->
m_Pos
);
m_parent
->
RedrawScreen
(
marker
->
m_Pos
,
false
);
}
// Double click on a marker info:
// Close the dialog and jump to the selected marker
void
DIALOG_ERC
::
OnLeftDblClickMarkersList
(
wxCommandEvent
&
event
)
{
// Remember: OnLeftClickMarkersList was called just berfore
// and therefore m_lastMarkerFound was initialized.
// (NULL if not found)
if
(
m_lastMarkerFound
)
{
m_parent
->
GetScreen
()
->
SetCrossHairPosition
(
m_lastMarkerFound
->
m_Pos
);
m_parent
->
RedrawScreen
(
m_lastMarkerFound
->
m_Pos
,
true
);
EndModal
(
1
);
}
}
...
...
@@ -210,13 +214,8 @@ void DIALOG_ERC::OnLeftDClickMarkersList( wxCommandEvent& event )
*/
void
DIALOG_ERC
::
ReBuildMatrixPanel
()
{
int
ii
,
jj
,
event_id
,
text_height
;
wxPoint
pos
,
BoxMatrixPosition
;
wxStaticText
*
text
;
wxSize
BoxMatrixMinSize
;
// Try to know the size of bitmap button used in drc matrix
wxBitmapButton
*
dummy
=
new
wxBitmapButton
(
m_
PanelERCOptions
,
wxID_ANY
,
wxBitmapButton
*
dummy
=
new
wxBitmapButton
(
m_
matrixPanel
,
wxID_ANY
,
KiBitmap
(
ercerr_xpm
)
);
wxSize
bitmap_size
=
dummy
->
GetSize
();
delete
dummy
;
...
...
@@ -227,35 +226,23 @@ void DIALOG_ERC::ReBuildMatrixPanel()
DiagErcTableInit
=
true
;
}
// Get the current text size: this is a dummy text.
text
=
new
wxStaticText
(
m_PanelERCOptions
,
-
1
,
wxT
(
"W"
),
pos
);
text_height
=
text
->
GetRect
().
GetHeight
();
wxPoint
pos
;
// Get the current text size:use a dummy text.
wxStaticText
*
text
=
new
wxStaticText
(
m_matrixPanel
,
-
1
,
wxT
(
"W"
),
pos
);
int
text_height
=
text
->
GetRect
().
GetHeight
();
bitmap_size
.
y
=
std
::
max
(
bitmap_size
.
y
,
text_height
);
SAFE_DELETE
(
text
);
// compute the Y pos interval:
BoxMatrixMinSize
.
y
=
(
bitmap_size
.
y
*
(
PIN_NMAX
+
1
)
)
+
5
;
GetSizer
()
->
Fit
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
pos
=
m_MatrixSizer
->
GetPosition
();
// Size computation is not made in constructor, in some wxWidgets version,
// and m_BoxSizerForERC_Opt position is always 0,0. and we can't use it
pos
.
x
=
std
::
max
(
pos
.
x
,
5
);
pos
.
y
=
std
::
max
(
pos
.
y
,
m_ResetOptButton
->
GetRect
().
GetHeight
()
+
30
);
BoxMatrixPosition
=
pos
;
pos
.
y
=
text_height
;
pos
.
y
+=
text_height
;
if
(
m_Initialized
==
false
)
if
(
m_initialized
==
false
)
{
// Print row labels
for
(
ii
=
0
;
ii
<
PIN_NMAX
;
ii
++
)
for
(
i
nt
i
i
=
0
;
ii
<
PIN_NMAX
;
ii
++
)
{
int
y
=
pos
.
y
+
(
ii
*
bitmap_size
.
y
);
text
=
new
wxStaticText
(
m_
PanelERCOptions
,
-
1
,
CommentERC_H
[
ii
],
text
=
new
wxStaticText
(
m_
matrixPanel
,
-
1
,
CommentERC_H
[
ii
],
wxPoint
(
5
,
y
+
(
bitmap_size
.
y
/
2
)
-
(
text_height
/
2
)
)
);
int
x
=
text
->
GetRect
().
GetRight
();
...
...
@@ -265,98 +252,81 @@ void DIALOG_ERC::ReBuildMatrixPanel()
pos
.
x
+=
5
;
}
else
{
pos
=
m_ButtonList
[
0
][
0
]
->
GetPosition
();
}
pos
=
m_buttonList
[
0
][
0
]
->
GetPosition
();
for
(
ii
=
0
;
ii
<
PIN_NMAX
;
ii
++
)
for
(
i
nt
i
i
=
0
;
ii
<
PIN_NMAX
;
ii
++
)
{
int
y
=
pos
.
y
+
(
ii
*
bitmap_size
.
y
);
for
(
jj
=
0
;
jj
<=
ii
;
jj
++
)
for
(
int
jj
=
0
;
jj
<=
ii
;
jj
++
)
{
// Add column labels (only once)
int
diag
=
DiagErc
[
ii
][
jj
];
int
x
=
pos
.
x
+
(
jj
*
bitmap_size
.
x
);
if
(
(
ii
==
jj
)
&&
!
m_
I
nitialized
)
if
(
(
ii
==
jj
)
&&
!
m_
i
nitialized
)
{
wxPoint
txtpos
;
txtpos
.
x
=
x
+
(
bitmap_size
.
x
/
2
);
txtpos
.
y
=
y
-
text_height
;
text
=
new
wxStaticText
(
m_
PanelERCOptions
,
text
=
new
wxStaticText
(
m_
matrixPanel
,
-
1
,
CommentERC_V
[
ii
],
txtpos
);
BoxMatrixMinSize
.
x
=
std
::
max
(
BoxMatrixMinSize
.
x
,
text
->
GetRect
().
GetRight
()
);
}
event_id
=
ID_MATRIX_0
+
ii
+
(
jj
*
PIN_NMAX
);
delete
m_ButtonList
[
ii
][
jj
]
;
int
event_id
=
ID_MATRIX_0
+
ii
+
(
jj
*
PIN_NMAX
);
BITMAP_DEF
bitmap_butt
=
NULL
;
// Add button on matrix
switch
(
diag
)
{
case
OK
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
KiBitmap
(
erc_green_xpm
),
wxPoint
(
x
,
y
)
);
bitmap_butt
=
erc_green_xpm
;
break
;
case
WAR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
KiBitmap
(
ercwarn_xpm
),
wxPoint
(
x
,
y
)
);
bitmap_butt
=
ercwarn_xpm
;
break
;
default
:
case
ERR
:
m_ButtonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_PanelERCOptions
,
event_id
,
KiBitmap
(
ercerr_xpm
),
wxPoint
(
x
,
y
)
);
bitmap_butt
=
ercerr_xpm
;
break
;
}
}
}
if
(
!
m_Initialized
)
{
BoxMatrixMinSize
.
x
+=
5
;
m_MatrixSizer
->
SetMinSize
(
BoxMatrixMinSize
);
BoxMatrixMinSize
.
y
+=
BoxMatrixPosition
.
y
;
m_PanelMatrixSizer
->
SetMinSize
(
BoxMatrixMinSize
);
delete
m_buttonList
[
ii
][
jj
];
m_buttonList
[
ii
][
jj
]
=
new
wxBitmapButton
(
m_matrixPanel
,
event_id
,
KiBitmap
(
bitmap_butt
),
wxPoint
(
x
,
y
)
)
;
}
}
m_
I
nitialized
=
true
;
m_
i
nitialized
=
true
;
}
/*
*
/*
* Function DisplayERC_MarkersList
* read the schematic and display the list of ERC markers
*/
void
DIALOG_ERC
::
DisplayERC_MarkersList
()
{
SCH_SHEET_LIST
SheetList
;
SCH_SHEET_LIST
sheetList
;
m_MarkersList
->
ClearList
();
for
(
SCH_SHEET_PATH
*
Sheet
=
SheetList
.
GetFirst
();
Sheet
!=
NULL
;
Sheet
=
SheetList
.
GetNext
()
)
SCH_SHEET_PATH
*
sheet
=
sheetList
.
GetFirst
();
for
(
;
sheet
!=
NULL
;
sheet
=
sheetList
.
GetNext
()
)
{
SCH_ITEM
*
DrawStruct
=
S
heet
->
LastDrawList
();
SCH_ITEM
*
item
=
s
heet
->
LastDrawList
();
for
(
;
DrawStruct
!=
NULL
;
DrawStruct
=
DrawStruct
->
Next
()
)
for
(
;
item
!=
NULL
;
item
=
item
->
Next
()
)
{
if
(
DrawStruct
->
Type
()
!=
SCH_MARKER_T
)
if
(
item
->
Type
()
!=
SCH_MARKER_T
)
continue
;
SCH_MARKER
*
Marker
=
(
SCH_MARKER
*
)
DrawStruct
;
SCH_MARKER
*
Marker
=
(
SCH_MARKER
*
)
item
;
if
(
Marker
->
GetMarkerType
()
!=
MARK_ERC
)
continue
;
...
...
@@ -384,14 +354,13 @@ void DIALOG_ERC::ResetDefaultERCDiag( wxCommandEvent& event )
void
DIALOG_ERC
::
ChangeErrorLevel
(
wxCommandEvent
&
event
)
{
int
id
,
level
,
ii
,
x
,
y
;
wxBitmapButton
*
Butt
;
BITMAP_DEF
new_bitmap_xpm
=
NULL
;
BITMAP_DEF
new_bitmap_butt
=
NULL
;
wxPoint
pos
;
id
=
event
.
GetId
();
ii
=
id
-
ID_MATRIX_0
;
B
utt
=
(
wxBitmapButton
*
)
event
.
GetEventObject
();
pos
=
B
utt
->
GetPosition
();
wxBitmapButton
*
b
utt
=
(
wxBitmapButton
*
)
event
.
GetEventObject
();
pos
=
b
utt
->
GetPosition
();
x
=
ii
/
PIN_NMAX
;
y
=
ii
%
PIN_NMAX
;
...
...
@@ -401,26 +370,27 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
{
case
OK
:
level
=
WAR
;
new_bitmap_
xpm
=
ercwarn_xpm
;
new_bitmap_
butt
=
ercwarn_xpm
;
break
;
case
WAR
:
level
=
ERR
;
new_bitmap_
xpm
=
ercerr_xpm
;
new_bitmap_
butt
=
ercerr_xpm
;
break
;
case
ERR
:
level
=
OK
;
new_bitmap_
xpm
=
erc_green_xpm
;
new_bitmap_
butt
=
erc_green_xpm
;
break
;
}
if
(
new_bitmap_
xpm
)
if
(
new_bitmap_
butt
)
{
delete
Butt
;
Butt
=
new
wxBitmapButton
(
m_PanelERCOptions
,
id
,
KiBitmap
(
new_bitmap_xpm
),
pos
);
delete
butt
;
butt
=
new
wxBitmapButton
(
m_matrixPanel
,
id
,
KiBitmap
(
new_bitmap_butt
),
pos
);
m_
ButtonList
[
y
][
x
]
=
B
utt
;
m_
buttonList
[
y
][
x
]
=
b
utt
;
DiagErc
[
y
][
x
]
=
DiagErc
[
x
][
y
]
=
level
;
}
}
...
...
@@ -429,11 +399,6 @@ void DIALOG_ERC::ChangeErrorLevel( wxCommandEvent& event )
void
DIALOG_ERC
::
TestErc
(
wxArrayString
*
aMessagesList
)
{
wxFileName
fn
;
unsigned
net
;
unsigned
lastNet
;
unsigned
nextNet
;
int
NetNbItems
,
MinConn
;
if
(
!
DiagErcTableInit
)
{
...
...
@@ -447,7 +412,7 @@ void DIALOG_ERC::TestErc( wxArrayString* aMessagesList )
SCH_SHEET_LIST
sheets
;
sheets
.
AnnotatePowerSymbols
();
if
(
m_
P
arent
->
CheckAnnotate
(
aMessagesList
,
false
)
)
if
(
m_
p
arent
->
CheckAnnotate
(
aMessagesList
,
false
)
)
{
if
(
aMessagesList
)
{
...
...
@@ -478,17 +443,18 @@ void DIALOG_ERC::TestErc( wxArrayString* aMessagesList )
*/
TestDuplicateSheetNames
(
true
);
m_
P
arent
->
BuildNetListBase
();
m_
p
arent
->
BuildNetListBase
();
/* Reset the flag m_FlagOfConnection, that will be used next, in calculations */
for
(
unsigned
ii
=
0
;
ii
<
g_NetObjectslist
.
size
();
ii
++
)
g_NetObjectslist
[
ii
]
->
m_FlagOfConnection
=
UNCONNECTED
;
nextNet
=
lastNet
=
0
;
NetNbItems
=
0
;
MinConn
=
NOC
;
unsigned
lastNet
;
unsigned
nextNet
=
lastNet
=
0
;
int
NetNbItems
=
0
;
int
MinConn
=
NOC
;
for
(
net
=
0
;
net
<
g_NetObjectslist
.
size
();
net
++
)
for
(
unsigned
net
=
0
;
net
<
g_NetObjectslist
.
size
();
net
++
)
{
if
(
g_NetObjectslist
[
lastNet
]
->
GetNet
()
!=
g_NetObjectslist
[
net
]
->
GetNet
()
)
{
...
...
@@ -561,7 +527,7 @@ void DIALOG_ERC::TestErc( wxArrayString* aMessagesList )
DisplayERC_MarkersList
();
// Display new markers:
m_
P
arent
->
GetCanvas
()
->
Refresh
();
m_
p
arent
->
GetCanvas
()
->
Refresh
();
if
(
m_writeErcFile
)
{
...
...
eeschema/dialogs/dialog_erc.h
View file @
91d5bb58
...
...
@@ -32,9 +32,10 @@ class DIALOG_ERC : public DIALOG_ERC_BASE
DECLARE_EVENT_TABLE
()
private
:
SCH_EDIT_FRAME
*
m_Parent
;
wxBitmapButton
*
m_ButtonList
[
PIN_NMAX
][
PIN_NMAX
];
bool
m_Initialized
;
SCH_EDIT_FRAME
*
m_parent
;
wxBitmapButton
*
m_buttonList
[
PIN_NMAX
][
PIN_NMAX
];
bool
m_initialized
;
const
SCH_MARKER
*
m_lastMarkerFound
;
static
bool
m_writeErcFile
;
public
:
...
...
@@ -56,8 +57,11 @@ public:
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_RESET_MATRIX
void
OnResetMatrixClick
(
wxCommandEvent
&
event
);
// Single click on a marker info:
void
OnLeftClickMarkersList
(
wxCommandEvent
&
event
);
// Double click on a marker info:
void
OnLeftDClickMarkersList
(
wxCommandEvent
&
event
);
void
OnLeftD
bl
ClickMarkersList
(
wxCommandEvent
&
event
);
void
TestErc
(
wxArrayString
*
aMessagesList
);
void
DisplayERC_MarkersList
();
...
...
eeschema/dialogs/dialog_erc_base.cpp
View file @
91d5bb58
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 1
1 2012)
// C++ code generated with wxFormBuilder (version Apr 1
0 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -13,7 +13,8 @@ BEGIN_EVENT_TABLE( DIALOG_ERC_BASE, DIALOG_SHIM )
EVT_BUTTON
(
ID_ERC_CMP
,
DIALOG_ERC_BASE
::
_wxFB_OnErcCmpClick
)
EVT_BUTTON
(
ID_ERASE_DRC_MARKERS
,
DIALOG_ERC_BASE
::
_wxFB_OnEraseDrcMarkersClick
)
EVT_BUTTON
(
wxID_CANCEL
,
DIALOG_ERC_BASE
::
_wxFB_OnCancelClick
)
EVT_LISTBOX_DCLICK
(
ID_MAKER_HTMLLISTBOX
,
DIALOG_ERC_BASE
::
_wxFB_OnLeftDClickMarkersList
)
EVT_LISTBOX
(
ID_MAKER_HTMLLISTBOX
,
DIALOG_ERC_BASE
::
_wxFB_OnLeftClickMarkersList
)
EVT_LISTBOX_DCLICK
(
ID_MAKER_HTMLLISTBOX
,
DIALOG_ERC_BASE
::
_wxFB_OnLeftDblClickMarkersList
)
EVT_BUTTON
(
ID_RESET_MATRIX
,
DIALOG_ERC_BASE
::
_wxFB_OnResetMatrixClick
)
END_EVENT_TABLE
()
...
...
@@ -33,60 +34,59 @@ DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
bupperSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxStaticBoxSizer
*
sdiagSizer
;
sdiagSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelERC
,
wxID_ANY
,
_
(
"Erc
File Report:"
)
),
wxVERTICAL
);
sdiagSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelERC
,
wxID_ANY
,
_
(
"Erc
report:"
)
),
wxVERTICAL
);
wxGridSizer
*
gSize
r1
;
gSize
r1
=
new
wxGridSizer
(
3
,
2
,
0
,
0
);
wxGridSizer
*
gSize
Diag
;
gSize
Diag
=
new
wxGridSizer
(
3
,
2
,
0
,
0
);
m_ErcTotalErrorsText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Total
Errors Count: "
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_ErcTotalErrorsText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Total
errors count: "
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_ErcTotalErrorsText
->
Wrap
(
-
1
);
gSize
r1
->
Add
(
m_ErcTotalErrorsText
,
0
,
wxALL
,
5
);
gSize
Diag
->
Add
(
m_ErcTotalErrorsText
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
m_TotalErrCount
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"0000"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TotalErrCount
->
Wrap
(
-
1
);
gSizer1
->
Add
(
m_TotalErrCount
,
0
,
wxALL
,
5
);
m_TotalErrCount
=
new
wxTextCtrl
(
m_PanelERC
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
gSizeDiag
->
Add
(
m_TotalErrCount
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
m_WarnErcErrorsText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Warnings
Count:"
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_WarnErcErrorsText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Warnings
count:"
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_WarnErcErrorsText
->
Wrap
(
-
1
);
gSize
r1
->
Add
(
m_WarnErcErrorsText
,
0
,
wxALL
,
5
);
gSize
Diag
->
Add
(
m_WarnErcErrorsText
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
m_LastWarningCount
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"0000"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_LastWarningCount
->
Wrap
(
-
1
);
gSizer1
->
Add
(
m_LastWarningCount
,
0
,
wxALL
,
5
);
m_LastWarningCount
=
new
wxTextCtrl
(
m_PanelERC
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
gSizeDiag
->
Add
(
m_LastWarningCount
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
m_LastErrCountText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Errors
Count:"
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_LastErrCountText
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Errors
count:"
),
wxDefaultPosition
,
wxDefaultSize
,
wxALIGN_RIGHT
);
m_LastErrCountText
->
Wrap
(
-
1
);
gSize
r1
->
Add
(
m_LastErrCountText
,
0
,
wxALL
,
5
);
gSize
Diag
->
Add
(
m_LastErrCountText
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
m_LastErrCount
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"0000"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_LastErrCount
->
Wrap
(
-
1
);
gSizer1
->
Add
(
m_LastErrCount
,
0
,
wxALL
,
5
);
m_LastErrCount
=
new
wxTextCtrl
(
m_PanelERC
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
gSizeDiag
->
Add
(
m_LastErrCount
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
sdiagSizer
->
Add
(
gSize
r1
,
0
,
0
,
5
);
sdiagSizer
->
Add
(
gSize
Diag
,
0
,
0
,
5
);
m_WriteResultOpt
=
new
wxCheckBox
(
m_PanelERC
,
wxID_ANY
,
_
(
"Create ERC file report"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sdiagSizer
->
Add
(
m_WriteResultOpt
,
0
,
wxTOP
|
wxBOTTOM
|
wxRIGHT
,
5
);
bupperSizer
->
Add
(
sdiagSizer
,
0
,
wxALIGN_CENTER_VERTICAL
,
5
);
wxBoxSizer
*
bSizeMessages
;
bSizeMessages
=
new
wxBoxSizer
(
wxVERTICAL
);
bupperSizer
->
Add
(
sdiagSizer
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
|
wxTOP
,
5
);
wxBoxSizer
*
bSizerMessages
;
bSizerMessages
=
new
wxBoxSizer
(
wxVERTICAL
);
m_titleMessages
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Messages:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_titleMessages
->
Wrap
(
-
1
);
bSize
Messages
->
Add
(
m_titleMessages
,
0
,
wxRIGHT
|
wxLEFT
,
5
);
bSize
rMessages
->
Add
(
m_titleMessages
,
0
,
wxRIGHT
|
wxLEFT
,
5
);
m_MessagesList
=
new
wxTextCtrl
(
m_PanelERC
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_MULTILINE
|
wxTE_READONLY
);
m_MessagesList
->
SetMinSize
(
wxSize
(
300
,
-
1
)
);
bSizeMessages
->
Add
(
m_MessagesList
,
1
,
wxEXPAND
|
wxBOTTOM
|
wxLEFT
,
5
);
bSizerMessages
->
Add
(
m_MessagesList
,
1
,
wxEXPAND
|
wxLEFT
,
5
);
bupperSizer
->
Add
(
bSize
Messages
,
1
,
wxEXPAND
,
5
);
bupperSizer
->
Add
(
bSize
rMessages
,
1
,
wxEXPAND
,
5
);
wxBoxSizer
*
bbuttonsSizer
;
bbuttonsSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_buttonERC
=
new
wxButton
(
m_PanelERC
,
ID_ERC_CMP
,
_
(
"&Test Erc"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_buttonERC
->
SetDefault
();
bbuttonsSizer
->
Add
(
m_buttonERC
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_buttondelmarkers
=
new
wxButton
(
m_PanelERC
,
ID_ERASE_DRC_MARKERS
,
_
(
"&Del Markers"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
...
...
@@ -101,20 +101,14 @@ DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
bercSizer
->
Add
(
bupperSizer
,
0
,
wxEXPAND
,
5
);
m_WriteResultOpt
=
new
wxCheckBox
(
m_PanelERC
,
wxID_ANY
,
_
(
"Create ERC report"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bercSizer
->
Add
(
m_WriteResultOpt
,
0
,
wxALL
,
5
);
m_staticline2
=
new
wxStaticLine
(
m_PanelERC
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
bercSizer
->
Add
(
m_staticline2
,
0
,
wxEXPAND
|
wxALL
,
5
);
m_textMarkers
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Markers:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_textMarkers
=
new
wxStaticText
(
m_PanelERC
,
wxID_ANY
,
_
(
"Error list:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_textMarkers
->
Wrap
(
-
1
);
bercSizer
->
Add
(
m_textMarkers
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_MarkersList
=
new
ERC_HTML_LISTBOX
(
m_PanelERC
,
ID_MAKER_HTMLLISTBOX
,
wxDefaultPosition
,
wxDefaultSize
,
0
,
NULL
,
0
|
wxSIMPLE_BORDER
);
m_MarkersList
->
SetMinSize
(
wxSize
(
500
,
350
)
);
m_MarkersList
->
SetMinSize
(
wxSize
(
450
,
250
)
);
bercSizer
->
Add
(
m_MarkersList
,
1
,
wx
ALL
|
wxEXPAND
,
5
);
bercSizer
->
Add
(
m_MarkersList
,
1
,
wx
EXPAND
|
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_PanelERC
->
SetSizer
(
bercSizer
);
...
...
@@ -122,23 +116,19 @@ DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
bercSizer
->
Fit
(
m_PanelERC
);
m_NoteBook
->
AddPage
(
m_PanelERC
,
_
(
"ERC"
),
true
);
m_PanelERCOptions
=
new
wxPanel
(
m_NoteBook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
m_PanelMatrixSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
m_panelMatrixSizer
;
m_panelMatrixSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_ResetOptButton
=
new
wxButton
(
m_PanelERCOptions
,
ID_RESET_MATRIX
,
_
(
"Reset"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PanelMatrixSizer
->
Add
(
m_ResetOptButton
,
0
,
wxALL
,
5
);
m_staticline1
=
new
wxStaticLine
(
m_PanelERCOptions
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxLI_HORIZONTAL
);
m_PanelMatrixSizer
->
Add
(
m_staticline1
,
0
,
wxEXPAND
|
wxALL
,
5
);
m_MatrixSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_panelMatrixSizer
->
Add
(
m_ResetOptButton
,
0
,
wxALIGN_RIGHT
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_PanelMatrixSizer
->
Add
(
m_MatrixSizer
,
1
,
wxEXPAND
,
5
);
m_matrixPanel
=
new
wxPanel
(
m_PanelERCOptions
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
m_panelMatrixSizer
->
Add
(
m_matrixPanel
,
1
,
wxEXPAND
|
wxALL
,
5
);
m_PanelERCOptions
->
SetSizer
(
m_
PanelMatrixSizer
);
m_PanelERCOptions
->
SetSizer
(
m_
panelMatrixSizer
);
m_PanelERCOptions
->
Layout
();
m_
PanelMatrixSizer
->
Fit
(
m_PanelERCOptions
);
m_
panelMatrixSizer
->
Fit
(
m_PanelERCOptions
);
m_NoteBook
->
AddPage
(
m_PanelERCOptions
,
_
(
"Options"
),
false
);
bSizer1
->
Add
(
m_NoteBook
,
1
,
wxEXPAND
|
wxALL
,
5
);
...
...
@@ -146,7 +136,6 @@ DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
this
->
SetSizer
(
bSizer1
);
this
->
Layout
();
bSizer1
->
Fit
(
this
);
}
DIALOG_ERC_BASE
::~
DIALOG_ERC_BASE
()
...
...
eeschema/dialogs/dialog_erc_base.fbp
View file @
91d5bb58
...
...
@@ -42,7 +42,7 @@
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
DIALOG_ERC_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
-1,-1
</property>
<property
name=
"size"
>
519,392
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"title"
>
EESchema Erc
</property>
...
...
@@ -267,11 +267,11 @@
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL
|wxEXPAND|wxTOP
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Erc
File Report:
</property>
<property
name=
"label"
>
Erc
report:
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
sdiagSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
...
...
@@ -285,13 +285,13 @@
<property
name=
"cols"
>
2
</property>
<property
name=
"hgap"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
gSize
r1
</property>
<property
name=
"name"
>
gSize
Diag
</property>
<property
name=
"permission"
>
none
</property>
<property
name=
"rows"
>
3
</property>
<property
name=
"vgap"
>
0
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -321,7 +321,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Total
Errors Count:
</property>
<property
name=
"label"
>
Total
errors count:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -374,9 +374,9 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
StaticText"
expanded=
"1"
>
<object
class=
"wx
TextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -404,10 +404,10 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
0000
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
...
...
@@ -422,14 +422,18 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
</property>
<property
name=
"style"
>
wxTE_READONLY
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -452,12 +456,16 @@
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -487,7 +495,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Warnings
Count:
</property>
<property
name=
"label"
>
Warnings
count:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -540,9 +548,9 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
StaticText"
expanded=
"1"
>
<object
class=
"wx
TextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -570,10 +578,10 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
0000
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
...
...
@@ -588,14 +596,18 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
</property>
<property
name=
"style"
>
wxTE_READONLY
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -618,12 +630,16 @@
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -653,7 +669,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Errors
Count:
</property>
<property
name=
"label"
>
Errors
count:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -706,9 +722,9 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
StaticText"
expanded=
"1"
>
<object
class=
"wx
TextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -736,10 +752,10 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
0000
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
...
...
@@ -754,14 +770,18 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
</property>
<property
name=
"style"
>
wxTE_READONLY
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -784,27 +804,20 @@
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bSizeMessages
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxTOP|wxBOTTOM|wxRIGHT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
StaticText"
expanded=
"1"
>
<object
class=
"wx
CheckBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -818,6 +831,7 @@
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"checked"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
...
...
@@ -832,7 +846,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Messages:
</property>
<property
name=
"label"
>
Create ERC file report
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -840,7 +854,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_
titleMessages
</property>
<property
name=
"name"
>
m_
WriteResultOpt
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -854,98 +868,15 @@
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
<event
name=
"OnKeyUp"
></event>
<event
name=
"OnKillFocus"
></event>
<event
name=
"OnLeaveWindow"
></event>
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
<event
name=
"OnMotion"
></event>
<event
name=
"OnMouseEvents"
></event>
<event
name=
"OnMouseWheel"
></event>
<event
name=
"OnPaint"
></event>
<event
name=
"OnRightDClick"
></event>
<event
name=
"OnRightDown"
></event>
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wxBOTTOM|wxLEFT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxTextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"TopDockable"
>
1
</property>
<property
name=
"aui_layer"
></property>
<property
name=
"aui_name"
></property>
<property
name=
"aui_position"
></property>
<property
name=
"aui_row"
></property>
<property
name=
"best_size"
></property>
<property
name=
"bg"
></property>
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
<property
name=
"docking"
>
Left
</property>
<property
name=
"enabled"
>
1
</property>
<property
name=
"fg"
></property>
<property
name=
"floatable"
>
1
</property>
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
>
300,-1
</property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_MessagesList
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxTE_MULTILINE|wxTE_READONLY
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnChar"
></event>
<event
name=
"OnCheckBox"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
...
...
@@ -967,10 +898,6 @@
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
...
...
@@ -978,18 +905,18 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
ALIGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"flag"
>
wx
EXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
b
buttonsSizer
</property>
<property
name=
"name"
>
b
SizerMessages
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
ALL|wxEXPAND
</property>
<property
name=
"flag"
>
wx
RIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
Button"
expanded=
"1"
>
<object
class=
"wx
StaticText"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -1006,7 +933,6 @@
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default"
>
0
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
...
...
@@ -1017,8 +943,8 @@
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
ID_ERC_CMP
</property>
<property
name=
"label"
>
&
Test Erc
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Messages:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -1026,7 +952,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_
buttonERC
</property>
<property
name=
"name"
>
m_
titleMessages
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1040,14 +966,10 @@
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<
event
name=
"OnButtonClick"
>
OnErcCmpClick
</event>
<
property
name=
"wrap"
>
-1
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -1075,9 +997,9 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
ALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
Button"
expanded=
"1"
>
<property
name=
"flag"
>
wx
EXPAND|wxLEFT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wx
TextCtrl"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -1094,7 +1016,6 @@
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default"
>
0
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
...
...
@@ -1105,16 +1026,16 @@
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
ID_ERASE_DRC_MARKERS
</property>
<property
name=
"label"
>
&
Del Markers
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maxlength"
>
0
</property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
>
</property>
<property
name=
"minimum_size"
>
-1,-1
</property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_
buttondelmarkers
</property>
<property
name=
"name"
>
m_
MessagesList
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1124,7 +1045,7 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
</property>
<property
name=
"style"
>
wxTE_MULTILINE|wxTE_READONLY
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
...
...
@@ -1132,10 +1053,10 @@
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"value"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnButtonClick"
>
OnEraseDrcMarkersClick
</event>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -1158,9 +1079,24 @@
<event
name=
"OnRightUp"
></event>
<event
name=
"OnSetFocus"
></event>
<event
name=
"OnSize"
></event>
<event
name=
"OnText"
></event>
<event
name=
"OnTextEnter"
></event>
<event
name=
"OnTextMaxLen"
></event>
<event
name=
"OnTextURL"
></event>
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bbuttonsSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
...
...
@@ -1182,7 +1118,7 @@
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default"
>
0
</property>
<property
name=
"default"
>
1
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
...
...
@@ -1193,8 +1129,8 @@
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_CANCEL
</property>
<property
name=
"label"
>
&
Close
</property>
<property
name=
"id"
>
ID_ERC_CMP
</property>
<property
name=
"label"
>
&
Test Erc
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -1202,7 +1138,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_button
Close
</property>
<property
name=
"name"
>
m_button
ERC
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1223,7 +1159,7 @@
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnButtonClick"
>
On
CancelClick
</event>
<event
name=
"OnButtonClick"
>
On
ErcCmpClick
</event>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -1249,15 +1185,11 @@
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALL
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxCheckBox"
expanded=
"1"
>
<object
class=
"wxButton"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -1271,10 +1203,10 @@
<property
name=
"caption"
></property>
<property
name=
"caption_visible"
>
1
</property>
<property
name=
"center_pane"
>
0
</property>
<property
name=
"checked"
>
0
</property>
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default"
>
0
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
...
...
@@ -1285,8 +1217,8 @@
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Create ERC report
</property>
<property
name=
"id"
>
ID_ERASE_DRC_MARKERS
</property>
<property
name=
"label"
>
&
Del Markers
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -1294,7 +1226,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_WriteResultOpt
</property>
<property
name=
"name"
>
m_buttondelmarkers
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1315,8 +1247,8 @@
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnButtonClick"
>
OnEraseDrcMarkersClick
</event>
<event
name=
"OnChar"
></event>
<event
name=
"OnCheckBox"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnKeyDown"
></event>
...
...
@@ -1343,9 +1275,9 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND | wxALL
</property>
<property
name=
"flag"
>
wxALL|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticLine"
expanded=
"1"
>
<object
class=
"wxButton"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -1362,6 +1294,7 @@
<property
name=
"close_button"
>
1
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"default"
>
0
</property>
<property
name=
"default_pane"
>
0
</property>
<property
name=
"dock"
>
Dock
</property>
<property
name=
"dock_fixed"
>
0
</property>
...
...
@@ -1372,7 +1305,8 @@
<property
name=
"font"
></property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_CANCEL
</property>
<property
name=
"label"
>
&
Close
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -1380,7 +1314,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_staticline2
</property>
<property
name=
"name"
>
m_buttonClose
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1390,13 +1324,18 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxLI_HORIZONTAL
</property>
<property
name=
"style"
></property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"validator_data_type"
></property>
<property
name=
"validator_style"
>
wxFILTER_NONE
</property>
<property
name=
"validator_type"
>
wxDefaultValidator
</property>
<property
name=
"validator_variable"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
></property>
<event
name=
"OnButtonClick"
>
OnCancelClick
</event>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -1422,6 +1361,10 @@
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
</object>
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxTOP|wxRIGHT|wxLEFT
</property>
...
...
@@ -1454,7 +1397,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Markers:
</property>
<property
name=
"label"
>
Error list:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -1507,7 +1450,7 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
ALL|wxEXPAND
</property>
<property
name=
"flag"
>
wx
EXPAND|wxBOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxListBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1543,7 +1486,7 @@
<property
name=
"maximum_size"
></property>
<property
name=
"min_size"
></property>
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
>
500,350
</property>
<property
name=
"minimum_size"
>
450,250
</property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_MarkersList
</property>
<property
name=
"pane_border"
>
1
</property>
...
...
@@ -1576,8 +1519,8 @@
<event
name=
"OnLeftDClick"
></event>
<event
name=
"OnLeftDown"
></event>
<event
name=
"OnLeftUp"
></event>
<event
name=
"OnListBox"
>
</event>
<event
name=
"OnListBoxDClick"
>
OnLeftD
ClickMarkersList
</event>
<event
name=
"OnListBox"
>
OnLeftClickMarkersList
</event>
<event
name=
"OnListBoxDClick"
>
OnLeftD
blClickMarkersList
</event>
<event
name=
"OnMiddleDClick"
></event>
<event
name=
"OnMiddleDown"
></event>
<event
name=
"OnMiddleUp"
></event>
...
...
@@ -1676,12 +1619,12 @@
<event
name=
"OnUpdateUI"
></event>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
m_
PanelMatrixSizer
</property>
<property
name=
"name"
>
m_
panelMatrixSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxAL
L
</property>
<property
name=
"flag"
>
wxAL
IGN_RIGHT|wxTOP|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxButton"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
...
...
@@ -1770,8 +1713,8 @@
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND | wxALL
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wx
StaticLine"
expanded=
"1"
>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wx
Panel"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
...
@@ -1806,7 +1749,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_
staticline1
</property>
<property
name=
"name"
>
m_
matrixPanel
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
@@ -1816,13 +1759,12 @@
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxLI_HORIZONTAL
</property>
<property
name=
"subclass"
></property>
<property
name=
"toolbar_pane"
>
0
</property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
>
</property>
<property
name=
"window_style"
>
wxTAB_TRAVERSAL
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
@@ -1848,17 +1790,6 @@
<event
name=
"OnUpdateUI"
></event>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
m_MatrixSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
protected
</property>
</object>
</object>
</object>
</object>
</object>
...
...
eeschema/dialogs/dialog_erc_base.h
View file @
91d5bb58
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 1
1 2012)
// C++ code generated with wxFormBuilder (version Apr 1
0 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -19,12 +19,11 @@
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/sizer.h>
#include <wx/checkbox.h>
#include <wx/statbox.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/statline.h>
#include <wx/listbox.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
...
...
@@ -47,7 +46,8 @@ class DIALOG_ERC_BASE : public DIALOG_SHIM
void
_wxFB_OnErcCmpClick
(
wxCommandEvent
&
event
){
OnErcCmpClick
(
event
);
}
void
_wxFB_OnEraseDrcMarkersClick
(
wxCommandEvent
&
event
){
OnEraseDrcMarkersClick
(
event
);
}
void
_wxFB_OnCancelClick
(
wxCommandEvent
&
event
){
OnCancelClick
(
event
);
}
void
_wxFB_OnLeftDClickMarkersList
(
wxCommandEvent
&
event
){
OnLeftDClickMarkersList
(
event
);
}
void
_wxFB_OnLeftClickMarkersList
(
wxCommandEvent
&
event
){
OnLeftClickMarkersList
(
event
);
}
void
_wxFB_OnLeftDblClickMarkersList
(
wxCommandEvent
&
event
){
OnLeftDblClickMarkersList
(
event
);
}
void
_wxFB_OnResetMatrixClick
(
wxCommandEvent
&
event
){
OnResetMatrixClick
(
event
);
}
...
...
@@ -63,37 +63,35 @@ class DIALOG_ERC_BASE : public DIALOG_SHIM
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelERC
;
wxStaticText
*
m_ErcTotalErrorsText
;
wx
StaticText
*
m_TotalErrCount
;
wx
TextCtrl
*
m_TotalErrCount
;
wxStaticText
*
m_WarnErcErrorsText
;
wx
StaticText
*
m_LastWarningCount
;
wx
TextCtrl
*
m_LastWarningCount
;
wxStaticText
*
m_LastErrCountText
;
wxStaticText
*
m_LastErrCount
;
wxTextCtrl
*
m_LastErrCount
;
wxCheckBox
*
m_WriteResultOpt
;
wxStaticText
*
m_titleMessages
;
wxTextCtrl
*
m_MessagesList
;
wxButton
*
m_buttonERC
;
wxButton
*
m_buttondelmarkers
;
wxButton
*
m_buttonClose
;
wxCheckBox
*
m_WriteResultOpt
;
wxStaticLine
*
m_staticline2
;
wxStaticText
*
m_textMarkers
;
ERC_HTML_LISTBOX
*
m_MarkersList
;
wxPanel
*
m_PanelERCOptions
;
wxBoxSizer
*
m_PanelMatrixSizer
;
wxButton
*
m_ResetOptButton
;
wxStaticLine
*
m_staticline1
;
wxBoxSizer
*
m_MatrixSizer
;
wxPanel
*
m_matrixPanel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnErcCmpClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnEraseDrcMarkersClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnLeftDClickMarkersList
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnLeftClickMarkersList
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnLeftDblClickMarkersList
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnResetMatrixClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
DIALOG_ERC_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"EESchema Erc"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_ERC_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"EESchema Erc"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
519
,
392
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_ERC_BASE
();
};
...
...
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