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

TVBrowseView Class Reference

The widget describing how to draw the browse view user interface. More...

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

Collaboration diagram for TVBrowseView:

Collaboration graph
[legend]
List of all members.

Signals

void searchOnKey (int keyIndex, TVVariant keyValue)
void sortChanged (int)

Public Member Functions

 TVBrowseView (TableState *t, QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~TVBrowseView ()
void setDisplayText (const DataElem *)
void rebuildKeys ()
void rebuildData ()
void reset ()

Private Attributes

TableStatets
QTextBrowser * textViewDisplay
TVBrowseKeyEntrykeyEntry

Detailed Description

The widget describing how to draw the browse view user interface.

This widget allows for the user to browse through the table, one element at a time, or search on a single key. Its main goal is to show a single element in a readable format and make it easy for the user to rapidly find specific elements in the table.

Definition at line 29 of file tvbrowseview.h.


Constructor & Destructor Documentation

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

Constructs a new TVBrowseView widget

Definition at line 41 of file tvbrowseview.cpp.

References keyEntry, searchOnKey(), sortChanged(), textViewDisplay, and ts.

TVBrowseView::~TVBrowseView  ) 
 

Destroys the TVBrowseView widget

Definition at line 69 of file tvbrowseview.cpp.


Member Function Documentation

void TVBrowseView::rebuildData  ) 
 

Definition at line 73 of file tvbrowseview.cpp.

References _TableState::current_elem, setDisplayText(), textViewDisplay, and ts.

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

void TVBrowseView::rebuildKeys  ) 
 

Definition at line 120 of file tvbrowseview.cpp.

References keyEntry, and TVBrowseKeyEntry::rebuildKeys().

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

void TVBrowseView::reset  ) 
 

Definition at line 87 of file tvbrowseview.cpp.

References keyEntry, TVBrowseKeyEntry::reset(), and textViewDisplay.

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

void TVBrowseView::searchOnKey int  keyIndex,
TVVariant  keyValue
[signal]
 

Referenced by TVBrowseView().

void TVBrowseView::setDisplayText const DataElem element  ) 
 

sets the data element to be displayed to element

Definition at line 96 of file tvbrowseview.cpp.

References QIntDictIterator< type >::current(), _TableState::current_column, QIntDictIterator< type >::currentKey(), encodeAttr(), DataElem::hasValidValue(), _TableState::kRep, textViewDisplay, DataElem::toQString(), and ts.

Referenced by rebuildData().

void TVBrowseView::sortChanged int   )  [signal]
 

Referenced by TVBrowseView().


Member Data Documentation

TVBrowseKeyEntry* TVBrowseView::keyEntry [private]
 

Definition at line 52 of file tvbrowseview.h.

Referenced by rebuildKeys(), reset(), and TVBrowseView().

QTextBrowser* TVBrowseView::textViewDisplay [private]
 

Definition at line 51 of file tvbrowseview.h.

Referenced by rebuildData(), reset(), setDisplayText(), and TVBrowseView().

TableState* TVBrowseView::ts [private]
 

Definition at line 49 of file tvbrowseview.h.

Referenced by rebuildData(), setDisplayText(), and TVBrowseView().


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