libyui-qt  2.44.0
 All Classes Functions Variables
YQTable Class Reference
Inheritance diagram for YQTable:
Collaboration diagram for YQTable:

Public Member Functions

 YQTable (YWidget *parent, YTableHeader *header, bool multiSelection)
 
virtual ~YQTable ()
 
virtual void setKeepSorting (bool keepSorting)
 
virtual void addItem (YItem *item)
 
virtual void addItems (const YItemCollection &itemCollection)
 
virtual void selectItem (YItem *item, bool selected=true)
 
virtual void deselectAllItems ()
 
virtual void deleteAllItems ()
 
virtual void cellChanged (const YTableCell *cell)
 
virtual void setEnabled (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Slots

void slotSelected (QTreeWidgetItem *)
 
void slotSelectionChanged ()
 
void slotActivated (QTreeWidgetItem *)
 
void slotContextMenu (const QPoint &pos)
 

Protected Member Functions

void selectOrigItem (QTreeWidgetItem *listViewItem)
 
void addItem (YItem *item, bool batchMode, bool resizeColumnsToContent)
 

Protected Attributes

QY2ListView_qt_listView
 

Detailed Description

Definition at line 37 of file YQTable.h.

Constructor & Destructor Documentation

YQTable::YQTable ( YWidget *  parent,
YTableHeader *  header,
bool  multiSelection 
)

Constructor.

Definition at line 43 of file YQTable.cc.

Here is the call graph for this function:

YQTable::~YQTable ( )
virtual

Destructor.

Definition at line 109 of file YQTable.cc.

Member Function Documentation

void YQTable::addItem ( YItem *  item)
virtual

Add an item.

Reimplemented from YSelectionWidget.

Definition at line 125 of file YQTable.cc.

void YQTable::addItem ( YItem *  item,
bool  batchMode,
bool  resizeColumnsToContent 
)
protected

Internal addItem() method that will not do expensive operations in batch mode.

Definition at line 134 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::addItems ( const YItemCollection &  itemCollection)
virtual

Add multiple items.

Reimplemented for efficiency from YSelectionWidget.

Definition at line 182 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::cellChanged ( const YTableCell *  cell)
virtual

Notification that a cell (its text and/or its icon) was changed from the outside. Applications are required to call this whenever a table cell is changed after adding the corresponding table item (the row) to the table widget.

Reimplemented from YTable.

Definition at line 254 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::deleteAllItems ( )
virtual

Delete all items.

Reimplemented from YSelectionWidget.

Definition at line 246 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::deselectAllItems ( )
virtual

Deselect all items.

Reimplemented from YSelectionWidget.

Definition at line 236 of file YQTable.cc.

int YQTable::preferredHeight ( )
virtual

Preferred height of the widget.

Reimplemented from YWidget.

Definition at line 374 of file YQTable.cc.

int YQTable::preferredWidth ( )
virtual

Preferred width of the widget.

Reimplemented from YWidget.

Definition at line 364 of file YQTable.cc.

void YQTable::selectItem ( YItem *  item,
bool  selected = true 
)
virtual

Select or deselect an item.

Reimplemented from YSelectionWidget.

Definition at line 209 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::selectOrigItem ( QTreeWidgetItem *  listViewItem)
protected

Select the original item (the YTableItem) that corresponds to the specified listViewItem.

Definition at line 267 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::setEnabled ( bool  enabled)
virtual

Set enabled/disabled state.

Reimplemented from YWidget.

Definition at line 354 of file YQTable.cc.

void YQTable::setKeepSorting ( bool  keepSorting)
virtual

Switch between sorting by item insertion order (keepSorting: true) or allowing the user to sort by an arbitrary column (by clicking on the column header).

Reimplemented from YTable.

Definition at line 116 of file YQTable.cc.

Here is the call graph for this function:

bool YQTable::setKeyboardFocus ( )
virtual

Accept the keyboard focus.

Reimplemented from YWidget.

Definition at line 391 of file YQTable.cc.

void YQTable::setSize ( int  newWidth,
int  newHeight 
)
virtual

Set the new size of the widget.

Reimplemented from YWidget.

Definition at line 384 of file YQTable.cc.

void YQTable::slotActivated ( QTreeWidgetItem *  listViewItem)
protectedslot

Notification that an item is activated (double click or keyboard).

Definition at line 341 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::slotContextMenu ( const QPoint &  pos)
protectedslot

Propagate a context menu selection

This will trigger an 'ContextMenuActivated' event if 'notifyContextMenu' is set.

Definition at line 400 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::slotSelected ( QTreeWidgetItem *  listViewItem)
protectedslot

Notification that an item is selected (single click or keyboard).

Definition at line 280 of file YQTable.cc.

Here is the call graph for this function:

void YQTable::slotSelectionChanged ( )
protectedslot

Notification that the item selection changed (relevant for multiSelection mode).

Definition at line 306 of file YQTable.cc.

Here is the call graph for this function:


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