umbrello: umbrello/dialogs/umlviewdialog.h Source File

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 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2002-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5#ifndef UMLVIEWDIALOG_H
6#define UMLVIEWDIALOG_H
7
8// qt includes
9
10// kde includes
11
12// app includes
13#include "multipagedialogbase.h"
14#include "optionstate.h"
15
16class ClassOptionsPage;
17class DiagramPropertiesPage;
18class UMLScene;
19class UMLView;
20class UMLWidgetStylePage;
21#if QT_VERSION >= 0x050000
22class QFontDialog;
23#else
24class KFontChooser;
25#endif
26
31 class UMLViewDialog : public MultiPageDialogBase
32{
33 Q_OBJECT
34public:
35 UMLViewDialog(QWidget * pParent, UMLScene * pScene);
36 ~UMLViewDialog();
37
38 virtual void apply();
39
40protected:
41 void setupPages();
42
43 void setupDiagramPropertiesPage();
44 void setupDisplayPage();
45 void setupStylePage();
46
47 void applyPage(KPageWidgetItem*);
48
49 void checkName();
50
51 UMLScene* m_pScene;
52 DiagramPropertiesPage* m_diagramPropertiesPage;
53 ClassOptionsPage* m_pOptionsPage;
54 KPageWidgetItem* m_pageStyleItem;
55 KPageWidgetItem* m_pageFontItem;
56 KPageWidgetItem* m_pageDisplayItem;
57 KPageWidgetItem* m_pageDiagramItem;
58
59public slots:
60 void slotOk();
61 void slotApply();
62};
63
64#endif
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:35
DiagramPropertiesPage
Definition: diagrampropertiespage.h:18
MultiPageDialogBase
Definition: multipagedialogbase.h:47
UMLScene
Definition: umlscene.h:65
UMLViewDialog
Definition: umlviewdialog.h:32
UMLViewDialog::m_pageFontItem
KPageWidgetItem * m_pageFontItem
Definition: umlviewdialog.h:55
UMLViewDialog::apply
virtual void apply()
Definition: umlviewdialog.cpp:50
UMLViewDialog::m_pageStyleItem
KPageWidgetItem * m_pageStyleItem
Definition: umlviewdialog.h:54
UMLViewDialog::checkName
void checkName()
UMLViewDialog::m_pageDiagramItem
KPageWidgetItem * m_pageDiagramItem
Definition: umlviewdialog.h:57
UMLViewDialog::UMLViewDialog
UMLViewDialog(QWidget *pParent, UMLScene *pScene)
Definition: umlviewdialog.cpp:32
UMLViewDialog::setupStylePage
void setupStylePage()
Definition: umlviewdialog.cpp:111
UMLViewDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: umlviewdialog.cpp:121
UMLViewDialog::slotOk
void slotOk()
Definition: umlviewdialog.cpp:55
UMLViewDialog::setupPages
void setupPages()
Definition: umlviewdialog.cpp:72
UMLViewDialog::m_diagramPropertiesPage
DiagramPropertiesPage * m_diagramPropertiesPage
Definition: umlviewdialog.h:52
UMLViewDialog::m_pageDisplayItem
KPageWidgetItem * m_pageDisplayItem
Definition: umlviewdialog.h:56
UMLViewDialog::slotApply
void slotApply()
Definition: umlviewdialog.cpp:64
UMLViewDialog::setupDisplayPage
void setupDisplayPage()
Definition: umlviewdialog.cpp:93
UMLViewDialog::m_pScene
UMLScene * m_pScene
the scene to represent
Definition: umlviewdialog.h:51
UMLViewDialog::~UMLViewDialog
~UMLViewDialog()
Definition: umlviewdialog.cpp:46
UMLViewDialog::setupDiagramPropertiesPage
void setupDiagramPropertiesPage()
Definition: umlviewdialog.cpp:83
UMLViewDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: umlviewdialog.h:53
UMLView
Definition: umlview.h:30
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:33
multipagedialogbase.h
optionstate.h