#include <SalomeApp_ListView.h>
|
| | SalomeApp_EntityEdit (QWidget *parent, int controlType=etLineEdit, int valueType=vtString, bool butApply=false, bool butCancel=false) |
| |
| | ~SalomeApp_EntityEdit () |
| |
| void | finishEditing () |
| |
| void | clear () |
| |
| QString | getText () |
| |
| void | setText (const QString &theText) |
| |
| void | insertItem (const QString &theValue, bool theSetCurrent=false, int theOrder=atBottom) |
| |
| void | insertList (const QStringList &theList, const int theCurrent=-1) |
| |
| void | insertItem (const int theValue, bool theSetCurrent=false) |
| |
| void | insertList (const TColStd_ListOfInteger &theList, const int theCurrent=-1) |
| |
| void | insertItem (const double theValue, bool theSetCurrent=false) |
| |
| void | insertList (const TColStd_ListOfReal &theList, const int theCurrent=-1) |
| |
| QWidget * | getControl () |
| |
| void | setFocus () |
| |
| void | setValidator (const QValidator *) |
| |
| void | showButtons (bool show) |
| |
| void | setDuplicatesEnabled (bool enabled) |
| |
| Enumerator |
|---|
| etLineEdit |
|
| etComboBox |
|
| etComboEdit |
|
| Enumerator |
|---|
| vtString |
|
| vtInteger |
|
| vtDouble |
|
| Enumerator |
|---|
| atBottom |
|
| atTop |
|
| atBeforeCurrent |
|
| atAfterCurrent |
|
| Enumerator |
|---|
| btApply |
|
| btCancel |
|
| SalomeApp_EntityEdit::SalomeApp_EntityEdit |
( |
QWidget * |
parent, |
|
|
int |
controlType = etLineEdit, |
|
|
int |
valueType = vtString, |
|
|
bool |
butApply = false, |
|
|
bool |
butCancel = false |
|
) |
| |
Constructor
References SUIT_Session::activeApplication(), app, escapePressed(), etComboBox, etComboEdit, etLineEdit, QtxResourceMgr::loadPixmap(), MIN_COMBO_WIDTH, MIN_EDIT_WIDTH, myApplyBtn, myCancelBtn, myCombo, myEdit, onApply(), onCancel(), onComboActivated(), onTextChanged(), SUIT_Application::resourceMgr(), returnPressed(), SUIT_Session::session(), setValidator(), vtDouble, vtInteger, and vtString.
| SalomeApp_EntityEdit::~SalomeApp_EntityEdit |
( |
| ) |
|
| void SalomeApp_EntityEdit::clear |
( |
| ) |
|
| void SalomeApp_EntityEdit::escapePressed |
( |
| ) |
|
|
signal |
| void SalomeApp_EntityEdit::finishEditing |
( |
| ) |
|
| QWidget * SalomeApp_EntityEdit::getControl |
( |
| ) |
|
| QString SalomeApp_EntityEdit::getText |
( |
| ) |
|
- Returns
- current text in edit box or combo box
References myCombo, and myEdit.
| void SalomeApp_EntityEdit::insertItem |
( |
const QString & |
theValue, |
|
|
bool |
theSetCurrent = false, |
|
|
int |
theOrder = atBottom |
|
) |
| |
| void SalomeApp_EntityEdit::insertItem |
( |
const int |
theValue, |
|
|
bool |
theSetCurrent = false |
|
) |
| |
| void SalomeApp_EntityEdit::insertItem |
( |
const double |
theValue, |
|
|
bool |
theSetCurrent = false |
|
) |
| |
| void SalomeApp_EntityEdit::insertList |
( |
const QStringList & |
theList, |
|
|
const int |
theCurrent = -1 |
|
) |
| |
| void SalomeApp_EntityEdit::insertList |
( |
const TColStd_ListOfInteger & |
theList, |
|
|
const int |
theCurrent = -1 |
|
) |
| |
| void SalomeApp_EntityEdit::insertList |
( |
const TColStd_ListOfReal & |
theList, |
|
|
const int |
theCurrent = -1 |
|
) |
| |
| void SalomeApp_EntityEdit::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
protected |
| void SalomeApp_EntityEdit::onApply |
( |
| ) |
|
|
privateslot |
| void SalomeApp_EntityEdit::onCancel |
( |
| ) |
|
|
privateslot |
| void SalomeApp_EntityEdit::onComboActivated |
( |
const QString & |
theText | ) |
|
|
privateslot |
| void SalomeApp_EntityEdit::onTextChanged |
( |
const QString & |
theText | ) |
|
|
privateslot |
| void SalomeApp_EntityEdit::returnPressed |
( |
| ) |
|
|
signal |
| void SalomeApp_EntityEdit::setDuplicatesEnabled |
( |
bool |
enabled | ) |
|
Enables/disables data duplication (for combo box)
References myCombo.
| void SalomeApp_EntityEdit::setFocus |
( |
| ) |
|
redirect focus to corresponding widget
References myCombo, and myEdit.
| void SalomeApp_EntityEdit::setText |
( |
const QString & |
theText | ) |
|
| void SalomeApp_EntityEdit::showButtons |
( |
bool |
show | ) |
|
| QString SalomeApp_EntityEdit::myString |
|
private |
The documentation for this class was generated from the following files: