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
b142b9de
Commit
b142b9de
authored
Jan 17, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set paper orientation into wxPrintData when possible
parent
5cf2d4fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
dialog_print_using_printer.cpp
gerbview/dialogs/dialog_print_using_printer.cpp
+5
-3
dialog_print_for_modedit.cpp
pcbnew/dialogs/dialog_print_for_modedit.cpp
+4
-2
dialog_print_using_printer.cpp
pcbnew/dialogs/dialog_print_using_printer.cpp
+3
-2
No files found.
gerbview/dialogs/dialog_print_using_printer.cpp
View file @
b142b9de
...
@@ -59,7 +59,7 @@ private:
...
@@ -59,7 +59,7 @@ private:
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnScaleSelectionClick
(
wxCommandEvent
&
event
);
void
OnScaleSelectionClick
(
wxCommandEvent
&
event
);
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
SetPrintParameters
(
);
void
SetPrintParameters
(
);
...
@@ -95,12 +95,14 @@ void GERBVIEW_FRAME::ToPrinter( wxCommandEvent& event )
...
@@ -95,12 +95,14 @@ void GERBVIEW_FRAME::ToPrinter( wxCommandEvent& event )
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
}
}
g_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
g_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
g_PrintData
->
SetOrientation
(
DEFAULT_ORIENTATION_PAPER
);
}
}
g_PrintData
->
SetOrientation
(
GetPageSettings
().
IsPortrait
()
?
wxPORTRAIT
:
wxLANDSCAPE
);
DIALOG_PRINT_USING_PRINTER
*
frame
=
new
DIALOG_PRINT_USING_PRINTER
(
this
);
DIALOG_PRINT_USING_PRINTER
*
frame
=
new
DIALOG_PRINT_USING_PRINTER
(
this
);
frame
->
ShowModal
();
frame
->
Destroy
();
frame
->
ShowModal
();
frame
->
Destroy
();
}
}
...
...
pcbnew/dialogs/dialog_print_for_modedit.cpp
View file @
b142b9de
...
@@ -70,12 +70,14 @@ void FOOTPRINT_EDIT_FRAME::ToPrinter( wxCommandEvent& event )
...
@@ -70,12 +70,14 @@ void FOOTPRINT_EDIT_FRAME::ToPrinter( wxCommandEvent& event )
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
}
}
s_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
s_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
s_PrintData
->
SetOrientation
(
DEFAULT_ORIENTATION_PAPER
);
}
}
s_PrintData
->
SetOrientation
(
GetPageSettings
().
IsPortrait
()
?
wxPORTRAIT
:
wxLANDSCAPE
);
DIALOG_PRINT_FOR_MODEDIT
*
frame
=
new
DIALOG_PRINT_FOR_MODEDIT
(
this
);
DIALOG_PRINT_FOR_MODEDIT
*
frame
=
new
DIALOG_PRINT_FOR_MODEDIT
(
this
);
frame
->
ShowModal
();
frame
->
Destroy
();
frame
->
ShowModal
();
frame
->
Destroy
();
}
}
/*************************************************************************************/
/*************************************************************************************/
...
...
pcbnew/dialogs/dialog_print_using_printer.cpp
View file @
b142b9de
...
@@ -64,7 +64,7 @@ private:
...
@@ -64,7 +64,7 @@ private:
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPageSetup
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintPreview
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnPrintButtonClick
(
wxCommandEvent
&
event
);
void
OnScaleSelectionClick
(
wxCommandEvent
&
event
);
void
OnScaleSelectionClick
(
wxCommandEvent
&
event
);
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
OnButtonCancelClick
(
wxCommandEvent
&
event
)
{
Close
();
}
void
SetPrintParameters
(
);
void
SetPrintParameters
(
);
...
@@ -105,9 +105,10 @@ void PCB_EDIT_FRAME::ToPrinter( wxCommandEvent& event )
...
@@ -105,9 +105,10 @@ void PCB_EDIT_FRAME::ToPrinter( wxCommandEvent& event )
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
DisplayError
(
this
,
_
(
"Error Init Printer info"
)
);
}
}
s_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
s_PrintData
->
SetQuality
(
wxPRINT_QUALITY_HIGH
);
// Default resolution = HIGHT;
s_PrintData
->
SetOrientation
(
DEFAULT_ORIENTATION_PAPER
);
}
}
s_PrintData
->
SetOrientation
(
GetPageSettings
().
IsPortrait
()
?
wxPORTRAIT
:
wxLANDSCAPE
);
DIALOG_PRINT_USING_PRINTER
*
frame
=
new
DIALOG_PRINT_USING_PRINTER
(
this
);
DIALOG_PRINT_USING_PRINTER
*
frame
=
new
DIALOG_PRINT_USING_PRINTER
(
this
);
frame
->
ShowModal
();
frame
->
Destroy
();
frame
->
ShowModal
();
frame
->
Destroy
();
...
...
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