umbrello: umbrello/dialogs/umlviewdialog.h Source File

umbrello 2.32.0 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
ClassOptionsPage
A dialog page to display the class related options.
Definition: classoptionspage.h:40
DiagramPropertiesPage
Definition: diagrampropertiespage.h:23
MultiPageDialogBase
Definition: multipagedialogbase.h:52
UMLScene
Definition: umlscene.h:70
UMLViewDialog
Definition: umlviewdialog.h:37
UMLViewDialog::m_pageFontItem
KPageWidgetItem * m_pageFontItem
Definition: umlviewdialog.h:60
UMLViewDialog::apply
virtual void apply()
Definition: umlviewdialog.cpp:55
UMLViewDialog::m_pageStyleItem
KPageWidgetItem * m_pageStyleItem
Definition: umlviewdialog.h:59
UMLViewDialog::checkName
void checkName()
UMLViewDialog::m_pageDiagramItem
KPageWidgetItem * m_pageDiagramItem
Definition: umlviewdialog.h:62
UMLViewDialog::UMLViewDialog
UMLViewDialog(QWidget *pParent, UMLScene *pScene)
Definition: umlviewdialog.cpp:37
UMLViewDialog::setupStylePage
void setupStylePage()
Definition: umlviewdialog.cpp:116
UMLViewDialog::applyPage
void applyPage(KPageWidgetItem *)
Definition: umlviewdialog.cpp:126
UMLViewDialog::slotOk
void slotOk()
Definition: umlviewdialog.cpp:60
UMLViewDialog::setupPages
void setupPages()
Definition: umlviewdialog.cpp:77
UMLViewDialog::m_diagramPropertiesPage
DiagramPropertiesPage * m_diagramPropertiesPage
Definition: umlviewdialog.h:57
UMLViewDialog::m_pageDisplayItem
KPageWidgetItem * m_pageDisplayItem
Definition: umlviewdialog.h:61
UMLViewDialog::slotApply
void slotApply()
Definition: umlviewdialog.cpp:69
UMLViewDialog::setupDisplayPage
void setupDisplayPage()
Definition: umlviewdialog.cpp:98
UMLViewDialog::m_pScene
UMLScene * m_pScene
the scene to represent
Definition: umlviewdialog.h:56
UMLViewDialog::~UMLViewDialog
~UMLViewDialog()
Definition: umlviewdialog.cpp:51
UMLViewDialog::setupDiagramPropertiesPage
void setupDiagramPropertiesPage()
Definition: umlviewdialog.cpp:88
UMLViewDialog::m_pOptionsPage
ClassOptionsPage * m_pOptionsPage
Definition: umlviewdialog.h:58
UMLView
Definition: umlview.h:35
UMLWidgetStylePage
Definition: umlwidgetstylepage.h:38
multipagedialogbase.h
optionstate.h