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
c9b27ee7
Commit
c9b27ee7
authored
Feb 01, 2011
by
Marco Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tune pcbnew plot dialog layout.
parent
7bd85a39
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4520 additions
and
3190 deletions
+4520
-3190
dialog_plot_base.cpp
pcbnew/dialogs/dialog_plot_base.cpp
+359
-345
dialog_plot_base.fbp
pcbnew/dialogs/dialog_plot_base.fbp
+4025
-2734
dialog_plot_base.h
pcbnew/dialogs/dialog_plot_base.h
+116
-111
pcbplot.cpp
pcbnew/pcbplot.cpp
+20
-0
No files found.
pcbnew/dialogs/dialog_plot_base.cpp
View file @
c9b27ee7
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_plot_base.fbp
View file @
c9b27ee7
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_plot_base.h
View file @
c9b27ee7
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Sep 8 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_plot_base__
#define __dialog_plot_base__
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/radiobox.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/sizer.h>
#include <wx/statbox.h>
#include <wx/checkbox.h>
#include <wx/stattext.h>
#include <wx/choice.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_PLOT_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_PLOT_BASE
:
public
wxDialog
{
private
:
protected
:
enum
{
ID_ALLOW_PRINT_PAD_ON_SILKSCREEN
=
1000
,
ID_PRINT_REF
,
ID_MIROR_OPT
,
ID_SAVE_OPT_PLOT
,
ID_CREATE_DRILL_FILE
,
};
wxRadioBox
*
m_plotFormatOpt
;
wxStaticBoxSizer
*
m_CopperLayersBoxSizer
;
wxStaticBoxSizer
*
m_TechnicalLayersBoxSizer
;
wxCheckBox
*
m_plotSheetRef
;
wxCheckBox
*
m_plotPads_on_Silkscreen
;
wxCheckBox
*
m_plotModuleValueOpt
;
wxCheckBox
*
m_plotModuleRefOpt
;
wxCheckBox
*
m_plotTextOther
;
wxCheckBox
*
m_plotInvisibleText
;
wxCheckBox
*
m_plotNoViaOnMaskOpt
;
wxCheckBox
*
m_plotMirrorOpt
;
wxStaticText
*
m_staticText11
;
wxChoice
*
m_drillShapeOpt
;
wxStaticText
*
m_staticText12
;
wxChoice
*
m_scaleOpt
;
wxStaticText
*
m_staticText13
;
wxChoice
*
m_plotModeOpt
;
wxStaticText
*
m_textDefaultPenSize
;
wxTextCtrl
*
m_linesWidth
;
wxCheckBox
*
m_useGerberExtensions
;
wxCheckBox
*
m_excludeEdgeLayerOpt
;
wxCheckBox
*
m_subtractMaskFromSilk
;
wxCheckBox
*
m_useAuxOriginCheckBox
;
wxStaticText
*
m_textPenSize
;
wxTextCtrl
*
m_HPGLPenSizeOpt
;
wxStaticText
*
m_textPenOvr
;
wxTextCtrl
*
m_HPGLPenOverlayOpt
;
wxStaticText
*
m_textPenSpeed
;
wxTextCtrl
*
m_HPGLPenSpeedOpt
;
wxStaticText
*
m_staticText7
;
wxTextCtrl
*
m_fineAdjustXscaleOpt
;
wxStaticText
*
m_staticText8
;
wxTextCtrl
*
m_fineAdjustYscaleOpt
;
wxCheckBox
*
m_plotPSNegativeOpt
;
wxStaticText
*
m_staticTextDir
;
wxTextCtrl
*
m_outputDirectoryName
;
wxButton
*
m_browseButton
;
wxStaticText
*
m_staticText2
;
wxTextCtrl
*
m_messagesBox
;
wxButton
*
m_plotButton
;
wxButton
*
m_buttonSaveOpt
;
wxButton
*
m_buttonDrill
;
wxButton
*
m_buttonQuit
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnCloseWindow
(
wxCloseEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnInitDialog
(
wxInitDialogEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
SetPlotFormat
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnSetScaleOpt
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOutputDirectoryBrowseClicked
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Plot
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
applyPlotSettings
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
CreateDrillFile
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnQuit
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
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
();
};
#endif //__dialog_plot_base__
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Nov 18 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __dialog_plot_base__
#define __dialog_plot_base__
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/stattext.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/choice.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
#include <wx/button.h>
#include <wx/statbox.h>
#include <wx/checkbox.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_PLOT_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_PLOT_BASE
:
public
wxDialog
{
private
:
protected
:
enum
{
ID_ALLOW_PRINT_PAD_ON_SILKSCREEN
=
1000
,
ID_PRINT_REF
,
ID_MIROR_OPT
,
ID_SAVE_OPT_PLOT
,
ID_CREATE_DRILL_FILE
,
};
wxBoxSizer
*
m_MainSizer
;
wxStaticText
*
m_staticText121
;
wxChoice
*
m_plotFormatOpt
;
wxStaticText
*
m_staticTextDir
;
wxTextCtrl
*
m_outputDirectoryName
;
wxButton
*
m_browseButton
;
wxStaticBoxSizer
*
m_CopperLayersBoxSizer
;
wxStaticBoxSizer
*
m_TechnicalLayersBoxSizer
;
wxBoxSizer
*
m_PlotOptionsSizer
;
wxCheckBox
*
m_plotSheetRef
;
wxCheckBox
*
m_plotPads_on_Silkscreen
;
wxCheckBox
*
m_plotModuleValueOpt
;
wxCheckBox
*
m_plotModuleRefOpt
;
wxCheckBox
*
m_plotTextOther
;
wxCheckBox
*
m_plotInvisibleText
;
wxCheckBox
*
m_plotNoViaOnMaskOpt
;
wxCheckBox
*
m_plotMirrorOpt
;
wxStaticText
*
m_staticText11
;
wxChoice
*
m_drillShapeOpt
;
wxStaticText
*
m_staticText12
;
wxChoice
*
m_scaleOpt
;
wxStaticText
*
m_staticText13
;
wxChoice
*
m_plotModeOpt
;
wxStaticText
*
m_textDefaultPenSize
;
wxTextCtrl
*
m_linesWidth
;
wxStaticBoxSizer
*
m_GerberOptionsSizer
;
wxCheckBox
*
m_useGerberExtensions
;
wxCheckBox
*
m_excludeEdgeLayerOpt
;
wxCheckBox
*
m_subtractMaskFromSilk
;
wxCheckBox
*
m_useAuxOriginCheckBox
;
wxStaticBoxSizer
*
m_HPGLOptionsSizer
;
wxStaticText
*
m_textPenSize
;
wxTextCtrl
*
m_HPGLPenSizeOpt
;
wxStaticText
*
m_textPenOvr
;
wxTextCtrl
*
m_HPGLPenOverlayOpt
;
wxStaticText
*
m_textPenSpeed
;
wxTextCtrl
*
m_HPGLPenSpeedOpt
;
wxStaticBoxSizer
*
m_PSOptionsSizer
;
wxStaticText
*
m_staticText7
;
wxTextCtrl
*
m_fineAdjustXscaleOpt
;
wxStaticText
*
m_staticText8
;
wxTextCtrl
*
m_fineAdjustYscaleOpt
;
wxCheckBox
*
m_plotPSNegativeOpt
;
wxStaticText
*
m_staticText2
;
wxTextCtrl
*
m_messagesBox
;
wxButton
*
m_plotButton
;
wxButton
*
m_buttonSaveOpt
;
wxButton
*
m_buttonDrill
;
wxButton
*
m_buttonQuit
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnCloseWindow
(
wxCloseEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnInitDialog
(
wxInitDialogEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
SetPlotFormat
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnOutputDirectoryBrowseClicked
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnSetScaleOpt
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
Plot
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
applyPlotSettings
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
CreateDrillFile
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
virtual
void
OnQuit
(
wxCommandEvent
&
event
)
{
event
.
Skip
();
}
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
();
};
#endif //__dialog_plot_base__
pcbnew/pcbplot.cpp
View file @
c9b27ee7
...
...
@@ -336,6 +336,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
m_fineAdjustXscaleOpt
->
Enable
(
true
);
m_fineAdjustYscaleOpt
->
Enable
(
true
);
m_plotPSNegativeOpt
->
Enable
(
true
);
m_PlotOptionsSizer
->
Hide
(
m_GerberOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_HPGLOptionsSizer
);
m_PlotOptionsSizer
->
Show
(
m_PSOptionsSizer
);
Layout
();
m_MainSizer
->
SetSizeHints
(
this
);
break
;
case
PLOT_FORMAT_GERBER
:
...
...
@@ -358,6 +363,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
m_fineAdjustYscaleOpt
->
Enable
(
false
);
m_plotPSNegativeOpt
->
SetValue
(
false
);
m_plotPSNegativeOpt
->
Enable
(
false
);
m_PlotOptionsSizer
->
Show
(
m_GerberOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_HPGLOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_PSOptionsSizer
);
Layout
();
m_MainSizer
->
SetSizeHints
(
this
);
break
;
case
PLOT_FORMAT_HPGL
:
...
...
@@ -378,6 +388,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
m_fineAdjustYscaleOpt
->
Enable
(
false
);
m_plotPSNegativeOpt
->
SetValue
(
false
);
m_plotPSNegativeOpt
->
Enable
(
false
);
m_PlotOptionsSizer
->
Hide
(
m_GerberOptionsSizer
);
m_PlotOptionsSizer
->
Show
(
m_HPGLOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_PSOptionsSizer
);
Layout
();
m_MainSizer
->
SetSizeHints
(
this
);
break
;
case
PLOT_FORMAT_DXF
:
...
...
@@ -400,6 +415,11 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
m_fineAdjustYscaleOpt
->
Enable
(
false
);
m_plotPSNegativeOpt
->
SetValue
(
false
);
m_plotPSNegativeOpt
->
Enable
(
false
);
m_PlotOptionsSizer
->
Hide
(
m_GerberOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_HPGLOptionsSizer
);
m_PlotOptionsSizer
->
Hide
(
m_PSOptionsSizer
);
Layout
();
m_MainSizer
->
SetSizeHints
(
this
);
break
;
}
}
...
...
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