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
Hide 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[] = {
"X c #8080ff"
,
"o c BLUE"
,
"O c gray56"
,
"
. ..
"
,
"
.X
"
,
" .XX "
,
" .XXX "
,
" .XXXX "
,
...
...
@@ -317,6 +317,9 @@ public:
SelectLayerRow
(
1
);
m_LayerScrolledWindow
->
FitInside
();
m_LayerScrolledWindow
->
SetMinSize
(
m_LayerScrolledWindow
->
GetSize
()
);
Fit
();
SetMinSize
(
GetSize
()
);
...
...
@@ -418,6 +421,9 @@ class MYFRAME : public wxFrame
MYFRAME
*
frame
;
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
)
:
LAYER_WIDGET
(
aParent
),
frame
(
aFrame
)
...
...
@@ -438,14 +444,13 @@ class MYFRAME : public wxFrame
public
:
MYFRAME
(
wxWindow
*
parent
)
:
wxFrame
(
parent
,
-
1
,
_
(
"wxAUI Test"
),
wxDefaultPosition
,
wxSize
(
800
,
600
)
,
wxDEFAULT_FRAME_STYLE
)
MYFRAME
(
wxWindow
*
parent
)
:
wxFrame
(
parent
,
-
1
,
_
(
"wxAUI Test"
),
wxDefaultPosition
,
wxSize
(
800
,
600
),
wxDEFAULT_FRAME_STYLE
)
{
// notify wxAUI which frame to use
m_mgr
.
SetManagedWindow
(
this
);
// create several text controls
wxPanel
*
layerWidget
=
new
MYLAYERS
(
this
,
this
);
wxTextCtrl
*
text2
=
new
wxTextCtrl
(
this
,
-
1
,
_
(
"Pane 2 - sample text"
),
...
...
@@ -457,7 +462,16 @@ public:
wxNO_BORDER
|
wxTE_MULTILINE
);
// 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
(
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