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
fa73d544
Commit
fa73d544
authored
Mar 04, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix strange things in module edit dialogs.
parent
02b5b477
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8826 additions
and
8803 deletions
+8826
-8803
build_version.cpp
common/build_version.cpp
+2
-2
dialog_edit_module_for_BoardEditor.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
+4
-1
dialog_edit_module_for_BoardEditor_base.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
+374
-374
dialog_edit_module_for_BoardEditor_base.fbp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
+4370
-4370
dialog_edit_module_for_BoardEditor_base.h
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
+131
-131
dialog_edit_module_for_Modedit.cpp
pcbnew/dialogs/dialog_edit_module_for_Modedit.cpp
+4
-1
dialog_edit_module_for_Modedit_base.cpp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
+315
-309
dialog_edit_module_for_Modedit_base.fbp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
+3513
-3502
dialog_edit_module_for_Modedit_base.h
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
+112
-112
onrightclick.cpp
pcbnew/onrightclick.cpp
+1
-1
No files found.
common/build_version.cpp
View file @
fa73d544
...
...
@@ -7,9 +7,9 @@
#ifndef KICAD_BUILD_VERSION
#if defined KICAD_GOST
# define KICAD_BUILD_VERSION "(2013-
feb-26
GOST)"
# define KICAD_BUILD_VERSION "(2013-
mar-04
GOST)"
#else
# define KICAD_BUILD_VERSION "(2013-
feb-26
)"
# define KICAD_BUILD_VERSION "(2013-
mar-04
)"
#endif
#endif
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor.cpp
View file @
fa73d544
...
...
@@ -65,7 +65,6 @@ DIALOG_MODULE_BOARD_EDITOR::DIALOG_MODULE_BOARD_EDITOR( PCB_EDIT_FRAME* aParent
InitBoardProperties
();
m_sdbSizerStdButtonsOK
->
SetDefault
();
GetSizer
()
->
Fit
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
Centre
();
}
...
...
@@ -328,6 +327,10 @@ void DIALOG_MODULE_BOARD_EDITOR::InitModeditProperties()
m_3D_ShapeNameListBox
->
SetSelection
(
m_LastSelected3DShapeIndex
);
Transfert3DValuesToDisplay
(
m_Shapes3D_list
[
m_LastSelected3DShapeIndex
]
);
}
// We have modified the UI, so call Fit() for m_Panel3D
// to be sure the m_Panel3D sizers are initiliazed before opening the dialog
m_Panel3D
->
GetSizer
()
->
Fit
(
m_Panel3D
);
}
...
...
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
View file @
fa73d544
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
View file @
fa73d544
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
View file @
fa73d544
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
#define __DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/choice.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
#define ID_NOTEBOOK 1000
#define ID_LISTBOX_ORIENT_SELECT 1001
#define ID_MODULE_PROPERTIES_EXCHANGE 1002
#define ID_GOTO_MODULE_EDITOR 1003
#define ID_BROWSE_3D_LIB 1004
#define ID_ADD_3D_SHAPE 1005
#define ID_REMOVE_3D_SHAPE 1006
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_MODULE_BOARD_EDITOR_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_MODULE_BOARD_EDITOR_BASE
:
public
DIALOG_SHIM
{
private
:
wxBoxSizer
*
m_GeneralBoxSizer
;
wxBoxSizer
*
m_PropRightSizer
;
protected
:
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wxRadioBox
*
m_LayerCtrl
;
wxRadioBox
*
m_OrientCtrl
;
wxStaticText
*
m_staticText4
;
wxTextCtrl
*
m_OrientValue
;
wxStaticText
*
XPositionStatic
;
wxTextCtrl
*
m_ModPositionX
;
wxStaticText
*
YPositionStatic
;
wxTextCtrl
*
m_ModPositionY
;
wxButton
*
m_buttonExchange
;
wxButton
*
m_buttonModuleEditor
;
wxRadioBox
*
m_AttributsCtrl
;
wxRadioBox
*
m_AutoPlaceCtrl
;
wxStaticText
*
m_staticText11
;
wxSlider
*
m_CostRot90Ctrl
;
wxStaticText
*
m_staticText12
;
wxSlider
*
m_CostRot180Ctrl
;
wxStaticText
*
m_staticText16
;
wxChoice
*
m_ZoneConnectionChoice
;
wxStaticText
*
m_staticTextInfo
;
wxStaticText
*
m_staticTextNetClearance
;
wxTextCtrl
*
m_NetClearanceValueCtrl
;
wxStaticText
*
m_NetClearanceUnits
;
wxStaticLine
*
m_staticline1
;
wxStaticLine
*
m_staticline2
;
wxStaticLine
*
m_staticline3
;
wxStaticText
*
m_MaskClearanceTitle
;
wxTextCtrl
*
m_SolderMaskMarginCtrl
;
wxStaticText
*
m_SolderMaskMarginUnits
;
wxStaticText
*
m_staticTextSolderPaste
;
wxTextCtrl
*
m_SolderPasteMarginCtrl
;
wxStaticText
*
m_SolderPasteMarginUnits
;
wxStaticText
*
m_staticTextRatio
;
wxTextCtrl
*
m_SolderPasteMarginRatioCtrl
;
wxStaticText
*
m_SolderPasteRatioMarginUnits
;
wxPanel
*
m_Panel3D
;
wxStaticText
*
m_staticText3Dname
;
wxListBox
*
m_3D_ShapeNameListBox
;
wxButton
*
m_buttonBrowse
;
wxButton
*
m_buttonAdd
;
wxButton
*
m_buttonRemove
;
wxStdDialogButtonSizer
*
m_sdbSizerStdButtons
;
wxButton
*
m_sdbSizerStdButtonsOK
;
wxButton
*
m_sdbSizerStdButtonsCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnEditReference
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnEditValue
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
ModuleOrientEvent
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
ExchangeModule
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
GotoModuleEditor
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
On3DShapeNameSelected
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Browse3DLib
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Add3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Remove3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_BOARD_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
};
#endif //__DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
#define __DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/choice.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
#define ID_NOTEBOOK 1000
#define ID_LISTBOX_ORIENT_SELECT 1001
#define ID_MODULE_PROPERTIES_EXCHANGE 1002
#define ID_GOTO_MODULE_EDITOR 1003
#define ID_BROWSE_3D_LIB 1004
#define ID_ADD_3D_SHAPE 1005
#define ID_REMOVE_3D_SHAPE 1006
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_MODULE_BOARD_EDITOR_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_MODULE_BOARD_EDITOR_BASE
:
public
DIALOG_SHIM
{
private
:
wxBoxSizer
*
m_GeneralBoxSizer
;
wxBoxSizer
*
m_PropRightSizer
;
protected
:
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wxRadioBox
*
m_LayerCtrl
;
wxRadioBox
*
m_OrientCtrl
;
wxStaticText
*
m_staticText4
;
wxTextCtrl
*
m_OrientValue
;
wxStaticText
*
XPositionStatic
;
wxTextCtrl
*
m_ModPositionX
;
wxStaticText
*
YPositionStatic
;
wxTextCtrl
*
m_ModPositionY
;
wxButton
*
m_buttonExchange
;
wxButton
*
m_buttonModuleEditor
;
wxRadioBox
*
m_AttributsCtrl
;
wxRadioBox
*
m_AutoPlaceCtrl
;
wxStaticText
*
m_staticText11
;
wxSlider
*
m_CostRot90Ctrl
;
wxStaticText
*
m_staticText12
;
wxSlider
*
m_CostRot180Ctrl
;
wxStaticText
*
m_staticText16
;
wxChoice
*
m_ZoneConnectionChoice
;
wxStaticText
*
m_staticTextInfo
;
wxStaticText
*
m_staticTextNetClearance
;
wxTextCtrl
*
m_NetClearanceValueCtrl
;
wxStaticText
*
m_NetClearanceUnits
;
wxStaticLine
*
m_staticline1
;
wxStaticLine
*
m_staticline2
;
wxStaticLine
*
m_staticline3
;
wxStaticText
*
m_MaskClearanceTitle
;
wxTextCtrl
*
m_SolderMaskMarginCtrl
;
wxStaticText
*
m_SolderMaskMarginUnits
;
wxStaticText
*
m_staticTextSolderPaste
;
wxTextCtrl
*
m_SolderPasteMarginCtrl
;
wxStaticText
*
m_SolderPasteMarginUnits
;
wxStaticText
*
m_staticTextRatio
;
wxTextCtrl
*
m_SolderPasteMarginRatioCtrl
;
wxStaticText
*
m_SolderPasteRatioMarginUnits
;
wxPanel
*
m_Panel3D
;
wxStaticText
*
m_staticText3Dname
;
wxListBox
*
m_3D_ShapeNameListBox
;
wxButton
*
m_buttonBrowse
;
wxButton
*
m_buttonAdd
;
wxButton
*
m_buttonRemove
;
wxStdDialogButtonSizer
*
m_sdbSizerStdButtons
;
wxButton
*
m_sdbSizerStdButtonsOK
;
wxButton
*
m_sdbSizerStdButtonsCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnEditReference
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnEditValue
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
ModuleOrientEvent
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
ExchangeModule
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
GotoModuleEditor
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
On3DShapeNameSelected
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Browse3DLib
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Add3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Remove3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_BOARD_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
};
#endif //__DIALOG_EDIT_MODULE_FOR_BOARDEDITOR_BASE_H__
pcbnew/dialogs/dialog_edit_module_for_Modedit.cpp
View file @
fa73d544
...
...
@@ -62,7 +62,6 @@ DIALOG_MODULE_MODULE_EDITOR::DIALOG_MODULE_MODULE_EDITOR( FOOTPRINT_EDIT_FRAME*
initModeditProperties
();
m_sdbSizerStdButtonsOK
->
SetDefault
();
GetSizer
()
->
Fit
(
this
);
GetSizer
()
->
SetSizeHints
(
this
);
Centre
();
}
...
...
@@ -208,6 +207,10 @@ void DIALOG_MODULE_MODULE_EDITOR::initModeditProperties()
m_3D_ShapeNameListBox
->
SetSelection
(
m_lastSelected3DShapeIndex
);
Transfert3DValuesToDisplay
(
m_shapes3D_list
[
m_lastSelected3DShapeIndex
]
);
}
// We have modified the UI, so call Fit() for m_Panel3D
// to be sure the m_Panel3D sizers are initialized before opening the dialog
m_Panel3D
->
GetSizer
()
->
Fit
(
m_Panel3D
);
}
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
View file @
fa73d544
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
View file @
fa73d544
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
View file @
fa73d544
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
#define __DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/textctrl.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/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
#define ID_NOTEBOOK 1000
#define ID_BROWSE_3D_LIB 1001
#define ID_REMOVE_3D_SHAPE 1002
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_MODULE_MODULE_EDITOR_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_MODULE_MODULE_EDITOR_BASE
:
public
DIALOG_SHIM
{
private
:
wxBoxSizer
*
m_GeneralBoxSizer
;
wxBoxSizer
*
m_PropRightSizer
;
protected
:
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxTextCtrl
*
m_DocCtrl
;
wxTextCtrl
*
m_KeywordCtrl
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wx
RadioBox
*
m_AttributsCtrl
;
wxRadioBox
*
m_A
utoPlaceCtrl
;
wx
StaticText
*
m_staticText11
;
wxS
lider
*
m_CostRot90Ctrl
;
wxS
taticText
*
m_staticText12
;
wxS
lider
*
m_CostRot180Ctrl
;
wxS
taticText
*
m_staticTextInfo
;
wxStaticText
*
m_staticText
NetClearance
;
wx
TextCtrl
*
m_NetClearanceValueCtrl
;
wx
StaticText
*
m_NetClearanceUnits
;
wxStatic
Line
*
m_staticline1
;
wxStaticLine
*
m_staticline
2
;
wxStaticLine
*
m_staticline
3
;
wxStatic
Text
*
m_MaskClearanceTitle
;
wx
TextCtrl
*
m_SolderMaskMarginCtrl
;
wx
StaticText
*
m_SolderMaskMarginUnits
;
wx
TextCtrl
*
m_FootprintNameCtrl
;
wxStaticText
*
m_staticTextSolderPaste
;
wxTextCtrl
*
m_SolderPasteMarginCtrl
;
wxStaticText
*
m_SolderPasteMarginUnits
;
wxStaticText
*
m_staticTextRatio
;
wxTextCtrl
*
m_SolderPasteMarginRatioCtrl
;
wxStaticText
*
m_SolderPasteRatioMarginUnits
;
wxPanel
*
m_Panel3D
;
wxStaticText
*
m_staticText3Dname
;
wxListBox
*
m_3D_ShapeNameListBox
;
wxButton
*
m_buttonBrowse
;
wxButton
*
m_buttonRemove
;
wxStdDialogButtonSizer
*
m_sdbSizerStdButtons
;
wxButton
*
m_sdbSizerStdButtonsOK
;
wxButton
*
m_sdbSizerStdButtonsCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnEditReference
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnEditValue
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
On3DShapeNameSelected
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
BrowseAndAdd3DLib
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Remove3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_MODULE_EDITOR_BASE
();
};
#endif //__DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 8 2012)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
#define __DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/textctrl.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/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/listbox.h>
#include <wx/notebook.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
#define ID_NOTEBOOK 1000
#define ID_BROWSE_3D_LIB 1001
#define ID_REMOVE_3D_SHAPE 1002
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_MODULE_MODULE_EDITOR_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_MODULE_MODULE_EDITOR_BASE
:
public
DIALOG_SHIM
{
private
:
wxBoxSizer
*
m_GeneralBoxSizer
;
wxBoxSizer
*
m_PropRightSizer
;
protected
:
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxTextCtrl
*
m_DocCtrl
;
wxTextCtrl
*
m_KeywordCtrl
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wx
TextCtrl
*
m_FootprintNameCtrl
;
wxRadioBox
*
m_A
ttributsCtrl
;
wx
RadioBox
*
m_AutoPlaceCtrl
;
wxS
taticText
*
m_staticText11
;
wxS
lider
*
m_CostRot90Ctrl
;
wxS
taticText
*
m_staticText12
;
wxS
lider
*
m_CostRot180Ctrl
;
wxStaticText
*
m_staticText
Info
;
wx
StaticText
*
m_staticTextNetClearance
;
wx
TextCtrl
*
m_NetClearanceValueCtrl
;
wxStatic
Text
*
m_NetClearanceUnits
;
wxStaticLine
*
m_staticline
1
;
wxStaticLine
*
m_staticline
2
;
wxStatic
Line
*
m_staticline3
;
wx
StaticText
*
m_MaskClearanceTitle
;
wx
TextCtrl
*
m_SolderMaskMarginCtrl
;
wx
StaticText
*
m_SolderMaskMarginUnits
;
wxStaticText
*
m_staticTextSolderPaste
;
wxTextCtrl
*
m_SolderPasteMarginCtrl
;
wxStaticText
*
m_SolderPasteMarginUnits
;
wxStaticText
*
m_staticTextRatio
;
wxTextCtrl
*
m_SolderPasteMarginRatioCtrl
;
wxStaticText
*
m_SolderPasteRatioMarginUnits
;
wxPanel
*
m_Panel3D
;
wxStaticText
*
m_staticText3Dname
;
wxListBox
*
m_3D_ShapeNameListBox
;
wxButton
*
m_buttonBrowse
;
wxButton
*
m_buttonRemove
;
wxStdDialogButtonSizer
*
m_sdbSizerStdButtons
;
wxButton
*
m_sdbSizerStdButtonsOK
;
wxButton
*
m_sdbSizerStdButtonsCancel
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnEditReference
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnEditValue
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
On3DShapeNameSelected
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
BrowseAndAdd3DLib
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Remove3DShape
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnCancelClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOkClick
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
DIALOG_MODULE_MODULE_EDITOR_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_MODULE_EDITOR_BASE
();
};
#endif //__DIALOG_EDIT_MODULE_FOR_MODEDIT_BASE_H__
pcbnew/onrightclick.cpp
View file @
fa73d544
...
...
@@ -722,7 +722,7 @@ void PCB_EDIT_FRAME::createPopUpMenuForFootprints( MODULE* aModule, wxMenu* menu
if
(
!
flags
)
{
msg
=
AddHotkeyName
(
_
(
"Edit P
rm
s"
),
msg
=
AddHotkeyName
(
_
(
"Edit P
arameter
s"
),
g_Board_Editor_Hokeys_Descr
,
HK_EDIT_ITEM
);
AddMenuItem
(
sub_menu_footprint
,
ID_POPUP_PCB_EDIT_MODULE_PRMS
,
msg
,
KiBitmap
(
edit_module_xpm
)
);
...
...
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