QElectroTech
0.8-dev
|
#include <qetprintpreviewdialog.h>
Inherits QDialog.
Public Slots | |
void | firstPage () |
void | previousPage () |
void | nextPage () |
void | lastPage () |
void | pageSetup () |
void | useFullPage (bool) |
void | fitDiagramToPage (bool) |
void | zoomIn () |
void | zoomOut () |
void | selectAllDiagrams () |
void | selectNoDiagram () |
Signals | |
void | paintRequested (const QList< Diagram * > &, bool, const ExportProperties, QPrinter *) |
Public Member Functions | |
QETPrintPreviewDialog (QETProject *, QPrinter *, QWidget *=nullptr, Qt::WindowFlags=Qt::Widget) | |
~QETPrintPreviewDialog () override | |
DiagramsChooser * | diagramsChooser () |
bool | fitDiagramsToPages () const |
ExportProperties | exportProperties () const |
Private Slots | |
void | requestPaint (QPrinter *) |
void | checkDiagramsCount () |
void | setDiagramsListVisible (bool) |
void | setPrintOptionsVisible (bool) |
void | updateZoomList () |
void | updatePreviewZoom () |
Private Member Functions | |
QETPrintPreviewDialog (const QETPrintPreviewDialog &) | |
void | build () |
Private Attributes | |
QETProject * | project_ |
QPrinter * | printer_ |
QHBoxLayout * | hlayout0_ |
QVBoxLayout * | vlayout0_ |
QVBoxLayout * | vlayout1_ |
QVBoxLayout * | vlayout2_ |
QToolBar * | toolbar_ |
QPrintPreviewWidget * | preview_ |
QLabel * | diagrams_label_ |
DiagramsChooser * | diagrams_list_ |
QPushButton * | diagrams_select_all_ |
QPushButton * | diagrams_select_none_ |
QAction * | toggle_diagrams_list_ |
QAction * | toggle_print_options_ |
QAction * | adjust_width_ |
QAction * | adjust_page_ |
QAction * | zoom_in_ |
QComboBox * | zoom_box_ |
QAction * | zoom_out_ |
QAction * | landscape_ |
QAction * | portrait_ |
QAction * | first_page_ |
QAction * | previous_page_ |
QAction * | next_page_ |
QAction * | last_page_ |
QAction * | all_pages_view_ |
QAction * | facing_pages_view_ |
QAction * | single_page_view_ |
QAction * | page_setup_ |
QDialogButtonBox * | buttons_ |
QGroupBox * | print_options_box_ |
QCheckBox * | use_full_page_ |
QLabel * | use_full_page_label_ |
QCheckBox * | fit_diagram_to_page_ |
QLabel * | fit_diagram_to_page_label_ |
ExportPropertiesWidget * | render_properties_ |
This class provides a dialog for users to refine printing options for a particular project by relying on a visual print preview.
QETPrintPreviewDialog::QETPrintPreviewDialog | ( | QETProject * | project, |
QPrinter * | printer, | ||
QWidget * | widget = nullptr , |
||
Qt::WindowFlags | f = Qt::Widget |
||
) |
Constructeur
project | Projet a imprimer |
printer | Imprimante a utiliser pour |
widget | Widget parent |
f | Flags passes au constructeur de QDialog puis QWidget |
|
override |
Destructeur
|
private |
|
private |
Met en place le dialogue
|
privateslot |
Ce slot prive verifie que le nombre de schemas a imprimer est bien superieur a 0 et active ou desactive le bouton "Imprimer" en consequence.
DiagramsChooser * QETPrintPreviewDialog::diagramsChooser | ( | ) |
ExportProperties QETPrintPreviewDialog::exportProperties | ( | ) | const |
|
slot |
Passe a la premiere page
bool QETPrintPreviewDialog::fitDiagramsToPages | ( | ) | const |
|
slot |
Fait tenir ou non chaque schema sur une page
fit_diagram | true pour adapter chaque schema sur une page, false sinon |
|
slot |
Passe a la derniere page
|
slot |
Passe a la page suivante
|
slot |
Copnfigure la mise en page
|
signal |
|
slot |
Passe a la page precedente
|
privateslot |
Ce slot prive emet le signal paintRequested avec : la liste des schemas a imprimer / selectionnes un booleen indiquant s'il faut adapter les schemas aux pages ou non l'imprimante a utiliser
|
slot |
Selectionne tous les schemas
|
slot |
Deselectionne tous les schemas
|
privateslot |
Ce slot prive affiche ou cache la liste des schemas
display | true pour affiche la liste des schemas, false pour la cacher |
|
privateslot |
Ce slot prive affiche ou cache les options d'impression
display | true pour affiche les options d'impression, false pour les cacher |
|
privateslot |
Change le zoom de l'apercu en fonctiopn du contenu du zoom selectionne
|
privateslot |
Met a jour la liste des zooms disponibles
|
slot |
Utilise ou non toute la page sans teni compte des marges
full_page | true pour utiliser toute la page, false sinon |
|
slot |
Effectue l'action "zoom avant" sur l'apercu avant impression
|
slot |
Effectue l'action "zoom arriere" sur l'apercu avant impression
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |