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

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

diagramprintpage.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2002-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef DIAGRAMPRINTPAGE_H
12 #define DIAGRAMPRINTPAGE_H
13
14 #include "basictypes.h"
15 #include "dialogpagebase.h"
16 #include "umlview.h"
17
18 #include <QList>
19
20 class QListWidget;
21 class QRadioButton;
22 class QGroupBox;
23 class KComboBox;
24 class UMLDoc;
25
37 class DiagramPrintPage : public DialogPageBase
38 {
39 Q_OBJECT
40 public:
41 DiagramPrintPage(QWidget * parent, UMLDoc *doc);
42 ~DiagramPrintPage();
43
44 int printUmlCount();
45 QString printUmlDiagram(int sel);
46
47 bool isValid(QString& msg);
48
49 private:
50 bool isSelected(int index);
51
52 QGroupBox * m_pFilterGB;
53 QGroupBox * m_pSelectGB;
54 QListWidget * m_pSelectLW;
55 QRadioButton * m_pAllRB;
56 QRadioButton * m_pCurrentRB;
57 QRadioButton * m_pSelectRB;
58 QRadioButton * m_pTypeRB;
59 KComboBox * m_pTypeCB;
60
61 UMLDoc * m_doc;
62 Uml::DiagramType::Enum m_ViewType;
63
64 QList<Uml::ID::Type> m_nIdList;
65
66 enum FilterType{Current = 0, All, Select, Type};
67
68 public slots:
69 void slotClicked();
70 void slotActivated(int index);
71 };
72
73 #endif
basictypes.h
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:38
DiagramPrintPage::m_ViewType
Uml::DiagramType::Enum m_ViewType
Definition: diagramprintpage.h:62
DiagramPrintPage::FilterType
FilterType
Definition: diagramprintpage.h:66
DiagramPrintPage::Current
@ Current
Definition: diagramprintpage.h:66
DiagramPrintPage::Type
@ Type
Definition: diagramprintpage.h:66
DiagramPrintPage::Select
@ Select
Definition: diagramprintpage.h:66
DiagramPrintPage::All
@ All
Definition: diagramprintpage.h:66
DiagramPrintPage::slotClicked
void slotClicked()
Definition: diagramprintpage.cpp:186
DiagramPrintPage::slotActivated
void slotActivated(int index)
Definition: diagramprintpage.cpp:244
DiagramPrintPage::isSelected
bool isSelected(int index)
Definition: diagramprintpage.cpp:169
DiagramPrintPage::m_doc
UMLDoc * m_doc
Definition: diagramprintpage.h:61
DiagramPrintPage::m_pFilterGB
QGroupBox * m_pFilterGB
Definition: diagramprintpage.h:52
DiagramPrintPage::m_pCurrentRB
QRadioButton * m_pCurrentRB
Definition: diagramprintpage.h:56
DiagramPrintPage::m_nIdList
QList< Uml::ID::Type > m_nIdList
list containing the IDs of diagrams to print
Definition: diagramprintpage.h:64
DiagramPrintPage::m_pTypeCB
KComboBox * m_pTypeCB
Definition: diagramprintpage.h:59
DiagramPrintPage::m_pAllRB
QRadioButton * m_pAllRB
Definition: diagramprintpage.h:55
DiagramPrintPage::~DiagramPrintPage
~DiagramPrintPage()
Definition: diagramprintpage.cpp:111
DiagramPrintPage::isValid
bool isValid(QString &msg)
Definition: diagramprintpage.cpp:150
DiagramPrintPage::m_pSelectGB
QGroupBox * m_pSelectGB
Definition: diagramprintpage.h:53
DiagramPrintPage::DiagramPrintPage
DiagramPrintPage(QWidget *parent, UMLDoc *doc)
Definition: diagramprintpage.cpp:39
DiagramPrintPage::m_pSelectLW
QListWidget * m_pSelectLW
Definition: diagramprintpage.h:54
DiagramPrintPage::m_pTypeRB
QRadioButton * m_pTypeRB
Definition: diagramprintpage.h:58
DiagramPrintPage::m_pSelectRB
QRadioButton * m_pSelectRB
Definition: diagramprintpage.h:57
DiagramPrintPage::printUmlCount
int printUmlCount()
Definition: diagramprintpage.cpp:119
DiagramPrintPage::printUmlDiagram
QString printUmlDiagram(int sel)
Definition: diagramprintpage.cpp:130
DialogPageBase
Definition: dialogpagebase.h:25
UMLDoc
Definition: umldoc.h:75
dialogpagebase.h
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
umlview.h