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
dcccaee2
Commit
dcccaee2
authored
Apr 19, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace WinEDAChoiceBox with wxComboBox.
parent
cb3e36f0
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
82 additions
and
112 deletions
+82
-112
drawframe.cpp
common/drawframe.cpp
+1
-1
libeditframe.cpp
eeschema/libeditframe.cpp
+2
-2
libeditframe.h
eeschema/libeditframe.h
+2
-2
tool_lib.cpp
eeschema/tool_lib.cpp
+12
-6
tool_viewlib.cpp
eeschema/tool_viewlib.cpp
+3
-3
viewlib_frame.cpp
eeschema/viewlib_frame.cpp
+2
-4
viewlib_frame.h
eeschema/viewlib_frame.h
+1
-2
viewlibs.cpp
eeschema/viewlibs.cpp
+1
-1
events_called_functions.cpp
gerbview/events_called_functions.cpp
+2
-2
dialog_helpers.h
include/dialog_helpers.h
+0
-39
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+1
-1
wxPcbStruct.h
include/wxPcbStruct.h
+3
-6
wxstruct.h
include/wxstruct.h
+2
-5
dimension.cpp
pcbnew/dimension.cpp
+5
-4
event_handlers_tracks_vias_sizes.cpp
pcbnew/event_handlers_tracks_vias_sizes.cpp
+2
-2
moduleframe.cpp
pcbnew/moduleframe.cpp
+2
-2
pcbframe.cpp
pcbnew/pcbframe.cpp
+5
-6
tool_modedit.cpp
pcbnew/tool_modedit.cpp
+12
-8
tool_pcb.cpp
pcbnew/tool_pcb.cpp
+24
-16
No files found.
common/drawframe.cpp
View file @
dcccaee2
...
...
@@ -360,7 +360,7 @@ void EDA_DRAW_FRAME::OnSelectZoom( wxCommandEvent& event )
if
(
m_SelZoomBox
==
NULL
)
return
;
// Should not happen!
int
id
=
m_SelZoomBox
->
GetC
hoice
();
int
id
=
m_SelZoomBox
->
GetC
urrentSelection
();
if
(
id
<
0
||
!
(
id
<
(
int
)
m_SelZoomBox
->
GetCount
()
)
)
return
;
...
...
eeschema/libeditframe.cpp
View file @
dcccaee2
...
...
@@ -101,8 +101,8 @@ BEGIN_EVENT_TABLE( LIB_EDIT_FRAME, EDA_DRAW_FRAME )
EVT_TOOL
(
CreateNewLibAndSavePartId
,
LIB_EDIT_FRAME
::
OnExportPart
)
EVT_TOOL
(
ImportPartId
,
LIB_EDIT_FRAME
::
OnImportPart
)
EVT_
KICAD_CHOICE
BOX
(
ID_LIBEDIT_SELECT_PART_NUMBER
,
LIB_EDIT_FRAME
::
OnSelectPart
)
EVT_
KICAD_CHOICE
BOX
(
ID_LIBEDIT_SELECT_ALIAS
,
LIB_EDIT_FRAME
::
OnSelectAlias
)
EVT_
COMBO
BOX
(
ID_LIBEDIT_SELECT_PART_NUMBER
,
LIB_EDIT_FRAME
::
OnSelectPart
)
EVT_
COMBO
BOX
(
ID_LIBEDIT_SELECT_ALIAS
,
LIB_EDIT_FRAME
::
OnSelectAlias
)
/* Right vertical toolbar. */
EVT_TOOL
(
ID_NO_TOOL_SELECTED
,
LIB_EDIT_FRAME
::
OnSelectTool
)
...
...
eeschema/libeditframe.h
View file @
dcccaee2
...
...
@@ -28,8 +28,8 @@ class LIB_EDIT_FRAME : public EDA_DRAW_FRAME
LIB_COMPONENT
*
m_tempCopyComponent
;
///< Temporary copy of current component during edit.
public
:
WinEDAChoiceBox
*
m_SelpartBox
;
// a Box to select a part to edit (if any)
WinEDAChoiceBox
*
m_SelAliasBox
;
// a box to select the alias to edit (if any)
wxComboBox
*
m_SelpartBox
;
// a Box to select a part to edit (if any)
wxComboBox
*
m_SelAliasBox
;
// a box to select the alias to edit (if any)
public
:
LIB_EDIT_FRAME
(
SCH_EDIT_FRAME
*
aParent
,
const
wxString
&
title
,
...
...
eeschema/tool_lib.cpp
View file @
dcccaee2
...
...
@@ -158,14 +158,20 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
_
(
"Edit document file"
)
);
m_HToolBar
->
AddSeparator
();
m_SelpartBox
=
new
WinEDAChoice
Box
(
m_HToolBar
,
m_SelpartBox
=
new
wxCombo
Box
(
m_HToolBar
,
ID_LIBEDIT_SELECT_PART_NUMBER
,
wxEmptyString
,
wxDefaultPosition
,
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_HToolBar
->
AddControl
(
m_SelpartBox
);
m_SelAliasBox
=
new
WinEDAChoiceBox
(
m_HToolBar
,
ID_LIBEDIT_SELECT_ALIAS
,
wxDefaultPosition
,
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
m_SelAliasBox
=
new
wxComboBox
(
m_HToolBar
,
ID_LIBEDIT_SELECT_ALIAS
,
wxEmptyString
,
wxDefaultPosition
,
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_HToolBar
->
AddControl
(
m_SelAliasBox
);
m_HToolBar
->
AddSeparator
();
...
...
eeschema/tool_viewlib.cpp
View file @
dcccaee2
...
...
@@ -82,9 +82,9 @@ void LIB_VIEW_FRAME::ReCreateHToolbar()
m_HToolBar
->
AddSeparator
();
SelpartBox
=
new
WinEDAChoiceBox
(
m_HToolBar
,
ID_LIBVIEW_SELECT_PART_NUMBER
,
wxDefaultPosition
,
wxSize
(
150
,
-
1
)
);
SelpartBox
=
new
wxComboBox
(
m_HToolBar
,
ID_LIBVIEW_SELECT_PART_NUMBER
,
wxEmptyString
,
wxDefaultPosition
,
wxSize
(
150
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_HToolBar
->
AddControl
(
SelpartBox
);
m_HToolBar
->
AddSeparator
();
...
...
eeschema/viewlib_frame.cpp
View file @
dcccaee2
...
...
@@ -48,10 +48,8 @@ BEGIN_EVENT_TABLE( LIB_VIEW_FRAME, EDA_DRAW_FRAME )
EVT_TOOL_RANGE
(
ID_LIBVIEW_NEXT
,
ID_LIBVIEW_DE_MORGAN_CONVERT_BUTT
,
LIB_VIEW_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
LIB_VIEW_FRAME
::
ExportToSchematicLibraryPart
)
EVT_KICAD_CHOICEBOX
(
ID_LIBVIEW_SELECT_PART_NUMBER
,
LIB_VIEW_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_LIBVIEW_CMP_EXPORT_TO_SCHEMATIC
,
LIB_VIEW_FRAME
::
ExportToSchematicLibraryPart
)
EVT_COMBOBOX
(
ID_LIBVIEW_SELECT_PART_NUMBER
,
LIB_VIEW_FRAME
::
Process_Special_Functions
)
/* listbox events */
EVT_LISTBOX
(
ID_LIBVIEW_LIB_LIST
,
LIB_VIEW_FRAME
::
ClickOnLibList
)
...
...
eeschema/viewlib_frame.h
View file @
dcccaee2
...
...
@@ -10,7 +10,6 @@
class
wxSashLayoutWindow
;
class
wxListBox
;
class
wxSemaphore
;
class
WinEDAChoiceBox
;
class
SCH_SCREEN
;
class
CMP_LIBRARY
;
...
...
@@ -21,7 +20,7 @@ class CMP_LIBRARY;
class
LIB_VIEW_FRAME
:
public
EDA_DRAW_FRAME
{
private
:
WinEDAChoiceBox
*
SelpartBox
;
wxComboBox
*
SelpartBox
;
// List of libraries (for selection )
wxSashLayoutWindow
*
m_LibListWindow
;
...
...
eeschema/viewlibs.cpp
View file @
dcccaee2
...
...
@@ -72,7 +72,7 @@ void LIB_VIEW_FRAME::Process_Special_Functions( wxCommandEvent& event )
break
;
case
ID_LIBVIEW_SELECT_PART_NUMBER
:
ii
=
SelpartBox
->
GetC
hoice
();
ii
=
SelpartBox
->
GetC
urrentSelection
();
if
(
ii
<
0
)
return
;
m_unit
=
ii
+
1
;
...
...
gerbview/events_called_functions.cpp
View file @
dcccaee2
...
...
@@ -68,7 +68,7 @@ EVT_TOOL( wxID_COPY, GERBVIEW_FRAME::Process_Special_Functions )
EVT_TOOL
(
wxID_PASTE
,
GERBVIEW_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
wxID_UNDO
,
GERBVIEW_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
wxID_PRINT
,
GERBVIEW_FRAME
::
ToPrinter
)
EVT_
KICAD_CHOICE
BOX
(
ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER
,
EVT_
COMBO
BOX
(
ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER
,
GERBVIEW_FRAME
::
OnSelectActiveLayer
)
EVT_SELECT_DCODE
(
ID_TOOLBARH_GERBER_SELECT_ACTIVE_DCODE
,
GERBVIEW_FRAME
::
OnSelectActiveDCode
)
...
...
include/dialog_helpers.h
View file @
dcccaee2
...
...
@@ -211,44 +211,5 @@ public:
}
};
/*************************/
/* class WinEDAChoiceBox */
/*************************/
/* class to display a choice list.
* This is a wrapper to wxComboBox (or wxChoice)
* but because they have some problems, WinEDAChoiceBox uses workarounds:
* - in wxGTK 2.6.2 wxGetSelection() does not work properly,
* - and wxChoice crashes if compiled in non unicode mode and uses utf8 codes
*/
#define EVT_KICAD_CHOICEBOX EVT_COMBOBOX
class
WinEDAChoiceBox
:
public
wxComboBox
{
public
:
WinEDAChoiceBox
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxDefaultSize
,
int
n
=
0
,
const
wxString
choices
[]
=
NULL
)
:
wxComboBox
(
parent
,
id
,
wxEmptyString
,
pos
,
size
,
n
,
choices
,
wxCB_READONLY
)
{
}
WinEDAChoiceBox
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
const
wxArrayString
&
choices
)
:
wxComboBox
(
parent
,
id
,
wxEmptyString
,
pos
,
size
,
choices
,
wxCB_READONLY
)
{
}
int
GetChoice
()
{
return
GetCurrentSelection
();
}
};
#endif
include/wxEeschemaStruct.h
View file @
dcccaee2
...
...
@@ -58,7 +58,7 @@ enum fl_rot_cmp {
class
SCH_EDIT_FRAME
:
public
EDA_DRAW_FRAME
{
public
:
WinEDAChoiceBox
*
m_SelPartBox
;
wxComboBox
*
m_SelPartBox
;
SCH_SHEET_PATH
*
m_CurrentSheet
;
///< which sheet we are presently working on.
int
m_Multiflag
;
int
m_NetlistFormat
;
...
...
include/wxPcbStruct.h
View file @
dcccaee2
...
...
@@ -112,12 +112,9 @@ protected:
virtual
void
unitsChangeRefresh
();
public
:
LAYER_BOX_SELECTOR
*
m_SelLayerBox
;
// a combo box to display and
// select active layer
WinEDAChoiceBox
*
m_SelTrackWidthBox
;
// a combo box to display and
// select current track width
WinEDAChoiceBox
*
m_SelViaSizeBox
;
// a combo box to display and
// select current via diameter
LAYER_BOX_SELECTOR
*
m_SelLayerBox
;
// a combo box to display and select active layer
wxComboBox
*
m_SelTrackWidthBox
;
// a combo box to display and select current track width
wxComboBox
*
m_SelViaSizeBox
;
// a combo box to display and select current via diameter
bool
m_show_microwave_tools
;
bool
m_show_layer_manager_tools
;
...
...
include/wxstruct.h
View file @
dcccaee2
...
...
@@ -39,7 +39,6 @@ class EDA_DRAW_PANEL;
class
EDA_MSG_PANEL
;
class
BASE_SCREEN
;
class
EDA_TOOLBAR
;
class
WinEDAChoiceBox
;
class
PARAM_CFG_BASE
;
class
Ki_PageDescr
;
class
Ki_HotkeyInfo
;
...
...
@@ -245,10 +244,8 @@ public:
EDA_TOOLBAR
*
m_OptionsToolBar
;
// Options Toolbar (left side)
EDA_TOOLBAR
*
m_AuxiliaryToolBar
;
// Auxiliary Toolbar used in pcbnew
WinEDAChoiceBox
*
m_SelGridBox
;
// Choice box to choose the grid
// size
WinEDAChoiceBox
*
m_SelZoomBox
;
// Choice box to choose the zoom
// value
wxComboBox
*
m_SelGridBox
;
// Choice box to choose the grid size
wxComboBox
*
m_SelZoomBox
;
// Choice box to choose the zoom value
int
m_CursorShape
;
// shape for cursor (0 = default
// cursor)
...
...
pcbnew/dimension.cpp
View file @
dcccaee2
...
...
@@ -49,7 +49,7 @@ private:
WinEDA_SizeCtrl
*
m_TxtSizeCtrl
;
WinEDA_ValueCtrl
*
m_TxtWidthCtrl
;
wxRadioBox
*
m_Mirror
;
WinEDAChoice
Box
*
m_SelLayerBox
;
wxCombo
Box
*
m_SelLayerBox
;
public
:
...
...
@@ -122,8 +122,9 @@ DIMENSION_EDITOR_DIALOG::DIMENSION_EDITOR_DIALOG( PCB_EDIT_FRAME* parent,
wxStaticText
*
text
=
new
wxStaticText
(
this
,
-
1
,
_
(
"Layer:"
)
);
LeftBoxSizer
->
Add
(
text
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
m_SelLayerBox
=
new
WinEDAChoiceBox
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
);
m_SelLayerBox
=
new
wxComboBox
(
this
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
,
NULL
,
wxCB_READONLY
);
LeftBoxSizer
->
Add
(
m_SelLayerBox
,
0
,
wxGROW
|
wxLEFT
|
wxRIGHT
|
wxBOTTOM
,
5
);
for
(
int
layer
=
FIRST_NO_COPPER_LAYER
;
layer
<
NB_LAYERS
;
layer
++
)
...
...
@@ -175,7 +176,7 @@ void DIMENSION_EDITOR_DIALOG::OnOkClick( wxCommandEvent& event )
CurrentDimension
->
m_Text
->
m_Mirror
=
(
m_Mirror
->
GetSelection
()
==
1
)
?
true
:
false
;
CurrentDimension
->
SetLayer
(
m_SelLayerBox
->
GetC
hoice
()
+
FIRST_NO_COPPER_LAYER
);
CurrentDimension
->
SetLayer
(
m_SelLayerBox
->
GetC
urrentSelection
()
+
FIRST_NO_COPPER_LAYER
);
CurrentDimension
->
AdjustDimensionDetails
(
true
);
...
...
pcbnew/event_handlers_tracks_vias_sizes.cpp
View file @
dcccaee2
...
...
@@ -78,12 +78,12 @@ void PCB_EDIT_FRAME::Tracks_and_Vias_Size_Event( wxCommandEvent& event )
break
;
case
ID_AUX_TOOLBAR_PCB_TRACK_WIDTH
:
ii
=
m_SelTrackWidthBox
->
GetC
hoice
();
ii
=
m_SelTrackWidthBox
->
GetC
urrentSelection
();
GetBoard
()
->
m_TrackWidthSelector
=
ii
;
break
;
case
ID_AUX_TOOLBAR_PCB_VIA_SIZE
:
ii
=
m_SelViaSizeBox
->
GetC
hoice
();
ii
=
m_SelViaSizeBox
->
GetC
urrentSelection
();
GetBoard
()
->
m_ViaSizeSelector
=
ii
;
break
;
...
...
pcbnew/moduleframe.cpp
View file @
dcccaee2
...
...
@@ -36,8 +36,8 @@ BEGIN_EVENT_TABLE( WinEDA_ModuleEditFrame, PCB_BASE_FRAME )
EVT_SIZE
(
WinEDA_ModuleEditFrame
::
OnSize
)
EVT_
KICAD_CHOICE
BOX
(
ID_ON_ZOOM_SELECT
,
WinEDA_ModuleEditFrame
::
OnSelectZoom
)
EVT_
KICAD_CHOICE
BOX
(
ID_ON_GRID_SELECT
,
WinEDA_ModuleEditFrame
::
OnSelectGrid
)
EVT_
COMBO
BOX
(
ID_ON_ZOOM_SELECT
,
WinEDA_ModuleEditFrame
::
OnSelectZoom
)
EVT_
COMBO
BOX
(
ID_ON_GRID_SELECT
,
WinEDA_ModuleEditFrame
::
OnSelectGrid
)
EVT_TOOL
(
ID_MODEDIT_SELECT_CURRENT_LIB
,
WinEDA_ModuleEditFrame
::
Process_Special_Functions
)
EVT_TOOL
(
ID_MODEDIT_SAVE_LIBMODULE
,
WinEDA_ModuleEditFrame
::
Process_Special_Functions
)
...
...
pcbnew/pcbframe.cpp
View file @
dcccaee2
...
...
@@ -68,8 +68,8 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
EVT_SOCKET
(
ID_EDA_SOCKET_EVENT_SERV
,
PCB_EDIT_FRAME
::
OnSockRequestServer
)
EVT_SOCKET
(
ID_EDA_SOCKET_EVENT
,
PCB_EDIT_FRAME
::
OnSockRequest
)
EVT_
KICAD_CHOICE
BOX
(
ID_ON_ZOOM_SELECT
,
PCB_EDIT_FRAME
::
OnSelectZoom
)
EVT_
KICAD_CHOICE
BOX
(
ID_ON_GRID_SELECT
,
PCB_EDIT_FRAME
::
OnSelectGrid
)
EVT_
COMBO
BOX
(
ID_ON_ZOOM_SELECT
,
PCB_EDIT_FRAME
::
OnSelectZoom
)
EVT_
COMBO
BOX
(
ID_ON_GRID_SELECT
,
PCB_EDIT_FRAME
::
OnSelectGrid
)
EVT_CLOSE
(
PCB_EDIT_FRAME
::
OnCloseWindow
)
EVT_SIZE
(
PCB_EDIT_FRAME
::
OnSize
)
...
...
@@ -164,10 +164,9 @@ BEGIN_EVENT_TABLE( PCB_EDIT_FRAME, PCB_BASE_FRAME )
EVT_TOOL
(
ID_DRC_CONTROL
,
PCB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_AUX_TOOLBAR_PCB_SELECT_LAYER_PAIR
,
PCB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_AUX_TOOLBAR_PCB_SELECT_AUTO_WIDTH
,
PCB_EDIT_FRAME
::
Tracks_and_Vias_Size_Event
)
EVT_KICAD_CHOICEBOX
(
ID_TOOLBARH_PCB_SELECT_LAYER
,
PCB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_KICAD_CHOICEBOX
(
ID_AUX_TOOLBAR_PCB_TRACK_WIDTH
,
PCB_EDIT_FRAME
::
Tracks_and_Vias_Size_Event
)
EVT_KICAD_CHOICEBOX
(
ID_AUX_TOOLBAR_PCB_VIA_SIZE
,
PCB_EDIT_FRAME
::
Tracks_and_Vias_Size_Event
)
EVT_COMBOBOX
(
ID_TOOLBARH_PCB_SELECT_LAYER
,
PCB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_COMBOBOX
(
ID_AUX_TOOLBAR_PCB_TRACK_WIDTH
,
PCB_EDIT_FRAME
::
Tracks_and_Vias_Size_Event
)
EVT_COMBOBOX
(
ID_AUX_TOOLBAR_PCB_VIA_SIZE
,
PCB_EDIT_FRAME
::
Tracks_and_Vias_Size_Event
)
EVT_TOOL
(
ID_TOOLBARH_PCB_MODE_MODULE
,
PCB_EDIT_FRAME
::
AutoPlace
)
EVT_TOOL
(
ID_TOOLBARH_PCB_MODE_TRACKS
,
PCB_EDIT_FRAME
::
AutoPlace
)
EVT_TOOL
(
ID_TOOLBARH_PCB_FREEROUTE_ACCESS
,
PCB_EDIT_FRAME
::
Access_to_External_Tool
)
...
...
pcbnew/tool_modedit.cpp
View file @
dcccaee2
...
...
@@ -219,18 +219,22 @@ void WinEDA_ModuleEditFrame::ReCreateAuxiliaryToolbar()
m_AuxiliaryToolBar
->
AddSeparator
();
// Grid selection choice box.
m_SelGridBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelGridBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_ON_GRID_SELECT
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelGridBox
);
// Zoom selection choice box.
m_AuxiliaryToolBar
->
AddSeparator
();
m_SelZoomBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelZoomBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_ON_ZOOM_SELECT
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelZoomBox
);
// Update tool bar to reflect setting.
...
...
pcbnew/tool_pcb.cpp
View file @
dcccaee2
...
...
@@ -509,18 +509,22 @@ void PCB_EDIT_FRAME::ReCreateAuxiliaryToolbar()
/* Set up toolbar items */
// Creates box to display and choose tracks widths:
m_SelTrackWidthBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelTrackWidthBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_AUX_TOOLBAR_PCB_TRACK_WIDTH
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelTrackWidthBox
);
m_AuxiliaryToolBar
->
AddSeparator
();
// Creates box to display and choose vias diameters:
m_SelViaSizeBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelViaSizeBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_AUX_TOOLBAR_PCB_VIA_SIZE
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
(
LISTBOX_WIDTH
*
12
)
/
10
,
-
1
)
);
wxSize
(
(
LISTBOX_WIDTH
*
12
)
/
10
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelViaSizeBox
);
m_AuxiliaryToolBar
->
AddSeparator
();
...
...
@@ -534,18 +538,22 @@ an existing track use its width\notherwise, use current width setting" ),
// Add the box to display and select the current grid size:
m_AuxiliaryToolBar
->
AddSeparator
();
m_SelGridBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelGridBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_ON_GRID_SELECT
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelGridBox
);
// Add the box to display and select the current Zoom
m_AuxiliaryToolBar
->
AddSeparator
();
m_SelZoomBox
=
new
WinEDAChoice
Box
(
m_AuxiliaryToolBar
,
m_SelZoomBox
=
new
wxCombo
Box
(
m_AuxiliaryToolBar
,
ID_ON_ZOOM_SELECT
,
wxEmptyString
,
wxPoint
(
-
1
,
-
1
),
wxSize
(
LISTBOX_WIDTH
,
-
1
)
);
wxSize
(
LISTBOX_WIDTH
,
-
1
),
0
,
NULL
,
wxCB_READONLY
);
m_AuxiliaryToolBar
->
AddControl
(
m_SelZoomBox
);
updateZoomSelectBox
();
...
...
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