~andrew-plumb/kicad/kicad

« back to all changes in this revision

Viewing changes to common/page_layout/title_block_shapes.cpp

  • Committer: jean-pierre charras
  • Date: 2013-10-11 16:24:43 UTC
  • Revision ID: jp.charras@wanadoo.fr-20131011162443-1uqzbg1yogv1c4n0
Remove wxUSE_UNICODE definition from CMakeLists.txt, because this define comes from wxWidgets and should not be made inside kicad
Remove KICAD_GOST option because it is  now useless: the 2 GOST options are now selectable at run time and are:
* specific page layouts (now user definable, and the GOST page layouts are available in template folder)
* notation for multiple parts per package (made in eeschema, preference menu)

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
#include <class_worksheet_dataitem.h>
63
63
 
64
64
 
65
 
// Temporary include. Will be removed when a GOST page layout descr file is available
66
 
#ifdef KICAD_GOST
67
 
#include "title_block_shapes_gost.cpp"
68
 
#endif
69
 
 
70
65
void WS_DRAW_ITEM_LIST::BuildWorkSheetGraphicList(
71
66
                       const PAGE_INFO& aPageInfo,
72
67
                       const TITLE_BLOCK& aTitleBlock,
74
69
{
75
70
    WORKSHEET_LAYOUT& pglayout = WORKSHEET_LAYOUT::GetTheInstance();
76
71
 
77
 
// Ugly hack: will be removed when a GOST page layout descr file is available
78
 
#ifdef KICAD_GOST
79
 
    if( pglayout.IsDefaultDescr() )
80
 
    {
81
 
        ((WS_DRAW_ITEM_LIST_GOST*)this)->BuildWorkSheetGraphicListGOST( aPageInfo,
82
 
                aTitleBlock, aColor, aAltColor );
83
 
        return;
84
 
    }
85
 
#endif
86
 
 
87
72
    #define milsTomm (25.4/1000)
88
73
 
89
74
    m_titleBlock = &aTitleBlock;