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
3813e290
Commit
3813e290
authored
Feb 10, 2010
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
font size tweak, make sure layer_widget_test still compiles
parent
d64ab5d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
TODO.txt
TODO.txt
+1
-7
layer_widget.cpp
pcbnew/layer_widget.cpp
+18
-13
layer_widget.h
pcbnew/layer_widget.h
+1
-1
No files found.
TODO.txt
View file @
3813e290
...
@@ -91,7 +91,6 @@ P2) Write accessors for all items in PCB_VISIBLE such as grid control, so that
...
@@ -91,7 +91,6 @@ P2) Write accessors for all items in PCB_VISIBLE such as grid control, so that
* Fix DIALOG_PAD_PROPERTIES_BASE class to use actual layer names in the BOARD.
* Fix DIALOG_PAD_PROPERTIES_BASE class to use actual layer names in the BOARD.
* Use BOARD_ITEM::MenuIcon() in the onrightclick.cpp
* Use BOARD_ITEM::MenuIcon() in the onrightclick.cpp
* Document specctra round tripper, and fix the english translation of help.
* Add ARC support to gerber polygons.
* Add ARC support to gerber polygons.
* Need to add polygon aperture type.
* Need to add polygon aperture type.
Then example 2 in RS274xrevd_e.pdf will draw properly.
Then example 2 in RS274xrevd_e.pdf will draw properly.
...
@@ -108,15 +107,10 @@ L6) Test, and fix up any remaining issues with the PCB_VISIBLE support after P2)
...
@@ -108,15 +107,10 @@ L6) Test, and fix up any remaining issues with the PCB_VISIBLE support after P2)
all interested in the same setting, such as the two grid buttons which
all interested in the same setting, such as the two grid buttons which
have to remain synchronized. Using accessors makes this easy.
have to remain synchronized. Using accessors makes this easy.
L7) make the bitmapbutton a staticbitmap, and make its size dependent on
the point size.
L8) LAYER_WIDGET::GetBestSize() needs platform independence.
L8) LAYER_WIDGET::GetBestSize() needs platform independence.
L9) On board load, ReFill() is called, this should also update the Render
L9) On board load, ReFill() is called, this should also update the Render
checkboxes and colors. Will need to extend the widget API.
checkboxes and colors.
L10)still thinking about background colors, easier now without wxformbuilder.
Use wxDC for coordinate scaling and offsetting fix. (Wayne)
Use wxDC for coordinate scaling and offsetting fix. (Wayne)
...
...
pcbnew/layer_widget.cpp
View file @
3813e290
...
@@ -31,8 +31,6 @@
...
@@ -31,8 +31,6 @@
//#define STAND_ALONE 1 // define to enable test program for LAYER_WIDGET
//#define STAND_ALONE 1 // define to enable test program for LAYER_WIDGET
// also enable KICAD_AUIMANAGER and KICAD_AUITOOLBAR in ccmake to
// build this test program
#include "layer_widget.h"
#include "layer_widget.h"
...
@@ -40,7 +38,7 @@
...
@@ -40,7 +38,7 @@
#include "macros.h"
#include "macros.h"
#include "common.h"
#include "common.h"
#include "colors.h"
#include "colors.h"
#include <wx/colour.h>
#define BUTT_SIZE_X 20
#define BUTT_SIZE_X 20
#define BUTT_SIZE_Y 18
#define BUTT_SIZE_Y 18
...
@@ -429,20 +427,27 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, int aPoint
...
@@ -429,20 +427,27 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, int aPoint
wxWindowID
id
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
wxWindowID
id
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
wxPanel
(
aParent
,
id
,
pos
,
size
,
style
)
wxPanel
(
aParent
,
id
,
pos
,
size
,
style
)
{
{
m_PointSize
=
aPointSize
;
wxBoxSizer
*
boxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxBoxSizer
*
boxSizer
;
boxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_notebook
=
new
wxAuiNotebook
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxAUI_NB_TOP
);
m_notebook
=
new
wxAuiNotebook
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxAUI_NB_TOP
);
// change the font size on the notebook's tabs to match aPointSize
wxFont
font
=
m_notebook
->
GetFont
();
wxFont
font
=
m_notebook
->
GetFont
();
if
(
aPointSize
==
-
1
)
{
m_PointSize
=
font
.
GetPointSize
();
}
else
{
m_PointSize
=
aPointSize
;
// change the font size on the notebook's tabs to match aPointSize
font
.
SetPointSize
(
aPointSize
);
font
.
SetPointSize
(
aPointSize
);
m_notebook
->
SetFont
(
font
);
m_notebook
->
SetFont
(
font
);
m_notebook
->
SetNormalFont
(
font
);
m_notebook
->
SetNormalFont
(
font
);
m_notebook
->
SetSelectedFont
(
font
);
m_notebook
->
SetSelectedFont
(
font
);
m_notebook
->
SetMeasuringFont
(
font
);
m_notebook
->
SetMeasuringFont
(
font
);
}
m_LayerPanel
=
new
wxPanel
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
m_LayerPanel
=
new
wxPanel
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxTAB_TRAVERSAL
);
...
...
pcbnew/layer_widget.h
View file @
3813e290
...
@@ -191,7 +191,7 @@ public:
...
@@ -191,7 +191,7 @@ public:
* @param aFocusOwner is the window that should be sent the focus after
* @param aFocusOwner is the window that should be sent the focus after
* every operation.
* every operation.
*/
*/
LAYER_WIDGET
(
wxWindow
*
aParent
,
wxWindow
*
aFocusOwner
,
int
aPointSize
,
LAYER_WIDGET
(
wxWindow
*
aParent
,
wxWindow
*
aFocusOwner
,
int
aPointSize
=
-
1
,
wxWindowID
id
=
wxID_ANY
,
const
wxPoint
&
pos
=
wxDefaultPosition
,
wxWindowID
id
=
wxID_ANY
,
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxDefaultSize
,
long
style
=
wxTAB_TRAVERSAL
);
const
wxSize
&
size
=
wxDefaultSize
,
long
style
=
wxTAB_TRAVERSAL
);
...
...
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