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

TVBrowseKeyEntry Class Reference

a Widget used enter keys into the TVBrowseViewWidget More...

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

Collaboration diagram for TVBrowseKeyEntry:

Collaboration graph
[legend]
List of all members.

Signals

void searchOnKey (int keyIndex, TVVariant keyData)
void sortChanged (int i)

Public Member Functions

 TVBrowseKeyEntry (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~TVBrowseKeyEntry ()
void setTableState (TableState *t)
void rebuildKeys ()
void reset ()

Private Slots

void changeKeySlot (int)
void changeKeyMenuSlot ()
void searchOnText ()

Private Attributes

QPushButton * resetButton
QToolButton * changeKeyButton
QPopupMenu * keyMenu
int totalKeys
TableStatets
QWidgetStack * ws
QLineEdit * textKey
IntEditintKey
DateEditdateKey
TimeEdittimeKey

Detailed Description

a Widget used enter keys into the TVBrowseViewWidget

The TVBrowseKeyEntry Widget provides the facility to enter various key types to be search on in the table. The key can be changed and the entry field will update to the correct sort of widget appropriately

Definition at line 37 of file browsekeyentry.h.


Constructor & Destructor Documentation

TVBrowseKeyEntry::TVBrowseKeyEntry QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Constructs the widget

Definition at line 49 of file browsekeyentry.cpp.

References changeKeyButton, changeKeyMenuSlot(), dateKey, keyMenu, resetButton, searchOnText(), textKey, timeKey, totalKeys, tr, ts, and ws.

TVBrowseKeyEntry::~TVBrowseKeyEntry  ) 
 

Destructs the widget

Definition at line 117 of file browsekeyentry.cpp.


Member Function Documentation

void TVBrowseKeyEntry::changeKeyMenuSlot  )  [private, slot]
 

Opens the change key menu

Definition at line 149 of file browsekeyentry.cpp.

References changeKeyButton, keyMenu, and ts.

Referenced by TVBrowseKeyEntry().

void TVBrowseKeyEntry::changeKeySlot int  id_param  )  [private, slot]
 

Changes which key the user intends to search on

Parameters:
id_param the index of the key future searches should be base on

Definition at line 126 of file browsekeyentry.cpp.

References _TableState::current_column, KeyList::getKeyType(), _TableState::kRep, sortChanged(), ts, and ws.

Referenced by rebuildKeys(), and setTableState().

void TVBrowseKeyEntry::rebuildKeys  ) 
 

Definition at line 138 of file browsekeyentry.cpp.

References changeKeySlot(), QIntDictIterator< type >::current(), QIntDictIterator< type >::currentKey(), i, keyMenu, _TableState::kRep, and ts.

Referenced by TVBrowseView::rebuildKeys().

void TVBrowseKeyEntry::reset  ) 
 

Definition at line 156 of file browsekeyentry.cpp.

References keyMenu.

Referenced by TVBrowseView::reset().

void TVBrowseKeyEntry::searchOnKey int  currentKeyId,
TVVariant  keyData
[signal]
 

This signal indicates that a search on key index currentKeyId should be done searching for the value v.

Referenced by searchOnText().

void TVBrowseKeyEntry::searchOnText  )  [private, slot]
 

Searches on the current value of the key entry provided that the current key is of type text WARNING, TODO fix memory leaks

Definition at line 180 of file browsekeyentry.cpp.

References _TableState::current_column, d, KeyList::getKeyType(), QDate::isValid(), QTime::isValid(), _TableState::kRep, oendl, owarn, s, searchOnKey(), textKey, ts, and Opie::MM::y.

Referenced by TVBrowseKeyEntry().

void TVBrowseKeyEntry::setTableState TableState t  ) 
 

Definition at line 162 of file browsekeyentry.cpp.

References changeKeySlot(), KeyList::getKeyName(), i, keyMenu, _TableState::kRep, and ts.

void TVBrowseKeyEntry::sortChanged int  i  )  [signal]
 

Referenced by changeKeySlot().


Member Data Documentation

QToolButton* TVBrowseKeyEntry::changeKeyButton [private]
 

Definition at line 60 of file browsekeyentry.h.

Referenced by changeKeyMenuSlot(), and TVBrowseKeyEntry().

DateEdit* TVBrowseKeyEntry::dateKey [private]
 

Definition at line 71 of file browsekeyentry.h.

Referenced by TVBrowseKeyEntry().

IntEdit* TVBrowseKeyEntry::intKey [private]
 

Definition at line 70 of file browsekeyentry.h.

QPopupMenu* TVBrowseKeyEntry::keyMenu [private]
 

Definition at line 61 of file browsekeyentry.h.

Referenced by changeKeyMenuSlot(), rebuildKeys(), reset(), setTableState(), and TVBrowseKeyEntry().

QPushButton* TVBrowseKeyEntry::resetButton [private]
 

Definition at line 59 of file browsekeyentry.h.

Referenced by TVBrowseKeyEntry().

QLineEdit* TVBrowseKeyEntry::textKey [private]
 

Definition at line 69 of file browsekeyentry.h.

Referenced by searchOnText(), and TVBrowseKeyEntry().

TimeEdit* TVBrowseKeyEntry::timeKey [private]
 

Definition at line 72 of file browsekeyentry.h.

Referenced by TVBrowseKeyEntry().

int TVBrowseKeyEntry::totalKeys [private]
 

Definition at line 62 of file browsekeyentry.h.

Referenced by TVBrowseKeyEntry().

TableState* TVBrowseKeyEntry::ts [private]
 

Definition at line 63 of file browsekeyentry.h.

Referenced by changeKeyMenuSlot(), changeKeySlot(), rebuildKeys(), searchOnText(), setTableState(), and TVBrowseKeyEntry().

QWidgetStack* TVBrowseKeyEntry::ws [private]
 

Definition at line 66 of file browsekeyentry.h.

Referenced by changeKeySlot(), and TVBrowseKeyEntry().


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