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

umlviewdialog.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 #ifndef UMLVIEWDIALOG_H
11 #define UMLVIEWDIALOG_H
12
13 // qt includes
14
15 // kde includes
16
17 // app includes
18 #include "multipagedialogbase.h"
19 #include "optionstate.h"
20
21 class ClassOptionsPage;
22 class DiagramPropertiesPage;
23 class UMLScene;
24 class UMLView;
25 class UMLWidgetStylePage;
26 #if QT_VERSION >= 0x050000
27 class QFontDialog;
28 #else
29 class KFontChooser;
30 #endif
31
36 class UMLViewDialog : public MultiPageDialogBase
37 {
38 Q_OBJECT
39 public:
40 UMLViewDialog(QWidget * pParent, UMLScene * pScene);
41 ~UMLViewDialog();
42
43 virtual void apply();
44
45 protected:
46 void setupPages();
47
48 void setupDiagramPropertiesPage();
49 void setupDisplayPage();
50 void setupStylePage();
51
52 void applyPage(KPageWidgetItem*);
53
54 void checkName();
55
56 UMLScene* m_pScene;
57 DiagramPropertiesPage* m_diagramPropertiesPage;
58 ClassOptionsPage* m_pOptionsPage;
59 KPageWidgetItem* m_pageStyleItem;
60 KPageWidgetItem* m_pageFontItem;
61 KPageWidgetItem* m_pageDisplayItem;
62 KPageWidgetItem* m_pageDiagramItem;
63
64 public slots:
65 void slotOk();
66 void slotApply();
67 };
68
69 #endif
Settings::OptionState::uiState
UIState uiState
Definition: optionstate.h:328
Settings::UIState::font
QFont font
Definition: optionstate.h:92
umlview.h
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:38
ClassOptionsPage::apply
void apply()
Definition: classoptionspage.cpp:115
classoptionspage.h
multipagedialogbase.h
UMLViewDialog
Definition: umlviewdialog.h:37
UMLViewDialog::m_pageDiagramItem
KPageWidgetItem * m_pageDiagramItem
Definition: umlviewdialog.h:62
UMLViewDialog::~UMLViewDialog
~UMLViewDialog()
Definition: umlviewdialog.cpp:51
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:40
DiagramPropertiesPage::apply
void apply()
Definition: diagrampropertiespage.cpp:103
MultiPageDialogBase::accept
void accept()
Definition: multipagedialogbase.cpp:173
UMLWidgetStylePage::apply
void apply()
Definition: umlwidgetstylepage.cpp:287
UMLViewDialog::setupPages
void setupPages()
Definition: umlviewdialog.cpp:77
UMLViewDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: umlviewdialog.h:58
UMLViewDialog::slotOk
void slotOk()
Definition: umlviewdialog.cpp:60
MultiPageDialogBase::createPage
QFrame * createPage(const QString &name, const QString &header, Icon_Utils::IconType icon)
Definition: multipagedialogbase.cpp:325
optionstate.h
MultiPageDialogBase::applyClicked
void applyClicked()
Definition: moc_multipagedialogbase.cpp:192
MultiPageDialogBase::applyFontPage
void applyFontPage(AssociationWidget *widget)
Definition: multipagedialogbase.cpp:441
UMLViewDialog::setupStylePage
void setupStylePage()
Definition: umlviewdialog.cpp:116
UMLViewDialog::m_pageFontItem
KPageWidgetItem * m_pageFontItem
Definition: umlviewdialog.h:60
UMLViewDialog::m_diagramPropertiesPage
DiagramPropertiesPage * m_diagramPropertiesPage
Definition: umlviewdialog.h:57
MultiPageDialogBase::m_pStylePage
UMLWidgetStylePage * m_pStylePage
Definition: multipagedialogbase.h:106
Icon_Utils::it_Properties_Display
@ it_Properties_Display
Definition: icon_utils.h:66
UMLView
Definition: umlview.h:35
umlviewdialog.h
MultiPageDialogBase::okClicked
void okClicked()
Definition: moc_multipagedialogbase.cpp:186
UMLScene::type
Uml::DiagramType::Enum type() const
Definition: umlscene.cpp:426
DiagramPropertiesPage
Definition: diagrampropertiespage.h:23
MultiPageDialogBase
Definition: multipagedialogbase.h:52
i18n
#define i18n
Definition: main.cpp:39
diagrampropertiespage.h
MultiPageDialogBase::setupFontPage
KPageWidgetItem * setupFontPage(const QFont &font)
Definition: multipagedialogbase.cpp:400
uDebug
#define uDebug()
Definition: debug_utils.h:122
UMLViewDialog::slotApply
void slotApply()
Definition: umlviewdialog.cpp:69
UMLViewDialog::m_pageStyleItem
KPageWidgetItem * m_pageStyleItem
Definition: umlviewdialog.h:59
MyProject\connect
connect()
Definition: namespaces-multiple.php:5
Uml::DiagramType::Sequence
@ Sequence
Definition: basictypes.h:83
Icon_Utils::it_Properties_General
@ it_Properties_General
Definition: icon_utils.h:64
UMLViewDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: umlviewdialog.cpp:126
Uml::DiagramType::Class
@ Class
Definition: basictypes.h:81
umlscene.h
UMLViewDialog::checkName
void checkName()
uml.h
UMLViewDialog::UMLViewDialog
UMLViewDialog(QWidget *pParent, UMLScene *pScene)
Definition: umlviewdialog.cpp:37
UMLViewDialog::setupDisplayPage
void setupDisplayPage()
Definition: umlviewdialog.cpp:98
umlwidgetstylepage.h
debug_utils.h
UMLScene::optionState
Settings::OptionState & optionState()
Definition: umlscene.cpp:571
icon_utils.h
UMLScene
Definition: umlscene.h:69
MultiPageDialogBase::setCaption
void setCaption(const QString &caption)
Definition: multipagedialogbase.cpp:162
UMLViewDialog::setupDiagramPropertiesPage
void setupDiagramPropertiesPage()
Definition: umlviewdialog.cpp:88
Icon_Utils::it_Properties_Color
@ it_Properties_Color
Definition: icon_utils.h:65
UMLViewDialog::m_pScene
UMLScene * m_pScene
the scene to represent
Definition: umlviewdialog.h:56
UMLViewDialog::m_pageDisplayItem
KPageWidgetItem * m_pageDisplayItem
Definition: umlviewdialog.h:61
umldoc.h
MultiPageDialogBase::currentPage
KPageWidgetItem * currentPage()
Definition: multipagedialogbase.cpp:185
UMLViewDialog::apply
virtual void apply()
Definition: umlviewdialog.cpp:55