Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cups-pdf-postprocess
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Radek Hušek
cups-pdf-postprocess
Commits
62d8f932
Commit
62d8f932
authored
7 years ago
by
Radek Hušek
Browse files
Options
Downloads
Patches
Plain Diff
add keyboard shortcuts
parent
faf7eb70
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cups-pdf-postprocess.py
+7
-7
7 additions, 7 deletions
cups-pdf-postprocess.py
with
7 additions
and
7 deletions
cups-pdf-postprocess.py
+
7
−
7
View file @
62d8f932
...
...
@@ -94,7 +94,7 @@ class CPP(QWidget):
return
s
hbox
=
QHBoxLayout
()
self
.
_crop
=
QCheckBox
(
'
Crop
'
,
self
)
self
.
_crop
=
QCheckBox
(
'
C
&
rop
'
,
self
)
hbox
.
addWidget
(
self
.
_crop
)
_vbox
=
QVBoxLayout
()
_vbox
.
addWidget
(
QLabel
(
"
Margins [mm]
"
))
...
...
@@ -113,7 +113,7 @@ class CPP(QWidget):
self
.
_crop
.
clicked
[
bool
].
connect
(
_crop_changed
)
hbox
=
QHBoxLayout
()
self
.
_compact
=
QCheckBox
(
'
Compact
'
,
self
)
self
.
_compact
=
QCheckBox
(
'
Co
&
mpact
'
,
self
)
self
.
_compact_copies
=
QSpinBox
(
self
)
self
.
_compact_copies
.
setMinimum
(
1
)
self
.
_compact_copies
.
setMaximum
(
1000
)
...
...
@@ -145,8 +145,8 @@ class CPP(QWidget):
self
.
_duplex
.
addItem
(
"
Long Edge
"
,
"
duplex=two-sided-long-edge
"
)
self
.
_duplex
.
addItem
(
"
Short Side
"
,
"
duplex=two-sided-long-edge
"
)
self
.
_duplex
.
setCurrentIndex
(
1
)
self
.
_pdfbook
=
QCheckBox
(
'
Use pdfbook
'
,
self
)
self
.
_staple
=
QCheckBox
(
'
Staple
'
,
self
)
self
.
_pdfbook
=
QCheckBox
(
'
Use pdf
&
book
'
,
self
)
self
.
_staple
=
QCheckBox
(
'
&
Staple
'
,
self
)
self
.
_staple
.
setEnabled
(
False
)
def
_pdfbook_changed
(
enabled
):
...
...
@@ -170,11 +170,11 @@ class CPP(QWidget):
self
.
_printer
=
o
hbox
=
QHBoxLayout
()
b_p
=
QPushButton
(
"
Print
"
,
self
)
b_p
=
QPushButton
(
"
&
Print
"
,
self
)
b_p
.
clicked
.
connect
(
self
.
print
)
hbox
.
addWidget
(
b_p
)
self
.
_button_print
=
b_p
b_c
=
QPushButton
(
"
Cancel
"
,
self
)
b_c
=
QPushButton
(
"
&
Cancel
"
,
self
)
b_c
.
clicked
.
connect
(
self
.
close
)
hbox
.
addWidget
(
b_c
)
self
.
_button_cancel
=
b_c
...
...
@@ -227,7 +227,7 @@ class CPP(QWidget):
pipeline
.
append
(
cmd
)
exec_pipeline
(
pipeline
,
self
.
_pdf
,
err_callback
=
logMsg
)
self
.
_button_cancel
.
setText
(
"
Close
"
)
self
.
_button_cancel
.
setText
(
"
&
Close
"
)
DIR
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
sys
.
argv
[
0
]))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment