#include <SalomeApp_ListView.h>
|
| | 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 |
| |
Constructor
References init().
Constructor
References init().
| SalomeApp_ListViewItem::SalomeApp_ListViewItem |
( |
SalomeApp_ListView * |
parent, |
|
|
const QStringList & |
theStrings, |
|
|
const bool |
theEditable = false |
|
) |
| |
| SalomeApp_ListViewItem::~SalomeApp_ListViewItem |
( |
| ) |
|
| int SalomeApp_ListViewItem::depth |
( |
| ) |
const |
|
protected |
Returns the depth of this item
| QString SalomeApp_ListViewItem::fullName |
( |
| ) |
|
- Returns
- full path to the entity from the root
References getName().
| int SalomeApp_ListViewItem::getButtons |
( |
| ) |
|
|
virtual |
- Returns
- buttons for editing widget (Apply (V), Cancel (X)) default is both buttons
References myButtons.
| int SalomeApp_ListViewItem::getEditedColumn |
( |
| ) |
|
|
virtual |
- Return values
-
| edited | column, default is last column negative value means there are no editable columns |
| int SalomeApp_ListViewItem::getEditingType |
( |
| ) |
|
|
virtual |
- Return values
-
| type | of edit control (default is edit box)
- 0 - edit box
- 1 - combo box
- 2 - editable combo box
|
References myEditingType.
| QString SalomeApp_ListViewItem::getName |
( |
| ) |
const |
|
virtual |
- Returns
- text in the first column
| int SalomeApp_ListViewItem::getUserType |
( |
| ) |
|
|
virtual |
| QString SalomeApp_ListViewItem::getValue |
( |
| ) |
const |
|
virtual |
- Returns
- text in the second column
| int SalomeApp_ListViewItem::getValueType |
( |
| ) |
|
|
virtual |
- Return values
-
| type | of edited value (string, int, double) default is string |
References myValueType.
| void SalomeApp_ListViewItem::init |
( |
| ) |
|
|
protected |
| bool SalomeApp_ListViewItem::isAccepted |
( |
| ) |
const |
- Returns
- true if entitiy is accepted after editing
References myAccepted.
| bool SalomeApp_ListViewItem::isEditable |
( |
| ) |
const |
- Returns
- true if entity is editable
References myEditable.
| QRect SalomeApp_ListViewItem::itemRect |
( |
const int |
column | ) |
const |
Calculates rect of item data in viewport coordinates
References depth().
| void SalomeApp_ListViewItem::openAllLevels |
( |
| ) |
|
| void SalomeApp_ListViewItem::setAccepted |
( |
bool |
theAccepted | ) |
|
Sets entitiy accepted or not after editing
References myAccepted.
| void SalomeApp_ListViewItem::setButtons |
( |
const int |
buttons | ) |
|
|
virtual |
Sets buttons for editing widget (Apply (V), Cancel (X))
References myButtons.
| void SalomeApp_ListViewItem::setEditable |
( |
bool |
theEditable | ) |
|
Sets editable flag fo the entity
References myEditable.
| void SalomeApp_ListViewItem::setEditingType |
( |
const int |
type | ) |
|
|
virtual |
- Return values
-
| type | of edit control (negative value means none)
- 0 - edit box
- 1 - combo box
- 2 - editable combo box
|
References myEditingType.
| void SalomeApp_ListViewItem::setUserType |
( |
const int |
userType | ) |
|
|
virtual |
| void SalomeApp_ListViewItem::setValueType |
( |
const int |
valueType | ) |
|
|
virtual |
| QRect SalomeApp_ListViewItem::textRect |
( |
const int |
column | ) |
const |
Calculates rect of item text in viewport coordinates
References depth().
| QRect SalomeApp_ListViewItem::tipRect |
( |
| ) |
|
| QString SalomeApp_ListViewItem::tipText |
( |
| ) |
|
| void SalomeApp_ListViewItem::updateAllLevels |
( |
| ) |
|
|
virtual |
| bool SalomeApp_ListViewItem::myAccepted |
|
private |
| int SalomeApp_ListViewItem::myButtons |
|
private |
| bool SalomeApp_ListViewItem::myEditable |
|
private |
| int SalomeApp_ListViewItem::myEditingType |
|
private |
| int SalomeApp_ListViewItem::myUserType |
|
private |
| int SalomeApp_ListViewItem::myValueType |
|
private |
The documentation for this class was generated from the following files: