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
91e9df59
Commit
91e9df59
authored
Jul 14, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed layers order after changing the active layer.
parent
f45836bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
draw_panel_gal.cpp
common/draw_panel_gal.cpp
+2
-2
class_draw_panel_gal.h
include/class_draw_panel_gal.h
+2
-2
view.h
include/view/view.h
+1
-1
No files found.
common/draw_panel_gal.cpp
View file @
91e9df59
...
@@ -243,7 +243,7 @@ void EDA_DRAW_PANEL_GAL::StopDrawing()
...
@@ -243,7 +243,7 @@ void EDA_DRAW_PANEL_GAL::StopDrawing()
}
}
void
EDA_DRAW_PANEL_GAL
::
SetHighContrastLayer
(
LAYER_
NUM
aLayer
)
void
EDA_DRAW_PANEL_GAL
::
SetHighContrastLayer
(
LAYER_
ID
aLayer
)
{
{
// Set display settings for high contrast mode
// Set display settings for high contrast mode
KIGFX
::
RENDER_SETTINGS
*
rSettings
=
m_view
->
GetPainter
()
->
GetSettings
();
KIGFX
::
RENDER_SETTINGS
*
rSettings
=
m_view
->
GetPainter
()
->
GetSettings
();
...
@@ -257,7 +257,7 @@ void EDA_DRAW_PANEL_GAL::SetHighContrastLayer( LAYER_NUM aLayer )
...
@@ -257,7 +257,7 @@ void EDA_DRAW_PANEL_GAL::SetHighContrastLayer( LAYER_NUM aLayer )
}
}
void
EDA_DRAW_PANEL_GAL
::
SetTopLayer
(
LAYER_
NUM
aLayer
)
void
EDA_DRAW_PANEL_GAL
::
SetTopLayer
(
LAYER_
ID
aLayer
)
{
{
m_view
->
ClearTopLayers
();
m_view
->
ClearTopLayers
();
m_view
->
SetTopLayer
(
aLayer
);
m_view
->
SetTopLayer
(
aLayer
);
...
...
include/class_draw_panel_gal.h
View file @
91e9df59
...
@@ -136,13 +136,13 @@ public:
...
@@ -136,13 +136,13 @@ public:
* Function SetHighContrastLayer
* Function SetHighContrastLayer
* Takes care of display settings for the given layer to be displayed in high contrast mode.
* Takes care of display settings for the given layer to be displayed in high contrast mode.
*/
*/
virtual
void
SetHighContrastLayer
(
LAYER_
NUM
aLayer
);
virtual
void
SetHighContrastLayer
(
LAYER_
ID
aLayer
);
/**
/**
* Function SetTopLayer
* Function SetTopLayer
* Moves the selected layer to the top, so it is displayed above all others.
* Moves the selected layer to the top, so it is displayed above all others.
*/
*/
virtual
void
SetTopLayer
(
LAYER_
NUM
aLayer
);
virtual
void
SetTopLayer
(
LAYER_
ID
aLayer
);
protected
:
protected
:
void
onPaint
(
wxPaintEvent
&
WXUNUSED
(
aEvent
)
);
void
onPaint
(
wxPaintEvent
&
WXUNUSED
(
aEvent
)
);
...
...
include/view/view.h
View file @
91e9df59
...
@@ -508,7 +508,7 @@ public:
...
@@ -508,7 +508,7 @@ public:
const
BOX2I
CalculateExtents
()
;
const
BOX2I
CalculateExtents
()
;
static
const
int
VIEW_MAX_LAYERS
=
128
;
///< maximum number of layers that may be shown
static
const
int
VIEW_MAX_LAYERS
=
256
;
///< maximum number of layers that may be shown
private
:
private
:
struct
VIEW_LAYER
struct
VIEW_LAYER
...
...
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