kaddressbook

KAddressBookTableView Class Reference

#include <kaddressbooktableview.h>

Inheritance diagram for KAddressBookTableView:
KAddressBookView

Public Slots

virtual void reconstructListView ()
 
- Public Slots inherited from KAddressBookView
void popup (const TQPoint &point)
 

Public Member Functions

 KAddressBookTableView (KAB::Core *core, TQWidget *parent, const char *name=0)
 
virtual void refresh (const TQString &uid=TQString())
 
virtual TQStringList selectedUids ()
 
virtual void setSelected (const TQString &uid=TQString(), bool selected=false)
 
virtual void setFirstSelected (bool selected=true)
 
virtual TDEABC::Field * sortField () const
 
virtual void readConfig (TDEConfig *config)
 
virtual void writeConfig (TDEConfig *config)
 
virtual TQString type () const
 
void scrollUp ()
 
void scrollDown ()
 
- Public Member Functions inherited from KAddressBookView
 KAddressBookView (KAB::Core *core, TQWidget *parent, const char *name)
 
virtual TQString selectedEmails ()
 
TDEABC::Field::List fields () const
 
void setFilter (const Filter &)
 
DefaultFilterType defaultFilterType () const
 
const TQString & defaultFilterName () const
 
KAB::Core * core () const
 

Protected Slots

void addresseeSelected ()
 
void addresseeExecuted (TQListViewItem *)
 
void rmbClicked (TDEListView *, TQListViewItem *, const TQPoint &)
 
void updatePresence (const TQString &uid)
 

Friends

class ContactListView
 

Additional Inherited Members

- Public Types inherited from KAddressBookView
enum  DefaultFilterType { None = 0 , Active = 1 , Specific = 2 }
 
- Signals inherited from KAddressBookView
void modified ()
 
void selected (const TQString &uid)
 
void executed (const TQString &uid)
 
void startDrag ()
 
void dropped (TQDropEvent *)
 
void sortFieldChanged ()
 
void viewFieldsChanged ()
 
- Protected Member Functions inherited from KAddressBookView
TDEABC::Addressee::List addressees ()
 
TQWidget * viewWidget ()
 

Detailed Description

This class is the table view for kaddressbook.

This view is a TDEListView with multiple columns for the selected fields.

Table View

Author
Don Sanders dsand.nosp@m.ers@.nosp@m.kde.o.nosp@m.rg
Version
0.1

Definition at line 60 of file kaddressbooktableview.h.

Member Function Documentation

◆ addresseeExecuted

void KAddressBookTableView::addresseeExecuted ( TQListViewItem *  item)
protectedslot

Called whenever the user executes an addressee.

In terms of the list view, this is probably a double click

Definition at line 336 of file kaddressbooktableview.cpp.

◆ addresseeSelected

void KAddressBookTableView::addresseeSelected ( )
protectedslot

Called whenever the user selects an addressee in the list view.

Definition at line 314 of file kaddressbooktableview.cpp.

◆ readConfig()

void KAddressBookTableView::readConfig ( TDEConfig *  config)
virtual

Called whenever this view should read the config.

This can be used as a sign that the config has changed, therefore the view should assume the worst and rebuild itself if necessary. For example, in a table view this method may be called when the user adds or removes columns from the view.

If overloaded in the subclass, do not forget to call super class's method.

Parameters
configThe TDEConfig object to read from. The group will already be set, so do not change the group.

Reimplemented from KAddressBookView.

Definition at line 183 of file kaddressbooktableview.cpp.

◆ refresh()

void KAddressBookTableView::refresh ( const TQString &  uid = TQString())
virtual

Must be overloaded in subclasses to refresh the view.

Refreshing includes updating the view to ensure that only items in the document are visible. If uid is valid, only the addressee with uid needs to be refreshed. This is an optimization only.

Implements KAddressBookView.

Definition at line 217 of file kaddressbooktableview.cpp.

◆ rmbClicked

void KAddressBookTableView::rmbClicked ( TDEListView *  ,
TQListViewItem *  ,
const TQPoint &  point 
)
protectedslot

RBM menu called.

Definition at line 350 of file kaddressbooktableview.cpp.

◆ selectedUids()

TQStringList KAddressBookTableView::selectedUids ( )
virtual

Must be overloaded in subclasses.

Should return a list of all the uids of selected contacts.

Implements KAddressBookView.

Definition at line 269 of file kaddressbooktableview.cpp.

◆ setFirstSelected()

void KAddressBookTableView::setFirstSelected ( bool  selected = true)
virtual

Selects the first contact in the view.

Implements KAddressBookView.

Definition at line 306 of file kaddressbooktableview.cpp.

◆ setSelected()

void KAddressBookTableView::setSelected ( const TQString &  uid = TQString(),
bool  selected = false 
)
virtual

This method must be overloaded in subclasses.

Select (highlight) the addressee matching uid. If uid is equal to TQString(), then all addressees should be selected.

Implements KAddressBookView.

Definition at line 286 of file kaddressbooktableview.cpp.

◆ sortField()

TDEABC::Field * KAddressBookTableView::sortField ( ) const
virtual
Returns
The current sort field.

Implements KAddressBookView.

Definition at line 170 of file kaddressbooktableview.cpp.

◆ type()

virtual TQString KAddressBookTableView::type ( ) const
inlinevirtual

Return the type of the view: Icon, Table, etc.

Please make sure that this is the same value that ViewWrapper::type() will return for your view.

Implements KAddressBookView.

Definition at line 80 of file kaddressbooktableview.h.

◆ updatePresence

void KAddressBookTableView::updatePresence ( const TQString &  uid)
protectedslot

Called to update the presence of a single item.

Definition at line 355 of file kaddressbooktableview.cpp.

◆ writeConfig()

void KAddressBookTableView::writeConfig ( TDEConfig *  )
virtual

Called whenever this view should write the config.

The view should not write out information handled by the application, such as which fields are visible. The view should only write out information specific to itself (i.e.: All information in the ViewConfigWidget)

If overloaded in the subclass, do not forget to call the super class's method.

Reimplemented from KAddressBookView.

Definition at line 176 of file kaddressbooktableview.cpp.


The documentation for this class was generated from the following files: