Version: 6.3.1
Public Member Functions | Protected Member Functions | Private Attributes

SalomeApp_ListViewItem Class Reference

#include <SalomeApp_ListView.h>

Inheritance diagram for SalomeApp_ListViewItem:
Inheritance graph

Public Member Functions

 SalomeApp_ListViewItem (SalomeApp_ListView *)
 SalomeApp_ListViewItem (SalomeApp_ListView *, SalomeApp_ListViewItem *)
 SalomeApp_ListViewItem (SalomeApp_ListView *, const QStringList &, const bool=false)
 SalomeApp_ListViewItem (SalomeApp_ListViewItem *, const QStringList &, const bool=false)
 SalomeApp_ListViewItem (SalomeApp_ListView *, SalomeApp_ListViewItem *, const QString &, const bool=false)
 SalomeApp_ListViewItem (SalomeApp_ListViewItem *, SalomeApp_ListViewItem *, const QString &, const bool=false)
 SalomeApp_ListViewItem (SalomeApp_ListView *, SalomeApp_ListViewItem *, const QString &theName, const QString &theValue, const bool=false)
 SalomeApp_ListViewItem (SalomeApp_ListViewItem *, SalomeApp_ListViewItem *, const QString &, const QString &, const bool=false)
 ~SalomeApp_ListViewItem ()
QString fullName ()
void openAllLevels ()
virtual void updateAllLevels ()
bool isEditable () const
void setEditable (bool theEditable)
bool isAccepted () const
void setAccepted (bool theAccepted)
virtual QString getName () const
virtual UpdateType setName (const QString &theName)
virtual QString getValue () const
virtual UpdateType setValue (const QString &theValue)
SalomeApp_EntityEditstartEditing ()
virtual void fillWidgetWithValues (SalomeApp_EntityEdit *theWidget)
virtual UpdateType finishEditing (SalomeApp_EntityEdit *theWidget)
virtual int getEditingType ()
virtual void setEditingType (const int)
virtual int getEditedColumn ()
virtual int getValueType ()
virtual void setValueType (const int)
virtual int getUserType ()
virtual void setUserType (const int)
virtual int getButtons ()
virtual void setButtons (const int)
QString tipText ()
QRect tipRect ()
QRect textRect (const int column) const
QRect itemRect (const int column) const

Protected Member Functions

void init ()
int depth () const

Private Attributes

bool myEditable
bool myAccepted
int myEditingType
int myValueType
int myButtons
int myUserType

Constructor & Destructor Documentation

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListView parent)

Constructor

References init().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListView parent,
SalomeApp_ListViewItem after 
)

Constructor

References init().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListView parent,
const QStringList &  theStrings,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListViewItem parent,
const QStringList &  theString,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListView parent,
SalomeApp_ListViewItem after,
const QString &  theName,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListViewItem parent,
SalomeApp_ListViewItem after,
const QString &  theName,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListView parent,
SalomeApp_ListViewItem after,
const QString &  theName,
const QString &  theValue,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::SalomeApp_ListViewItem ( SalomeApp_ListViewItem parent,
SalomeApp_ListViewItem after,
const QString &  theName,
const QString &  theValue,
const bool  theEditable = false 
)

Constructor

References init(), and setEditable().

SalomeApp_ListViewItem::~SalomeApp_ListViewItem ( )

Destructor


Member Function Documentation

QString SalomeApp_ListViewItem::fullName ( )
Returns:
full path to the entity from the root

References getName().

void SalomeApp_ListViewItem::openAllLevels ( )

expands all entities beginning from this level

References openAllLevels().

void SalomeApp_ListViewItem::updateAllLevels ( ) [virtual]

update all entites beginning from this level

References updateAllLevels().

bool SalomeApp_ListViewItem::isEditable ( ) const
Returns:
true if entity is editable

References myEditable.

void SalomeApp_ListViewItem::setEditable ( bool  theEditable)

Sets editable flag fo the entity

References myEditable.

bool SalomeApp_ListViewItem::isAccepted ( ) const
Returns:
true if entitiy is accepted after editing

References myAccepted.

void SalomeApp_ListViewItem::setAccepted ( bool  theAccepted)

Sets entitiy accepted or not after editing

References myAccepted.

QString SalomeApp_ListViewItem::getName ( ) const [virtual]
Returns:
text in the first column
UpdateType SalomeApp_ListViewItem::setName ( const QString &  theName) [virtual]

Sets text in the first column

References utCancel, and utNone.

QString SalomeApp_ListViewItem::getValue ( ) const [virtual]
Returns:
text in the second column
UpdateType SalomeApp_ListViewItem::setValue ( const QString &  theValue) [virtual]

Sets text in the second column

References utCancel, and utNone.

SalomeApp_EntityEdit * SalomeApp_ListViewItem::startEditing ( )
void SalomeApp_ListViewItem::fillWidgetWithValues ( SalomeApp_EntityEdit theWidget) [virtual]

Fills widget with initial values (list or single value)

References getEditedColumn(), and SalomeApp_EntityEdit.insertItem().

UpdateType SalomeApp_ListViewItem::finishEditing ( SalomeApp_EntityEdit theWidget) [virtual]

Finishes editing of entity

References getEditedColumn(), SalomeApp_EntityEdit.getText(), setName(), setValue(), and utCancel.

int SalomeApp_ListViewItem::getEditingType ( ) [virtual]
Return values:
typeof edit control (default is edit box)

  • 0 - edit box
  • 1 - combo box
  • 2 - editable combo box

References myEditingType.

void SalomeApp_ListViewItem::setEditingType ( const int  type) [virtual]
Return values:
typeof edit control (negative value means none)

  • 0 - edit box
  • 1 - combo box
  • 2 - editable combo box

References myEditingType.

int SalomeApp_ListViewItem::getEditedColumn ( ) [virtual]
Return values:
editedcolumn, default is last column negative value means there are no editable columns
int SalomeApp_ListViewItem::getValueType ( ) [virtual]
Return values:
typeof edited value (string, int, double) default is string

References myValueType.

void SalomeApp_ListViewItem::setValueType ( const int  valueType) [virtual]

Sets type of edited value

References myValueType.

int SalomeApp_ListViewItem::getUserType ( ) [virtual]

Sets type of edited value

References myUserType.

void SalomeApp_ListViewItem::setUserType ( const int  userType) [virtual]

Sets type of edited value

References myUserType.

int SalomeApp_ListViewItem::getButtons ( ) [virtual]
Returns:
buttons for editing widget (Apply (V), Cancel (X)) default is both buttons

References myButtons.

void SalomeApp_ListViewItem::setButtons ( const int  buttons) [virtual]

Sets buttons for editing widget (Apply (V), Cancel (X))

References myButtons.

QString SalomeApp_ListViewItem::tipText ( )
Returns:
text for tooltip

References getName(), and getValue().

QRect SalomeApp_ListViewItem::tipRect ( )

Calculates rectangle which should contain item's tip

References textRect(), and tipText().

QRect SalomeApp_ListViewItem::textRect ( const int  column) const

Calculates rect of item text in viewport coordinates

References depth().

QRect SalomeApp_ListViewItem::itemRect ( const int  column) const

Calculates rect of item data in viewport coordinates

References depth().

void SalomeApp_ListViewItem::init ( ) [protected]
int SalomeApp_ListViewItem::depth ( ) const [protected]

Returns the depth of this item


Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS