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
816c1596
Commit
816c1596
authored
Jan 10, 2010
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
6c737bc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
layer_widget.cpp
pcbnew/layer_widget.cpp
+20
-6
No files found.
pcbnew/layer_widget.cpp
View file @
816c1596
...
@@ -76,7 +76,7 @@ static const char * rightarrow_xpm[] = {
...
@@ -76,7 +76,7 @@ static const char * rightarrow_xpm[] = {
"X c #8080ff"
,
"X c #8080ff"
,
"o c BLUE"
,
"o c BLUE"
,
"O c gray56"
,
"O c gray56"
,
"
. ..
"
,
"
.X
"
,
" .XX "
,
" .XX "
,
" .XXX "
,
" .XXX "
,
" .XXXX "
,
" .XXXX "
,
...
@@ -317,6 +317,9 @@ public:
...
@@ -317,6 +317,9 @@ public:
SelectLayerRow
(
1
);
SelectLayerRow
(
1
);
m_LayerScrolledWindow
->
FitInside
();
m_LayerScrolledWindow
->
SetMinSize
(
m_LayerScrolledWindow
->
GetSize
()
);
Fit
();
Fit
();
SetMinSize
(
GetSize
()
);
SetMinSize
(
GetSize
()
);
...
@@ -418,6 +421,9 @@ class MYFRAME : public wxFrame
...
@@ -418,6 +421,9 @@ class MYFRAME : public wxFrame
MYFRAME
*
frame
;
MYFRAME
*
frame
;
public
:
public
:
// your constructor could take a BOARD argument. here I leave it
// out because this source module wants to know nothing of BOARDs
// to maximize re-use.
MYLAYERS
(
wxWindow
*
aParent
,
MYFRAME
*
aFrame
)
:
MYLAYERS
(
wxWindow
*
aParent
,
MYFRAME
*
aFrame
)
:
LAYER_WIDGET
(
aParent
),
LAYER_WIDGET
(
aParent
),
frame
(
aFrame
)
frame
(
aFrame
)
...
@@ -438,14 +444,13 @@ class MYFRAME : public wxFrame
...
@@ -438,14 +444,13 @@ class MYFRAME : public wxFrame
public
:
public
:
MYFRAME
(
wxWindow
*
parent
)
:
wxFrame
(
parent
,
-
1
,
_
(
"wxAUI Test"
),
MYFRAME
(
wxWindow
*
parent
)
:
wxDefaultPosition
,
wxSize
(
800
,
600
)
,
wxFrame
(
parent
,
-
1
,
_
(
"wxAUI Test"
),
wxDefaultPosition
,
wxDEFAULT_FRAME_STYLE
)
wxSize
(
800
,
600
),
wxDEFAULT_FRAME_STYLE
)
{
{
// notify wxAUI which frame to use
// notify wxAUI which frame to use
m_mgr
.
SetManagedWindow
(
this
);
m_mgr
.
SetManagedWindow
(
this
);
// create several text controls
wxPanel
*
layerWidget
=
new
MYLAYERS
(
this
,
this
);
wxPanel
*
layerWidget
=
new
MYLAYERS
(
this
,
this
);
wxTextCtrl
*
text2
=
new
wxTextCtrl
(
this
,
-
1
,
_
(
"Pane 2 - sample text"
),
wxTextCtrl
*
text2
=
new
wxTextCtrl
(
this
,
-
1
,
_
(
"Pane 2 - sample text"
),
...
@@ -457,7 +462,16 @@ public:
...
@@ -457,7 +462,16 @@ public:
wxNO_BORDER
|
wxTE_MULTILINE
);
wxNO_BORDER
|
wxTE_MULTILINE
);
// add the panes to the manager
// add the panes to the manager
m_mgr
.
AddPane
(
layerWidget
,
wxLEFT
,
wxT
(
"Layer Visibility"
)
);
wxAuiPaneInfo
li
;
li
.
MinSize
(
ayerWidget
->
GetSize
()
);
// ignored on linux
li
.
BestSize
(
layerWidget
->
GetSize
()
);
li
.
Left
();
li
.
MaximizeButton
(
false
);
li
.
MinimizeButton
(
false
);
li
.
CloseButton
(
false
);
li
.
Caption
(
wxT
(
"Layers"
)
);
m_mgr
.
AddPane
(
layerWidget
,
li
);
m_mgr
.
AddPane
(
text2
,
wxBOTTOM
,
wxT
(
"Pane Number Two"
)
);
m_mgr
.
AddPane
(
text2
,
wxBOTTOM
,
wxT
(
"Pane Number Two"
)
);
m_mgr
.
AddPane
(
text3
,
wxCENTER
);
m_mgr
.
AddPane
(
text3
,
wxCENTER
);
...
...
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