Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TVListView Class Reference

#include </home/clem/local/src/opie/noncore/apps/tableviewer/ui/tvlistview.h>

Collaboration diagram for TVListView:

Collaboration graph
[legend]
List of all members.

Signals

void loadFile ()
void browseView ()
void filterView ()
void editView ()

Public Member Functions

 TVListView (TableState *t, QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~TVListView ()
void addItem (DataElem *)
void removeItem ()
void clearItems ()
void first ()
void last ()
void next ()
void previous ()
void rebuildKeys ()
void rebuildData ()
void reset ()
DataElemgetCurrentData ()
void findItem (int i, TVVariant v)

Protected Slots

void setSorting (int)
void setCurrent (QListViewItem *)

Protected Attributes

QListViewItemIterator * it
TableStatets
TVListViewPrivatelistViewDisplay
QMap< int, int > keyIds

Constructor & Destructor Documentation

TVListView::TVListView TableState t,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 95 of file tvlistview.cpp.

References it, listViewDisplay, setCurrent(), setSorting(), tr, and ts.

TVListView::~TVListView  ) 
 

Definition at line 125 of file tvlistview.cpp.


Member Function Documentation

void TVListView::addItem DataElem  ) 
 

Definition at line 129 of file tvlistview.cpp.

References i, it, and listViewDisplay.

Referenced by TableViewerWindow::applyFilter(), TableViewerWindow::editKeysSlot(), and TableViewerWindow::openDocument().

void TVListView::browseView  )  [signal]
 

void TVListView::clearItems  ) 
 

Definition at line 156 of file tvlistview.cpp.

References it, and listViewDisplay.

Referenced by TableViewerWindow::applyFilter(), TableViewerWindow::editKeysSlot(), and TableViewerWindow::openDocument().

void TVListView::editView  )  [signal]
 

void TVListView::filterView  )  [signal]
 

void TVListView::findItem int  keyId,
TVVariant  value
 

Now to implement the closest match function

Definition at line 202 of file tvlistview.cpp.

References DataElem::closer(), TVListViewItem::getDataElem(), i, it, listViewDisplay, and NULL.

Referenced by TableViewerWindow::searchOnKey().

void TVListView::first  ) 
 

Definition at line 165 of file tvlistview.cpp.

References it, and listViewDisplay.

Referenced by TableViewerWindow::applyFilter(), TableViewerWindow::firstItem(), and TableViewerWindow::openDocument().

DataElem * TVListView::getCurrentData  ) 
 

Definition at line 194 of file tvlistview.cpp.

References it, and NULL.

Referenced by TableViewerWindow::browseViewSlot(), TableViewerWindow::firstItem(), TableViewerWindow::lastItem(), TableViewerWindow::nextItem(), TableViewerWindow::openDocument(), TableViewerWindow::previousItem(), and TableViewerWindow::searchOnKey().

void TVListView::last  ) 
 

Definition at line 171 of file tvlistview.cpp.

References oendl, and owarn.

Referenced by TableViewerWindow::lastItem().

void TVListView::loadFile  )  [signal]
 

void TVListView::next  ) 
 

Definition at line 176 of file tvlistview.cpp.

References it.

Referenced by TableViewerWindow::nextItem().

void TVListView::previous  ) 
 

Definition at line 185 of file tvlistview.cpp.

References it.

Referenced by TableViewerWindow::previousItem().

void TVListView::rebuildData  ) 
 

Definition at line 265 of file tvlistview.cpp.

References QMap< Key, T >::begin(), _TableState::current_column, QMap< Key, T >::end(), i, it, keyIds, listViewDisplay, TVListViewPrivate::setSorting(), and ts.

Referenced by TableViewerWindow::applyFilter(), TableViewerWindow::deleteItemSlot(), TableViewerWindow::editItemSlot(), TableViewerWindow::newItemSlot(), TableViewerWindow::openDocument(), and TableViewerWindow::setPrimaryKey().

void TVListView::rebuildKeys  ) 
 

Definition at line 231 of file tvlistview.cpp.

References QIntDictIterator< type >::current(), QIntDictIterator< type >::currentKey(), i, QMap< Key, T >::insert(), keyIds, _TableState::kRep, listViewDisplay, and ts.

Referenced by TableViewerWindow::editKeysSlot(), and TableViewerWindow::openDocument().

void TVListView::removeItem  ) 
 

Definition at line 138 of file tvlistview.cpp.

References it.

Referenced by TableViewerWindow::deleteItemSlot().

void TVListView::reset  ) 
 

Definition at line 292 of file tvlistview.cpp.

References QMap< Key, T >::clear(), i, keyIds, and listViewDisplay.

Referenced by TableViewerWindow::editKeysSlot(), TableViewerWindow::newDocument(), and TableViewerWindow::openDocument().

void TVListView::setCurrent QListViewItem *   )  [protected, slot]
 

Definition at line 304 of file tvlistview.cpp.

References _TableState::current_elem, TVListViewItem::getDataElem(), it, t, and ts.

Referenced by TVListView().

void TVListView::setSorting int   )  [protected, slot]
 

Definition at line 255 of file tvlistview.cpp.

References _TableState::current_column, keyIds, and ts.

Referenced by TVListView().


Member Data Documentation

QListViewItemIterator* TVListView::it [protected]
 

Definition at line 83 of file tvlistview.h.

Referenced by addItem(), clearItems(), findItem(), first(), getCurrentData(), next(), previous(), rebuildData(), removeItem(), setCurrent(), and TVListView().

QMap<int, int> TVListView::keyIds [protected]
 

Definition at line 88 of file tvlistview.h.

Referenced by rebuildData(), rebuildKeys(), reset(), and setSorting().

TVListViewPrivate* TVListView::listViewDisplay [protected]
 

Definition at line 86 of file tvlistview.h.

Referenced by addItem(), clearItems(), findItem(), first(), rebuildData(), rebuildKeys(), reset(), and TVListView().

TableState* TVListView::ts [protected]
 

Definition at line 84 of file tvlistview.h.

Referenced by rebuildData(), rebuildKeys(), setCurrent(), setSorting(), and TVListView().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:54:30 2005 for OPIE by  doxygen 1.4.2