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
ad2df709
Commit
ad2df709
authored
Oct 13, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added EDA_DRAW_PANEL_GAL::ForceRefresh().
parent
1c74019f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
draw_panel_gal.cpp
common/draw_panel_gal.cpp
+8
-2
class_draw_panel_gal.h
include/class_draw_panel_gal.h
+6
-0
No files found.
common/draw_panel_gal.cpp
View file @
ad2df709
...
...
@@ -168,8 +168,7 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool aEraseBackground, const wxRect* aRect )
if
(
delta
>=
MinRefreshPeriod
)
{
wxPaintEvent
redrawEvent
;
wxPostEvent
(
this
,
redrawEvent
);
ForceRefresh
();
m_pendingRefresh
=
true
;
}
else
...
...
@@ -181,6 +180,13 @@ void EDA_DRAW_PANEL_GAL::Refresh( bool aEraseBackground, const wxRect* aRect )
}
void
EDA_DRAW_PANEL_GAL
::
ForceRefresh
()
{
wxPaintEvent
redrawEvent
;
wxPostEvent
(
this
,
redrawEvent
);
}
void
EDA_DRAW_PANEL_GAL
::
SetEventDispatcher
(
TOOL_DISPATCHER
*
aEventDispatcher
)
{
m_eventDispatcher
=
aEventDispatcher
;
...
...
include/class_draw_panel_gal.h
View file @
ad2df709
...
...
@@ -110,6 +110,12 @@ public:
/// @copydoc wxWindow::Refresh()
void
Refresh
(
bool
aEraseBackground
=
true
,
const
wxRect
*
aRect
=
NULL
);
/**
* Function ForceRefresh()
* Forces a redraw.
*/
void
ForceRefresh
();
/**
* Function SetEventDispatcher()
* Sets a dispatcher that processes events and forwards them to tools.
...
...
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