umbrello 2.32.3 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
UMLApp::currentView
UMLView * currentView() const
Definition: uml.cpp:3166
DiagramPrintPage::m_ViewType
Uml::DiagramType::Enum m_ViewType
Definition: diagramprintpage.h:62
DiagramPrintPage::m_pFilterGB
QGroupBox * m_pFilterGB
Definition: diagramprintpage.h:52
umlview.h
DiagramPrintPage::m_pSelectRB
QRadioButton * m_pSelectRB
Definition: diagramprintpage.h:57
DiagramPrintPage::isSelected
bool isSelected(int index)
Definition: diagramprintpage.cpp:169
DiagramPrintPage::FilterType
FilterType
Definition: diagramprintpage.h:66
DiagramPrintPage::m_doc
UMLDoc * m_doc
Definition: diagramprintpage.h:61
Uml::DiagramType::Enum
Enum
Definition: basictypes.h:77
Uml::ID::toString
QString toString(const ID::Type &id)
Definition: basictypes.cpp:1263
DiagramPrintPage::m_pTypeCB
KComboBox * m_pTypeCB
Definition: diagramprintpage.h:59
dialogpagebase.h
model_utils.h
DiagramPrintPage::m_pAllRB
QRadioButton * m_pAllRB
Definition: diagramprintpage.h:55
DiagramPrintPage
A print dialog page.
Definition: diagramprintpage.h:38
DiagramPrintPage::m_pSelectLW
QListWidget * m_pSelectLW
Definition: diagramprintpage.h:54
Uml::DiagramType::fromInt
Enum fromInt(int item)
Definition: basictypes.cpp:267
UMLView
Definition: umlview.h:35
umlviewlist.h
DiagramPrintPage::printUmlCount
int printUmlCount()
Definition: diagramprintpage.cpp:119
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
DialogPageBase
Definition: dialogpagebase.h:25
i18n
#define i18n
Definition: main.cpp:39
DiagramPrintPage::isValid
bool isValid(QString &msg)
Definition: diagramprintpage.cpp:150
DiagramPrintPage::printUmlDiagram
QString printUmlDiagram(int sel)
Definition: diagramprintpage.cpp:130
DiagramPrintPage::~DiagramPrintPage
~DiagramPrintPage()
Definition: diagramprintpage.cpp:111
Uml::DiagramType::N_DIAGRAMTYPES
@ N_DIAGRAMTYPES
Definition: basictypes.h:91
DiagramPrintPage::slotActivated
void slotActivated(int index)
Definition: diagramprintpage.cpp:244
basictypes.h
Uml::DiagramType::toString
QString toString(Enum item)
Definition: basictypes.cpp:168
types
Definition: types.py:1
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
DiagramPrintPage::m_pSelectGB
QGroupBox * m_pSelectGB
Definition: diagramprintpage.h:53
UMLApp::app
static UMLApp * app()
Definition: uml.cpp:278
UMLDoc
Definition: umldoc.h:75
DiagramPrintPage::m_pCurrentRB
QRadioButton * m_pCurrentRB
Definition: diagramprintpage.h:56
DiagramPrintPage::DiagramPrintPage
DiagramPrintPage(QWidget *parent, UMLDoc *doc)
Definition: diagramprintpage.cpp:39
DiagramPrintPage::All
@ All
Definition: diagramprintpage.h:66
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
DiagramPrintPage::Type
@ Type
Definition: diagramprintpage.h:66
umlscene.h
uml.h
DiagramPrintPage::m_pTypeRB
QRadioButton * m_pTypeRB
Definition: diagramprintpage.h:58
debug_utils.h
UMLScene::name
QString name() const
Definition: umlscene.cpp:410
UMLScene
Definition: umlscene.h:69
DiagramPrintPage::slotClicked
void slotClicked()
Definition: diagramprintpage.cpp:186
diagramprintpage.h
UMLView::umlScene
UMLScene * umlScene() const
Definition: umlview.cpp:56
UMLScene::ID
Uml::ID::Type ID() const
Definition: umlscene.cpp:442
UMLDoc::viewIterator
UMLViewList viewIterator()
Definition: umldoc.cpp:3105
DiagramPrintPage::Select
@ Select
Definition: diagramprintpage.h:66
UMLViewList
QList< QPointer< UMLView > > UMLViewList
Definition: umlviewlist.h:26
DiagramPrintPage::Current
@ Current
Definition: diagramprintpage.h:66
UMLDoc::findView
UMLView * findView(Uml::ID::Type id)
Definition: umldoc.cpp:1005
umldoc.h
DiagramPrintPage::m_nIdList
QList< Uml::ID::Type > m_nIdList
list containing the IDs of diagrams to print
Definition: diagramprintpage.h:64