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