Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQTable Class Reference

#include <YQTable.h>

Inheritance diagram for YQTable:

YTable YWidget List of all members.

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 & Destructor Documentation

YQTable::YQTable (  QWidget *  parent,
const YWidgetOpt &  opt,
vector< string >  header
) 
 

Constructor.


Member Function Documentation

void YQTable::cellChanged (  int  index,
int  colnum,
const YCPString &  newtext
)  [virtual]
 

Inherited from YTable. is called, when the text of a cell has changed.

Implements YTable.

QListViewItem * YQTable::findItem (  int  index  )  [protected]
 

Helper function. Find item with given id.

int YQTable::getCurrentItem (   )  [virtual]
 

Inherited from YTable. Returns the index of the currently selected item or -1 if no item is selected.

Implements YTable.

void YQTable::itemAdded (  vector< string >  elements,
int  index
)  [virtual]
 

Notification that new items have been added.

Reimplemented from YTable.

Implements YTable.

void YQTable::itemsCleared (   )  [virtual]
 

Inherited from YTable. Is called, when alls items are cleared.

Implements YTable.

long YQTable::nicesize (  YUIDimension  dim  )  [virtual]
 

Minimum size the widget should have to make it look and feel nice. Dimension, either YD_HORIZ or YD_VERT

Implements YWidget.

void YQTable::setCurrentItem (  int  index  )  [virtual]
 

Inherited from YTable. Makes another item selected.

Implements YTable.

void YQTable::setEnabling (  bool  enabled  )  [virtual]
 

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.

bool YQTable::setKeyboardFocus (   )  [virtual]
 

Accept the keyboard focus.

Reimplemented from YWidget.

void YQTable::setSize (  long  newWidth,
long  newHeight
)  [virtual]
 

Sets the new size of the widget.

Reimplemented from YWidget.

void YQTable::slotActivated (  QListViewItem *   )  [protected, slot]
 

Notification that an item is activated. Only relevant if `opt(`notify) is set.

void YQTable::slotSelected (  QListViewItem *   )  [protected, slot]
 

Notification that an item is selected. Only relevant if `opt(`notify, `immediate) is set.

bool YQTable::sortByInsertionOrder (   )  const [inline]
 

Returns 'true' if items should be ordered by insertion order

void YQTable::userSort (  int  column  )  [protected, slot]
 

Notification that the user wishes to change the sort order.


Member Data Documentation

bool YQTable::_enable_user_sort [protected]
 

Flag: User may re-sort the table by clicking on a header?

YQListViewItem* YQTable::_last_item [protected]
 

For maintaining insertion order

QListView* YQTable::_qt_listview [protected]
 

The Qt widget representing the table

bool YQTable::_sort_by_insertion_order [protected]
 

Sorting strategy


The documentation for this class was generated from the following files:
Generated on Wed Sep 14 10:59:04 2005 for yast2-qt by  doxygen 1.4.4