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

AbTable Class Reference

QTable based class for showing a list of entries. More...

#include </home/clem/local/src/opie/core/pim/addressbook/abtable.h>

Collaboration diagram for AbTable:

Collaboration graph
[legend]
List of all members.

Signals

void signalSwitch ()
void signalEditor ()
void signalKeyDown ()
void signalKeyUp ()
void signalSortOrderChanged (bool order)

Public Member Functions

 AbTable (const QValueList< int > ordered, QWidget *parent, const char *name=0)
 ~AbTable ()
void setContacts (const Opie::OPimContactAccess::List &viewList)
void setOrderedList (const QValueList< int > ordered)
bool selectContact (int UID)
Opie::OPimContact currentEntry ()
int currentEntry_UID ()
void init ()
void clear ()
void refresh ()
void show ()
void setPaintingEnabled (bool e)
void viewportPaintEvent (QPaintEvent *e)
void paintCell (QPainter *p, int row, int col, const QRect &, bool)
void setChoiceSelection (const QValueList< int > &list)
QStringList choiceSelection (int index) const

Protected Slots

void moveTo (char)
virtual void columnClicked (int col)
void itemClicked (int, int col)
void rowHeightChanged (int row)

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)

Private Member Functions

ContactItem findContactContact (const Opie::OPimContact &entry, int row)
void fitColumns ()
void resizeRows ()
void realignTable ()
void resort ()
void updateVisible ()

Private Attributes

int lastSortCol
bool asc
QValueList< int > intFields
QStringList choicenames
bool enablePainting
bool columnVisible
int countNested
Opie::OPimContactAccess::List m_viewList

Detailed Description

QTable based class for showing a list of entries.

Definition at line 78 of file abtable.h.


Constructor & Destructor Documentation

AbTable::AbTable const QValueList< int >  ordered,
QWidget *  parent,
const char *  name = 0
 

Definition at line 115 of file abtable.cpp.

References init(), and itemClicked().

AbTable::~AbTable  ) 
 

Definition at line 136 of file abtable.cpp.


Member Function Documentation

QStringList AbTable::choiceSelection int  index  )  const
 

Definition at line 464 of file abtable.cpp.

Referenced by AddressPicker::selection().

void AbTable::clear  ) 
 

Definition at line 233 of file abtable.cpp.

References FALSE, odebug, oendl, setPaintingEnabled(), and TRUE.

Referenced by setContacts().

void AbTable::columnClicked int  col  )  [protected, virtual, slot]
 

Definition at line 206 of file abtable.cpp.

References asc, odebug, oendl, and signalSortOrderChanged().

Opie::OPimContact AbTable::currentEntry  ) 
 

Definition at line 223 of file abtable.cpp.

References m_viewList.

Referenced by currentEntry_UID().

int AbTable::currentEntry_UID  ) 
 

Definition at line 228 of file abtable.cpp.

References currentEntry().

ContactItem AbTable::findContactContact const Opie::OPimContact entry,
int  row
[private]
 

Definition at line 608 of file abtable.cpp.

References Opie::OPimContact::anniversary(), Qtopia::Anniversary, Opie::OPimContact::assistant(), Qtopia::Assistant, QValueList< T >::begin(), Opie::OPimContact::birthday(), Qtopia::Birthday, Opie::OPimContact::businessCity(), Qtopia::BusinessCity, Opie::OPimContact::businessCountry(), Qtopia::BusinessCountry, Opie::OPimContact::businessFax(), Qtopia::BusinessFax, Opie::OPimContact::businessMobile(), Qtopia::BusinessMobile, Opie::OPimContact::businessPager(), Qtopia::BusinessPager, Opie::OPimContact::businessPhone(), Qtopia::BusinessPhone, Opie::OPimContact::businessStreet(), Qtopia::BusinessStreet, Opie::OPimContact::businessWebpage(), Qtopia::BusinessWebPage, Opie::OPimContact::businessZip(), Qtopia::BusinessZip, Opie::OPimContact::children(), Qtopia::Children, Opie::OPimContact::company(), Qtopia::Company, Opie::OPimContact::defaultEmail(), Qtopia::DefaultEmail, Opie::OPimContact::department(), Qtopia::Department, Opie::OPimContact::emails(), Qtopia::Emails, QValueList< T >::end(), Opie::OPimContact::fileAs(), Qtopia::FileAs, Opie::OPimContact::gender(), Qtopia::Gender, Opie::OPimContact::homeCity(), Qtopia::HomeCity, Opie::OPimContact::homeCountry(), Qtopia::HomeCountry, Opie::OPimContact::homeFax(), Qtopia::HomeFax, Opie::OPimContact::homeMobile(), Qtopia::HomeMobile, Opie::OPimContact::homePhone(), Qtopia::HomePhone, Opie::OPimContact::homeState(), Qtopia::HomeState, Opie::OPimContact::homeStreet(), Qtopia::HomeStreet, Opie::OPimContact::homeWebpage(), Qtopia::HomeWebPage, Opie::OPimContact::homeZip(), Qtopia::HomeZip, ContactItem::icon, intFields, QString::isEmpty(), Opie::OPimContact::jobTitle(), Qtopia::JobTitle, Opie::Core::OResource::loadPixmap(), Opie::OPimContact::manager(), Qtopia::Manager, Opie::OPimContact::nickname(), Qtopia::Nickname, Opie::OPimContact::notes(), Qtopia::Notes, TimeString::numberDateString(), Opie::OPimContact::office(), Qtopia::Office, Opie::OPimContact::profession(), Qtopia::Profession, Opie::OPimContact::spouse(), Qtopia::Spouse, Opie::OPimContact::suffix(), Qtopia::Suffix, Opie::OPimContact::title(), Qtopia::Title, and ContactItem::value.

Referenced by paintCell(), and refresh().

void AbTable::fitColumns  )  [private]
 

Definition at line 393 of file abtable.cpp.

References columnVisible, FALSE, odebug, oendl, setPaintingEnabled(), and TRUE.

Referenced by realignTable().

void AbTable::init  ) 
 

Definition at line 140 of file abtable.cpp.

References columnVisible, and tr.

Referenced by AbTable().

void AbTable::itemClicked int  ,
int  col
[protected, slot]
 

Definition at line 441 of file abtable.cpp.

References signalSwitch().

Referenced by AbTable().

void AbTable::keyPressEvent QKeyEvent *  e  )  [protected, virtual]
 

Definition at line 279 of file abtable.cpp.

References Qt::Key_Enter, Qt::Key_Return, Qt::Key_Space, moveTo(), and signalSwitch().

void AbTable::moveTo char   )  [protected, slot]
 

Definition at line 307 of file abtable.cpp.

References odebug, and oendl.

Referenced by keyPressEvent().

void AbTable::paintCell QPainter *  p,
int  row,
int  col,
const QRect &  ,
bool 
 

Definition at line 548 of file abtable.cpp.

References f, Opie::OPimContact::fileAs(), findContactContact(), ContactItem::icon, m_viewList, ContactItem::value, Opie::MM::x, and Opie::MM::y.

void AbTable::realignTable  )  [private]
 

Definition at line 343 of file abtable.cpp.

References FALSE, fitColumns(), resizeRows(), setPaintingEnabled(), and TRUE.

Referenced by show(), and updateVisible().

void AbTable::refresh  ) 
 

Definition at line 251 of file abtable.cpp.

References FALSE, findContactContact(), ContactItem::icon, oendl, owarn, resort(), setPaintingEnabled(), TRUE, and ContactItem::value.

Referenced by AbView::setListOrder().

void AbTable::resizeRows  )  [private]
 

Definition at line 331 of file abtable.cpp.

Referenced by realignTable().

void AbTable::resort  )  [private]
 

Definition at line 217 of file abtable.cpp.

References oendl, and owarn.

Referenced by refresh().

void AbTable::rowHeightChanged int  row  )  [protected, slot]
 

Definition at line 603 of file abtable.cpp.

References enablePainting.

Referenced by setPaintingEnabled().

bool AbTable::selectContact int  UID  ) 
 

Definition at line 177 of file abtable.cpp.

References FALSE, m_viewList, odebug, oendl, setPaintingEnabled(), and TRUE.

void AbTable::setChoiceSelection const QValueList< int > &  list  ) 
 

Definition at line 459 of file abtable.cpp.

References intFields.

Referenced by AddressPicker::setSelection().

void AbTable::setContacts const Opie::OPimContactAccess::List viewList  ) 
 

Definition at line 153 of file abtable.cpp.

References clear(), FALSE, m_viewList, odebug, oendl, setPaintingEnabled(), TRUE, and updateVisible().

void AbTable::setOrderedList const QValueList< int >  ordered  ) 
 

Definition at line 171 of file abtable.cpp.

References intFields.

Referenced by AbView::setListOrder().

void AbTable::setPaintingEnabled bool  e  ) 
 

Definition at line 518 of file abtable.cpp.

References countNested, enablePainting, and rowHeightChanged().

Referenced by clear(), fitColumns(), realignTable(), refresh(), selectContact(), setContacts(), and updateVisible().

void AbTable::show  ) 
 

Definition at line 417 of file abtable.cpp.

References realignTable().

void AbTable::signalEditor  )  [signal]
 

void AbTable::signalKeyDown  )  [signal]
 

void AbTable::signalKeyUp  )  [signal]
 

void AbTable::signalSortOrderChanged bool  order  )  [signal]
 

Referenced by columnClicked().

void AbTable::signalSwitch  )  [signal]
 

Referenced by itemClicked(), and keyPressEvent().

void AbTable::updateVisible  )  [private]
 

Definition at line 482 of file abtable.cpp.

References FALSE, realignTable(), row, setPaintingEnabled(), and TRUE.

Referenced by setContacts().

void AbTable::viewportPaintEvent QPaintEvent *  e  ) 
 

Definition at line 541 of file abtable.cpp.

References enablePainting.


Member Data Documentation

bool AbTable::asc [private]
 

Definition at line 149 of file abtable.h.

Referenced by columnClicked().

QStringList AbTable::choicenames [private]
 

Definition at line 152 of file abtable.h.

bool AbTable::columnVisible [private]
 

Definition at line 154 of file abtable.h.

Referenced by fitColumns(), and init().

int AbTable::countNested [private]
 

Definition at line 155 of file abtable.h.

Referenced by setPaintingEnabled().

bool AbTable::enablePainting [private]
 

Definition at line 153 of file abtable.h.

Referenced by rowHeightChanged(), setPaintingEnabled(), and viewportPaintEvent().

QValueList<int> AbTable::intFields [private]
 

Definition at line 151 of file abtable.h.

Referenced by findContactContact(), setChoiceSelection(), and setOrderedList().

int AbTable::lastSortCol [private]
 

Definition at line 148 of file abtable.h.

Opie::OPimContactAccess::List AbTable::m_viewList [private]
 

Definition at line 157 of file abtable.h.

Referenced by currentEntry(), paintCell(), selectContact(), and setContacts().


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