QElectroTech  0.8-dev
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QETPrintPreviewDialog Class Reference

#include <qetprintpreviewdialog.h>

Inherits QDialog.

Collaboration diagram for QETPrintPreviewDialog:
Collaboration graph

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
 
DiagramsChooserdiagramsChooser ()
 
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

QETProjectproject_
 
QPrinter * printer_
 
QHBoxLayout * hlayout0_
 
QVBoxLayout * vlayout0_
 
QVBoxLayout * vlayout1_
 
QVBoxLayout * vlayout2_
 
QToolBar * toolbar_
 
QPrintPreviewWidget * preview_
 
QLabel * diagrams_label_
 
DiagramsChooserdiagrams_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_
 
ExportPropertiesWidgetrender_properties_
 

Detailed Description

This class provides a dialog for users to refine printing options for a particular project by relying on a visual print preview.

Constructor & Destructor Documentation

◆ QETPrintPreviewDialog() [1/2]

QETPrintPreviewDialog::QETPrintPreviewDialog ( QETProject project,
QPrinter *  printer,
QWidget *  widget = nullptr,
Qt::WindowFlags  f = Qt::Widget 
)

Constructeur

Parameters
projectProjet a imprimer
printerImprimante a utiliser pour
widgetWidget parent
fFlags passes au constructeur de QDialog puis QWidget
Here is the call graph for this function:

◆ ~QETPrintPreviewDialog()

QETPrintPreviewDialog::~QETPrintPreviewDialog ( )
override

Destructeur

◆ QETPrintPreviewDialog() [2/2]

QETPrintPreviewDialog::QETPrintPreviewDialog ( const QETPrintPreviewDialog )
private

Member Function Documentation

◆ build()

void QETPrintPreviewDialog::build ( )
private

Met en place le dialogue

Here is the call graph for this function:
Here is the caller graph for this function:

◆ checkDiagramsCount

void QETPrintPreviewDialog::checkDiagramsCount ( )
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.

Here is the caller graph for this function:

◆ diagramsChooser()

DiagramsChooser * QETPrintPreviewDialog::diagramsChooser ( )
Returns
le widget permettant de choisir les schemas a imprimer.
Here is the caller graph for this function:

◆ exportProperties()

ExportProperties QETPrintPreviewDialog::exportProperties ( ) const
Returns
les options de rendu definies par l'utilisateur
Here is the caller graph for this function:

◆ firstPage

void QETPrintPreviewDialog::firstPage ( )
slot

Passe a la premiere page

Here is the caller graph for this function:

◆ fitDiagramsToPages()

bool QETPrintPreviewDialog::fitDiagramsToPages ( ) const
Returns
true si l'option "Adapter le schema a la page" est activee
Here is the caller graph for this function:

◆ fitDiagramToPage

void QETPrintPreviewDialog::fitDiagramToPage ( bool  fit_diagram)
slot

Fait tenir ou non chaque schema sur une page

Parameters
fit_diagramtrue pour adapter chaque schema sur une page, false sinon
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lastPage

void QETPrintPreviewDialog::lastPage ( )
slot

Passe a la derniere page

Here is the caller graph for this function:

◆ nextPage

void QETPrintPreviewDialog::nextPage ( )
slot

Passe a la page suivante

Here is the caller graph for this function:

◆ pageSetup

void QETPrintPreviewDialog::pageSetup ( )
slot

Copnfigure la mise en page

Here is the call graph for this function:
Here is the caller graph for this function:

◆ paintRequested

void QETPrintPreviewDialog::paintRequested ( const QList< Diagram * > &  ,
bool  ,
const  ExportProperties,
QPrinter *   
)
signal
Here is the caller graph for this function:

◆ previousPage

void QETPrintPreviewDialog::previousPage ( )
slot

Passe a la page precedente

Here is the caller graph for this function:

◆ requestPaint

void QETPrintPreviewDialog::requestPaint ( QPrinter *  printer)
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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectAllDiagrams

void QETPrintPreviewDialog::selectAllDiagrams ( )
slot

Selectionne tous les schemas

Here is the caller graph for this function:

◆ selectNoDiagram

void QETPrintPreviewDialog::selectNoDiagram ( )
slot

Deselectionne tous les schemas

Here is the caller graph for this function:

◆ setDiagramsListVisible

void QETPrintPreviewDialog::setDiagramsListVisible ( bool  display)
privateslot

Ce slot prive affiche ou cache la liste des schemas

Parameters
displaytrue pour affiche la liste des schemas, false pour la cacher
Here is the caller graph for this function:

◆ setPrintOptionsVisible

void QETPrintPreviewDialog::setPrintOptionsVisible ( bool  display)
privateslot

Ce slot prive affiche ou cache les options d'impression

Parameters
displaytrue pour affiche les options d'impression, false pour les cacher
Here is the caller graph for this function:

◆ updatePreviewZoom

void QETPrintPreviewDialog::updatePreviewZoom ( )
privateslot

Change le zoom de l'apercu en fonctiopn du contenu du zoom selectionne

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateZoomList

void QETPrintPreviewDialog::updateZoomList ( )
privateslot

Met a jour la liste des zooms disponibles

Here is the caller graph for this function:

◆ useFullPage

void QETPrintPreviewDialog::useFullPage ( bool  full_page)
slot

Utilise ou non toute la page sans teni compte des marges

Parameters
full_pagetrue pour utiliser toute la page, false sinon
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zoomIn

void QETPrintPreviewDialog::zoomIn ( )
slot

Effectue l'action "zoom avant" sur l'apercu avant impression

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zoomOut

void QETPrintPreviewDialog::zoomOut ( )
slot

Effectue l'action "zoom arriere" sur l'apercu avant impression

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ adjust_page_

QAction* QETPrintPreviewDialog::adjust_page_
private

◆ adjust_width_

QAction* QETPrintPreviewDialog::adjust_width_
private

◆ all_pages_view_

QAction* QETPrintPreviewDialog::all_pages_view_
private

◆ buttons_

QDialogButtonBox* QETPrintPreviewDialog::buttons_
private

◆ diagrams_label_

QLabel* QETPrintPreviewDialog::diagrams_label_
private

◆ diagrams_list_

DiagramsChooser* QETPrintPreviewDialog::diagrams_list_
private

◆ diagrams_select_all_

QPushButton* QETPrintPreviewDialog::diagrams_select_all_
private

◆ diagrams_select_none_

QPushButton* QETPrintPreviewDialog::diagrams_select_none_
private

◆ facing_pages_view_

QAction* QETPrintPreviewDialog::facing_pages_view_
private

◆ first_page_

QAction* QETPrintPreviewDialog::first_page_
private

◆ fit_diagram_to_page_

QCheckBox* QETPrintPreviewDialog::fit_diagram_to_page_
private

◆ fit_diagram_to_page_label_

QLabel* QETPrintPreviewDialog::fit_diagram_to_page_label_
private

◆ hlayout0_

QHBoxLayout* QETPrintPreviewDialog::hlayout0_
private

◆ landscape_

QAction* QETPrintPreviewDialog::landscape_
private

◆ last_page_

QAction* QETPrintPreviewDialog::last_page_
private

◆ next_page_

QAction* QETPrintPreviewDialog::next_page_
private

◆ page_setup_

QAction* QETPrintPreviewDialog::page_setup_
private

◆ portrait_

QAction* QETPrintPreviewDialog::portrait_
private

◆ preview_

QPrintPreviewWidget* QETPrintPreviewDialog::preview_
private

◆ previous_page_

QAction* QETPrintPreviewDialog::previous_page_
private

◆ print_options_box_

QGroupBox* QETPrintPreviewDialog::print_options_box_
private

◆ printer_

QPrinter* QETPrintPreviewDialog::printer_
private

◆ project_

QETProject* QETPrintPreviewDialog::project_
private

◆ render_properties_

ExportPropertiesWidget* QETPrintPreviewDialog::render_properties_
private

◆ single_page_view_

QAction* QETPrintPreviewDialog::single_page_view_
private

◆ toggle_diagrams_list_

QAction* QETPrintPreviewDialog::toggle_diagrams_list_
private

◆ toggle_print_options_

QAction* QETPrintPreviewDialog::toggle_print_options_
private

◆ toolbar_

QToolBar* QETPrintPreviewDialog::toolbar_
private

◆ use_full_page_

QCheckBox* QETPrintPreviewDialog::use_full_page_
private

◆ use_full_page_label_

QLabel* QETPrintPreviewDialog::use_full_page_label_
private

◆ vlayout0_

QVBoxLayout* QETPrintPreviewDialog::vlayout0_
private

◆ vlayout1_

QVBoxLayout* QETPrintPreviewDialog::vlayout1_
private

◆ vlayout2_

QVBoxLayout* QETPrintPreviewDialog::vlayout2_
private

◆ zoom_box_

QComboBox* QETPrintPreviewDialog::zoom_box_
private

◆ zoom_in_

QAction* QETPrintPreviewDialog::zoom_in_
private

◆ zoom_out_

QAction* QETPrintPreviewDialog::zoom_out_
private

The documentation for this class was generated from the following files: