umbrello: umbrello/dialogs/pages/diagramprintpage.h Source File

umbrello 2.38.0 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

diagramprintpage.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2022 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef DIAGRAMPRINTPAGE_H
7#define DIAGRAMPRINTPAGE_H
8
9#include "basictypes.h"
10#include "dialogpagebase.h"
11#include "umlview.h"
12
13#include <QList>
14
15class QListWidget;
16class QRadioButton;
17class QGroupBox;
18class KComboBox;
19class UMLDoc;
20
32 class DiagramPrintPage : public DialogPageBase
33{
34 Q_OBJECT
35public:
36 DiagramPrintPage(QWidget * parent, UMLDoc *doc);
37 ~DiagramPrintPage();
38
39 int printUmlCount();
40 QString printUmlDiagram(int sel);
41
42 bool isValid(QString& msg);
43
44private:
45 bool isSelected(int index);
46
47 QGroupBox * m_pFilterGB;
48 QGroupBox * m_pSelectGB;
49 QListWidget * m_pSelectLW;
50 QRadioButton * m_pAllRB;
51 QRadioButton * m_pCurrentRB;
52 QRadioButton * m_pSelectRB;
53 QRadioButton * m_pTypeRB;
54 KComboBox * m_pTypeCB;
55
56 UMLDoc * m_doc;
57 Uml::DiagramType::Enum m_ViewType;
58
59 QList<Uml::ID::Type> m_nIdList;
60
61 enum FilterType{Current = 0, All, Select, Type};
62
63public slots:
64 void slotClicked();
65 void slotActivated(int index);
66};
67
68#endif
basictypes.h
DiagramPrintPage
A print dialog page.
Definition diagramprintpage.h:33
DiagramPrintPage::m_ViewType
Uml::DiagramType::Enum m_ViewType
Definition diagramprintpage.h:57
DiagramPrintPage::FilterType
FilterType
Definition diagramprintpage.h:61
DiagramPrintPage::Current
@ Current
Definition diagramprintpage.h:61
DiagramPrintPage::Type
@ Type
Definition diagramprintpage.h:61
DiagramPrintPage::Select
@ Select
Definition diagramprintpage.h:61
DiagramPrintPage::All
@ All
Definition diagramprintpage.h:61
DiagramPrintPage::slotClicked
void slotClicked()
Definition diagramprintpage.cpp:181
DiagramPrintPage::slotActivated
void slotActivated(int index)
Definition diagramprintpage.cpp:239
DiagramPrintPage::isSelected
bool isSelected(int index)
Definition diagramprintpage.cpp:164
DiagramPrintPage::m_doc
UMLDoc * m_doc
Definition diagramprintpage.h:56
DiagramPrintPage::m_pFilterGB
QGroupBox * m_pFilterGB
Definition diagramprintpage.h:47
DiagramPrintPage::m_pCurrentRB
QRadioButton * m_pCurrentRB
Definition diagramprintpage.h:51
DiagramPrintPage::m_nIdList
QList< Uml::ID::Type > m_nIdList
list containing the IDs of diagrams to print
Definition diagramprintpage.h:59
DiagramPrintPage::m_pTypeCB
KComboBox * m_pTypeCB
Definition diagramprintpage.h:54
DiagramPrintPage::m_pAllRB
QRadioButton * m_pAllRB
Definition diagramprintpage.h:50
DiagramPrintPage::~DiagramPrintPage
~DiagramPrintPage()
Definition diagramprintpage.cpp:106
DiagramPrintPage::isValid
bool isValid(QString &msg)
Definition diagramprintpage.cpp:145
DiagramPrintPage::m_pSelectGB
QGroupBox * m_pSelectGB
Definition diagramprintpage.h:48
DiagramPrintPage::m_pSelectLW
QListWidget * m_pSelectLW
Definition diagramprintpage.h:49
DiagramPrintPage::m_pTypeRB
QRadioButton * m_pTypeRB
Definition diagramprintpage.h:53
DiagramPrintPage::m_pSelectRB
QRadioButton * m_pSelectRB
Definition diagramprintpage.h:52
DiagramPrintPage::printUmlCount
int printUmlCount()
Definition diagramprintpage.cpp:114
DiagramPrintPage::printUmlDiagram
QString printUmlDiagram(int sel)
Definition diagramprintpage.cpp:125
DialogPageBase
Definition dialogpagebase.h:20
UMLDoc
Definition umldoc.h:63
dialogpagebase.h
Uml::DiagramType::Enum
Enum
Definition basictypes.h:63
umlview.h