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
51eaeccf
Commit
51eaeccf
authored
Aug 29, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pl_Editor: fix some minor issues.
parent
90029a4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
properties_frame_base.cpp
pagelayout_editor/dialogs/properties_frame_base.cpp
+4
-4
properties_frame_base.fbp
pagelayout_editor/dialogs/properties_frame_base.fbp
+5
-5
files.cpp
pagelayout_editor/files.cpp
+4
-0
No files found.
pagelayout_editor/dialogs/properties_frame_base.cpp
View file @
51eaeccf
...
@@ -15,7 +15,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
...
@@ -15,7 +15,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
bSizerpanel
=
new
wxBoxSizer
(
wxVERTICAL
);
bSizerpanel
=
new
wxBoxSizer
(
wxVERTICAL
);
m_notebook
=
new
wxNotebook
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_notebook
=
new
wxNotebook
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_swItemProperties
=
new
wxScrolledWindow
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
m_swItemProperties
=
new
wxScrolledWindow
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wx
TAB_TRAVERSAL
|
wx
VSCROLL
);
m_swItemProperties
->
SetScrollRate
(
5
,
5
);
m_swItemProperties
->
SetScrollRate
(
5
,
5
);
wxBoxSizer
*
bSizerMain
;
wxBoxSizer
*
bSizerMain
;
bSizerMain
=
new
wxBoxSizer
(
wxVERTICAL
);
bSizerMain
=
new
wxBoxSizer
(
wxVERTICAL
);
...
@@ -121,7 +121,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
...
@@ -121,7 +121,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
wxBoxSizer
*
bSizerTsizeX
;
wxBoxSizer
*
bSizerTsizeX
;
bSizerTsizeX
=
new
wxBoxSizer
(
wxVERTICAL
);
bSizerTsizeX
=
new
wxBoxSizer
(
wxVERTICAL
);
m_staticTexTsizeX
=
new
wxStaticText
(
m_swItemProperties
,
wxID_ANY
,
_
(
"Text
Height
(mm)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTexTsizeX
=
new
wxStaticText
(
m_swItemProperties
,
wxID_ANY
,
_
(
"Text
Width
(mm)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTexTsizeX
->
Wrap
(
-
1
);
m_staticTexTsizeX
->
Wrap
(
-
1
);
bSizerTsizeX
->
Add
(
m_staticTexTsizeX
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerTsizeX
->
Add
(
m_staticTexTsizeX
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
...
@@ -134,7 +134,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
...
@@ -134,7 +134,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
wxBoxSizer
*
bSizerTsizeY
;
wxBoxSizer
*
bSizerTsizeY
;
bSizerTsizeY
=
new
wxBoxSizer
(
wxVERTICAL
);
bSizerTsizeY
=
new
wxBoxSizer
(
wxVERTICAL
);
m_staticTextTsizeY
=
new
wxStaticText
(
m_swItemProperties
,
wxID_ANY
,
_
(
"Text
Width
(mm)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextTsizeY
=
new
wxStaticText
(
m_swItemProperties
,
wxID_ANY
,
_
(
"Text
Height
(mm)"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticTextTsizeY
->
Wrap
(
-
1
);
m_staticTextTsizeY
->
Wrap
(
-
1
);
bSizerTsizeY
->
Add
(
m_staticTextTsizeY
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerTsizeY
->
Add
(
m_staticTextTsizeY
,
0
,
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
...
@@ -436,7 +436,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
...
@@ -436,7 +436,7 @@ PANEL_PROPERTIES_BASE::PANEL_PROPERTIES_BASE( wxWindow* parent, wxWindowID id, c
m_swItemProperties
->
Layout
();
m_swItemProperties
->
Layout
();
bSizerMain
->
Fit
(
m_swItemProperties
);
bSizerMain
->
Fit
(
m_swItemProperties
);
m_notebook
->
AddPage
(
m_swItemProperties
,
_
(
"Item Properties"
),
true
);
m_notebook
->
AddPage
(
m_swItemProperties
,
_
(
"Item Properties"
),
true
);
m_swGeneralOpts
=
new
wxScrolledWindow
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wxVSCROLL
);
m_swGeneralOpts
=
new
wxScrolledWindow
(
m_notebook
,
wxID_ANY
,
wxDefaultPosition
,
wxDefaultSize
,
wxHSCROLL
|
wx
TAB_TRAVERSAL
|
wx
VSCROLL
);
m_swGeneralOpts
->
SetScrollRate
(
5
,
5
);
m_swGeneralOpts
->
SetScrollRate
(
5
,
5
);
wxBoxSizer
*
bSizerGeneralOpts
;
wxBoxSizer
*
bSizerGeneralOpts
;
bSizerGeneralOpts
=
new
wxBoxSizer
(
wxVERTICAL
);
bSizerGeneralOpts
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
pagelayout_editor/dialogs/properties_frame_base.fbp
View file @
51eaeccf
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
<property
name=
"bitmap"
></property>
<property
name=
"bitmap"
></property>
<property
name=
"label"
>
Item Properties
</property>
<property
name=
"label"
>
Item Properties
</property>
<property
name=
"select"
>
1
</property>
<property
name=
"select"
>
1
</property>
<object
class=
"wxScrolledWindow"
expanded=
"
0
"
>
<object
class=
"wxScrolledWindow"
expanded=
"
1
"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"LeftDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
<property
name=
"RightDockable"
>
1
</property>
...
@@ -219,7 +219,7 @@
...
@@ -219,7 +219,7 @@
<property
name=
"tooltip"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
>
wxHSCROLL|wxVSCROLL
</property>
<property
name=
"window_style"
>
wxHSCROLL|wx
TAB_TRAVERSAL|wx
VSCROLL
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnEraseBackground"
></event>
...
@@ -1491,7 +1491,7 @@
...
@@ -1491,7 +1491,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Text
Height
(mm)
</property>
<property
name=
"label"
>
Text
Width
(mm)
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
...
@@ -1676,7 +1676,7 @@
...
@@ -1676,7 +1676,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Text
Width
(mm)
</property>
<property
name=
"label"
>
Text
Height
(mm)
</property>
<property
name=
"max_size"
></property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"maximum_size"
></property>
...
@@ -5488,7 +5488,7 @@
...
@@ -5488,7 +5488,7 @@
<property
name=
"tooltip"
></property>
<property
name=
"tooltip"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_extra_style"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_name"
></property>
<property
name=
"window_style"
>
wxHSCROLL|wxVSCROLL
</property>
<property
name=
"window_style"
>
wxHSCROLL|wx
TAB_TRAVERSAL|wx
VSCROLL
</property>
<event
name=
"OnChar"
></event>
<event
name=
"OnChar"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEnterWindow"
></event>
<event
name=
"OnEraseBackground"
></event>
<event
name=
"OnEraseBackground"
></event>
...
...
pagelayout_editor/files.cpp
View file @
51eaeccf
...
@@ -185,6 +185,10 @@ void PL_EDITOR_FRAME::Files_io( wxCommandEvent& event )
...
@@ -185,6 +185,10 @@ void PL_EDITOR_FRAME::Files_io( wxCommandEvent& event )
return
;
return
;
filename
=
openFileDialog
.
GetPath
();
filename
=
openFileDialog
.
GetPath
();
// Ensure the file has the right extension:
wxFileName
fn
(
filename
);
fn
.
SetExt
(
PageLayoutDescrFileExtension
);
filename
=
fn
.
GetFullPath
();
if
(
!
SavePageLayoutDescrFile
(
filename
)
)
if
(
!
SavePageLayoutDescrFile
(
filename
)
)
{
{
wxString
msg
;
wxString
msg
;
...
...
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