A print dialog page.
More...
#include <diagramprintpage.h>
A print dialog page.
This is a page on the print dialog to select what diagram(s) you wish to print. You add it to the QPrinter instance.
You will then need to get the options as shown in QPrinter.
- Author
- Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m
- See also
- QPrinter Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
◆ FilterType
| Enumerator |
|---|
| Current | |
| All | |
| Select | |
| Type | |
◆ DiagramPrintPage()
| DiagramPrintPage::DiagramPrintPage |
( |
QWidget * | parent, |
|
|
UMLDoc * | doc ) |
Constructs the diagram print page.
- Parameters
-
| parent | The parent to the page. |
| doc | The UMLDoc class instance being used. |
◆ ~DiagramPrintPage()
| DiagramPrintPage::~DiagramPrintPage |
( |
| ) |
|
◆ isSelected()
| bool DiagramPrintPage::isSelected |
( |
int | index | ) |
|
|
private |
Check if item with given index is selected.
- Parameters
-
| index | index of selected item |
- Returns
- flag whether item is selected
◆ isValid()
| bool DiagramPrintPage::isValid |
( |
QString & | msg | ) |
|
◆ printUmlCount()
| int DiagramPrintPage::printUmlCount |
( |
| ) |
|
Get selected print options.
- Returns
- number of selected items
◆ printUmlDiagram()
| QString DiagramPrintPage::printUmlDiagram |
( |
int | sel | ) |
|
Return ID string of UML diagram.
- Parameters
-
| sel | index of selected item |
- Returns
- ID as string or empty string
◆ slotActivated
| void DiagramPrintPage::slotActivated |
( |
int | index | ) |
|
|
slot |
Gets called when the user chooses another diagram type. Only diagrams of this type will be shown in the diagram box.
- Parameters
-
| index | diagram type (combo box index) |
◆ slotClicked
| void DiagramPrintPage::slotClicked |
( |
| ) |
|
|
slot |
Gets called when the users chooses to print all diagrams, the current diagram, a selection of diagrams or diagrams by type. It will change the listed diagrams in the diagram box.
◆ m_doc
| UMLDoc* DiagramPrintPage::m_doc |
|
private |
◆ m_nIdList
list containing the IDs of diagrams to print
◆ m_pAllRB
| QRadioButton* DiagramPrintPage::m_pAllRB |
|
private |
◆ m_pCurrentRB
| QRadioButton* DiagramPrintPage::m_pCurrentRB |
|
private |
◆ m_pFilterGB
| QGroupBox* DiagramPrintPage::m_pFilterGB |
|
private |
◆ m_pSelectGB
| QGroupBox* DiagramPrintPage::m_pSelectGB |
|
private |
◆ m_pSelectLW
| QListWidget* DiagramPrintPage::m_pSelectLW |
|
private |
◆ m_pSelectRB
| QRadioButton* DiagramPrintPage::m_pSelectRB |
|
private |
◆ m_pTypeCB
| KComboBox* DiagramPrintPage::m_pTypeCB |
|
private |
◆ m_pTypeRB
| QRadioButton* DiagramPrintPage::m_pTypeRB |
|
private |
◆ m_ViewType
The documentation for this class was generated from the following files: