• 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
constraintlistpage.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) 2003-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef CONSTRAINTLISTPAGE_H
12 #define CONSTRAINTLISTPAGE_H
13 
14 //app includes
15 #include "umlclassifierlistitemlist.h"
16 #include "classifierlistpage.h"
17 
18 //qt includes
19 #include <QWidget>
20 
21 class KAction;
22 class KMenu;
23 
31 class ConstraintListPage : public ClassifierListPage
32 {
33  Q_OBJECT
34 public:
35 
36  ConstraintListPage(QWidget* parent, UMLClassifier* classifier,
37  UMLDoc* doc, UMLObject::ObjectType type);
38  virtual ~ConstraintListPage();
39 
40 private:
41 
42  KAction* newUniqueConstraintAction;
43  KAction* newPrimaryKeyConstraintAction;
44  KAction* newForeignKeyConstraintAction;
45  KAction* newCheckConstraintAction;
46 
47  void setupActions();
48 
49 private slots:
50 
51  void slotNewUniqueConstraint();
52  void slotNewPrimaryKeyConstraint();
53  void slotNewForeignKeyConstraint();
54  void slotNewCheckConstraint();
55  virtual UMLClassifierListItemList getItemList();
56 
57 protected:
58 
59  bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2);
60 
61  KMenu* buttonMenu;
62 
63 };
64 
65 #endif
UMLClassifierListItemList
This sub-class adds copyInto and clone to the QPtrList base class...
Definition: umlclassifierlistitemlist.h:26
UMLClassifier
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
ConstraintListPage::~ConstraintListPage
virtual ~ConstraintListPage()
Standard destructor.
Definition: constraintlistpage.cpp:66
KMenu
QWidget
ConstraintListPage::greaterThan
bool greaterThan(UMLObject::ObjectType ct1, UMLObject::ObjectType ct2)
Calculates the new index to be assigned when an object of type ot is to be added to the list box...
Definition: constraintlistpage.cpp:214
ClassifierListPage
A dialog page to display classifier list properties.
Definition: classifierlistpage.h:42
classifierlistpage.h
UMLObject::ObjectType
ObjectType
Definition: umlobject.h:47
ConstraintListPage::ConstraintListPage
ConstraintListPage(QWidget *parent, UMLClassifier *classifier, UMLDoc *doc, UMLObject::ObjectType type)
Sets up the ConstraintListPage.
Definition: constraintlistpage.cpp:45
ConstraintListPage
A dialog page to display entity constraint properties.
Definition: constraintlistpage.h:31
umlclassifierlistitemlist.h
ConstraintListPage::buttonMenu
KMenu * buttonMenu
Definition: constraintlistpage.h:61
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: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