Commit afd39b3d authored by charras's avatar charras

code cleaning

parent 070b12d5
...@@ -343,6 +343,7 @@ void WinEDA3D_DrawFrame::NewDisplay() ...@@ -343,6 +343,7 @@ void WinEDA3D_DrawFrame::NewDisplay()
m_Canvas->Refresh( true ); m_Canvas->Refresh( true );
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DBgColor() void WinEDA3D_DrawFrame::Set3DBgColor()
/******************************************/ /******************************************/
...@@ -367,21 +368,27 @@ void WinEDA3D_DrawFrame::Set3DBgColor() ...@@ -367,21 +368,27 @@ void WinEDA3D_DrawFrame::Set3DBgColor()
} }
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DAxisOnOff() void WinEDA3D_DrawFrame::Set3DAxisOnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DAxis) g_Parm_3D_Visu.m_Draw3DAxis = FALSE; if( g_Parm_3D_Visu.m_Draw3DAxis )
else g_Parm_3D_Visu.m_Draw3DAxis = TRUE; g_Parm_3D_Visu.m_Draw3DAxis = FALSE;
else
g_Parm_3D_Visu.m_Draw3DAxis = TRUE;
NewDisplay(); NewDisplay();
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DModuleOnOff() void WinEDA3D_DrawFrame::Set3DModuleOnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DModule) g_Parm_3D_Visu.m_Draw3DModule = FALSE; if( g_Parm_3D_Visu.m_Draw3DModule )
else g_Parm_3D_Visu.m_Draw3DModule = TRUE; g_Parm_3D_Visu.m_Draw3DModule = FALSE;
else
g_Parm_3D_Visu.m_Draw3DModule = TRUE;
NewDisplay(); NewDisplay();
} }
...@@ -390,43 +397,57 @@ void WinEDA3D_DrawFrame::Set3DModuleOnOff() ...@@ -390,43 +397,57 @@ void WinEDA3D_DrawFrame::Set3DModuleOnOff()
void WinEDA3D_DrawFrame::Set3DZoneOnOff() void WinEDA3D_DrawFrame::Set3DZoneOnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DZone) g_Parm_3D_Visu.m_Draw3DZone = FALSE; if( g_Parm_3D_Visu.m_Draw3DZone )
else g_Parm_3D_Visu.m_Draw3DZone = TRUE; g_Parm_3D_Visu.m_Draw3DZone = FALSE;
else
g_Parm_3D_Visu.m_Draw3DZone = TRUE;
NewDisplay(); NewDisplay();
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DCommentsOnOff() void WinEDA3D_DrawFrame::Set3DCommentsOnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DComments) g_Parm_3D_Visu.m_Draw3DComments = FALSE; if( g_Parm_3D_Visu.m_Draw3DComments )
else g_Parm_3D_Visu.m_Draw3DComments = TRUE; g_Parm_3D_Visu.m_Draw3DComments = FALSE;
else
g_Parm_3D_Visu.m_Draw3DComments = TRUE;
NewDisplay(); NewDisplay();
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DDrawingsOnOff() void WinEDA3D_DrawFrame::Set3DDrawingsOnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DDrawings) g_Parm_3D_Visu.m_Draw3DDrawings = FALSE; if( g_Parm_3D_Visu.m_Draw3DDrawings )
else g_Parm_3D_Visu.m_Draw3DDrawings = TRUE; g_Parm_3D_Visu.m_Draw3DDrawings = FALSE;
else
g_Parm_3D_Visu.m_Draw3DDrawings = TRUE;
NewDisplay(); NewDisplay();
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DEco1OnOff() void WinEDA3D_DrawFrame::Set3DEco1OnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DEco1) g_Parm_3D_Visu.m_Draw3DEco1 = FALSE; if( g_Parm_3D_Visu.m_Draw3DEco1 )
else g_Parm_3D_Visu.m_Draw3DEco1 = TRUE; g_Parm_3D_Visu.m_Draw3DEco1 = FALSE;
else
g_Parm_3D_Visu.m_Draw3DEco1 = TRUE;
NewDisplay(); NewDisplay();
} }
/******************************************/ /******************************************/
void WinEDA3D_DrawFrame::Set3DEco2OnOff() void WinEDA3D_DrawFrame::Set3DEco2OnOff()
/******************************************/ /******************************************/
{ {
if (g_Parm_3D_Visu.m_Draw3DEco2) g_Parm_3D_Visu.m_Draw3DEco2 = FALSE; if( g_Parm_3D_Visu.m_Draw3DEco2 )
else g_Parm_3D_Visu.m_Draw3DEco2 = TRUE; g_Parm_3D_Visu.m_Draw3DEco2 = FALSE;
else
g_Parm_3D_Visu.m_Draw3DEco2 = TRUE;
NewDisplay(); NewDisplay();
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment