Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SalomeApp_ListView Class Reference

#include <SalomeApp_ListView.h>

Inheritance diagram for SalomeApp_ListView:
Inheritance graph

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_EntityEditmyEdit
 
SalomeApp_ListViewItemmyEditedItem
 
bool myEditingEnabled
 
bool myMouseEnabled
 

Detailed Description

parent class for Data Viewer and Properties Viewer

Constructor & Destructor Documentation

SalomeApp_ListView::SalomeApp_ListView ( QWidget parent)
SalomeApp_ListView::~SalomeApp_ListView ( )
virtual

Destructor

References myEdit, and myEditedItem.

Member Function Documentation

void SalomeApp_ListView::accept ( )

Calls finishEditing(true)...

References finishEditing().

void SalomeApp_ListView::clear ( )

Clears view

References myEdit, and myEditedItem.

void SalomeApp_ListView::contextMenuPopup ( QMenu aPopup)
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.

void SalomeApp_ListView::enableMouse ( bool  enable)
protected

Enables/disables mouse events (excluding MouseMove)

References myMouseEnabled.

bool SalomeApp_ListView::eventFilter ( QObject object,
QEvent event 
)

Event filter

References isMouseEnabled().

bool SalomeApp_ListView::isEnableEditing ( )

Says if editing is enabled

References myEditingEnabled.

bool SalomeApp_ListView::isMouseEnabled ( )
protected
Returns
true if mouse events are enabled

References myMouseEnabled.

void SalomeApp_ListView::onEditCancel ( )
protectedslot

Called when user cancels item editing

References finishEditing().

void SalomeApp_ListView::onEditOk ( )
protectedslot

Called when user finishes in editing of item

References finishEditing().

void SalomeApp_ListView::onHeaderSizeChange ( int  ,
int  ,
int   
)
protectedslot

Slot, called when columns sizes are changed

void SalomeApp_ListView::onSelectionChanged ( )
protectedvirtualslot
QString SalomeApp_ListView::popupClientType ( ) const
virtual

Returns popup client type

Implements SUIT_PopupClient.

void SalomeApp_ListView::resizeEvent ( QResizeEvent *  e)
protected

Called when Data Viewer is resized

QRect SalomeApp_ListView::tip ( QPoint  aPos,
QString &  aText,
QRect &  dspRect,
QFont &  dspFnt 
) const
Returns
current tooltip for list view
Return values
validrect in success

References SalomeApp_ListViewItem::itemRect(), SalomeApp_ListViewItem::textRect(), SalomeApp_ListViewItem::tipRect(), and SalomeApp_ListViewItem::tipText().

void SalomeApp_ListView::updateSelected ( )
virtual

Updates currently selected item(s)

References SalomeApp_ListViewItem::updateAllLevels().

void SalomeApp_ListView::updateViewer ( )
virtual

Updates all data viewer

References SalomeApp_ListViewItem::updateAllLevels().

void SalomeApp_ListView::viewportPaintEvent ( QPaintEvent *  e)
protected

Handler for paint event

References computeEditGeometry(), myEdit, and myEditedItem.

Member Data Documentation

SalomeApp_EntityEdit* SalomeApp_ListView::myEdit
protected
SalomeApp_ListViewItem* SalomeApp_ListView::myEditedItem
protected
bool SalomeApp_ListView::myEditingEnabled
protected
bool SalomeApp_ListView::myMouseEnabled
protected

The documentation for this class was generated from the following files: