• 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
selectopdlg.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 SELECTOPDLG_H
12 #define SELECTOPDLG_H
13 
14 #include <kdialog.h>
15 
16 class KComboBox;
17 class KLineEdit;
18 class QCheckBox;
19 class QGroupBox;
20 class QLabel;
21 class QRadioButton;
22 class UMLClassifier;
23 class UMLView;
24 
32 class SelectOpDlg : public KDialog
33 {
34  Q_OBJECT
35 public:
36  SelectOpDlg(QWidget * parent, UMLClassifier * c, bool enableAutoIncrement = true);
37  ~SelectOpDlg();
38 
39  QString getOpText();
40 
41  bool isClassOp() const;
42 
43  QString getSeqNumber();
44 
45  bool autoIncrementSequence();
46  void setAutoIncrementSequence(bool state);
47 
48  void setSeqNumber(const QString &num);
49 
50  void setCustomOp(const QString &op);
51 
52  bool setClassOp(const QString &op);
53 
54 protected:
55  void setupOperationsList();
56 
57 private:
58  static const int OP = 0;
59  static const int CUSTOM = 1;
60 
61  QGroupBox * m_pOpGB;
62  KComboBox * m_pOpCB;
63  QLabel * m_pSeqL;
64  KLineEdit * m_pOpLE, * m_pSeqLE;
65  QLabel * m_pCustomRB, * m_pOpRB;
66  QPushButton * m_newOperationButton;
67  QCheckBox * m_pOpAS;
68  QString m_Text;
69  int m_nOpCount;
70  int m_id;
71  UMLView *m_pView;
72  UMLClassifier *m_classifier;
73 
74 public slots:
75  void slotAutoIncrementChecked(bool state);
76  void slotNewOperation();
77  void slotIndexChanged(int index);
78  void slotTextChanged(const QString &text);
79 };
80 
81 #endif
82 
SelectOpDlg::setSeqNumber
void setSeqNumber(const QString &num)
Set the sequence number text.
Definition: selectopdlg.cpp:236
UMLClassifier
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
SelectOpDlg::slotTextChanged
void slotTextChanged(const QString &text)
Handle custom line edit changes.
Definition: selectopdlg.cpp:179
SelectOpDlg::isClassOp
bool isClassOp() const
Return whether the user selected a class operation or a custom operation.
Definition: selectopdlg.cpp:128
UMLView
UMLView instances represent diagrams.
Definition: umlview.h:32
SelectOpDlg::slotIndexChanged
void slotIndexChanged(int index)
Handle combox box changes.
Definition: selectopdlg.cpp:168
QWidget
SelectOpDlg::getSeqNumber
QString getSeqNumber()
Returns the sequence number for the operation.
Definition: selectopdlg.cpp:226
KDialog
SelectOpDlg::slotAutoIncrementChecked
void slotAutoIncrementChecked(bool state)
handle auto increment checkbox click
Definition: selectopdlg.cpp:147
SelectOpDlg::SelectOpDlg
SelectOpDlg(QWidget *parent, UMLClassifier *c, bool enableAutoIncrement=true)
Constructs a SelectOpDlg instance.
Definition: selectopdlg.cpp:49
SelectOpDlg::slotNewOperation
void slotNewOperation()
handle new operation button click
Definition: selectopdlg.cpp:156
SelectOpDlg::autoIncrementSequence
bool autoIncrementSequence()
Definition: selectopdlg.cpp:250
SelectOpDlg
A dialog used to select an operation.
Definition: selectopdlg.h:32
SelectOpDlg::setupOperationsList
void setupOperationsList()
setup dialog operations list
Definition: selectopdlg.cpp:208
SelectOpDlg::setAutoIncrementSequence
void setAutoIncrementSequence(bool state)
Definition: selectopdlg.cpp:243
SelectOpDlg::setClassOp
bool setClassOp(const QString &op)
Set the class operation text.
Definition: selectopdlg.cpp:193
SelectOpDlg::getOpText
QString getOpText()
Returns the operation to display.
Definition: selectopdlg.cpp:113
SelectOpDlg::setCustomOp
void setCustomOp(const QString &op)
Set the custom operation text.
Definition: selectopdlg.cpp:138
SelectOpDlg::~SelectOpDlg
~SelectOpDlg()
Standard destructor.
Definition: selectopdlg.cpp:104
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