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
b34df533
Commit
b34df533
authored
Oct 03, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more about Netclasses work
parent
24ce9409
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
163 additions
and
145 deletions
+163
-145
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+90
-86
event_handlers_tracks_vias_sizes.cpp
pcbnew/event_handlers_tracks_vias_sizes.cpp
+1
-0
onrightclick.cpp
pcbnew/onrightclick.cpp
+5
-3
toolbars_update_user_interface.cpp
pcbnew/toolbars_update_user_interface.cpp
+67
-56
No files found.
internat/fr/kicad.mo
View file @
b34df533
No preview for this file type
internat/fr/kicad.po
View file @
b34df533
...
...
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: kicad\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-0
2 18:0
7+0100\n"
"PO-Revision-Date: 2009-10-0
2 18:0
8+0100\n"
"POT-Creation-Date: 2009-10-0
3 20:2
7+0100\n"
"PO-Revision-Date: 2009-10-0
3 20:2
8+0100\n"
"Last-Translator: \n"
"Language-Team: kicad team <jean-pierre.charras@ujf-grenoble.fr>\n"
"MIME-Version: 1.0\n"
...
...
@@ -758,33 +758,22 @@ msgstr "Création de stub (arc) de longueur spécifiée (pour applications micro
msgid "Create a polynomial shape for microwave applications"
msgstr "Création de formes polynomiales (pour applications micro-ondes)"
#: pcbnew/tool_pcb.cpp:58
1
#: pcbnew/tool_pcb.cpp:58
5
msgid "Current NetClass clearance value"
msgstr "Valeur isolation NetClass courante"
#: pcbnew/tool_pcb.cpp:59
0
#: pcbnew/tool_pcb.cpp:59
5
msgid "Name of the current NetClass"
msgstr "Nom de la NetClass courante"
#: pcbnew/tool_pcb.cpp:598
msgid "Strategy selection for tracks widths and vias diameters:\n"
msgstr ""
#: pcbnew/tool_pcb.cpp:599
msgid "Normal: use NetClass values\n"
msgstr ""
#: pcbnew/tool_pcb.cpp:600
#, fuzzy
msgid "Auto: when starting a track on an existing track use its width.O therwise, use NetClass value\n"
#: pcbnew/tool_pcb.cpp:601
msgid ""
"Auto track width: when starting on an existing track use its width\n"
"otherwise, use current width setting"
msgstr ""
"Largeur de piste automatique: si on démarre sur une piste existante, utiliser sa largeur\n"
" sinon utiliser la largeur courante"
#: pcbnew/tool_pcb.cpp:601
msgid "Manual: use selected values"
msgstr ""
#: pcbnew/tool_pcb.cpp:618
msgid "Auto"
msgstr "Auto"
...
...
@@ -1522,19 +1511,19 @@ msgstr "Forme X"
msgid "Target Shape:"
msgstr "Forme Mire:"
#: pcbnew/pcbframe.cpp:30
2
#: pcbnew/pcbframe.cpp:30
6
msgid "Board modified, Save before exit ?"
msgstr "Circuit Imprimé modifié, Sauver avant de quitter ?"
#: pcbnew/pcbframe.cpp:30
3
#: pcbnew/pcbframe.cpp:30
7
msgid "Confirmation"
msgstr "Confirmation"
#: pcbnew/pcbframe.cpp:35
1
#: pcbnew/pcbframe.cpp:35
5
msgid "3D Frame already opened"
msgstr "Fenêtre 3D déjà ouverte"
#: pcbnew/pcbframe.cpp:35
5
#: pcbnew/pcbframe.cpp:35
9
msgid "3D Viewer"
msgstr "Visu 3D"
...
...
@@ -1660,7 +1649,7 @@ msgstr " Effacement global sur couche cuivre non autorisé"
msgid "Delete Layer "
msgstr "Effacer Couche"
#: pcbnew/via_edit.cpp:
64
#: pcbnew/via_edit.cpp:
49
msgid "Incorrect value for Via drill. No via drill change"
msgstr "Valeur incorrecte pour perçage. Pas de changement pour la via"
...
...
@@ -2345,34 +2334,47 @@ msgstr "Effacer Marqueur"
msgid "Marker Error Info"
msgstr "Info de Marqueurd'Erreur"
#: pcbnew/onrightclick.cpp:84
4
#: pcbnew/onrightclick.cpp:84
5
msgid "New Width/Size"
msgstr "Nouvelle Largeur/Taille"
#: pcbnew/onrightclick.cpp:84
7
#: pcbnew/onrightclick.cpp:84
8
msgid "Auto Width"
msgstr "Epaisseur Automatique"
#: pcbnew/onrightclick.cpp:8
49
#: pcbnew/onrightclick.cpp:8
50
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"
#: pcbnew/onrightclick.cpp:861
#: pcbnew/onrightclick.cpp:858
msgid "Use Netclass Values"
msgstr "Utiliser les Valeurs des NetClass"
#: pcbnew/onrightclick.cpp:859
msgid "Use track and via sizes from their Netclass values"
msgstr ""
#: pcbnew/onrightclick.cpp:868
#, c-format
msgid "Track %.1f"
msgstr "Piste %.1f"
#: pcbnew/onrightclick.cpp:8
63
#: pcbnew/onrightclick.cpp:8
70
#, c-format
msgid "Track %.3f"
msgstr "Piste %.3f"
#: pcbnew/onrightclick.cpp:879
#: pcbnew/onrightclick.cpp:873
#: pcbnew/onrightclick.cpp:897
msgid " (from NetClass)"
msgstr " (de NetClass)"
#: pcbnew/onrightclick.cpp:893
#, c-format
msgid "Via %.1f"
msgstr "Via %.1f"
#: pcbnew/onrightclick.cpp:8
81
#: pcbnew/onrightclick.cpp:8
95
#, c-format
msgid "Via %.3f"
msgstr "Via %.3f"
...
...
@@ -2587,12 +2589,12 @@ msgstr "Epaisseur Contour"
msgid "Incorrect number, no change"
msgstr "Nombre incorrect, pas de changement"
#: pcbnew/hotkeys.cpp:4
84
#: pcbnew/hotkeys.cpp:4
79
#, c-format
msgid "Footprint %s found, but locked"
msgstr "Module %s trouvé, mais verrouillé"
#: pcbnew/hotkeys.cpp:6
51
#: pcbnew/hotkeys.cpp:6
46
msgid "Delete module?"
msgstr "Effacer Module?"
...
...
@@ -3499,27 +3501,27 @@ msgstr "Autoplace modules: Pas de contours sur pcb. Impossible de placer les mod
msgid "This is the default net class."
msgstr "Ceci est la Netclass par défaut"
#: pcbnew/class_board.cpp:
575
#: pcbnew/class_board.cpp:
600
msgid "Vias"
msgstr "Vias"
#: pcbnew/class_board.cpp:
578
#: pcbnew/class_board.cpp:
603
msgid "Nodes"
msgstr "Nodes"
#: pcbnew/class_board.cpp:
581
#: pcbnew/class_board.cpp:
606
msgid "Nets"
msgstr "Nets"
#: pcbnew/class_board.cpp:
589
#: pcbnew/class_board.cpp:
614
msgid "Links"
msgstr "Liens"
#: pcbnew/class_board.cpp:
592
#: pcbnew/class_board.cpp:
617
msgid "Connect"
msgstr "Connect"
#: pcbnew/class_board.cpp:
595
#: pcbnew/class_board.cpp:
620
msgid "NoConn"
msgstr "Non Conn"
...
...
@@ -4588,43 +4590,43 @@ msgstr "Visible"
msgid "Invisible"
msgstr "Invisible"
#: pcbnew/edit.cpp:
323
#: pcbnew/edit.cpp:
234
msgid "Add Tracks"
msgstr "Addition de Pistes"
#: pcbnew/edit.cpp:
33
2
#: pcbnew/edit.cpp:
24
2
msgid "Add Zones"
msgstr "Addition de Zones"
#: pcbnew/edit.cpp:
33
4
#: pcbnew/edit.cpp:
24
4
msgid "Warning: Display Zone is OFF!!!"
msgstr "Attention: Affichage zones désactivé !!!"
#: pcbnew/edit.cpp:
34
0
#: pcbnew/edit.cpp:
25
0
msgid "Add Layer Alignment Target"
msgstr "Ajouter Mire de superposition"
#: pcbnew/edit.cpp:
34
4
#: pcbnew/edit.cpp:
25
4
msgid "Adjust Zero"
msgstr "Ajuster Zéro"
#: pcbnew/edit.cpp:
35
0
#: pcbnew/edit.cpp:
26
0
msgid "Add Graphic"
msgstr "Addition éléments graphiques"
#: pcbnew/edit.cpp:
35
8
#: pcbnew/edit.cpp:
26
8
msgid "Add Modules"
msgstr "Addition de Modules"
#: pcbnew/edit.cpp:
36
2
#: pcbnew/edit.cpp:
27
2
msgid "Add Dimension"
msgstr "Ajout de cotes"
#: pcbnew/edit.cpp:
37
0
#: pcbnew/edit.cpp:
28
0
msgid "Net Highlight"
msgstr "Surbrillance des équipotentielles"
#: pcbnew/edit.cpp:
37
4
#: pcbnew/edit.cpp:
28
4
msgid "Local Ratsnest"
msgstr "Montrer le chevelu général"
...
...
@@ -5129,79 +5131,84 @@ msgstr " mm"
msgid "NetClass: "
msgstr "NetClass: "
#: pcbnew/toolbars_update_user_interface.cpp:187
#: pcbnew/toolbars_update_user_interface.cpp:87
#: pcbnew/toolbars_update_user_interface.cpp:102
msgid " *"
msgstr " *"
#: pcbnew/toolbars_update_user_interface.cpp:189
msgid "DRC Off (Disable !!!), Currently: DRC is active"
msgstr "DRC off (désactivée !!!), actuellement DRC active"
#: pcbnew/toolbars_update_user_interface.cpp:1
88
#: pcbnew/toolbars_update_user_interface.cpp:1
90
msgid "DRC On (Currently: DRC is inactive !!!)"
msgstr "DRC On (Actuellement, DRC désactivée !!!)"
#: pcbnew/toolbars_update_user_interface.cpp:
199
#: pcbnew/toolbars_update_user_interface.cpp:
201
msgid "Polar coords not show"
msgstr "Coord Polaires non affichées"
#: pcbnew/toolbars_update_user_interface.cpp:20
0
#: pcbnew/toolbars_update_user_interface.cpp:20
2
msgid "Display polar coords"
msgstr "Affichage coord Polaires"
#: pcbnew/toolbars_update_user_interface.cpp:20
5
#: pcbnew/toolbars_update_user_interface.cpp:20
7
msgid "Show grid"
msgstr "Afficher grille"
#: pcbnew/toolbars_update_user_interface.cpp:21
4
#: pcbnew/toolbars_update_user_interface.cpp:21
6
msgid "Hide general ratsnest"
msgstr "Ne pas afficher le chevelu général"
#: pcbnew/toolbars_update_user_interface.cpp:21
5
#: pcbnew/toolbars_update_user_interface.cpp:21
7
msgid "Show general ratsnest"
msgstr "Afficher le chevelu général"
#: pcbnew/toolbars_update_user_interface.cpp:22
1
#: pcbnew/toolbars_update_user_interface.cpp:22
3
msgid "Hide module ratsnest"
msgstr "Ne pas montrer le chevelu du module"
#: pcbnew/toolbars_update_user_interface.cpp:22
2
#: pcbnew/toolbars_update_user_interface.cpp:22
4
msgid "Show module ratsnest"
msgstr "Montrer le chevelu du module"
#: pcbnew/toolbars_update_user_interface.cpp:2
29
#: pcbnew/toolbars_update_user_interface.cpp:2
31
msgid "Disable auto delete old track"
msgstr "Ne pas Autoriser l'effacement automatique des pistes"
#: pcbnew/toolbars_update_user_interface.cpp:23
0
#: pcbnew/toolbars_update_user_interface.cpp:23
2
msgid "Enable auto delete old track"
msgstr "Autoriser l'effacement automatique des pistes"
#: pcbnew/toolbars_update_user_interface.cpp:23
7
#: pcbnew/toolbars_update_user_interface.cpp:23
9
msgid "Show pads sketch mode"
msgstr "Afficher pastilles en mode contour"
#: pcbnew/toolbars_update_user_interface.cpp:24
5
#: pcbnew/toolbars_update_user_interface.cpp:24
7
msgid "Show vias sketch mode"
msgstr "Afficher vias en mode contour"
#: pcbnew/toolbars_update_user_interface.cpp:25
3
#: pcbnew/toolbars_update_user_interface.cpp:25
5
msgid "Show tracks sketch mode"
msgstr "Afficher pistes en mode contour"
#: pcbnew/toolbars_update_user_interface.cpp:25
4
#: pcbnew/toolbars_update_user_interface.cpp:25
6
msgid "Show tracks filled mode"
msgstr "Afficher pistes en mode plein"
#: pcbnew/toolbars_update_user_interface.cpp:26
0
#: pcbnew/toolbars_update_user_interface.cpp:26
2
msgid "Normal contrast mode display"
msgstr "Mode d'affichage contraste normal"
#: pcbnew/toolbars_update_user_interface.cpp:26
1
#: pcbnew/toolbars_update_user_interface.cpp:26
3
msgid "High contrast mode display"
msgstr "Mode d'affichage haut contraste"
#: pcbnew/toolbars_update_user_interface.cpp:26
6
#: pcbnew/toolbars_update_user_interface.cpp:26
8
msgid "Show invisible text"
msgstr "Montrer textes invisibles"
#: pcbnew/toolbars_update_user_interface.cpp:26
7
#: pcbnew/toolbars_update_user_interface.cpp:26
9
msgid "Hide invisible text"
msgstr "Cacher textes invisibles"
...
...
@@ -5439,12 +5446,7 @@ msgstr "X Pos"
msgid "Y pos"
msgstr "Y pos"
#: pcbnew/editrack-part2.cpp:33
#, c-format
msgid "Track Width: %s Vias Size : %s"
msgstr "Larg. piste: %s Diam Vias : %s"
#: pcbnew/editrack-part2.cpp:132
#: pcbnew/editrack-part2.cpp:109
msgid "Drc error, cancelled"
msgstr "Erreur DRC, annulation"
...
...
@@ -6043,34 +6045,42 @@ msgid "Show page limits"
msgstr " Afficher limites de page"
#: eeschema/plotdxf.cpp:155
#: eeschema/plotps.cpp:174
msgid "Plot Options:"
msgstr "Options de Tracé:"
#: eeschema/plotdxf.cpp:160
#: eeschema/plotps.cpp:179
msgid "B/W"
msgstr "N/B"
#: eeschema/plotdxf.cpp:162
#: eeschema/plotps.cpp:181
msgid "Plot Color:"
msgstr "Tracé et Couleurs:"
#: eeschema/plotdxf.cpp:166
#: eeschema/plotps.cpp:185
msgid "Print Sheet Ref"
msgstr "Imprimer cartouche"
#: eeschema/plotdxf.cpp:175
#: eeschema/plotps.cpp:194
msgid "&Plot Page"
msgstr "&Tracer Page"
#: eeschema/plotdxf.cpp:179
#: eeschema/plotps.cpp:198
msgid "Plot A&LL"
msgstr "&Tout Tracer"
#: eeschema/plotdxf.cpp:185
#: eeschema/plotps.cpp:207
msgid "Messages :"
msgstr "Messages :"
#: eeschema/plotdxf.cpp:371
#: eeschema/plotps.cpp:419
#, c-format
msgid "Plot: %s\n"
msgstr "Trace: %s\n"
...
...
@@ -6670,7 +6680,6 @@ msgid "Add NoConnect Flag"
msgstr "Ajoutde symboles de non connexion"
#: eeschema/schedit.cpp:195
#: eeschema/hotkeys.cpp:324
msgid "Add Wire"
msgstr "Ajouter Fils"
...
...
@@ -6715,7 +6724,6 @@ msgid "Import PinSheet"
msgstr "Importer Connecteur de hiérarchie"
#: eeschema/schedit.cpp:247
#: eeschema/hotkeys.cpp:299
msgid "Add Component"
msgstr "Ajout Composant"
...
...
@@ -6839,6 +6847,8 @@ msgid ""
"The field name <%s> is an existing alias of the component <%s>.\n"
"Please choose another name that does not conflict with any names in the alias list."
msgstr ""
"Le nom de champ <%s> est un alias existant du composant%s>.\n"
"SVP choisir un autre nom qui n'est pas déjà existant dans la liste des alias."
#: eeschema/libfield.cpp:189
#, c-format
...
...
@@ -6894,7 +6904,7 @@ msgstr "Position occupée par une autre pin. Continuer ?"
#: eeschema/pinedit.cpp:599
#, c-format
msgid "Initial pin position (%d, %d)"
msgstr ""
msgstr "
Position initiane de la pin (%d, %d)
"
#: eeschema/pinedit.cpp:969
#, c-format
...
...
@@ -7348,27 +7358,22 @@ msgid "Library Browser"
msgstr "Visualisateur de Librairies"
#: eeschema/viewlibs.cpp:115
#: eeschema/libedit.cpp:35
msgid "no library selected"
msgstr "Pas de librairie sélectionnée"
#: eeschema/viewlibs.cpp:314
#: eeschema/libedit.cpp:306
msgid "Part"
msgstr "Part"
#: eeschema/viewlibs.cpp:315
#: eeschema/libedit.cpp:318
msgid "Alias"
msgstr "Alias"
#: eeschema/viewlibs.cpp:316
#: eeschema/libedit.cpp:344
msgid "Description"
msgstr "Description"
#: eeschema/viewlibs.cpp:317
#: eeschema/libedit.cpp:351
msgid "Key words"
msgstr "Mots clé"
...
...
@@ -7394,7 +7399,6 @@ msgid "File <%s> not found."
msgstr "Fichier <%s> non trouvé"
#: eeschema/dialog_edit_component_in_schematic_fbp.cpp:26
#: eeschema/libedit.cpp:323
msgid "Unit"
msgstr "Unité"
...
...
@@ -7499,7 +7503,6 @@ msgid "The name of the symbol in the library from which this component came"
msgstr "Le nom du symbole dans la librairie d'où vient le composant."
#: eeschema/dialog_edit_component_in_schematic_fbp.cpp:73
#: eeschema/libedit.cpp:326
msgid "Convert"
msgstr "Convert"
...
...
@@ -10698,9 +10701,8 @@ msgid "Top overlay (*.GTO)|*.GTO;*.gto|"
msgstr ""
#: gerbview/files.cpp:143
#, fuzzy
msgid "Bottom paste (*.GBP)|*.GBP;*.gbp|"
msgstr "
Couche cuivre
"
msgstr "
Bottom paste (*.GBP)|*.GBP;*.gbp|
"
#: gerbview/files.cpp:144
msgid "Top paste (*.GTP)|*.GTP;*.gtp|"
...
...
@@ -12186,6 +12188,8 @@ msgstr "DCodes id."
msgid "Page Settings"
msgstr "Ajustage opt Page"
#~ msgid "Track Width: %s Vias Size : %s"
#~ msgstr "Larg. piste: %s Diam Vias : %s"
#~ msgid "none selected"
#~ msgstr "Pas de sélection"
#~ msgid "TextPCB properties"
...
...
pcbnew/event_handlers_tracks_vias_sizes.cpp
View file @
b34df533
...
...
@@ -39,6 +39,7 @@ void WinEDA_PcbFrame::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
break
;
case
ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES
:
g_DesignSettings
.
m_UseConnectedTrackWidth
=
false
;
GetBoard
()
->
m_TrackWidthSelector
=
0
;
g_DesignSettings
.
m_CurrentTrackWidth
=
GetBoard
()
->
m_TrackWidthHistory
[
0
];
GetBoard
()
->
m_ViaSizeSelector
=
0
;
...
...
pcbnew/onrightclick.cpp
View file @
b34df533
...
...
@@ -853,7 +853,9 @@ static wxMenu* Append_Track_Width_List( BOARD * aBoard )
if
(
g_DesignSettings
.
m_UseConnectedTrackWidth
)
trackwidth_menu
->
Check
(
ID_POPUP_PCB_SELECT_AUTO_WIDTH
,
true
);
if
(
aBoard
->
m_ViaSizeSelector
!=
0
||
aBoard
->
m_TrackWidthSelector
!=
0
)
if
(
aBoard
->
m_ViaSizeSelector
!=
0
||
aBoard
->
m_TrackWidthSelector
!=
0
||
g_DesignSettings
.
m_UseConnectedTrackWidth
)
trackwidth_menu
->
Append
(
ID_POPUP_PCB_SELECT_USE_NETCLASS_VALUES
,
_
(
"Use Netclass Values"
),
_
(
"Use track and via sizes from their Netclass values"
),
...
...
@@ -870,7 +872,7 @@ static wxMenu* Append_Track_Width_List( BOARD * aBoard )
msg
.
Printf
(
_
(
"Track %.3f"
),
value
);
if
(
ii
==
0
)
msg
<<
_
(
" (
Use
NetClass)"
);
msg
<<
_
(
" (
from
NetClass)"
);
trackwidth_menu
->
Append
(
ID_POPUP_PCB_SELECT_WIDTH1
+
ii
,
msg
,
wxEmptyString
,
true
);
...
...
@@ -894,7 +896,7 @@ static wxMenu* Append_Track_Width_List( BOARD * aBoard )
else
msg
.
Printf
(
_
(
"Via %.3f"
),
value
);
if
(
ii
==
0
)
msg
<<
_
(
" (
Use
NetClass)"
);
msg
<<
_
(
" (
from
NetClass)"
);
trackwidth_menu
->
Append
(
ID_POPUP_PCB_SELECT_VIASIZE1
+
ii
,
msg
,
wxEmptyString
,
true
);
}
if
(
aBoard
->
m_ViaSizeSelector
<
(
int
)
aBoard
->
m_ViaSizeHistory
.
size
()
)
...
...
pcbnew/toolbars_update_user_interface.cpp
View file @
b34df533
/****************************************************************
toolbars_update_user_interface.cpp
*
toolbars_update_user_interface.cpp
****************************************************************/
/*
function to update toolbars UI after changing parameters
*/
*
function to update toolbars UI after changing parameters
*/
#include "fctsys.h"
#include "appl_wxstruct.h"
...
...
@@ -19,11 +20,12 @@ function to update toolbars UI after changing parameters
/* helper to convert an integer value to a string, using mils or mm
* according to g_UnitMetric value
*/
static
wxString
ReturnStringValue
(
int
aValue
)
static
wxString
ReturnStringValue
(
int
aValue
)
{
wxString
text
;
const
wxChar
*
format
;
double
value
=
To_User_Unit
(
g_UnitMetric
,
aValue
,
PCB_INTERNAL_UNIT
);
wxString
text
;
const
wxChar
*
format
;
double
value
=
To_User_Unit
(
g_UnitMetric
,
aValue
,
PCB_INTERNAL_UNIT
);
if
(
g_UnitMetric
==
INCHES
)
{
format
=
wxT
(
" %.1f"
);
...
...
@@ -33,21 +35,23 @@ static wxString ReturnStringValue(int aValue)
format
=
wxT
(
" %.3f"
);
text
.
Printf
(
format
,
value
);
if
(
g_UnitMetric
==
INCHES
)
text
+=
_
(
" mils"
);
text
+=
_
(
" mils"
);
else
text
+=
_
(
" mm"
);
text
+=
_
(
" mm"
);
return
text
;
}
/**
* Function AuxiliaryToolBar_DesignRules_Update_UI
* update the displayed values: track widths, via sizes, clearance, Netclass name
* used when a netclass is selected
*/
void
WinEDA_PcbFrame
::
AuxiliaryToolBar_DesignRules_Update_UI
(
)
void
WinEDA_PcbFrame
::
AuxiliaryToolBar_DesignRules_Update_UI
()
{
wxString
nclname
=
GetBoard
()
->
m_CurrentNetClassName
;
wxString
msg
=
_
(
"NetClass: "
)
+
nclname
;
wxString
msg
=
_
(
"NetClass: "
)
+
nclname
;
m_NetClassSelectedBox
->
Clear
();
m_NetClassSelectedBox
->
AppendText
(
msg
);
...
...
@@ -55,13 +59,13 @@ void WinEDA_PcbFrame::AuxiliaryToolBar_DesignRules_Update_UI( )
if
(
m_ClearanceBox
)
{
wxString
msg
=
_
(
"Clearance"
)
+
ReturnStringValue
(
netclass
->
GetClearance
()
);
wxString
msg
=
_
(
"Clearance"
)
+
ReturnStringValue
(
netclass
->
GetClearance
()
);
m_ClearanceBox
->
Clear
();
m_ClearanceBox
->
AppendText
(
msg
);
}
}
/**
* Function AuxiliaryToolBar_Update_UI
* update the displayed values on auxiliary horizontal toolbar
...
...
@@ -71,20 +75,23 @@ void WinEDA_PcbFrame::AuxiliaryToolBar_DesignRules_Update_UI( )
* next items (if any) = ordered list of sizes (extra sizes).
* So the current selected class value can be same as an other extra value
*/
void
WinEDA_PcbFrame
::
AuxiliaryToolBar_Update_UI
(
)
void
WinEDA_PcbFrame
::
AuxiliaryToolBar_Update_UI
()
{
wxString
msg
;
AuxiliaryToolBar_DesignRules_Update_UI
(
);
AuxiliaryToolBar_DesignRules_Update_UI
();
m_AuxiliaryToolBar
->
ToggleTool
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
g_DesignSettings
.
m_UseConnectedTrackWidth
);
if
(
m_SelTrackWidthBox
&&
m_TrackAndViasSizesList_Changed
)
{
m_SelTrackWidthBox
->
Clear
();
for
(
unsigned
ii
=
0
;
ii
<
GetBoard
()
->
m_TrackWidthHistory
.
size
();
ii
++
)
{
msg
=
_
(
"Track"
)
+
ReturnStringValue
(
GetBoard
()
->
m_TrackWidthHistory
[
ii
]
);
if
(
ii
==
0
)
msg
<<
_
(
" *"
);
msg
=
_
(
"Track"
)
+
ReturnStringValue
(
GetBoard
()
->
m_TrackWidthHistory
[
ii
]
);
if
(
ii
==
0
)
msg
<<
_
(
" *"
);
m_SelTrackWidthBox
->
Append
(
msg
);
}
}
...
...
@@ -97,9 +104,9 @@ void WinEDA_PcbFrame::AuxiliaryToolBar_Update_UI( )
m_SelViaSizeBox
->
Clear
();
for
(
unsigned
ii
=
0
;
ii
<
GetBoard
()
->
m_ViaSizeHistory
.
size
();
ii
++
)
{
msg
=
_
(
"Via"
)
+
ReturnStringValue
(
GetBoard
()
->
m_ViaSizeHistory
[
ii
]
);
if
(
ii
==
0
)
msg
<<
_
(
" *"
);
msg
=
_
(
"Via"
)
+
ReturnStringValue
(
GetBoard
()
->
m_ViaSizeHistory
[
ii
]
);
if
(
ii
==
0
)
msg
<<
_
(
" *"
);
m_SelViaSizeBox
->
Append
(
msg
);
}
}
...
...
@@ -119,7 +126,8 @@ void WinEDA_PcbFrame::AuxiliaryToolBar_Update_UI( )
break
;
}
}
if
(
not_found
)
if
(
not_found
)
m_SelZoomBox
->
SetSelection
(
-
1
);
}
...
...
@@ -185,9 +193,11 @@ void WinEDA_PcbFrame::SetToolbars()
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_DRC_OFF
,
!
Drc_On
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_DRC_OFF
,
Drc_On
?
_
(
"DRC Off (Disable !!!), Currently: DRC is active"
)
:
_
(
"DRC On (Currently: DRC is inactive !!!)"
)
);
Drc_On
?
_
(
"DRC Off (Disable !!!), Currently: DRC is active"
)
:
_
(
"DRC On (Currently: DRC is inactive !!!)"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SELECT_UNIT_MM
,
g_UnitMetric
==
MILLIMETRE
?
TRUE
:
false
);
...
...
@@ -197,14 +207,14 @@ void WinEDA_PcbFrame::SetToolbars()
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
DisplayOpt
.
DisplayPolarCood
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_POLAR_COORD
,
DisplayOpt
.
DisplayPolarCood
?
_
(
"Polar coords not show"
)
:
_
(
"Display polar coords"
)
);
DisplayOpt
.
DisplayPolarCood
?
_
(
"Polar coords not show"
)
:
_
(
"Display polar coords"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_GRID
,
m_Draw_Grid
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_GRID
,
m_Draw_Grid
?
_
(
"Grid not show"
)
:
_
(
"Show grid"
)
);
m_Draw_Grid
?
_
(
"Grid not show"
)
:
_
(
"Show grid"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SELECT_CURSOR
,
m_CursorShape
);
...
...
@@ -212,66 +222,67 @@ void WinEDA_PcbFrame::SetToolbars()
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_RATSNEST
,
g_Show_Ratsnest
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_RATSNEST
,
g_Show_Ratsnest
?
_
(
"Hide general ratsnest"
)
:
_
(
"Show general ratsnest"
)
);
g_Show_Ratsnest
?
_
(
"Hide general ratsnest"
)
:
_
(
"Show general ratsnest"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_MODULE_RATSNEST
,
g_Show_Module_Ratsnest
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_MODULE_RATSNEST
,
g_Show_Module_Ratsnest
?
_
(
"Hide module ratsnest"
)
:
_
(
"Show module ratsnest"
)
);
g_Show_Module_Ratsnest
?
_
(
"Hide module ratsnest"
)
:
_
(
"Show module ratsnest"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_AUTO_DEL_TRACK
,
g_AutoDeleteOldTrack
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_AUTO_DEL_TRACK
,
g_AutoDeleteOldTrack
?
_
(
"Disable auto delete old track"
)
:
_
(
"Enable auto delete old track"
)
);
g_AutoDeleteOldTrack
?
_
(
"Disable auto delete old track"
)
:
_
(
"Enable auto delete old track"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
!
m_DisplayPadFill
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_PADS_SKETCH
,
m_DisplayPadFill
?
_
(
"Show pads sketch mode"
)
:
_
(
"Show pads filled mode"
)
);
m_DisplayPadFill
?
_
(
"Show pads sketch mode"
)
:
_
(
"Show pads filled mode"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_VIAS_SKETCH
,
!
m_DisplayViaFill
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_VIAS_SKETCH
,
m_DisplayViaFill
?
_
(
"Show vias sketch mode"
)
:
_
(
"Show vias filled mode"
)
);
m_DisplayViaFill
?
_
(
"Show vias sketch mode"
)
:
_
(
"Show vias filled mode"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH
,
!
m_DisplayPcbTrackFill
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_TRACKS_SKETCH
,
m_DisplayPcbTrackFill
?
_
(
"Show tracks sketch mode"
)
:
_
(
"Show tracks filled mode"
)
);
m_DisplayPcbTrackFill
?
_
(
"Show tracks sketch mode"
)
:
_
(
"Show tracks filled mode"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE
,
DisplayOpt
.
ContrastModeDisplay
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_HIGH_CONTRAST_MODE
,
DisplayOpt
.
ContrastModeDisplay
?
_
(
"Normal contrast mode display"
)
:
_
(
"High contrast mode display"
)
);
DisplayOpt
.
ContrastModeDisplay
?
_
(
"Normal contrast mode display"
)
:
_
(
"High contrast mode display"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_INVISIBLE_TEXT_MODE
,
g_ModuleTextNOVColor
&
ITEM_NOT_SHOW
);
g_ModuleTextNOVColor
&
ITEM_NOT_SHOW
);
m_OptionsToolBar
->
SetToolShortHelp
(
ID_TB_OPTIONS_SHOW_INVISIBLE_TEXT_MODE
,
g_ModuleTextNOVColor
&
(
ITEM_NOT_SHOW
)
?
_
(
"Show invisible text"
)
:
_
(
"Hide invisible text"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR1
,
m_AuxVToolBar
?
true
:
false
);
g_ModuleTextNOVColor
&
(
ITEM_NOT_SHOW
)
?
_
(
"Show invisible text"
)
:
_
(
"Hide invisible text"
)
);
m_OptionsToolBar
->
ToggleTool
(
ID_TB_OPTIONS_SHOW_EXTRA_VERTICAL_TOOLBAR1
,
m_AuxVToolBar
?
true
:
false
);
}
if
(
m_AuxiliaryToolBar
)
AuxiliaryToolBar_Update_UI
(
);
AuxiliaryToolBar_Update_UI
();
UpdateToolbarLayerInfo
();
PrepareLayerIndicator
();
...
...
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