• 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
parmpropdlg.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 #ifndef PARMPROPDLG_H
12 #define PARMPROPDLG_H
13 
14 #include "attribute.h"
15 
16 #include <kdialog.h>
17 #include <klineedit.h>
18 #include <kcombobox.h>
19 #include <ktextedit.h>
20 
21 class UMLDoc;
22 class QComboBox;
23 class QGroupBox;
24 class QLabel;
25 class QRadioButton;
26 
36 class ParmPropDlg : public KDialog
37 {
38  Q_OBJECT
39 public:
40 
41  ParmPropDlg(QWidget * parent, UMLDoc * doc, UMLAttribute * attr);
42  ~ParmPropDlg();
43 
44 public slots:
45 
46  void slotOk();
47 
48 protected:
49 
54  QString getDoc() {
55  return m_doc->toPlainText();
56  }
57 
58  QString getName() {
59  return m_pNameLE->text();
60  }
61 
62  QString getInitialValue() {
63  return m_pInitialLE->text();
64  }
65 
66  QString getTypeName() {
67  return m_pTypeCB->currentText();
68  }
69 
70  Uml::ParameterDirection::Enum getParmKind();
71 
72  void insertTypesSorted(const QString& type = "");
73 
74  void insertStereotypesSorted(const QString& type = "");
75 
76  bool validate();
77 
78 protected slots:
79 
80  virtual void slotButtonClicked(int button);
81 
82 private:
83  QGroupBox * m_pParmGB, * m_docGB;
84  QGroupBox *m_pKind;
85  QRadioButton * m_pIn, * m_pOut, *m_pInOut;
86  QLabel * m_pTypeL, * m_pNameL, * m_pInitialL, * m_pStereoTypeL;
87  KComboBox * m_pTypeCB, * m_pStereoTypeCB;
88  KLineEdit * m_pNameLE, * m_pInitialLE;
89  KTextEdit * m_doc;
90  UMLDoc * m_pUmldoc;
91  UMLAttribute * m_pAtt;
92 };
93 
94 #endif
ParmPropDlg::slotOk
void slotOk()
Ok clicked slot.
Definition: parmpropdlg.cpp:288
ParmPropDlg::insertStereotypesSorted
void insertStereotypesSorted(const QString &type="")
Inserts type into the stereotype-combobox as well as its completion object.
Definition: parmpropdlg.cpp:218
ParmPropDlg::getDoc
QString getDoc()
Returns the documentation.
Definition: parmpropdlg.h:54
ParmPropDlg
Displays a dialog box that displays properties of a parameter.
Definition: parmpropdlg.h:36
QWidget
UMLAttribute
This class is used to set up information for an attribute.
Definition: attribute.h:27
ParmPropDlg::slotButtonClicked
virtual void slotButtonClicked(int button)
Activated when a button is clicked.
Definition: parmpropdlg.cpp:275
KDialog
attribute.h
ParmPropDlg::validate
bool validate()
Validates the fields in the dialog box.
Definition: parmpropdlg.cpp:260
ParmPropDlg::ParmPropDlg
ParmPropDlg(QWidget *parent, UMLDoc *doc, UMLAttribute *attr)
Constructs a ParmPropDlg.
Definition: parmpropdlg.cpp:44
ParmPropDlg::~ParmPropDlg
~ParmPropDlg()
Standard destructor.
Definition: parmpropdlg.cpp:167
ParmPropDlg::getTypeName
QString getTypeName()
Definition: parmpropdlg.h:66
ParmPropDlg::getName
QString getName()
Definition: parmpropdlg.h:58
Uml::ParameterDirection::Enum
Enum
Definition: basictypes.h:226
ParmPropDlg::getInitialValue
QString getInitialValue()
Definition: parmpropdlg.h:62
ParmPropDlg::getParmKind
Uml::ParameterDirection::Enum getParmKind()
Return the kind of the parameter (in, out, or inout).
Definition: parmpropdlg.cpp:246
ParmPropDlg::insertTypesSorted
void insertTypesSorted(const QString &type="")
Inserts type into the type-combobox as well as its completion object.
Definition: parmpropdlg.cpp:177
KTextEdit
UMLDoc
UMLDoc provides a document object for a document-view model.
Definition: umldoc.h:63
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