umbrello  2.38.5
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
SelectOperationPage Class Reference

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

#include <selectoperationpage.h>

Inheritance diagram for SelectOperationPage:
Collaboration diagram for SelectOperationPage:

Public Slots

void slotAutoIncrementChecked (bool state)
 
void slotNewOperation ()
 
void slotIndexChanged (int index)
 
void slotTextChanged (const QString &text)
 

Signals

void enableButtonOk (bool state)
 

Public Member Functions

 SelectOperationPage (UMLView *parent, UMLClassifier *c, LinkWidget *widget, bool enableAutoIncrement=true)
 
 ~SelectOperationPage ()
 
QString getOpText ()
 
bool isClassOp () const
 
QString getSeqNumber ()
 
bool autoIncrementSequence ()
 
void setAutoIncrementSequence (bool state)
 
void setSeqNumber (const QString &num)
 
void setCustomOp (const QString &op)
 
bool setClassOp (const QString &op)
 
void setupDialog ()
 
bool apply ()
 
- Public Member Functions inherited from DialogPageBase
 DialogPageBase (QWidget *parent)
 
virtual ~DialogPageBase ()
 
virtual bool isModified ()
 

Protected Member Functions

void setupOperationsList ()
 
- Protected Member Functions inherited from DialogPageBase
virtual void keyPressEvent (QKeyEvent *event)
 

Private Attributes

QGroupBox * m_pOpGB
 
KComboBox * m_pOpCB
 
QLabel * m_pSeqL
 
QLineEdit * m_pOpLE
 
QLineEdit * m_pSeqLE
 
QLabel * m_pCustomRB
 
QLabel * m_pOpRB
 
QPushButton * m_newOperationButton
 
QCheckBox * m_pOpAS
 
QString m_Text
 
DocumentationWidgetm_docWidget
 
int m_nOpCount
 
int m_id
 takes on the value OP or CUSTOM according to what the user selected More...
 
UMLViewm_pView
 
UMLClassifierm_classifier
 
LinkWidgetm_widget
 
bool m_enableAutoIncrement
 

Static Private Attributes

static const int OP = 0
 
static const int CUSTOM = 1
 

Additional Inherited Members

- Protected Attributes inherited from DialogPageBase
bool m_isModified
 

Detailed Description

A dialog page to select an operation.

A dialog page used to select an operation.

Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

SelectOperationPage::SelectOperationPage ( UMLView parent,
UMLClassifier c,
LinkWidget widget,
bool  enableAutoIncrement = true 
)

Constructs a SelectOperationPage instance.

Parameters
parentThe parent to this instance.
cThe concept to get the operations from.
widgetThe LinkWidget with which the operation is associated on diagram
enableAutoIncrementFlag to enable auto increment checkbox

Here is the call graph for this function:

SelectOperationPage::~SelectOperationPage ( )

Standard destructor.

Member Function Documentation

bool SelectOperationPage::apply ( )

apply changes to the related instamces

Returns
true - success
false - failure

Here is the call graph for this function:

bool SelectOperationPage::autoIncrementSequence ( )

Return the flag for auto increment sequence numbering.

void SelectOperationPage::enableButtonOk ( bool  state)
signal
QString SelectOperationPage::getOpText ( )

Returns the operation to display.

Returns
The operation to display.
QString SelectOperationPage::getSeqNumber ( )

Returns the sequence number for the operation.

Returns
Returns the sequence number for the operation.
bool SelectOperationPage::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
void SelectOperationPage::setAutoIncrementSequence ( bool  state)

Set the flag for auto increment sequence numbering.

Parameters
statethe state of the flag
bool SelectOperationPage::setClassOp ( const QString &  op)

Set the class operation text.

Parameters
opThe operation to set as the class operation.
Returns
false if no such operation exists.

Here is the call graph for this function:

void SelectOperationPage::setCustomOp ( const QString &  op)

Set the custom operation text.

Parameters
opThe operation to set as the custom operation.

Here is the call graph for this function:

void SelectOperationPage::setSeqNumber ( const QString &  num)

Set the sequence number text.

Parameters
numThe number to set the sequence to.
void SelectOperationPage::setupDialog ( )

internal setup function

Here is the call graph for this function:

void SelectOperationPage::setupOperationsList ( )
protected

Setup dialog operations list.

Here is the call graph for this function:

void SelectOperationPage::slotAutoIncrementChecked ( bool  state)
slot

Handle auto increment checkbox click.

Here is the call graph for this function:

void SelectOperationPage::slotIndexChanged ( int  index)
slot

Handle combox box changes.

void SelectOperationPage::slotNewOperation ( )
slot

Handle new operation button click.

Here is the call graph for this function:

void SelectOperationPage::slotTextChanged ( const QString &  text)
slot

Handle custom line edit changes.

Member Data Documentation

const int SelectOperationPage::CUSTOM = 1
staticprivate
UMLClassifier* SelectOperationPage::m_classifier
private
DocumentationWidget* SelectOperationPage::m_docWidget
private
bool SelectOperationPage::m_enableAutoIncrement
private
int SelectOperationPage::m_id
private

takes on the value OP or CUSTOM according to what the user selected

QPushButton* SelectOperationPage::m_newOperationButton
private
int SelectOperationPage::m_nOpCount
private
QLabel* SelectOperationPage::m_pCustomRB
private
QCheckBox* SelectOperationPage::m_pOpAS
private
KComboBox* SelectOperationPage::m_pOpCB
private
QGroupBox* SelectOperationPage::m_pOpGB
private
QLineEdit* SelectOperationPage::m_pOpLE
private
QLabel * SelectOperationPage::m_pOpRB
private
QLabel* SelectOperationPage::m_pSeqL
private
QLineEdit * SelectOperationPage::m_pSeqLE
private
UMLView* SelectOperationPage::m_pView
private
QString SelectOperationPage::m_Text
private
LinkWidget* SelectOperationPage::m_widget
private
const int SelectOperationPage::OP = 0
staticprivate

The documentation for this class was generated from the following files: