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
7ec1313c
Commit
7ec1313c
authored
May 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Custom width settings taken into account in wxUpdateUIEvent handlers.
parent
917e4739
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
wxPcbStruct.h
include/wxPcbStruct.h
+1
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+2
-0
pcbnew_id.h
pcbnew/pcbnew_id.h
+1
-1
toolbars_update_user_interface.cpp
pcbnew/toolbars_update_user_interface.cpp
+13
-3
No files found.
include/wxPcbStruct.h
View file @
7ec1313c
...
...
@@ -248,6 +248,7 @@ public:
void
OnUpdateZoneDisplayStyle
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateSelectTrackWidth
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateSelectAutoTrackWidth
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateSelectCustomTrackWidth
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateAutoPlaceModulesMode
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateAutoPlaceTracksMode
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateMuWaveToolbar
(
wxUpdateUIEvent
&
aEvent
);
...
...
pcbnew/pcbframe.cpp
View file @
7ec1313c
...
...
@@ -275,6 +275,8 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
EVT_UPDATE_UI
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
PCB_EDIT_FRAME
::
OnUpdateSelectAutoTrackWidth
)
EVT_UPDATE_UI
(
ID_POPUP_PCB_SELECT_AUTO_WIDTH
,
PCB_EDIT_FRAME
::
OnUpdateSelectAutoTrackWidth
)
EVT_UPDATE_UI
(
ID_POPUP_PCB_SELECT_CUSTOM_WIDTH
,
PCB_EDIT_FRAME
::
OnUpdateSelectCustomTrackWidth
)
EVT_UPDATE_UI
(
ID_AUX_TOOLBAR_PCB_VIA_SIZE
,
PCB_EDIT_FRAME
::
OnUpdateSelectViaSize
)
EVT_UPDATE_UI
(
ID_TOOLBARH_PCB_MODE_MODULE
,
PCB_EDIT_FRAME
::
OnUpdateAutoPlaceModulesMode
)
EVT_UPDATE_UI
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
PCB_EDIT_FRAME
::
OnUpdateAutoPlaceTracksMode
)
...
...
pcbnew/pcbnew_id.h
View file @
7ec1313c
...
...
@@ -170,7 +170,7 @@ enum pcbnew_ids
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
ID_POPUP_PCB_SELECT_WIDTH_START_RANGE
,
ID_POPUP_PCB_SELECT_WIDTH
,
ID_POPUP_PCB_SELECT_CUSTOM
,
ID_POPUP_PCB_SELECT_CUSTOM
_WIDTH
,
ID_POPUP_PCB_SELECT_AUTO_WIDTH
,
ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES
,
ID_POPUP_PCB_SELECT_WIDTH1
,
...
...
pcbnew/toolbars_update_user_interface.cpp
View file @
7ec1313c
...
...
@@ -62,7 +62,9 @@ void PCB_EDIT_FRAME::OnUpdateSelectTrackWidth( wxUpdateUIEvent& aEvent )
{
bool
check
=
(
(
(
ID_POPUP_PCB_SELECT_WIDTH1
+
(
int
)
GetBoard
()
->
GetTrackWidthIndex
()
)
==
aEvent
.
GetId
()
)
&&
!
GetDesignSettings
().
m_UseConnectedTrackWidth
);
!
GetDesignSettings
().
m_UseConnectedTrackWidth
&&
!
GetBoard
()
->
UseCustomTrackViaSize
()
);
aEvent
.
Check
(
check
);
}
}
...
...
@@ -70,7 +72,14 @@ void PCB_EDIT_FRAME::OnUpdateSelectTrackWidth( wxUpdateUIEvent& aEvent )
void
PCB_EDIT_FRAME
::
OnUpdateSelectAutoTrackWidth
(
wxUpdateUIEvent
&
aEvent
)
{
aEvent
.
Check
(
GetDesignSettings
().
m_UseConnectedTrackWidth
);
aEvent
.
Check
(
GetDesignSettings
().
m_UseConnectedTrackWidth
&&
!
GetBoard
()
->
UseCustomTrackViaSize
()
);
}
void
PCB_EDIT_FRAME
::
OnUpdateSelectCustomTrackWidth
(
wxUpdateUIEvent
&
aEvent
)
{
aEvent
.
Check
(
GetBoard
()
->
UseCustomTrackViaSize
()
);
}
...
...
@@ -87,7 +96,8 @@ void PCB_EDIT_FRAME::OnUpdateSelectViaSize( wxUpdateUIEvent& aEvent )
{
bool
check
=
(
(
(
ID_POPUP_PCB_SELECT_VIASIZE1
+
(
int
)
GetBoard
()
->
GetViaSizeIndex
()
)
==
aEvent
.
GetId
()
)
&&
!
GetDesignSettings
().
m_UseConnectedTrackWidth
);
!
GetDesignSettings
().
m_UseConnectedTrackWidth
&&
!
GetBoard
()
->
UseCustomTrackViaSize
()
);
aEvent
.
Check
(
check
);
}
...
...
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