The ProjectPrintWindow class Windows used to configure and view diagram before print.
More...
#include <projectprintwindow.h>
Inherits QMainWindow.
|
| void | requestPaint () |
| | ProjectPrintWindow::requestPaint.
|
| |
| void | printDiagram (Diagram *diagram, bool fit_page, QPainter *painter, QPrinter *printer) |
| | ProjectPrintWindow::printDiagram Print @diagram on the @printer.
|
| |
| QRect | diagramRect (Diagram *diagram, const ExportProperties &option) const |
| | ProjectPrintWindow::diagramRect.
|
| |
| int | horizontalPagesCount (Diagram *diagram, const ExportProperties &option, bool full_page) const |
| | ProjectPrintWindow::horizontalPagesCount.
|
| |
| int | verticalPagesCount (Diagram *diagram, const ExportProperties &option, bool full_page) const |
| | ProjectPrintWindow::verticalPagesCount.
|
| |
| ExportProperties | exportProperties () const |
| |
| void | setUpDiagramList () |
| |
| QString | settingsSectionName (const QPrinter *printer) |
| |
| void | loadPageSetupForCurrentPrinter () |
| |
| void | savePageSetupForCurrentPrinter () |
| |
| void | saveReloadDiagramParameters (Diagram *diagram, const ExportProperties &options, bool save) |
| | ProjectPrintWindow::saveReloadDiagramParameters Save or restore the parameter of @diagram.
|
| |
| QList< Diagram * > | selectedDiagram () const |
| |
| void | exportToPDF () |
| |
The ProjectPrintWindow class Windows used to configure and view diagram before print.
◆ ProjectPrintWindow()
| ProjectPrintWindow::ProjectPrintWindow |
( |
QETProject * |
project, |
|
|
QPrinter * |
printer, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ ~ProjectPrintWindow()
| ProjectPrintWindow::~ProjectPrintWindow |
( |
| ) |
|
◆ diagramRect()
◆ docName()
| QString ProjectPrintWindow::docName |
( |
QETProject * |
project | ) |
|
|
static |
◆ exportProperties()
◆ exportToPDF()
| void ProjectPrintWindow::exportToPDF |
( |
| ) |
|
|
private |
◆ horizontalPagesCount()
| int ProjectPrintWindow::horizontalPagesCount |
( |
Diagram * |
diagram, |
|
|
const ExportProperties & |
option, |
|
|
bool |
full_page |
|
) |
| const |
|
private |
ProjectPrintWindow::horizontalPagesCount.
- Parameters
-
| diagram | : diagram to print |
| option | : option used to render |
| full_page | : full page or not |
- Returns
- The width of the "poster" in number of page for print the diagram with the orientation and the paper format used by the actual printer
◆ launchDialog()
| void ProjectPrintWindow::launchDialog |
( |
QETProject * |
project, |
|
|
QPrinter::OutputFormat |
format = QPrinter::NativeFormat, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
static |
ProjectPrintWindow::ProjectPrintWindow Use this static function to properly launch the print dialog.
- Parameters
-
| project | : project to print |
| format | : native format to print in physical printer, or pdf format to export in pdf |
| parent | : parent widget |
◆ loadPageSetupForCurrentPrinter()
| void ProjectPrintWindow::loadPageSetupForCurrentPrinter |
( |
| ) |
|
|
private |
◆ on_m_adjust_page_action_triggered
| void ProjectPrintWindow::on_m_adjust_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_adjust_width_action_triggered
| void ProjectPrintWindow::on_m_adjust_width_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_apply_date_pb_clicked
| void ProjectPrintWindow::on_m_apply_date_pb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_check_all_pb_clicked
| void ProjectPrintWindow::on_m_check_all_pb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_date_cb_userDateChanged
| void ProjectPrintWindow::on_m_date_cb_userDateChanged |
( |
const QDate & |
date | ) |
|
|
privateslot |
◆ on_m_date_from_cb_currentIndexChanged
| void ProjectPrintWindow::on_m_date_from_cb_currentIndexChanged |
( |
int |
index | ) |
|
|
privateslot |
◆ on_m_display_all_page_action_triggered
| void ProjectPrintWindow::on_m_display_all_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_display_single_page_action_triggered
| void ProjectPrintWindow::on_m_display_single_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_display_two_page_action_triggered
| void ProjectPrintWindow::on_m_display_two_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_draw_border_cb_clicked
| void ProjectPrintWindow::on_m_draw_border_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_draw_terminal_cb_clicked
| void ProjectPrintWindow::on_m_draw_terminal_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_draw_titleblock_cb_clicked
| void ProjectPrintWindow::on_m_draw_titleblock_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_first_page_action_triggered
| void ProjectPrintWindow::on_m_first_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_fit_in_page_cb_clicked
| void ProjectPrintWindow::on_m_fit_in_page_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_keep_conductor_color_cb_clicked
| void ProjectPrintWindow::on_m_keep_conductor_color_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_landscape_action_triggered
| void ProjectPrintWindow::on_m_landscape_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_last_page_action_triggered
| void ProjectPrintWindow::on_m_last_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_next_page_action_triggered
| void ProjectPrintWindow::on_m_next_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_page_setup_triggered
| void ProjectPrintWindow::on_m_page_setup_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_portrait_action_triggered
| void ProjectPrintWindow::on_m_portrait_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_previous_page_action_triggered
| void ProjectPrintWindow::on_m_previous_page_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_uncheck_all_clicked
| void ProjectPrintWindow::on_m_uncheck_all_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_use_full_page_cb_clicked
| void ProjectPrintWindow::on_m_use_full_page_cb_clicked |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_in_action_triggered
| void ProjectPrintWindow::on_m_zoom_in_action_triggered |
( |
| ) |
|
|
privateslot |
◆ on_m_zoom_out_action_triggered
| void ProjectPrintWindow::on_m_zoom_out_action_triggered |
( |
| ) |
|
|
privateslot |
◆ print
| void ProjectPrintWindow::print |
( |
| ) |
|
|
privateslot |
◆ printDiagram()
| void ProjectPrintWindow::printDiagram |
( |
Diagram * |
diagram, |
|
|
bool |
fit_page, |
|
|
QPainter * |
painter, |
|
|
QPrinter * |
printer |
|
) |
| |
|
private |
◆ requestPaint()
| void ProjectPrintWindow::requestPaint |
( |
| ) |
|
|
private |
◆ savePageSetupForCurrentPrinter()
| void ProjectPrintWindow::savePageSetupForCurrentPrinter |
( |
| ) |
|
|
private |
◆ saveReloadDiagramParameters()
| void ProjectPrintWindow::saveReloadDiagramParameters |
( |
Diagram * |
diagram, |
|
|
const ExportProperties & |
options, |
|
|
bool |
save |
|
) |
| |
|
private |
◆ selectedDiagram()
| QList< Diagram * > ProjectPrintWindow::selectedDiagram |
( |
| ) |
const |
|
private |
◆ settingsSectionName()
| QString ProjectPrintWindow::settingsSectionName |
( |
const QPrinter * |
printer | ) |
|
|
private |
◆ setUpDiagramList()
| void ProjectPrintWindow::setUpDiagramList |
( |
| ) |
|
|
private |
◆ verticalPagesCount()
| int ProjectPrintWindow::verticalPagesCount |
( |
Diagram * |
diagram, |
|
|
const ExportProperties & |
option, |
|
|
bool |
full_page |
|
) |
| const |
|
private |
ProjectPrintWindow::verticalPagesCount.
- Parameters
-
| diagram | : diagram to print |
| option | : option used to render |
| full_page | : full page or not |
- Returns
- The height of the "poster" in number of pages for print the diagram with the orientation and paper format used by the actual printer
◆ m_backup_diagram_background_color
| QColor ProjectPrintWindow::m_backup_diagram_background_color |
|
private |
◆ m_diagram_list_hash
| QHash<Diagram *, QCheckBox *> ProjectPrintWindow::m_diagram_list_hash |
|
private |
◆ m_preview
| QPrintPreviewWidget* ProjectPrintWindow::m_preview =nullptr |
|
private |
◆ m_printer
| QPrinter* ProjectPrintWindow::m_printer = nullptr |
|
private |
◆ m_project
| QETProject* ProjectPrintWindow::m_project = nullptr |
|
private |
◆ ui
| Ui::ProjectPrintWindow* ProjectPrintWindow::ui |
|
private |
The documentation for this class was generated from the following files: