#include <SalomeApp_ListView.h>
Public Member Functions | |
SalomeApp_ListView (QWidget *parent) | |
virtual | ~SalomeApp_ListView () |
virtual void | updateViewer () |
virtual void | updateSelected () |
virtual QString | popupClientType () const |
virtual void | contextMenuPopup (QMenu *) |
void | enableEditing (bool theFlag) |
bool | isEnableEditing () |
void | accept () |
void | clear () |
bool | eventFilter (QObject *object, QEvent *event) |
QRect | tip (QPoint aPos, QString &aText, QRect &dspRect, QFont &dspFnt) const |
Public Member Functions inherited from SUIT_PopupClient | |
SUIT_PopupClient () | |
virtual | ~SUIT_PopupClient () |
bool | connectPopupRequest (QObject *reciever, const char *slot) |
bool | disconnectPopupRequest (QObject *reciever, const char *slot) |
Protected Slots | |
virtual void | onSelectionChanged () |
void | onEditOk () |
void | onEditCancel () |
void | onHeaderSizeChange (int, int, int) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *e) |
void | viewportPaintEvent (QPaintEvent *e) |
virtual UpdateType | finishEditing (bool ok) |
bool | isMouseEnabled () |
void | enableMouse (bool enable) |
Protected Member Functions inherited from SUIT_PopupClient | |
void | contextMenuRequest (QContextMenuEvent *e) |
Protected Attributes | |
SalomeApp_EntityEdit * | myEdit |
SalomeApp_ListViewItem * | myEditedItem |
bool | myEditingEnabled |
bool | myMouseEnabled |
parent class for Data Viewer and Properties Viewer
SalomeApp_ListView::SalomeApp_ListView | ( | QWidget * | parent | ) |
Constructor
References myEdit, myEditedItem, myEditingEnabled, myMouseEnabled, onHeaderSizeChange(), and onSelectionChanged().
|
virtual |
Destructor
References myEdit, and myEditedItem.
void SalomeApp_ListView::accept | ( | ) |
Calls finishEditing(true)...
References finishEditing().
void SalomeApp_ListView::clear | ( | ) |
Clears view
References myEdit, and myEditedItem.
|
virtual |
Fills popup menu with items
Reimplemented from SUIT_PopupClient.
void SalomeApp_ListView::enableEditing | ( | bool | theFlag | ) |
Setting editing of items availbale/not available
References myEdit, myEditedItem, and myEditingEnabled.
|
protected |
Enables/disables mouse events (excluding MouseMove)
References myMouseEnabled.
Event filter
References isMouseEnabled().
|
protectedvirtual |
Finishes editing of entity
References SalomeApp_ListViewItem::finishEditing(), myEdit, myEditedItem, onEditCancel(), onEditOk(), SalomeApp_ListViewItem::setAccepted(), SalomeApp_ListViewItem::updateAllLevels(), updateViewer(), utCancel, utUpdateAll, utUpdateItem, utUpdateParent, and utUpdateViewer.
bool SalomeApp_ListView::isEnableEditing | ( | ) |
Says if editing is enabled
References myEditingEnabled.
|
protected |
References myMouseEnabled.
|
protectedslot |
Called when user cancels item editing
References finishEditing().
|
protectedslot |
Called when user finishes in editing of item
References finishEditing().
|
protectedslot |
Slot, called when columns sizes are changed
|
protectedvirtualslot |
Slot, called when selection changed in List Viewer
References finishEditing(), SalomeApp_ListViewItem::isAccepted(), SalomeApp_ListViewItem::isEditable(), isEnableEditing(), myEdit, myEditedItem, onEditCancel(), onEditOk(), SalomeApp_EntityEdit::setFocus(), and SalomeApp_ListViewItem::startEditing().
|
virtual |
Returns popup client type
Implements SUIT_PopupClient.
|
protected |
Called when Data Viewer is resized
QRect SalomeApp_ListView::tip | ( | QPoint | aPos, |
QString & | aText, | ||
QRect & | dspRect, | ||
QFont & | dspFnt | ||
) | const |
valid | rect in success |
References SalomeApp_ListViewItem::itemRect(), SalomeApp_ListViewItem::textRect(), SalomeApp_ListViewItem::tipRect(), and SalomeApp_ListViewItem::tipText().
|
virtual |
Updates currently selected item(s)
References SalomeApp_ListViewItem::updateAllLevels().
|
virtual |
Updates all data viewer
References SalomeApp_ListViewItem::updateAllLevels().
|
protected |
Handler for paint event
References computeEditGeometry(), myEdit, and myEditedItem.
|
protected |
|
protected |
|
protected |
|
protected |