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
0893f3f3
Commit
0893f3f3
authored
Dec 13, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: make global edit pads function compatible with new pads changes and make it undoable.
parent
3901e152
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
826 additions
and
266 deletions
+826
-266
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+64
-79
CMakeLists.txt
pcbnew/CMakeLists.txt
+1
-0
dialog_global_pads_edition_base.cpp
pcbnew/dialog_global_pads_edition_base.cpp
+78
-0
dialog_global_pads_edition_base.fbp
pcbnew/dialog_global_pads_edition_base.fbp
+491
-0
dialog_global_pads_edition_base.h
pcbnew/dialog_global_pads_edition_base.h
+57
-0
edit.cpp
pcbnew/edit.cpp
+1
-1
globaleditpad.cpp
pcbnew/globaleditpad.cpp
+128
-179
onrightclick.cpp
pcbnew/onrightclick.cpp
+6
-7
No files found.
internat/fr/kicad.mo
View file @
0893f3f3
No preview for this file type
internat/fr/kicad.po
View file @
0893f3f3
...
@@ -2,8 +2,8 @@ msgid ""
...
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
msgstr ""
"Project-Id-Version: kicad\n"
"Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-1
2 09:09
+0100\n"
"POT-Creation-Date: 2009-12-1
3 11:15
+0100\n"
"PO-Revision-Date: 2009-12-1
2 09:14
+0100\n"
"PO-Revision-Date: 2009-12-1
3 11:16
+0100\n"
"Last-Translator: \n"
"Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n"
"MIME-Version: 1.0\n"
...
@@ -4791,7 +4791,7 @@ msgstr "Supprimer Contour de Zone"
...
@@ -4791,7 +4791,7 @@ msgstr "Supprimer Contour de Zone"
#: pcbnew/onrightclick.cpp:622
#: pcbnew/onrightclick.cpp:622
#: pcbnew/onrightclick.cpp:667
#: pcbnew/onrightclick.cpp:667
#: pcbnew/onrightclick.cpp:717
#: pcbnew/onrightclick.cpp:717
#: pcbnew/onrightclick.cpp:77
4
#: pcbnew/onrightclick.cpp:77
3
msgid "Move"
msgid "Move"
msgstr "Déplacer"
msgstr "Déplacer"
...
@@ -4812,66 +4812,70 @@ msgstr "Rotation -"
...
@@ -4812,66 +4812,70 @@ msgstr "Rotation -"
msgid "Flip"
msgid "Flip"
msgstr "Change côté"
msgstr "Change côté"
#: pcbnew/onrightclick.cpp:72
6
#: pcbnew/onrightclick.cpp:72
5
msgid "Copy
current pad settings to this p
ad"
msgid "Copy
Current Settings to this P
ad"
msgstr "Copier les
réglages courants pour ce p
ad"
msgstr "Copier les
Réglages Courants dans ce P
ad"
#: pcbnew/onrightclick.cpp:7
30
#: pcbnew/onrightclick.cpp:7
29
msgid "Copy this
pad settings to current pad s
ettings"
msgid "Copy this
Pad Settings to Current S
ettings"
msgstr "Copier les
caractéristiques de ce pad vers les caractéristiques c
ourantes"
msgstr "Copier les
Caractéristiques de ce Pad dans les Caractéristiques C
ourantes"
#: pcbnew/onrightclick.cpp:736
#: pcbnew/onrightclick.cpp:734
msgid "Global Pads Edition"
msgstr "Edition Globale des Pads"
#: pcbnew/onrightclick.cpp:735
msgid "Copy this pad settings to all pads in this footprint (or similar footprints)"
msgid "Copy this pad settings to all pads in this footprint (or similar footprints)"
msgstr "Copier les caractéristiques de ce pad vers tous les autres pads de ce module( ou modules similaires)"
msgstr "Copier les caractéristiques de ce pad vers tous les autres pads de ce module( ou modules similaires)"
#: pcbnew/onrightclick.cpp:74
5
#: pcbnew/onrightclick.cpp:74
4
msgid "Autoroute Pad"
msgid "Autoroute Pad"
msgstr "Autoroute Pad"
msgstr "Autoroute Pad"
#: pcbnew/onrightclick.cpp:74
6
#: pcbnew/onrightclick.cpp:74
5
msgid "Autoroute Net"
msgid "Autoroute Net"
msgstr "Autoroute Net"
msgstr "Autoroute Net"
#: pcbnew/onrightclick.cpp:79
1
#: pcbnew/onrightclick.cpp:79
0
msgid "Delete Marker"
msgid "Delete Marker"
msgstr "Effacer Marqueur"
msgstr "Effacer Marqueur"
#: pcbnew/onrightclick.cpp:79
2
#: pcbnew/onrightclick.cpp:79
1
msgid "Marker Error Info"
msgid "Marker Error Info"
msgstr "Info du Marqueur d'Erreur"
msgstr "Info du Marqueur d'Erreur"
#: pcbnew/onrightclick.cpp:81
2
#: pcbnew/onrightclick.cpp:81
1
msgid "Auto Width"
msgid "Auto Width"
msgstr "Epaisseur Automatique"
msgstr "Epaisseur Automatique"
#: pcbnew/onrightclick.cpp:81
4
#: pcbnew/onrightclick.cpp:81
3
msgid "Use the track width when starting on a track, otherwise the current track width"
msgid "Use the track width when starting on a track, otherwise the current track width"
msgstr "Si on démarre sur une piste existante, utiliser sa largeur, sinon utiliser la largeur courante"
msgstr "Si on démarre sur une piste existante, utiliser sa largeur, sinon utiliser la largeur courante"
#: pcbnew/onrightclick.cpp:82
4
#: pcbnew/onrightclick.cpp:82
3
msgid "Use Netclass Values"
msgid "Use Netclass Values"
msgstr "Utiliser les Valeurs des NetClass"
msgstr "Utiliser les Valeurs des NetClass"
#: pcbnew/onrightclick.cpp:82
5
#: pcbnew/onrightclick.cpp:82
4
msgid "Use track and via sizes from their Netclass values"
msgid "Use track and via sizes from their Netclass values"
msgstr "Utiliser les dimensions de pistes et vias de leur valeurs en Netclasse"
msgstr "Utiliser les dimensions de pistes et vias de leur valeurs en Netclasse"
#: pcbnew/onrightclick.cpp:83
2
#: pcbnew/onrightclick.cpp:83
1
#, c-format
#, c-format
msgid "Track %s"
msgid "Track %s"
msgstr "Piste %s"
msgstr "Piste %s"
#: pcbnew/onrightclick.cpp:83
4
#: pcbnew/onrightclick.cpp:83
3
#: pcbnew/onrightclick.cpp:86
2
#: pcbnew/onrightclick.cpp:86
1
msgid " (use NetClass)"
msgid " (use NetClass)"
msgstr " (NetClass)"
msgstr " (NetClass)"
#: pcbnew/onrightclick.cpp:85
6
#: pcbnew/onrightclick.cpp:85
5
#, c-format
#, c-format
msgid "Via %s"
msgid "Via %s"
msgstr "Via %s"
msgstr "Via %s"
#: pcbnew/onrightclick.cpp:85
9
#: pcbnew/onrightclick.cpp:85
8
#, c-format
#, c-format
msgid "Via %s; (drl %s)"
msgid "Via %s; (drl %s)"
msgstr "Via %s; (perçage %s)"
msgstr "Via %s; (perçage %s)"
...
@@ -5569,58 +5573,6 @@ msgstr "Créer Fichier "
...
@@ -5569,58 +5573,6 @@ msgstr "Créer Fichier "
msgid " error"
msgid " error"
msgstr " erreur"
msgstr " erreur"
#: pcbnew/globaleditpad.cpp:75
msgid "Edit Pads Global"
msgstr "Pads: Edition globale"
#: pcbnew/globaleditpad.cpp:90
msgid "Pad Settings..."
msgstr "Caract pad ..."
#: pcbnew/globaleditpad.cpp:94
msgid "Change Module"
msgstr "Change module"
#: pcbnew/globaleditpad.cpp:98
msgid "Change ID Modules"
msgstr "Change Modules ident."
#: pcbnew/globaleditpad.cpp:106
msgid "Pad Filter :"
msgstr "Filtre Pad :"
#: pcbnew/globaleditpad.cpp:110
msgid "Shape Filter"
msgstr "Filtre sur forme"
#: pcbnew/globaleditpad.cpp:115
msgid "Layer Filter"
msgstr "Filtre sur couche"
#: pcbnew/globaleditpad.cpp:120
msgid "Orient Filter"
msgstr "Filtre Orientation"
#: pcbnew/globaleditpad.cpp:127
msgid "Change Items :"
msgstr "Eléments à changer:"
#: pcbnew/globaleditpad.cpp:131
msgid "Change Size"
msgstr "Change Taille"
#: pcbnew/globaleditpad.cpp:136
msgid "Change Shape"
msgstr "Change Forme"
#: pcbnew/globaleditpad.cpp:141
msgid "Change Drill"
msgstr "Change Perçage"
#: pcbnew/globaleditpad.cpp:146
msgid "Change Orientation"
msgstr "Change Orientation"
#: pcbnew/onleftclick.cpp:201
#: pcbnew/onleftclick.cpp:201
msgid "Graphic not authorized on Copper layers"
msgid "Graphic not authorized on Copper layers"
msgstr "Graphique non autorisé sur Couches Cuivre"
msgstr "Graphique non autorisé sur Couches Cuivre"
...
@@ -9918,7 +9870,6 @@ msgid "General :"
...
@@ -9918,7 +9870,6 @@ msgid "General :"
msgstr "Général :"
msgstr "Général :"
#: eeschema/dialog_edit_component_in_lib_base.cpp:27
#: eeschema/dialog_edit_component_in_lib_base.cpp:27
#: eeschema/dialog_create_component.cpp:172
msgid "As Convert"
msgid "As Convert"
msgstr "A une forme \"convertie\""
msgstr "A une forme \"convertie\""
...
@@ -9931,7 +9882,6 @@ msgid "Show or hide pin numbers"
...
@@ -9931,7 +9882,6 @@ msgid "Show or hide pin numbers"
msgstr "Affichage ou non des numéroes de pins"
msgstr "Affichage ou non des numéroes de pins"
#: eeschema/dialog_edit_component_in_lib_base.cpp:40
#: eeschema/dialog_edit_component_in_lib_base.cpp:40
#: eeschema/dialog_create_component.cpp:241
msgid "Show Pin Name"
msgid "Show Pin Name"
msgstr "Montre Nom de Pin"
msgstr "Montre Nom de Pin"
...
@@ -9940,7 +9890,6 @@ msgid "Show or hide pin names"
...
@@ -9940,7 +9890,6 @@ msgid "Show or hide pin names"
msgstr "Affichage ou non des noms des pins"
msgstr "Affichage ou non des noms des pins"
#: eeschema/dialog_edit_component_in_lib_base.cpp:47
#: eeschema/dialog_edit_component_in_lib_base.cpp:47
#: eeschema/dialog_create_component.cpp:245
msgid "Pin Name Inside"
msgid "Pin Name Inside"
msgstr "Nom de pin à l'intérieur"
msgstr "Nom de pin à l'intérieur"
...
@@ -9957,7 +9906,6 @@ msgid "Number of Units:"
...
@@ -9957,7 +9906,6 @@ msgid "Number of Units:"
msgstr "Nombre de Parts:"
msgstr "Nombre de Parts:"
#: eeschema/dialog_edit_component_in_lib_base.cpp:79
#: eeschema/dialog_edit_component_in_lib_base.cpp:79
#: eeschema/dialog_create_component.cpp:249
msgid "Skew:"
msgid "Skew:"
msgstr "Décalage:"
msgstr "Décalage:"
...
@@ -12216,10 +12164,12 @@ msgid "Back View"
...
@@ -12216,10 +12164,12 @@ msgid "Back View"
msgstr "Vue arrière"
msgstr "Vue arrière"
#: 3d-viewer/3d_canvas.cpp:353
#: 3d-viewer/3d_canvas.cpp:353
#: 3d-viewer/3d_toolbar.cpp:85
msgid "Move left <-"
msgid "Move left <-"
msgstr "Vers la gauche <-"
msgstr "Vers la gauche <-"
#: 3d-viewer/3d_canvas.cpp:358
#: 3d-viewer/3d_canvas.cpp:358
#: 3d-viewer/3d_toolbar.cpp:88
msgid "Move right ->"
msgid "Move right ->"
msgstr "Vers la droite ->"
msgstr "Vers la droite ->"
...
@@ -12504,6 +12454,7 @@ msgid "Exchange Modules"
...
@@ -12504,6 +12454,7 @@ msgid "Exchange Modules"
msgstr "Echange modules:"
msgstr "Echange modules:"
#: pcbnew/dialog_edit_module_for_Modedit_base.h:105
#: pcbnew/dialog_edit_module_for_Modedit_base.h:105
#: pcbnew/dialog_edit_module_for_BoardEditor_base.h:118
msgid "Module properties"
msgid "Module properties"
msgstr "Propriétés du Module"
msgstr "Propriétés du Module"
...
@@ -12819,6 +12770,40 @@ msgstr "Options d'Affichage"
...
@@ -12819,6 +12770,40 @@ msgstr "Options d'Affichage"
msgid "Page Settings"
msgid "Page Settings"
msgstr "Ajustage opt Page"
msgstr "Ajustage opt Page"
#, fuzzy
#~ msgid "Set to Current Settings"
#~ msgstr "Ajustages Courants:"
#, fuzzy
#~ msgid "Use this Pad Settings as Current"
#~ msgstr ""
#~ "Copier les caractéristiques de ce pad vers les caractéristiques courantes"
#~ msgid "Edit Pads Global"
#~ msgstr "Pads: Edition globale"
#~ msgid "Pad Settings..."
#~ msgstr "Caract pad ..."
#~ msgid "Change Module"
#~ msgstr "Change module"
#~ msgid "Change ID Modules"
#~ msgstr "Change Modules ident."
#~ msgid "Pad Filter :"
#~ msgstr "Filtre Pad :"
#~ msgid "Shape Filter"
#~ msgstr "Filtre sur forme"
#~ msgid "Layer Filter"
#~ msgstr "Filtre sur couche"
#~ msgid "Orient Filter"
#~ msgstr "Filtre Orientation"
#~ msgid "Change Items :"
#~ msgstr "Eléments à changer:"
#~ msgid "Change Size"
#~ msgstr "Change Taille"
#~ msgid "Change Shape"
#~ msgstr "Change Forme"
#~ msgid "Change Drill"
#~ msgstr "Change Perçage"
#~ msgid "Change Orientation"
#~ msgstr "Change Orientation"
#~ msgid "Single Sided"
#~ msgid "Single Sided"
#~ msgstr "Simple Face"
#~ msgstr "Simple Face"
#~ msgid "Single Sided, SMD on Back"
#~ msgid "Single Sided, SMD on Back"
...
...
pcbnew/CMakeLists.txt
View file @
0893f3f3
...
@@ -47,6 +47,7 @@ set(PCBNEW_SRCS
...
@@ -47,6 +47,7 @@ set(PCBNEW_SRCS
dialog_general_options_BoardEditor_base.cpp
dialog_general_options_BoardEditor_base.cpp
dialog_global_edit_tracks_and_vias.cpp
dialog_global_edit_tracks_and_vias.cpp
dialog_global_edit_tracks_and_vias_base.cpp
dialog_global_edit_tracks_and_vias_base.cpp
dialog_global_pads_edition_base.cpp
# dialog_graphic_items_options.cpp
# dialog_graphic_items_options.cpp
dialog_graphic_item_properties.cpp
dialog_graphic_item_properties.cpp
dialog_graphic_item_properties_base.cpp
dialog_graphic_item_properties_base.cpp
...
...
pcbnew/dialog_global_pads_edition_base.cpp
0 → 100644
View file @
0893f3f3
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "dialog_global_pads_edition_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_GLOBAL_PADS_EDITION_BASE
::
DIALOG_GLOBAL_PADS_EDITION_BASE
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
title
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
wxDialog
(
parent
,
id
,
title
,
pos
,
size
,
style
)
{
this
->
SetSizeHints
(
wxDefaultSize
,
wxDefaultSize
);
wxBoxSizer
*
bMainSizer
;
bMainSizer
=
new
wxBoxSizer
(
wxHORIZONTAL
);
wxBoxSizer
*
bLeftSizer
;
bLeftSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxStaticBoxSizer
*
sbSizer1
;
sbSizer1
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
wxT
(
"Pad Filter :"
)
),
wxVERTICAL
);
m_Pad_Shape_Filter_CB
=
new
wxCheckBox
(
this
,
wxID_ANY
,
wxT
(
"Do not modify pads having a different shape"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizer1
->
Add
(
m_Pad_Shape_Filter_CB
,
0
,
wxALL
,
5
);
m_Pad_Layer_Filter_CB
=
new
wxCheckBox
(
this
,
wxID_ANY
,
wxT
(
"Do not modify pads having different layers"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizer1
->
Add
(
m_Pad_Layer_Filter_CB
,
0
,
wxALL
,
5
);
m_Pad_Orient_Filter_CB
=
new
wxCheckBox
(
this
,
wxID_ANY
,
wxT
(
"Do not modify pads having a different orientation"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizer1
->
Add
(
m_Pad_Orient_Filter_CB
,
0
,
wxALL
,
5
);
bLeftSizer
->
Add
(
sbSizer1
,
1
,
wxEXPAND
,
5
);
bMainSizer
->
Add
(
bLeftSizer
,
1
,
wxEXPAND
,
5
);
wxBoxSizer
*
bRightSizer
;
bRightSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_buttonPadEditor
=
new
wxButton
(
this
,
ID_CHANGE_GET_PAD_SETTINGS
,
wxT
(
"Pad Editor"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bRightSizer
->
Add
(
m_buttonPadEditor
,
0
,
wxALL
|
wxEXPAND
,
5
);
bRightSizer
->
Add
(
10
,
10
,
0
,
0
,
5
);
m_button2
=
new
wxButton
(
this
,
ID_CHANGE_CURRENT_MODULE
,
wxT
(
"Change Pads on Module"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bRightSizer
->
Add
(
m_button2
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_button3
=
new
wxButton
(
this
,
ID_CHANGE_ID_MODULES
,
wxT
(
"Change Pads on Same Modules"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bRightSizer
->
Add
(
m_button3
,
0
,
wxALL
|
wxEXPAND
,
5
);
m_button4
=
new
wxButton
(
this
,
wxID_CANCEL
,
wxT
(
"Cancel"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bRightSizer
->
Add
(
m_button4
,
0
,
wxALL
|
wxEXPAND
,
5
);
bMainSizer
->
Add
(
bRightSizer
,
0
,
wxEXPAND
,
5
);
this
->
SetSizer
(
bMainSizer
);
this
->
Layout
();
// Connect Events
m_buttonPadEditor
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
InstallPadEditor
),
NULL
,
this
);
m_button2
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
PadPropertiesAccept
),
NULL
,
this
);
m_button3
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
PadPropertiesAccept
),
NULL
,
this
);
m_button4
->
Connect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
OnCancelClick
),
NULL
,
this
);
}
DIALOG_GLOBAL_PADS_EDITION_BASE
::~
DIALOG_GLOBAL_PADS_EDITION_BASE
()
{
// Disconnect Events
m_buttonPadEditor
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
InstallPadEditor
),
NULL
,
this
);
m_button2
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
PadPropertiesAccept
),
NULL
,
this
);
m_button3
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
PadPropertiesAccept
),
NULL
,
this
);
m_button4
->
Disconnect
(
wxEVT_COMMAND_BUTTON_CLICKED
,
wxCommandEventHandler
(
DIALOG_GLOBAL_PADS_EDITION_BASE
::
OnCancelClick
),
NULL
,
this
);
}
pcbnew/dialog_global_pads_edition_base.fbp
0 → 100644
View file @
0893f3f3
This diff is collapsed.
Click to expand it.
pcbnew/dialog_global_pads_edition_base.h
0 → 100644
View file @
0893f3f3
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_global_pads_edition_base__
#define __dialog_global_pads_edition_base__
#include <wx/string.h>
#include <wx/checkbox.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/button.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
#define ID_CHANGE_GET_PAD_SETTINGS 1000
#define ID_CHANGE_CURRENT_MODULE 1001
#define ID_CHANGE_ID_MODULES 1002
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_GLOBAL_PADS_EDITION_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_GLOBAL_PADS_EDITION_BASE
:
public
wxDialog
{
private
:
protected
:
wxCheckBox
*
m_Pad_Shape_Filter_CB
;
wxCheckBox
*
m_Pad_Layer_Filter_CB
;
wxCheckBox
*
m_Pad_Orient_Filter_CB
;
wxButton
*
m_buttonPadEditor
;
wxButton
*
m_button2
;
wxButton
*
m_button3
;
wxButton
*
m_button4
;
// Virtual event handlers, overide them in your derived class
virtual
void
InstallPadEditor
(
wxCommandEvent
&
event
){
event
.
Skip
();
}
virtual
void
PadPropertiesAccept
(
wxCommandEvent
&
event
){
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
){
event
.
Skip
();
}
public
:
DIALOG_GLOBAL_PADS_EDITION_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
wxT
(
"Global Pads Edition"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
482
,
165
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_GLOBAL_PADS_EDITION_BASE
();
};
#endif //__dialog_global_pads_edition_base__
pcbnew/edit.cpp
View file @
0893f3f3
...
@@ -33,10 +33,10 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
...
@@ -33,10 +33,10 @@ void WinEDA_PcbFrame::Process_Special_Functions( wxCommandEvent& event )
int
itmp
;
int
itmp
;
wxClientDC
dc
(
DrawPanel
);
wxClientDC
dc
(
DrawPanel
);
DrawPanel
->
PrepareGraphicContext
(
&
dc
);
BOARD_ITEM
*
DrawStruct
=
GetCurItem
();
BOARD_ITEM
*
DrawStruct
=
GetCurItem
();
DrawPanel
->
CursorOff
(
&
dc
);
DrawPanel
->
CursorOff
(
&
dc
);
DrawPanel
->
PrepareGraphicContext
(
&
dc
);
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
wxGetMousePosition
(
&
pos
.
x
,
&
pos
.
y
);
...
...
pcbnew/globaleditpad.cpp
View file @
0893f3f3
This diff is collapsed.
Click to expand it.
pcbnew/onrightclick.cpp
View file @
0893f3f3
...
@@ -722,18 +722,17 @@ void WinEDA_PcbFrame::createPopUpMenuForFpPads( D_PAD* Pad, wxMenu* menu )
...
@@ -722,18 +722,17 @@ void WinEDA_PcbFrame::createPopUpMenuForFpPads( D_PAD* Pad, wxMenu* menu )
sub_menu_Pad
->
AppendSeparator
();
sub_menu_Pad
->
AppendSeparator
();
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_IMPORT_PAD_SETTINGS
,
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_IMPORT_PAD_SETTINGS
,
_
(
"
New Pad Settings
"
),
_
(
"
Copy Current Settings to this Pad
"
),
_
(
"Copy current pad settings to this pad"
)
,
wxEmptyString
,
options_new_pad_xpm
);
options_new_pad_xpm
);
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_EXPORT_PAD_SETTINGS
,
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_EXPORT_PAD_SETTINGS
,
_
(
"
Export Pad
Settings"
),
_
(
"
Copy this Pad Settings to Current
Settings"
),
_
(
"Copy this pad settings to current pad settings"
)
,
wxEmptyString
,
export_options_pad_xpm
);
export_options_pad_xpm
);
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS
,
ADD_MENUITEM_WITH_HELP
(
sub_menu_Pad
,
ID_POPUP_PCB_GLOBAL_IMPORT_PAD_SETTINGS
,
_
(
"Global Pad Settings"
),
_
(
"Global Pads Edition"
),
_
(
_
(
"Copy this pad settings to all pads in this footprint (or similar footprints)"
),
"Copy this pad settings to all pads in this footprint (or similar footprints)"
),
global_options_pad_xpm
);
global_options_pad_xpm
);
sub_menu_Pad
->
AppendSeparator
();
sub_menu_Pad
->
AppendSeparator
();
...
...
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