|
def | __init__ (self, printer, mainwindow, parent=None, flags=QtCore.Qt.WindowFlags()) |
|
def | showEvent (self, event) |
|
def | addMainLayout (self) |
| Creates the main (central) layout for controls. More...
|
|
def | update_controls (self) |
|
def | update_page_size (self) |
|
def | update_margins (self) |
|
def | write_settings (self) |
|
def | on_combo_page_size (self, index) |
|
def | on_combo_view (self, index) |
|
def | on_combo_layout (self, index) |
|
def | on_btn_fit_width (self) |
|
def | on_btn_fit_all (self) |
|
def | on_combo_color (self, index) |
|
def | on_zoom_changed (self, value) |
|
def | on_margins_changed (self, text) |
|
def | on_btn_settings (self) |
|
def | __init__ (self, geometry=None, title=None, icon=None, parent=None, flags=QtCore.Qt.WindowFlags(), sizepolicy=QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)) |
| Constructor. More...
|
|
def | initUI (self, geometry=None, title=None, icon=None) |
| Creates the core controls: OK and Cancel buttons and layouts. More...
|
|
def | validate (self) |
| Validates user input (reimplemented in child classes). More...
|
|
def | on_btn_OK_clicked (self) |
| Fires when the OK button is clicked. More...
|
|
def | on_btn_cancel_clicked (self) |
| Fires when the Cancel button is clicked: rejects input and closes window. More...
|
|
◆ __init__()
def pycross.forms.PrintPreviewDialog.__init__ |
( |
|
self, |
|
|
|
printer, |
|
|
|
mainwindow, |
|
|
|
parent = None , |
|
|
|
flags = QtCore.Qt.WindowFlags() |
|
) |
| |
◆ _make_labelled_widgets()
def pycross.forms.PrintPreviewDialog._make_labelled_widgets |
( |
|
self, |
|
|
|
name, |
|
|
|
label, |
|
|
|
widgets |
|
) |
| |
|
private |
◆ addMainLayout()
def pycross.forms.PrintPreviewDialog.addMainLayout |
( |
|
self | ) |
|
Creates the main (central) layout for controls.
Must be overridden by child classes to change the layout type (default = QtWidgets.QFormLayout
) and add controls.
Reimplemented from pycross.forms.BasicDialog.
◆ on_btn_fit_all()
def pycross.forms.PrintPreviewDialog.on_btn_fit_all |
( |
|
self | ) |
|
◆ on_btn_fit_width()
def pycross.forms.PrintPreviewDialog.on_btn_fit_width |
( |
|
self | ) |
|
◆ on_btn_settings()
def pycross.forms.PrintPreviewDialog.on_btn_settings |
( |
|
self | ) |
|
◆ on_combo_color()
def pycross.forms.PrintPreviewDialog.on_combo_color |
( |
|
self, |
|
|
|
index |
|
) |
| |
◆ on_combo_layout()
def pycross.forms.PrintPreviewDialog.on_combo_layout |
( |
|
self, |
|
|
|
index |
|
) |
| |
◆ on_combo_page_size()
def pycross.forms.PrintPreviewDialog.on_combo_page_size |
( |
|
self, |
|
|
|
index |
|
) |
| |
◆ on_combo_view()
def pycross.forms.PrintPreviewDialog.on_combo_view |
( |
|
self, |
|
|
|
index |
|
) |
| |
◆ on_margins_changed()
def pycross.forms.PrintPreviewDialog.on_margins_changed |
( |
|
self, |
|
|
|
text |
|
) |
| |
◆ on_zoom_changed()
def pycross.forms.PrintPreviewDialog.on_zoom_changed |
( |
|
self, |
|
|
|
value |
|
) |
| |
◆ showEvent()
def pycross.forms.PrintPreviewDialog.showEvent |
( |
|
self, |
|
|
|
event |
|
) |
| |
◆ update_controls()
def pycross.forms.PrintPreviewDialog.update_controls |
( |
|
self | ) |
|
Updates the printer settings from CWSettings and
updates the controls in toolbar and preview according to current
printer settings.
◆ update_margins()
def pycross.forms.PrintPreviewDialog.update_margins |
( |
|
self | ) |
|
◆ update_page_size()
def pycross.forms.PrintPreviewDialog.update_page_size |
( |
|
self | ) |
|
◆ write_settings()
def pycross.forms.PrintPreviewDialog.write_settings |
( |
|
self | ) |
|
Saves current settings to CWSettings.
◆ btn_fit_all
pycross.forms.PrintPreviewDialog.btn_fit_all |
◆ btn_fit_width
pycross.forms.PrintPreviewDialog.btn_fit_width |
◆ btn_settings
pycross.forms.PrintPreviewDialog.btn_settings |
◆ combo_color
pycross.forms.PrintPreviewDialog.combo_color |
◆ combo_layout
pycross.forms.PrintPreviewDialog.combo_layout |
◆ combo_page_size
pycross.forms.PrintPreviewDialog.combo_page_size |
◆ combo_view
pycross.forms.PrintPreviewDialog.combo_view |
◆ layout_center
pycross.forms.PrintPreviewDialog.layout_center |
◆ layout_color
pycross.forms.PrintPreviewDialog.layout_color |
◆ layout_controls
pycross.forms.PrintPreviewDialog.layout_controls |
◆ layout_fit
pycross.forms.PrintPreviewDialog.layout_fit |
◆ layout_layout
pycross.forms.PrintPreviewDialog.layout_layout |
◆ layout_margins
pycross.forms.PrintPreviewDialog.layout_margins |
◆ layout_pagesize
pycross.forms.PrintPreviewDialog.layout_pagesize |
◆ layout_tb_main
pycross.forms.PrintPreviewDialog.layout_tb_main |
◆ layout_view
pycross.forms.PrintPreviewDialog.layout_view |
◆ le_margin_b
pycross.forms.PrintPreviewDialog.le_margin_b |
◆ le_margin_l
pycross.forms.PrintPreviewDialog.le_margin_l |
◆ le_margin_r
pycross.forms.PrintPreviewDialog.le_margin_r |
◆ le_margin_t
pycross.forms.PrintPreviewDialog.le_margin_t |
◆ mainwindow
pycross.forms.PrintPreviewDialog.mainwindow |
◆ ppreview
pycross.forms.PrintPreviewDialog.ppreview |
◆ printer
pycross.forms.PrintPreviewDialog.printer |
◆ slider_zoom
pycross.forms.PrintPreviewDialog.slider_zoom |
◆ tb_main
pycross.forms.PrintPreviewDialog.tb_main |
The documentation for this class was generated from the following file: