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
b275d34d
Commit
b275d34d
authored
Dec 21, 2009
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove AddChild()
parent
f52d03fb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
38 deletions
+94
-38
dialog_layers_setup.cpp
pcbnew/dialog_layers_setup.cpp
+5
-7
dialog_layers_setup_base.cpp
pcbnew/dialog_layers_setup_base.cpp
+59
-1
dialog_layers_setup_base.fbp
pcbnew/dialog_layers_setup_base.fbp
+30
-30
No files found.
pcbnew/dialog_layers_setup.cpp
View file @
b275d34d
...
...
@@ -128,7 +128,6 @@ private:
wxSize
txtz
;
txtz
=
m_NameStaticText
->
GetSize
();
// m_NameStaticText->Move( 0, 5 );
m_NameStaticText
->
Move
(
offset
+
(
widths
[
0
]
-
txtz
.
x
)
/
2
,
5
);
offset
+=
widths
[
0
];
...
...
@@ -265,15 +264,14 @@ DIALOG_LAYERS_SETUP::DIALOG_LAYERS_SETUP( WinEDA_PcbFrame* parent ) :
// these 3 controls are handled outside wxformbuilder so that we can add
// them without a sizer. Then we position them manually based on the column
// widths from m_LayerListFexGridSizer->GetColWidths()
m_NameStaticText
=
new
wxStaticText
(
m_TitlePanel
,
-
1
,
_
(
"Name"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TitlePanel
->
AddChild
(
m_NameStaticText
);
m_NameStaticText
=
new
wxStaticText
(
m_TitlePanel
,
wxID_ANY
,
_
(
"Name"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_EnabledStaticText
=
new
wxStaticText
(
m_TitlePanel
,
-
1
,
_
(
"Enabled"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TitlePanel
->
AddChild
(
m_NameStaticText
);
m_EnabledStaticText
=
new
wxStaticText
(
m_TitlePanel
,
wxID_ANY
,
_
(
"Enabled"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TypeStaticText
=
new
wxStaticText
(
m_TitlePanel
,
-
1
,
_
(
"Type"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_TitlePanel
->
AddChild
(
m_TypeStaticText
);
m_TypeStaticText
=
new
wxStaticText
(
m_TitlePanel
,
wxID_ANY
,
_
(
"Type"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
// set the height of the title panel to be the size of any wxStaticText object
// plus 10 so we can have a border of 5 on both top and bottom.
m_TitlePanel
->
SetMinSize
(
wxSize
(
-
1
,
m_AdhesFrontName
->
GetSize
().
y
+
10
)
);
Layout
();
...
...
pcbnew/dialog_layers_setup_base.cpp
View file @
b275d34d
This diff is collapsed.
Click to expand it.
pcbnew/dialog_layers_setup_base.fbp
View file @
b275d34d
This diff is collapsed.
Click to expand it.
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