#include <SalomeApp_ListView.h>

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_EntityEdit * | startEditing () |
| 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 |
| 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
| QString SalomeApp_ListViewItem::fullName | ( | ) |
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 |
References myEditable.
| void SalomeApp_ListViewItem::setEditable | ( | bool | theEditable | ) |
Sets editable flag fo the entity
References myEditable.
| bool SalomeApp_ListViewItem::isAccepted | ( | ) | const |
References myAccepted.
| void SalomeApp_ListViewItem::setAccepted | ( | bool | theAccepted | ) |
Sets entitiy accepted or not after editing
References myAccepted.
| QString SalomeApp_ListViewItem::getName | ( | ) | const [virtual] |
| UpdateType SalomeApp_ListViewItem::setName | ( | const QString & | theName | ) | [virtual] |
| QString SalomeApp_ListViewItem::getValue | ( | ) | const [virtual] |
| UpdateType SalomeApp_ListViewItem::setValue | ( | const QString & | theValue | ) | [virtual] |
| SalomeApp_EntityEdit * SalomeApp_ListViewItem::startEditing | ( | ) |
Creates control for editing and fills it with values
References SalomeApp_EntityEdit.btApply, SalomeApp_EntityEdit.btCancel, computeEditGeometry(), fillWidgetWithValues(), getButtons(), getEditedColumn(), getEditingType(), getValueType(), and isEditable().
| 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] |
| type | of edit control (default is edit box)
|
References myEditingType.
| void SalomeApp_ListViewItem::setEditingType | ( | const int | type | ) | [virtual] |
| type | of edit control (negative value means none)
|
References myEditingType.
| int SalomeApp_ListViewItem::getEditedColumn | ( | ) | [virtual] |
| edited | column, default is last column negative value means there are no editable columns |
| int SalomeApp_ListViewItem::getValueType | ( | ) | [virtual] |
| type | of 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] |
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 | ( | ) |
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] |
Initialization
References SalomeApp_EntityEdit.etLineEdit, myAccepted, myButtons, myEditable, myEditingType, myUserType, myValueType, and SalomeApp_EntityEdit.vtString.
| int SalomeApp_ListViewItem::depth | ( | ) | const [protected] |
Returns the depth of this item
bool SalomeApp_ListViewItem.myEditable [private] |
bool SalomeApp_ListViewItem.myAccepted [private] |
int SalomeApp_ListViewItem.myEditingType [private] |
int SalomeApp_ListViewItem.myValueType [private] |
int SalomeApp_ListViewItem.myButtons [private] |
int SalomeApp_ListViewItem.myUserType [private] |