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
08bfaa41
Commit
08bfaa41
authored
Oct 19, 2014
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More source file missing license fixes.
parent
e8362df1
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
487 additions
and
20 deletions
+487
-20
dialog_3D_view_option.cpp
3d-viewer/dialogs/dialog_3D_view_option.cpp
+28
-2
text_pcb.h
3d-viewer/textures/text_pcb.h
+25
-2
text_silk.h
3d-viewer/textures/text_silk.h
+25
-2
common_help_msg.h
cvpcb/common_help_msg.h
+24
-0
cvpcb.h
cvpcb/cvpcb.h
+23
-3
cvpcb_id.h
cvpcb/cvpcb_id.h
+24
-0
eelibs_read_libraryfiles.cpp
eeschema/eelibs_read_libraryfiles.cpp
+24
-0
events_called_functions_for_edit.cpp
eeschema/events_called_functions_for_edit.cpp
+24
-0
general.h
eeschema/general.h
+24
-0
help_common_strings.h
eeschema/help_common_strings.h
+24
-0
hotkeys.h
eeschema/hotkeys.h
+24
-0
libedit_undo_redo.cpp
eeschema/libedit_undo_redo.cpp
+23
-3
libfield.cpp
eeschema/libfield.cpp
+23
-3
operations_on_items_lists.cpp
eeschema/operations_on_items_lists.cpp
+24
-0
protos.h
eeschema/protos.h
+24
-0
selpart.cpp
eeschema/selpart.cpp
+24
-0
template_fieldnames.cpp
eeschema/template_fieldnames.cpp
+29
-5
template_fieldnames.h
eeschema/template_fieldnames.h
+24
-0
transform.cpp
eeschema/transform.cpp
+23
-0
viewlibs.cpp
eeschema/viewlibs.cpp
+24
-0
No files found.
3d-viewer/dialogs/dialog_3D_view_option.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "dialog_3D_view_option_base.h"
#include "dialog_3D_view_option_base.h"
#include <3d_viewer.h>
#include <3d_viewer.h>
...
@@ -43,6 +66,7 @@ DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS( EDA_3D_FRAME* parent )
...
@@ -43,6 +66,7 @@ DIALOG_3D_VIEW_OPTIONS::DIALOG_3D_VIEW_OPTIONS( EDA_3D_FRAME* parent )
Centre
();
Centre
();
}
}
void
DIALOG_3D_VIEW_OPTIONS
::
initDialog
()
void
DIALOG_3D_VIEW_OPTIONS
::
initDialog
()
{
{
m_bitmapCuThickness
->
SetBitmap
(
KiBitmap
(
use_3D_copper_thickness_xpm
)
);
m_bitmapCuThickness
->
SetBitmap
(
KiBitmap
(
use_3D_copper_thickness_xpm
)
);
...
@@ -67,6 +91,7 @@ void DIALOG_3D_VIEW_OPTIONS::initDialog()
...
@@ -67,6 +91,7 @@ void DIALOG_3D_VIEW_OPTIONS::initDialog()
m_checkBoxECO
->
SetValue
(
m_3Dprms
.
GetFlag
(
FL_ECO
)
);
m_checkBoxECO
->
SetValue
(
m_3Dprms
.
GetFlag
(
FL_ECO
)
);
}
}
void
DIALOG_3D_VIEW_OPTIONS
::
OnShowAllClick
(
wxCommandEvent
&
event
)
void
DIALOG_3D_VIEW_OPTIONS
::
OnShowAllClick
(
wxCommandEvent
&
event
)
{
{
bool
state
=
true
;
bool
state
=
true
;
...
@@ -81,6 +106,7 @@ void DIALOG_3D_VIEW_OPTIONS::OnShowAllClick( wxCommandEvent& event )
...
@@ -81,6 +106,7 @@ void DIALOG_3D_VIEW_OPTIONS::OnShowAllClick( wxCommandEvent& event )
m_checkBoxECO
->
SetValue
(
state
);
m_checkBoxECO
->
SetValue
(
state
);
}
}
void
DIALOG_3D_VIEW_OPTIONS
::
OnShowNoneClick
(
wxCommandEvent
&
event
)
void
DIALOG_3D_VIEW_OPTIONS
::
OnShowNoneClick
(
wxCommandEvent
&
event
)
{
{
bool
state
=
false
;
bool
state
=
false
;
...
@@ -95,10 +121,10 @@ void DIALOG_3D_VIEW_OPTIONS::OnShowNoneClick( wxCommandEvent& event )
...
@@ -95,10 +121,10 @@ void DIALOG_3D_VIEW_OPTIONS::OnShowNoneClick( wxCommandEvent& event )
m_checkBoxECO
->
SetValue
(
state
);
m_checkBoxECO
->
SetValue
(
state
);
}
}
void
DIALOG_3D_VIEW_OPTIONS
::
OnOKClick
(
wxCommandEvent
&
event
)
void
DIALOG_3D_VIEW_OPTIONS
::
OnOKClick
(
wxCommandEvent
&
event
)
{
{
m_3Dprms
.
SetFlag
(
FL_USE_COPPER_THICKNESS
,
m_3Dprms
.
SetFlag
(
FL_USE_COPPER_THICKNESS
,
m_checkBoxCuThickness
->
GetValue
()
);
m_checkBoxCuThickness
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_MODULE
,
m_checkBox3Dshapes
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_MODULE
,
m_checkBox3Dshapes
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_ZONE
,
m_checkBoxAreas
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_ZONE
,
m_checkBoxAreas
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_SILKSCREEN
,
m_checkBoxSilkscreen
->
GetValue
()
);
m_3Dprms
.
SetFlag
(
FL_SILKSCREEN
,
m_checkBoxSilkscreen
->
GetValue
()
);
...
...
3d-viewer/textures/text_pcb.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* GIMP RGBA C-Source image dump (text_pcb.c) */
/* GIMP RGBA C-Source image dump (text_pcb.c) */
static
const
struct
{
static
const
struct
{
unsigned
int
width
;
unsigned
int
width
;
unsigned
int
height
;
unsigned
int
height
;
unsigned
int
bytes_per_pixel
;
/* 2:RGB16, 3:RGB, 4:RGBA */
unsigned
int
bytes_per_pixel
;
/* 2:RGB16, 3:RGB, 4:RGBA */
unsigned
char
pixel_data
[
128
*
128
*
4
+
1
];
unsigned
char
pixel_data
[
128
*
128
*
4
+
1
];
}
text_pcb
=
{
}
text_pcb
=
{
128
,
128
,
4
,
128
,
128
,
4
,
...
@@ -3649,4 +3673,3 @@ static const struct {
...
@@ -3649,4 +3673,3 @@ static const struct {
"
\357\370\370\370\370\374\371\371\371\375\371\371\371\375\366\366\366\373
"
"
\357\370\370\370\370\374\371\371\371\375\371\371\371\375\366\366\366\373
"
"
\366\366\366\373\371\371\371\375\370\370\370\374\371\371\371\375
"
,
"
\366\366\366\373\371\371\371\375\370\370\370\374\371\371\371\375
"
,
};
};
3d-viewer/textures/text_silk.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* GIMP RGBA C-Source image dump (text_silk.c) */
/* GIMP RGBA C-Source image dump (text_silk.c) */
static
const
struct
{
static
const
struct
{
unsigned
int
width
;
unsigned
int
width
;
unsigned
int
height
;
unsigned
int
height
;
unsigned
int
bytes_per_pixel
;
/* 2:RGB16, 3:RGB, 4:RGBA */
unsigned
int
bytes_per_pixel
;
/* 2:RGB16, 3:RGB, 4:RGBA */
unsigned
char
pixel_data
[
128
*
128
*
4
+
1
];
unsigned
char
pixel_data
[
128
*
128
*
4
+
1
];
}
text_silk
=
{
}
text_silk
=
{
128
,
128
,
4
,
128
,
128
,
4
,
...
@@ -3649,4 +3673,3 @@ static const struct {
...
@@ -3649,4 +3673,3 @@ static const struct {
"
\354\377\353\356\352\377\353\357\354\377\353\356\352\377\354\357\354\377
"
"
\354\377\353\356\352\377\353\357\354\377\353\356\352\377\354\357\354\377
"
"
\355\357\353\377\354\357\354\377\352\356\353\377\352\356\353\377
"
,
"
\355\357\353\377\354\357\354\377\352\356\353\377\352\356\353\377
"
,
};
};
cvpcb/common_help_msg.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2012 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef HELP_MESSAGE_FILE_H
#ifndef HELP_MESSAGE_FILE_H
#define HELP_MESSAGE_FILE_H
#define HELP_MESSAGE_FILE_H
...
...
cvpcb/cvpcb.h
View file @
08bfaa41
/*********/
/*
/* CVPCB */
* This program source code file is part of KiCad, a free EDA CAD application.
/*********/
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __CVPCB_H__
#ifndef __CVPCB_H__
#define __CVPCB_H__
#define __CVPCB_H__
...
...
cvpcb/cvpcb_id.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file cvpcb_id.h
* @file cvpcb_id.h
*/
*/
...
...
eeschema/eelibs_read_libraryfiles.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file eelibs_read_libraryfiles.cpp
* @file eelibs_read_libraryfiles.cpp
* @brief Functions to handle reading component library files.
* @brief Functions to handle reading component library files.
...
...
eeschema/events_called_functions_for_edit.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
/*
* @file events_called_functions.cpp
* @file events_called_functions.cpp
*/
*/
...
...
eeschema/general.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file general.h
* @file general.h
*/
*/
...
...
eeschema/help_common_strings.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 CERN
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file eeschema/help_common_strings.h
* @file eeschema/help_common_strings.h
* strings common to toolbars and menubar
* strings common to toolbars and menubar
...
...
eeschema/hotkeys.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* eeschema/hotkeys.h
* eeschema/hotkeys.h
*/
*/
...
...
eeschema/libedit_undo_redo.cpp
View file @
08bfaa41
/********************************************/
/*
/* library editor: undo and redo functions */
* This program source code file is part of KiCad, a free EDA CAD application.
/********************************************/
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <fctsys.h>
#include <fctsys.h>
#include <class_drawpanel.h>
#include <class_drawpanel.h>
...
...
eeschema/libfield.cpp
View file @
08bfaa41
/*****************************************************/
/*
/* Component library edit field manipulation code. */
* This program source code file is part of KiCad, a free EDA CAD application.
/*****************************************************/
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <fctsys.h>
#include <fctsys.h>
#include <gr_basic.h>
#include <gr_basic.h>
...
...
eeschema/operations_on_items_lists.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2009 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file operations_on_items_lists.cpp
* @file operations_on_items_lists.cpp
* @brief Functions used in block commands, or undo/redo, to move, mirror, delete, copy ...
* @brief Functions used in block commands, or undo/redo, to move, mirror, delete, copy ...
...
...
eeschema/protos.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __PROTOS_H__
#ifndef __PROTOS_H__
#define __PROTOS_H__
#define __PROTOS_H__
...
...
eeschema/selpart.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file selpart.cpp
* @file selpart.cpp
*/
*/
...
...
eeschema/template_fieldnames.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <template_fieldnames.h>
#include <template_fieldnames.h>
#include <dsnlexer.h>
#include <dsnlexer.h>
...
@@ -22,7 +44,7 @@ wxString TEMPLATE_FIELDNAME::GetDefaultFieldName( int aFieldNdx )
...
@@ -22,7 +44,7 @@ wxString TEMPLATE_FIELDNAME::GetDefaultFieldName( int aFieldNdx )
else
else
{
{
wxString
fieldName
=
_
(
"Field"
);
wxString
fieldName
=
_
(
"Field"
);
fieldName
<<
aFieldNdx
;
fieldName
<<
aFieldNdx
;
...
@@ -90,8 +112,10 @@ void TEMPLATES::Format( OUTPUTFORMATTER* out, int nestLevel ) const throw( IO_ER
...
@@ -90,8 +112,10 @@ void TEMPLATES::Format( OUTPUTFORMATTER* out, int nestLevel ) const throw( IO_ER
// We'll keep this general, and include the \n, even though the only known
// We'll keep this general, and include the \n, even though the only known
// use at this time will not want the newlines or the indentation.
// use at this time will not want the newlines or the indentation.
out
->
Print
(
nestLevel
,
"(templatefields"
);
out
->
Print
(
nestLevel
,
"(templatefields"
);
for
(
unsigned
i
=
0
;
i
<
m_Fields
.
size
();
++
i
)
for
(
unsigned
i
=
0
;
i
<
m_Fields
.
size
();
++
i
)
m_Fields
[
i
].
Format
(
out
,
nestLevel
+
1
);
m_Fields
[
i
].
Format
(
out
,
nestLevel
+
1
);
out
->
Print
(
0
,
")
\n
"
);
out
->
Print
(
0
,
")
\n
"
);
}
}
...
@@ -140,7 +164,7 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
...
@@ -140,7 +164,7 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
// Ensure that the template fieldname does not match a fixed fieldname.
// Ensure that the template fieldname does not match a fixed fieldname.
for
(
int
i
=
0
;
i
<
MANDATORY_FIELDS
;
++
i
)
for
(
int
i
=
0
;
i
<
MANDATORY_FIELDS
;
++
i
)
{
{
if
(
TEMPLATE_FIELDNAME
::
GetDefaultFieldName
(
i
)
==
aFieldName
.
m_Name
)
if
(
TEMPLATE_FIELDNAME
::
GetDefaultFieldName
(
i
)
==
aFieldName
.
m_Name
)
{
{
return
-
1
;
return
-
1
;
}
}
...
@@ -151,8 +175,8 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
...
@@ -151,8 +175,8 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
{
{
if
(
m_Fields
[
i
].
m_Name
==
aFieldName
.
m_Name
)
if
(
m_Fields
[
i
].
m_Name
==
aFieldName
.
m_Name
)
{
{
DBG
(
printf
(
"inserting template fieldname:'%s' at %d
\n
"
,
//
DBG( printf( "inserting template fieldname:'%s' at %d\n",
TO_UTF8
(
aFieldName
.
m_Name
),
i
);
)
//
TO_UTF8( aFieldName.m_Name ), i ); )
m_Fields
[
i
]
=
aFieldName
;
m_Fields
[
i
]
=
aFieldName
;
return
i
;
// return the container index
return
i
;
// return the container index
...
...
eeschema/template_fieldnames.h
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef _TEMPLATE_FIELDNAME_H_
#ifndef _TEMPLATE_FIELDNAME_H_
#define _TEMPLATE_FIELDNAME_H_
#define _TEMPLATE_FIELDNAME_H_
...
...
eeschema/transform.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2010 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <macros.h>
#include <macros.h>
#include <trigo.h>
#include <trigo.h>
...
...
eeschema/viewlibs.cpp
View file @
08bfaa41
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
/**
* @file viewlibs.cpp
* @file viewlibs.cpp
*/
*/
...
...
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