umbrello API Documentation

SelectOpDlg Class Reference

A dialog used to select an operation. A dialog to select an operation. More...

#include <selectopdlg.h>

List of all members.

Public Slots

void slotSelected (int id)

Public Member Functions

 SelectOpDlg (UMLView *parent, UMLClassifier *c)
 Constructs a SelectOpDlg instance.
 ~SelectOpDlg ()
 Standard deconstructor.
QString getOpText ()
 Returns the operation to display.
bool isClassOp () const
 Return whether the user selected a class operation or a custom operation.
QString getSeqNumber ()
 Returns the sequence number for the operation.
void setSeqNumber (const QString &num)
 Set the sequence number text.
void setCustomOp (const QString &op)
 Set the custom operation text.
bool setClassOp (const QString &op)
 Set the class operation text.

Protected Member Functions

void insertOperation (const QString &type, int index=-1)
 Inserts type into the type-combobox as well as its completion object.


Detailed Description

A dialog used to select an operation. A dialog to select an operation.

Author:
Paul Hensgen <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 39 of file selectopdlg.h.


Constructor & Destructor Documentation

SelectOpDlg::SelectOpDlg UMLView parent,
UMLClassifier c
 

Constructs a SelectOpDlg instance.

Parameters:
parent The parent to this instance.
c The concept to get the operations from.

Definition at line 29 of file selectopdlg.cpp.

References insertOperation(), and Dialog_Utils::makeLabeledEditField().

SelectOpDlg::~SelectOpDlg  ) 
 

Standard deconstructor.

Definition at line 76 of file selectopdlg.cpp.


Member Function Documentation

QString SelectOpDlg::getOpText  ) 
 

Returns the operation to display.

Returns:
The operation to display.

Definition at line 87 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

bool SelectOpDlg::isClassOp  )  const
 

Return whether the user selected a class operation or a custom operation.

Returns:
True if user selected a class operation, false if user selected a custom operation

Definition at line 94 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

QString SelectOpDlg::getSeqNumber  ) 
 

Returns the sequence number for the operation.

Returns:
Returns the sequence number for the operation.

Definition at line 131 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

void SelectOpDlg::setSeqNumber const QString &  num  ) 
 

Set the sequence number text.

Parameters:
num The number to set the sequence to.

Definition at line 135 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

void SelectOpDlg::setCustomOp const QString &  op  ) 
 

Set the custom operation text.

Parameters:
op The operation to set as the custom operation.

Definition at line 110 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

bool SelectOpDlg::setClassOp const QString &  op  ) 
 

Set the class operation text.

Parameters:
op The operation to set as the class operation.
Returns:
false if no such operation exists.

Definition at line 118 of file selectopdlg.cpp.

Referenced by FloatingTextWidget::showOpDlg().

void SelectOpDlg::insertOperation const QString &  type,
int  index = -1
[protected]
 

Inserts type into the type-combobox as well as its completion object.

Definition at line 81 of file selectopdlg.cpp.

Referenced by SelectOpDlg().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003