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
6964a4b6
Commit
6964a4b6
authored
Dec 11, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI policy fixes
parent
99ee5507
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
32 deletions
+31
-32
dialog_plot_base.cpp
pcbnew/dialogs/dialog_plot_base.cpp
+12
-13
dialog_plot_base.fbp
pcbnew/dialogs/dialog_plot_base.fbp
+18
-18
dialog_plot_base.h
pcbnew/dialogs/dialog_plot_base.h
+1
-1
No files found.
pcbnew/dialogs/dialog_plot_base.cpp
View file @
6964a4b6
...
...
@@ -79,11 +79,11 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
wxBoxSizer
*
bPlotOptionsSizer
;
bPlotOptionsSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxString
m_drillShapeOptChoices
[]
=
{
_
(
"No drill mark"
),
_
(
"Small mark"
),
_
(
"
Real drill
"
)
};
wxString
m_drillShapeOptChoices
[]
=
{
_
(
"No drill mark"
),
_
(
"Small mark"
),
_
(
"
Actual hole
"
)
};
int
m_drillShapeOptNChoices
=
sizeof
(
m_drillShapeOptChoices
)
/
sizeof
(
wxString
);
m_drillShapeOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"
Pads Drill Opt
"
),
wxDefaultPosition
,
wxDefaultSize
,
m_drillShapeOptNChoices
,
m_drillShapeOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_drillShapeOpt
->
SetSelection
(
1
);
bPlotOptionsSizer
->
Add
(
m_drillShapeOpt
,
0
,
wxEXPAND
|
wx
ALL
,
5
);
m_drillShapeOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"
Holes Options
"
),
wxDefaultPosition
,
wxDefaultSize
,
m_drillShapeOptNChoices
,
m_drillShapeOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_drillShapeOpt
->
SetSelection
(
2
);
bPlotOptionsSizer
->
Add
(
m_drillShapeOpt
,
0
,
wxEXPAND
|
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
wxString
m_scaleOptChoices
[]
=
{
_
(
"Auto scale"
),
_
(
"Scale 1"
),
_
(
"Scale 1.5"
),
_
(
"Scale 2"
),
_
(
"Scale 3"
)
};
int
m_scaleOptNChoices
=
sizeof
(
m_scaleOptChoices
)
/
sizeof
(
wxString
);
...
...
@@ -103,16 +103,16 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_choicePlotOffset
->
SetSelection
(
0
);
bPlotOptionsSizer
->
Add
(
m_choicePlotOffset
,
0
,
wxALL
|
wxEXPAND
,
5
);
bUpperSizer
->
Add
(
bPlotOptionsSizer
,
1
,
0
,
5
);
bUpperSizer
->
Add
(
bPlotOptionsSizer
,
0
,
wxEXPAND
,
5
);
wxBoxSizer
*
bSizerFmtPlot
;
bSizerFmtPlot
=
new
wxBoxSizer
(
wxVERTICAL
);
wxString
m_plotFormatOptChoices
[]
=
{
_
(
"HPGL"
),
_
(
"Gerber"
),
_
(
"Postscript"
),
_
(
"Postscript A4"
),
_
(
"DXF
E
xport"
)
};
wxString
m_plotFormatOptChoices
[]
=
{
_
(
"HPGL"
),
_
(
"Gerber"
),
_
(
"Postscript"
),
_
(
"Postscript A4"
),
_
(
"DXF
e
xport"
)
};
int
m_plotFormatOptNChoices
=
sizeof
(
m_plotFormatOptChoices
)
/
sizeof
(
wxString
);
m_plotFormatOpt
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Plot Format"
),
wxDefaultPosition
,
wxDefaultSize
,
m_plotFormatOptNChoices
,
m_plotFormatOptChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_plotFormatOpt
->
SetSelection
(
1
);
bSizerFmtPlot
->
Add
(
m_plotFormatOpt
,
0
,
wx
ALL
|
wxEXPAND
,
5
);
m_plotFormatOpt
->
SetSelection
(
4
);
bSizerFmtPlot
->
Add
(
m_plotFormatOpt
,
0
,
wx
EXPAND
|
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
wxStaticBoxSizer
*
m_HPGL_OptionsBox
;
m_HPGL_OptionsBox
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"HPGL Options:"
)
),
wxVERTICAL
);
...
...
@@ -144,7 +144,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
bSizerFmtPlot
->
Add
(
m_HPGL_OptionsBox
,
0
,
wxEXPAND
,
5
);
bUpperSizer
->
Add
(
bSizerFmtPlot
,
1
,
0
,
5
);
bUpperSizer
->
Add
(
bSizerFmtPlot
,
0
,
wxEXPAND
,
5
);
wxBoxSizer
*
bButtonsSizer
;
bButtonsSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
@@ -163,7 +163,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
sbSizerPlotOpt
->
Add
(
m_plotNoViaOnMaskOpt
,
0
,
wxALL
,
5
);
bButtonsSizer
->
Add
(
sbSizerPlotOpt
,
0
,
wxEXPAND
|
wx
ALL
,
5
);
bButtonsSizer
->
Add
(
sbSizerPlotOpt
,
0
,
wxEXPAND
|
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
m_staticText6
=
new
wxStaticText
(
this
,
wxID_ANY
,
_
(
"Default pen size"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText6
->
Wrap
(
-
1
);
...
...
@@ -209,7 +209,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_buttonQuit
=
new
wxButton
(
this
,
wxID_CANCEL
,
_
(
"Quit"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bButtonsSizer
->
Add
(
m_buttonQuit
,
0
,
wxALL
|
wxALIGN_CENTER_HORIZONTAL
|
wxEXPAND
,
5
);
bUpperSizer
->
Add
(
bButtonsSizer
,
1
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
,
5
);
bUpperSizer
->
Add
(
bButtonsSizer
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxEXPAND
,
5
);
bMainSizer
->
Add
(
bUpperSizer
,
0
,
wxEXPAND
,
5
);
...
...
@@ -229,7 +229,7 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
m_browseButton
=
new
wxButton
(
this
,
wxID_ANY
,
_
(
"Browse..."
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
bSizerDirNmae
->
Add
(
m_browseButton
,
0
,
wxRIGHT
|
wxLEFT
,
5
);
bSizerDirChoice
->
Add
(
bSizerDirNmae
,
1
,
wxEXPAND
|
wxRIGHT
,
5
);
bSizerDirChoice
->
Add
(
bSizerDirNmae
,
0
,
wxRIGHT
|
wxEXPAND
,
5
);
bMainSizer
->
Add
(
bSizerDirChoice
,
0
,
wxEXPAND
,
5
);
...
...
@@ -244,7 +244,6 @@ DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxStr
this
->
SetSizer
(
bMainSizer
);
this
->
Layout
();
bMainSizer
->
Fit
(
this
);
// Connect Events
this
->
Connect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
DIALOG_PLOT_BASE
::
OnCloseWindow
)
);
...
...
pcbnew/dialogs/dialog_plot_base.fbp
View file @
6964a4b6
...
...
@@ -37,7 +37,7 @@
<property
name=
"minimum_size"
>
-1,350
</property>
<property
name=
"name"
>
DIALOG_PLOT_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
-1,-1
</property>
<property
name=
"size"
>
571,616
</property>
<property
name=
"style"
>
wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
</property>
<property
name=
"subclass"
></property>
<property
name=
"title"
>
Plot
</property>
...
...
@@ -661,8 +661,8 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
></property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bPlotOptionsSizer
</property>
...
...
@@ -670,11 +670,11 @@
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wx
ALL
</property>
<property
name=
"flag"
>
wxEXPAND|wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"bg"
></property>
<property
name=
"choices"
>
"
No drill mark
"
"
Small mark
"
"
Real drill
"
</property>
<property
name=
"choices"
>
"
No drill mark
"
"
Small mark
"
"
Actual hole
"
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"enabled"
>
1
</property>
...
...
@@ -682,14 +682,14 @@
<property
name=
"font"
></property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Pads Drill Opt
</property>
<property
name=
"label"
>
Holes Options
</property>
<property
name=
"majorDimension"
>
1
</property>
<property
name=
"maximum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
m_drillShapeOpt
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"selection"
>
1
</property>
<property
name=
"selection"
>
2
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxRA_SPECIFY_COLS
</property>
<property
name=
"subclass"
></property>
...
...
@@ -908,8 +908,8 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
></property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bSizerFmtPlot
</property>
...
...
@@ -917,11 +917,11 @@
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
ALL|wxEXPAND
</property>
<property
name=
"flag"
>
wx
EXPAND|wxBOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"bg"
></property>
<property
name=
"choices"
>
"
HPGL
"
"
Gerber
"
"
Postscript
"
"
Postscript A4
"
"
DXF
E
xport
"
</property>
<property
name=
"choices"
>
"
HPGL
"
"
Gerber
"
"
Postscript
"
"
Postscript A4
"
"
DXF
e
xport
"
</property>
<property
name=
"context_help"
></property>
<property
name=
"context_menu"
>
1
</property>
<property
name=
"enabled"
>
1
</property>
...
...
@@ -936,7 +936,7 @@
<property
name=
"name"
>
m_plotFormatOpt
</property>
<property
name=
"permission"
>
protected
</property>
<property
name=
"pos"
></property>
<property
name=
"selection"
>
1
</property>
<property
name=
"selection"
>
4
</property>
<property
name=
"size"
></property>
<property
name=
"style"
>
wxRA_SPECIFY_COLS
</property>
<property
name=
"subclass"
></property>
...
...
@@ -1338,18 +1338,18 @@
</object>
</object>
</object>
<object
class=
"sizeritem"
expanded=
"
0
"
>
<object
class=
"sizeritem"
expanded=
"
1
"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxALIGN_CENTER_VERTICAL|wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"
0
"
>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"
1
"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bButtonsSizer
</property>
<property
name=
"orient"
>
wxVERTICAL
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wx
ALL
</property>
<property
name=
"flag"
>
wxEXPAND|wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"0"
>
<property
name=
"id"
>
wxID_ANY
</property>
...
...
@@ -2199,8 +2199,8 @@
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
EXPAND|wxRIGHT
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"flag"
>
wx
RIGHT|wxEXPAND
</property>
<property
name=
"proportion"
>
0
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bSizerDirNmae
</property>
...
...
pcbnew/dialogs/dialog_plot_base.h
View file @
6964a4b6
...
...
@@ -99,7 +99,7 @@ class DIALOG_PLOT_BASE : public wxDialog
public
:
DIALOG_PLOT_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Plot"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_PLOT_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Plot"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
571
,
616
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_PLOT_BASE
();
};
...
...
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