#include <YQTable.h>
Inheritance diagram for YQTable:
Public Member Functions | |
YQTable (QWidget *parent, const YWidgetOpt &opt, vector< string > header) | |
void | setEnabling (bool enabled) |
long | nicesize (YUIDimension dim) |
void | setSize (long newWidth, long newHeight) |
void | itemAdded (vector< string > elements, int index) |
void | itemsCleared () |
void | cellChanged (int index, int colnum, const YCPString &newtext) |
int | getCurrentItem () |
void | setCurrentItem (int index) |
virtual bool | setKeyboardFocus () |
bool | sortByInsertionOrder () const |
Protected Slots | |
void | slotSelected (QListViewItem *) |
void | slotActivated (QListViewItem *) |
void | userSort (int column) |
Protected Member Functions | |
QListViewItem * | findItem (int index) |
Protected Attributes | |
QListView * | _qt_listview |
bool | _sort_by_insertion_order |
bool | _enable_user_sort |
YQListViewItem * | _last_item |
|
Constructor. |
|
Inherited from YTable. is called, when the text of a cell has changed. Implements YTable. |
|
Helper function. Find item with given id. |
|
Inherited from YTable. Returns the index of the currently selected item or -1 if no item is selected. Implements YTable. |
|
Notification that new items have been added. Reimplemented from YTable. Reimplemented from YTable. |
|
Inherited from YTable. Is called, when alls items are cleared. Implements YTable. |
|
Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT Implements YWidget. |
|
Inherited from YTable. Makes another item selected. Implements YTable. |
|
Inherited from YWidget: Sets the enabled state of the widget. All new widgets are enabled per definition. Only enabled widgets can take user input. Reimplemented from YWidget. |
|
Accept the keyboard focus. Reimplemented from YWidget. |
|
Sets the new size of the widget. Reimplemented from YWidget. |
|
Notification that an item is activated. Only relevant if `opt(`notify) is set. |
|
Notification that an item is selected. Only relevant if `opt(`notify, `immediate) is set. |
|
Returns 'true' if items should be ordered by insertion order |
|
Notification that the user wishes to change the sort order. |
|
Flag: User may re-sort the table by clicking on a header? |
|
For maintaining insertion order |
|
The Qt widget representing the table |
|
Sorting strategy |