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
723424df
Commit
723424df
authored
Aug 09, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some comments.
parent
d73d1536
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
+32
-14
drawpanel_gal.cpp
common/drawpanel_gal.cpp
+0
-6
class_drawpanel_gal.h
include/class_drawpanel_gal.h
+32
-8
No files found.
common/drawpanel_gal.cpp
View file @
723424df
...
...
@@ -213,9 +213,3 @@ void EDA_DRAW_PANEL_GAL::onEvent( wxEvent& aEvent )
m_eventDispatcher
->
DispatchWxEvent
(
aEvent
);
}
}
KiGfx
::
VIEW_CONTROLS
*
EDA_DRAW_PANEL_GAL
::
GetViewControls
()
const
{
return
m_viewControls
;
}
include/class_drawpanel_gal.h
View file @
723424df
...
...
@@ -69,20 +69,44 @@ public:
void
SwitchBackend
(
GalType
aGalType
);
/**
* Function GetGAL
* Function GetGAL
()
* Returns a pointer to the GAL instance used in the panel.
* @return
KiGfx::GAL* I
nstance of GAL.
* @return
The i
nstance of GAL.
*/
KiGfx
::
GAL
*
GetGAL
()
{
return
m_gal
;
}
KiGfx
::
GAL
*
GetGAL
()
const
{
return
m_gal
;
}
void
SetView
(
KiGfx
::
VIEW
*
aView
)
{
m_view
=
aView
;
}
/**
* Function GetView()
* Returns a pointer to the VIEW instance used in the panel.
* @return The instance of VIEW.
*/
KiGfx
::
VIEW
*
GetView
()
const
{
return
m_view
;
}
KiGfx
::
VIEW
*
GetView
()
const
{
return
m_view
;
}
KiGfx
::
VIEW_CONTROLS
*
GetViewControls
()
const
;
/**
* Function GetViewControls()
* Returns a pointer to the VIEW_CONTROLS instance used in the panel.
* @return The instance of VIEW_CONTROLS.
*/
KiGfx
::
VIEW_CONTROLS
*
GetViewControls
()
const
{
return
m_viewControls
;
}
/// @copydoc wxWindow::Refresh()
virtual
void
Refresh
(
bool
eraseBackground
=
true
,
const
wxRect
*
rect
=
NULL
);
void
SetEventDispatcher
(
TOOL_DISPATCHER
*
aEventDispatcher
)
/**
* Function SetEventDispatcher()
* Sets a dispatcher that processes events and forwards them to tools.
* @param aEventDispatcher is the object that will be used for dispatching events.
*/
void
SetEventDispatcher
(
TOOL_DISPATCHER
*
aEventDispatcher
)
{
m_eventDispatcher
=
aEventDispatcher
;
}
...
...
@@ -99,7 +123,7 @@ protected:
///< using GAL
KiGfx
::
WX_VIEW_CONTROLS
*
m_viewControls
;
///< Control for VIEW (moving, zooming, etc.)
GalType
m_currentGal
;
///< Currently used GAL
TOOL_DISPATCHER
*
m_eventDispatcher
;
TOOL_DISPATCHER
*
m_eventDispatcher
;
///< Processes and forwards events to tools
};
#endif
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