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
25700d31
Commit
25700d31
authored
Nov 01, 2010
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed kicad.app linking, layer behaviour on OSX and toolbar behaviour
parent
8724386b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
wineda_toolbar.cpp
common/wineda_toolbar.cpp
+1
-1
CMakeLists.txt
kicad/CMakeLists.txt
+1
-1
layer_widget.cpp
pcbnew/layer_widget.cpp
+5
-2
No files found.
common/wineda_toolbar.cpp
View file @
25700d31
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
WinEDA_Toolbar
::
WinEDA_Toolbar
(
id_toolbar
type
,
wxWindow
*
parent
,
WinEDA_Toolbar
::
WinEDA_Toolbar
(
id_toolbar
type
,
wxWindow
*
parent
,
wxWindowID
id
,
bool
horizontal
)
:
wxWindowID
id
,
bool
horizontal
)
:
wxAuiToolBar
(
parent
,
id
,
wxDefaultPosition
,
wxDefaultSize
,
wxAuiToolBar
(
parent
,
id
,
wxDefaultPosition
,
wxDefaultSize
,
wxAUI_TB_DEFAULT_STYLE
|
wxAUI_TB_OVERFLOW
|
(
(
horizontal
)
?
wxAUI_TB_DEFAULT_STYLE
|
(
(
horizontal
)
?
wxAUI_TB_HORZ_LAYOUT
:
wxAUI_TB_HORZ_LAYOUT
:
wxAUI_TB_VERTICAL
)
)
wxAUI_TB_VERTICAL
)
)
{
{
...
...
kicad/CMakeLists.txt
View file @
25700d31
...
@@ -44,7 +44,7 @@ add_executable(kicad WIN32 MACOSX_BUNDLE
...
@@ -44,7 +44,7 @@ add_executable(kicad WIN32 MACOSX_BUNDLE
if
(
APPLE
)
if
(
APPLE
)
set_target_properties
(
kicad PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
set_target_properties
(
kicad PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/Info.plist
)
target_link_libraries
(
kicad common bitmaps
${
wxWidgets_LIBRARIES
}
)
target_link_libraries
(
kicad common bitmaps
kbool polygon
${
wxWidgets_LIBRARIES
}
)
else
(
APPLE
)
else
(
APPLE
)
target_link_libraries
(
kicad common bitmaps kbool polygon
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
target_link_libraries
(
kicad common bitmaps kbool polygon
${
wxWidgets_LIBRARIES
}
${
GDI_PLUS_LIBRARIES
}
)
endif
(
APPLE
)
endif
(
APPLE
)
...
...
pcbnew/layer_widget.cpp
View file @
25700d31
...
@@ -44,7 +44,6 @@
...
@@ -44,7 +44,6 @@
#define BUTT_SIZE_Y 18
#define BUTT_SIZE_Y 18
#define BUTT_VOID 4
#define BUTT_VOID 4
/* XPM */
/* XPM */
static
const
char
*
clear_xpm
[]
=
{
static
const
char
*
clear_xpm
[]
=
{
"10 14 1 1"
,
"10 14 1 1"
,
...
@@ -152,9 +151,13 @@ wxBitmapButton* LAYER_WIDGET::makeColorButton( wxWindow* aParent, int aColor, in
...
@@ -152,9 +151,13 @@ wxBitmapButton* LAYER_WIDGET::makeColorButton( wxWindow* aParent, int aColor, in
// then create a wxBitmapButton from it.
// then create a wxBitmapButton from it.
wxBitmap
bitmap
=
makeBitmap
(
aColor
);
wxBitmap
bitmap
=
makeBitmap
(
aColor
);
#ifndef __WXMAC__
wxBitmapButton
*
ret
=
new
wxBitmapButton
(
aParent
,
aID
,
bitmap
,
wxBitmapButton
*
ret
=
new
wxBitmapButton
(
aParent
,
aID
,
bitmap
,
wxDefaultPosition
,
wxSize
(
BUTT_SIZE_X
,
BUTT_SIZE_Y
),
wxBORDER_RAISED
);
wxDefaultPosition
,
wxSize
(
BUTT_SIZE_X
,
BUTT_SIZE_Y
),
wxBORDER_RAISED
);
#else
wxBitmapButton
*
ret
=
new
wxBitmapButton
(
aParent
,
aID
,
bitmap
,
wxDefaultPosition
,
wxSize
(
BUTT_SIZE_X
,
BUTT_SIZE_Y
));
#endif
// save the color value in the name, no where else to put it.
// save the color value in the name, no where else to put it.
ret
->
SetName
(
makeColorTxt
(
aColor
)
);
ret
->
SetName
(
makeColorTxt
(
aColor
)
);
return
ret
;
return
ret
;
...
...
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