• 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
umlattributedialog.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 <[email protected]> *
9  ***************************************************************************/
10 
11 #ifndef UMLATTRIBUTEDIALOG_H
12 #define UMLATTRIBUTEDIALOG_H
13 
14 #include <kdialog.h>
15 
16 class QCheckBox;
17 class QGroupBox;
18 class QRadioButton;
19 class QLabel;
20 class UMLAttribute;
21 class KComboBox;
22 class KLineEdit;
23 
28 class UMLAttributeDialog : public KDialog
29 {
30  Q_OBJECT
31 public:
32  UMLAttributeDialog(QWidget * pParent, UMLAttribute * pAttribute);
33  ~UMLAttributeDialog();
34 
35 protected:
36 
37  void setupDialog();
38 
39  bool apply();
40 
41  void insertTypesSorted(const QString& type = "");
42 
46  UMLAttribute * m_pAttribute;
47 
48  //GUI Widgets
49  QGroupBox * m_pValuesGB;
50  QGroupBox * m_pScopeGB;
51  QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB, * m_pImplementationRB;
52  QLabel * m_pTypeL, * m_pNameL, * m_pInitialL, * m_pStereoTypeL;
53  KComboBox * m_pTypeCB;
54  KLineEdit * m_pNameLE, * m_pInitialLE, * m_pStereoTypeLE;
55  QCheckBox* m_pStaticCB;
56 
57 public slots:
58 
59  void slotApply();
60 
61  void slotOk();
62  void slotNameChanged(const QString &);
63 };
64 
65 #endif
UMLAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlattributedialog.h:49
UMLAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlattributedialog.h:50
UMLAttributeDialog::slotApply
void slotApply()
I don't think this is used, but if we had an apply button it would slot into here.
Definition: umlattributedialog.cpp:238
UMLAttributeDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umlattributedialog.h:51
QWidget
UMLAttribute
This class is used to set up information for an attribute.
Definition: attribute.h:27
UMLAttributeDialog
Definition: umlattributedialog.h:28
KDialog
UMLAttributeDialog::setupDialog
void setupDialog()
Sets up the dialog.
Definition: umlattributedialog.cpp:60
UMLAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlattributedialog.h:52
UMLAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlattributedialog.h:54
UMLAttributeDialog::m_pTypeL
QLabel * m_pTypeL
Definition: umlattributedialog.h:52
UMLAttributeDialog::m_pStereoTypeL
QLabel * m_pStereoTypeL
Definition: umlattributedialog.h:52
UMLAttributeDialog::m_pTypeCB
KComboBox * m_pTypeCB
Definition: umlattributedialog.h:53
UMLAttributeDialog::~UMLAttributeDialog
~UMLAttributeDialog()
Definition: umlattributedialog.cpp:53
UMLAttributeDialog::m_pStaticCB
QCheckBox * m_pStaticCB
Definition: umlattributedialog.h:55
UMLAttributeDialog::m_pImplementationRB
QRadioButton * m_pImplementationRB
Definition: umlattributedialog.h:51
UMLAttributeDialog::m_pStereoTypeLE
KLineEdit * m_pStereoTypeLE
Definition: umlattributedialog.h:54
UMLAttributeDialog::slotOk
void slotOk()
Used when the OK button is clicked.
Definition: umlattributedialog.cpp:246
UMLAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlattributedialog.h:51
UMLAttributeDialog::apply
bool apply()
Checks if changes are valid and applies them if they are, else returns false.
Definition: umlattributedialog.cpp:155
UMLAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlattributedialog.h:54
UMLAttributeDialog::m_pAttribute
UMLAttribute * m_pAttribute
The Attribute to represent.
Definition: umlattributedialog.h:46
UMLAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlattributedialog.cpp:146
UMLAttributeDialog::insertTypesSorted
void insertTypesSorted(const QString &type="")
Inserts type into the type-combobox as well as its completion object.
Definition: umlattributedialog.cpp:259
UMLAttributeDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umlattributedialog.h:51
UMLAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlattributedialog.h:52
UMLAttributeDialog::UMLAttributeDialog
UMLAttributeDialog(QWidget *pParent, UMLAttribute *pAttribute)
Definition: umlattributedialog.cpp:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 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