Commit 70707523 authored by charras's avatar charras

show axis in module editor and gerbview

parent 5b3c5861
......@@ -4,7 +4,7 @@ CC = gcc
include ../libs.linux
all: common.a
all: common.a pcbcommon.a
deps:
$(CXX) $(CPPFLAGS) -E -MMD -MG *.cpp >/dev/null
......@@ -16,13 +16,17 @@ include makefile.include
CPPFLAGS += $(EXTRACPPFLAGS) -I./ -I../include
EDACPPFLAGS = $(CPPFLAGS)
common.a: $(COMMON_OBJECTS) makefile.gtk makefile.include
rm -f $@
ar -rv $@ $(COMMON_OBJECTS)
ranlib $@
common.a: $(OBJECTS) makefile.gtk makefile.include
pcbcommon.a: $(COMMON_PCB_OBJECTS) makefile.gtk makefile.include
rm -f $@
ar -rv $@ $(OBJECTS)
ar -rv $@ $(COMMON_PCB_OBJECTS)
ranlib $@
install:common.a
install:common.a pcb_common.a
clean:
rm -f *.o *~ core *.bak *.obj *.d
......
......@@ -2,7 +2,7 @@
include ../libs.macosx
TARGET = common.a
TARGET = common.a pcbcommon.a
all: $(TARGET)
......@@ -15,9 +15,14 @@ include makefile.include
CPPFLAGS += $(EXTRACPPFLAGS)
EDACPPFLAGS = $(CPPFLAGS)
$(TARGET): $(OBJECTS) makefile.macosx makefile.include
common.a: $(COMMON_OBJECTS) makefile.macosx makefile.include
rm -f $@
ar -rv $@ $(OBJECTS)
ar -rv $@ $(COMMON_OBJECTS)
ranlib $@
pcbcommon.a: $(COMMON_PCB_OBJECTS) makefile.macosx makefile.include
rm -f $@
ar -rv $@ $(COMMON_PCB_OBJECTS)
ranlib $@
clean:
......
......@@ -134,7 +134,7 @@ WinEDA_GerberFrame::WinEDA_GerberFrame( wxWindow* father,
{
m_FrameName = wxT( "GerberFrame" );
//m_AboutTitle = g_GerbviewAboutTitle;
m_Draw_Axis = true; // true to show X and Y axis on screen
m_Draw_Sheet_Ref = FALSE; // TRUE pour avoir le cartouche dessin�
m_Ident = GERBER_FRAME;
if( DrawPanel )
......
#makefile to fast compilation of GerbView.
EXTRALIBS = ../common/common.a ../common/pcbcommon.a ../bitmaps/libbitmaps.a\
../polygon/lib_polygon.a ../polygon/kbool/src/libkbool.a
......
......@@ -52,12 +52,12 @@ WinEDA_BasePcbFrame::WinEDA_BasePcbFrame( wxWindow* father,
m_InternalUnits = PCB_INTERNAL_UNIT; // Internal unit = 1/10000 inch
m_Pcb = NULL;
m_DisplayPadFill = TRUE; // How to draw pads
m_DisplayPadNum = TRUE; // show pads number
m_DisplayPadFill = true; // How to draw pads
m_DisplayPadNum = true; // show pads number
m_DisplayModEdge = FILLED; // How to show module drawings
m_DisplayModText = FILLED; // How to show module texts
m_DisplayPcbTrackFill = TRUE; /* FALSE = sketch , TRUE = filled */
m_DisplayPcbTrackFill = true; /* FALSE = sketch , true = filled */
m_Draw3DFrame = NULL; // Display Window in 3D mode (OpenGL)
m_ModuleEditFrame = NULL; // Frame for footprint edition
......@@ -131,7 +131,7 @@ void WinEDA_BasePcbFrame::CursorGoto( const wxPoint& aPos )
if( !DrawPanel->IsPointOnDisplay( aPos ) )
{
screen->m_Curseur = aPos;
Recadre_Trace( TRUE );
Recadre_Trace( true );
}
else
{
......
......@@ -160,7 +160,8 @@ WinEDA_ModuleEditFrame::WinEDA_ModuleEditFrame( wxWindow* father,
wxConfig* config = wxGetApp().m_EDA_Config;
m_FrameName = wxT( "ModEditFrame" );
m_Draw_Sheet_Ref = FALSE; // TRUE pour avoir le cartouche dessin�
m_Draw_Sheet_Ref = false; // true to show the frame references
m_Draw_Axis = true; // true to show X and Y axis on screen
// Give an icon
SetIcon( wxICON( icon_modedit ) );
......@@ -251,13 +252,13 @@ void WinEDA_ModuleEditFrame::SetToolbars()
return;
if( m_CurrentLib == wxEmptyString )
islib = FALSE;
islib = false;
m_HToolBar->EnableTool( ID_MODEDIT_SAVE_LIBMODULE, islib );
m_HToolBar->EnableTool( ID_LIBEDIT_DELETE_PART, islib );
if( GetBoard()->m_Modules == NULL )
active = FALSE;
active = false;
else
active = TRUE;
......@@ -307,7 +308,7 @@ void WinEDA_ModuleEditFrame::SetToolbars()
}
else
{
m_HToolBar->EnableTool( ID_MODEDIT_LOAD_MODULE_FROM_BOARD, FALSE );
m_HToolBar->EnableTool( ID_MODEDIT_LOAD_MODULE_FROM_BOARD, false );
}
......@@ -325,9 +326,9 @@ void WinEDA_ModuleEditFrame::SetToolbars()
if( m_OptionsToolBar )
{
m_OptionsToolBar->ToggleTool( ID_TB_OPTIONS_SELECT_UNIT_MM,
g_UnitMetric == MILLIMETRE ? TRUE : FALSE );
g_UnitMetric == MILLIMETRE ? TRUE : false );
m_OptionsToolBar->ToggleTool( ID_TB_OPTIONS_SELECT_UNIT_INCH,
g_UnitMetric == INCHES ? TRUE : FALSE );
g_UnitMetric == INCHES ? TRUE : false );
m_OptionsToolBar->ToggleTool( ID_TB_OPTIONS_SHOW_POLAR_COORD,
DisplayOpt.DisplayPolarCood );
......
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