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
c1f6576f
Commit
c1f6576f
authored
Mar 04, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dialog edit module: remove some wxStaticBoxSizer sizers.
parent
9f3cea67
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1588 additions
and
998 deletions
+1588
-998
dialog_edit_module_for_BoardEditor_base.cpp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
+52
-53
dialog_edit_module_for_BoardEditor_base.fbp
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
+828
-613
dialog_edit_module_for_BoardEditor_base.h
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
+7
-4
dialog_edit_module_for_Modedit_base.cpp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
+29
-28
dialog_edit_module_for_Modedit_base.fbp
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
+664
-297
dialog_edit_module_for_Modedit_base.h
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
+8
-3
No files found.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.cpp
View file @
c1f6576f
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.fbp
View file @
c1f6576f
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_BoardEditor_base.h
View file @
c1f6576f
...
@@ -15,17 +15,17 @@ class DIALOG_SHIM;
...
@@ -15,17 +15,17 @@ class DIALOG_SHIM;
#include "dialog_shim.h"
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/string.h>
#include <wx/
textctrl
.h>
#include <wx/
stattext
.h>
#include <wx/gdicmn.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/radiobox.h>
#include <wx/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/slider.h>
#include <wx/statbox.h>
#include <wx/choice.h>
#include <wx/choice.h>
#include <wx/statline.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/panel.h>
...
@@ -58,14 +58,17 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
...
@@ -58,14 +58,17 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
protected
:
protected
:
wxNotebook
*
m_NoteBook
;
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxPanel
*
m_PanelProperties
;
wxStaticText
*
m_staticTextRef
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxButton
*
m_button4
;
wxStaticText
*
m_staticTextVal
;
wxTextCtrl
*
m_ValueCtrl
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wxButton
*
m_button5
;
wxRadioBox
*
m_LayerCtrl
;
wxRadioBox
*
m_LayerCtrl
;
wxRadioBox
*
m_OrientCtrl
;
wxRadioBox
*
m_OrientCtrl
;
wxStaticText
*
m_staticText4
;
wxStaticText
*
m_staticText4
;
wxTextCtrl
*
m_OrientValue
;
wxTextCtrl
*
m_OrientValue
;
wxStaticText
*
m_staticTextPos
;
wxStaticText
*
m_XPosLabel
;
wxStaticText
*
m_XPosLabel
;
wxTextCtrl
*
m_ModPositionX
;
wxTextCtrl
*
m_ModPositionX
;
wxStaticText
*
m_XPosUnit
;
wxStaticText
*
m_XPosUnit
;
...
@@ -125,7 +128,7 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
...
@@ -125,7 +128,7 @@ class DIALOG_MODULE_BOARD_EDITOR_BASE : public DIALOG_SHIM
public
:
public
:
wxStaticBoxSizer
*
m_Sizer3DValues
;
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
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Module Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
499
,
56
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
~
DIALOG_MODULE_BOARD_EDITOR_BASE
();
};
};
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.cpp
View file @
c1f6576f
...
@@ -23,65 +23,66 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
...
@@ -23,65 +23,66 @@ DIALOG_MODULE_MODULE_EDITOR_BASE::DIALOG_MODULE_MODULE_EDITOR_BASE( wxWindow* pa
wxStaticBoxSizer
*
PropLeftSizer
;
wxStaticBoxSizer
*
PropLeftSizer
;
PropLeftSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Fields"
)
),
wxVERTICAL
);
PropLeftSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Fields"
)
),
wxVERTICAL
);
wxStaticBoxSizer
*
sbSizerDoc
;
m_staticTextDoc
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Doc"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizerDoc
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Doc"
)
),
wxHORIZONTAL
);
m_staticTextDoc
->
Wrap
(
-
1
);
PropLeftSizer
->
Add
(
m_staticTextDoc
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
sbSizerDoc
->
SetMinSize
(
wxSize
(
300
,
-
1
)
);
m_DocCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DocCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_DocCtrl
->
SetMaxLength
(
0
);
m_DocCtrl
->
SetMaxLength
(
0
);
sbSizerDoc
->
Add
(
m_DocCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
m_DocCtrl
,
0
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
|
wxEXPAND
,
5
);
m_staticTextKeywords
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Keywords"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
PropLeftSizer
->
Add
(
sbSizerDoc
,
0
,
wxEXPAND
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
m_staticTextKeywords
->
Wrap
(
-
1
);
PropLeftSizer
->
Add
(
m_staticTextKeywords
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
wxStaticBoxSizer
*
sbSizerKeysW
;
sbSizerKeysW
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Keywords"
)
),
wxHORIZONTAL
);
m_KeywordCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_KeywordCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_KeywordCtrl
->
SetMaxLength
(
0
);
m_KeywordCtrl
->
SetMaxLength
(
0
);
sbSizerKeysW
->
Add
(
m_KeywordCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
m_KeywordCtrl
,
0
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
|
wxEXPAND
,
5
);
PropLeftSizer
->
Add
(
sbSizerKeysW
,
0
,
wxEXPAND
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
m_staticTextRef
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Reference"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextRef
->
Wrap
(
-
1
);
PropLeftSizer
->
Add
(
m_staticTextRef
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
wx
StaticBoxSizer
*
s
bSizerRef
;
wx
BoxSizer
*
bSizerRef
;
sbSizerRef
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Reference"
)
),
wxHORIZONTAL
);
bSizerRef
=
new
wxBoxSizer
(
wxHORIZONTAL
);
m_ReferenceCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ReferenceCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ReferenceCtrl
->
SetMaxLength
(
0
);
m_ReferenceCtrl
->
SetMaxLength
(
0
);
s
bSizerRef
->
Add
(
m_ReferenceCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
bSizerRef
->
Add
(
m_ReferenceCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
m_button4
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
m_button4
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
s
bSizerRef
->
Add
(
m_button4
,
0
,
wxBOTTOM
|
wxRIGHT
,
5
);
bSizerRef
->
Add
(
m_button4
,
0
,
wxBOTTOM
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
sbSizerRef
,
0
,
wxEXPAND
|
wxLEFT
|
wxRIGHT
|
wxTOP
,
5
);
PropLeftSizer
->
Add
(
bSizerRef
,
0
,
wxEXPAND
,
5
);
wxStaticBoxSizer
*
sbSizerValue
;
m_staticTextVal
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Value"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizerValue
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Value"
)
),
wxHORIZONTAL
);
m_staticTextVal
->
Wrap
(
-
1
);
PropLeftSizer
->
Add
(
m_staticTextVal
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
wxBoxSizer
*
bSizerVal
;
bSizerVal
=
new
wxBoxSizer
(
wxHORIZONTAL
);
m_ValueCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ValueCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
wxTE_READONLY
);
m_ValueCtrl
->
SetMaxLength
(
0
);
m_ValueCtrl
->
SetMaxLength
(
0
);
sbSizerValue
->
Add
(
m_ValueCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
bSizerVal
->
Add
(
m_ValueCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
m_button5
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
m_button5
=
new
wxButton
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Edit"
),
wxDefaultPosition
,
wxDefaultSize
,
wxBU_EXACTFIT
);
sbSizerValue
->
Add
(
m_button5
,
0
,
wxBOTTOM
|
wxRIGHT
,
5
);
bSizerVal
->
Add
(
m_button5
,
0
,
wxBOTTOM
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
sbSizerValue
,
0
,
wxALL
|
wxEXPAND
,
5
);
PropLeftSizer
->
Add
(
bSizerVal
,
0
,
wxEXPAND
,
5
);
PropLeftSizer
->
Add
(
0
,
20
,
0
,
0
,
5
);
PropLeftSizer
->
Add
(
0
,
20
,
0
,
0
,
5
);
wxStaticBoxSizer
*
sbSizerFootprintName
;
m_staticTextFp
=
new
wxStaticText
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Footprint Name in Library"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
sbSizerFootprintName
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
m_PanelProperties
,
wxID_ANY
,
_
(
"Footprint Name in Library"
)
),
wxHORIZONTAL
);
m_staticTextFp
->
Wrap
(
-
1
);
PropLeftSizer
->
Add
(
m_staticTextFp
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_FootprintNameCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_FootprintNameCtrl
=
new
wxTextCtrl
(
m_PanelProperties
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_FootprintNameCtrl
->
SetMaxLength
(
0
);
m_FootprintNameCtrl
->
SetMaxLength
(
0
);
sbSizerFootprintName
->
Add
(
m_FootprintNameCtrl
,
1
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
m_FootprintNameCtrl
,
0
,
wxBOTTOM
|
wxLEFT
|
wxRIGHT
|
wxEXPAND
,
5
);
PropLeftSizer
->
Add
(
sbSizerFootprintName
,
0
,
wxEXPAND
|
wxLEFT
|
wxRIGHT
,
5
);
PropLeftSizer
->
Add
(
0
,
0
,
0
,
wxEXPAND
,
5
);
PropLeftSizer
->
Add
(
0
,
0
,
0
,
wxEXPAND
,
5
);
...
...
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.fbp
View file @
c1f6576f
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_edit_module_for_Modedit_base.h
View file @
c1f6576f
...
@@ -15,16 +15,16 @@ class DIALOG_SHIM;
...
@@ -15,16 +15,16 @@ class DIALOG_SHIM;
#include "dialog_shim.h"
#include "dialog_shim.h"
#include <wx/string.h>
#include <wx/string.h>
#include <wx/
textctrl
.h>
#include <wx/
stattext
.h>
#include <wx/gdicmn.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/settings.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/statbox.h>
#include <wx/button.h>
#include <wx/radiobox.h>
#include <wx/radiobox.h>
#include <wx/stattext.h>
#include <wx/slider.h>
#include <wx/slider.h>
#include <wx/statline.h>
#include <wx/statline.h>
#include <wx/panel.h>
#include <wx/panel.h>
...
@@ -53,12 +53,17 @@ class DIALOG_MODULE_MODULE_EDITOR_BASE : public DIALOG_SHIM
...
@@ -53,12 +53,17 @@ class DIALOG_MODULE_MODULE_EDITOR_BASE : public DIALOG_SHIM
protected
:
protected
:
wxNotebook
*
m_NoteBook
;
wxNotebook
*
m_NoteBook
;
wxPanel
*
m_PanelProperties
;
wxPanel
*
m_PanelProperties
;
wxStaticText
*
m_staticTextDoc
;
wxTextCtrl
*
m_DocCtrl
;
wxTextCtrl
*
m_DocCtrl
;
wxStaticText
*
m_staticTextKeywords
;
wxTextCtrl
*
m_KeywordCtrl
;
wxTextCtrl
*
m_KeywordCtrl
;
wxStaticText
*
m_staticTextRef
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxTextCtrl
*
m_ReferenceCtrl
;
wxButton
*
m_button4
;
wxButton
*
m_button4
;
wxStaticText
*
m_staticTextVal
;
wxTextCtrl
*
m_ValueCtrl
;
wxTextCtrl
*
m_ValueCtrl
;
wxButton
*
m_button5
;
wxButton
*
m_button5
;
wxStaticText
*
m_staticTextFp
;
wxTextCtrl
*
m_FootprintNameCtrl
;
wxTextCtrl
*
m_FootprintNameCtrl
;
wxRadioBox
*
m_AttributsCtrl
;
wxRadioBox
*
m_AttributsCtrl
;
wxRadioBox
*
m_AutoPlaceCtrl
;
wxRadioBox
*
m_AutoPlaceCtrl
;
...
...
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