• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • dialogs
classoptionspage.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-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 
12 #ifndef CLASSOPTIONSPAGE_H
13 #define CLASSOPTIONSPAGE_H
14 
15 #include "optionstate.h"
16 
17 #include <QWidget>
18 
19 class ClassifierWidget;
20 class KComboBox;
21 class QCheckBox;
22 class QGroupBox;
23 class QLabel;
24 
37 class ClassOptionsPage : public QWidget
38 {
39 public:
40  ClassOptionsPage(QWidget* pParent, ClassifierWidget* pWidget);
41  ClassOptionsPage(QWidget* pParent, Settings::OptionState *options, bool isDiagram=true);
42  virtual ~ClassOptionsPage();
43 
44  void setDefaults();
45  void apply();
46 
47  void setWidget(ClassifierWidget * pWidget);
48 
49 protected:
50  void init();
51 
52  void setupPage();
53  void setupClassPageOption();
54 
55  void applyWidget();
56  void applyOptionState();
57 
58  void insertAttribScope(const QString& type, int index = -1);
59  void insertOperationScope(const QString& type, int index = -1);
60 
61  //GUI widgets
62  QGroupBox * m_visibilityGB;
63  QCheckBox * m_showVisibilityCB, * m_showAttSigCB;
64  QCheckBox * m_showOpSigCB, * m_showAttsCB, * m_showOpsCB;
65  QCheckBox * m_showStereotypeCB, * m_showPackageCB, * m_showPublicOnlyCB;
66  QCheckBox * m_showAttribAssocsCB;
67  QCheckBox * m_drawAsCircleCB;
68 
69  QGroupBox * m_scopeGB;
70  QLabel * m_attributeLabel;
71  QLabel * m_operationLabel;
72  KComboBox * m_attribScopeCB;
73  KComboBox * m_operationScopeCB;
74 
75  ClassifierWidget* m_pWidget;
76  Settings::OptionState *m_options;
77  bool m_isDiagram;
78 };
79 #endif
ClassOptionsPage::m_attributeLabel
QLabel * m_attributeLabel
Definition: classoptionspage.h:70
ClassOptionsPage
A dialog page to display options for class related options.
Definition: classoptionspage.h:37
ClassOptionsPage::m_pWidget
ClassifierWidget * m_pWidget
The classifier widget to represent in the dialog page.
Definition: classoptionspage.h:75
ClassOptionsPage::setDefaults
void setDefaults()
Definition: classoptionspage.cpp:65
QWidget
ClassOptionsPage::applyWidget
void applyWidget()
Sets the ClassifierWidget's properties to those selected in this dialog page.
Definition: classoptionspage.cpp:257
ClassOptionsPage::m_operationScopeCB
KComboBox * m_operationScopeCB
Definition: classoptionspage.h:73
ClassOptionsPage::insertOperationScope
void insertOperationScope(const QString &type, int index=-1)
Inserts type into the type-combobox as well as its completion object.
Definition: classoptionspage.cpp:326
ClassOptionsPage::apply
void apply()
apply changes
Definition: classoptionspage.cpp:81
Settings::OptionState
Definition: optionstate.h:141
ClassOptionsPage::insertAttribScope
void insertAttribScope(const QString &type, int index=-1)
Inserts type into the type-combobox as well as its completion object.
Definition: classoptionspage.cpp:317
ClassOptionsPage::m_showStereotypeCB
QCheckBox * m_showStereotypeCB
Definition: classoptionspage.h:65
optionstate.h
ClassOptionsPage::m_showAttribAssocsCB
QCheckBox * m_showAttribAssocsCB
Definition: classoptionspage.h:66
ClassOptionsPage::m_showPublicOnlyCB
QCheckBox * m_showPublicOnlyCB
Definition: classoptionspage.h:65
ClassOptionsPage::m_drawAsCircleCB
QCheckBox * m_drawAsCircleCB
Definition: classoptionspage.h:67
ClassOptionsPage::setupPage
void setupPage()
Creates the page with the correct options for the class/interface.
Definition: classoptionspage.cpp:101
ClassOptionsPage::m_showOpSigCB
QCheckBox * m_showOpSigCB
Definition: classoptionspage.h:64
ClassOptionsPage::ClassOptionsPage
ClassOptionsPage(QWidget *pParent, ClassifierWidget *pWidget)
Constructor - observe and modify a Widget.
Definition: classoptionspage.cpp:33
ClassOptionsPage::m_showVisibilityCB
QCheckBox * m_showVisibilityCB
Definition: classoptionspage.h:63
ClassOptionsPage::m_options
Settings::OptionState * m_options
The OptionState structure to represent in the dialog page.
Definition: classoptionspage.h:76
ClassOptionsPage::m_showAttsCB
QCheckBox * m_showAttsCB
Definition: classoptionspage.h:64
ClassOptionsPage::m_isDiagram
bool m_isDiagram
Flag indicating that page is for diagram property dialog.
Definition: classoptionspage.h:77
ClassOptionsPage::applyOptionState
void applyOptionState()
Sets the OptionState to the values selected in this dialog page.
Definition: classoptionspage.cpp:278
ClassOptionsPage::setWidget
void setWidget(ClassifierWidget *pWidget)
Set related uml widget.
Definition: classoptionspage.cpp:93
ClassOptionsPage::m_showOpsCB
QCheckBox * m_showOpsCB
Definition: classoptionspage.h:64
ClassOptionsPage::~ClassOptionsPage
virtual ~ClassOptionsPage()
Destructor.
Definition: classoptionspage.cpp:61
ClassOptionsPage::setupClassPageOption
void setupClassPageOption()
Creates the page based on the OptionState.
Definition: classoptionspage.cpp:174
ClassOptionsPage::m_visibilityGB
QGroupBox * m_visibilityGB
Definition: classoptionspage.h:62
ClassOptionsPage::m_attribScopeCB
KComboBox * m_attribScopeCB
Definition: classoptionspage.h:72
ClassifierWidget
Common implementation for class widget and interface widget.
Definition: classifierwidget.h:31
ClassOptionsPage::m_showPackageCB
QCheckBox * m_showPackageCB
Definition: classoptionspage.h:65
ClassOptionsPage::m_showAttSigCB
QCheckBox * m_showAttSigCB
Definition: classoptionspage.h:63
ClassOptionsPage::m_scopeGB
QGroupBox * m_scopeGB
Definition: classoptionspage.h:69
ClassOptionsPage::m_operationLabel
QLabel * m_operationLabel
Definition: classoptionspage.h:71
ClassOptionsPage::init
void init()
Initialize optional items.
Definition: classoptionspage.cpp:302
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal