kaddressbook

#include <viewmanager.h>

Inherits TQWidget.

Public Slots

void setSelected (const TQString &uid=TQString(), bool selected=true)
 
void setFirstSelected (bool selected=true)
 
void refreshView (const TQString &uid=TQString())
 
void editView ()
 
void deleteView ()
 
void addView ()
 
void scrollUp ()
 
void scrollDown ()
 

Signals

void selected (const TQString &uid)
 
void executed (const TQString &uid)
 
void modified ()
 
void urlDropped (const KURL &)
 
void sortFieldChanged ()
 
void viewFieldsChanged ()
 

Public Member Functions

 ViewManager (KAB::Core *core, TQWidget *parent, const char *name=0)
 
void restoreSettings ()
 
void saveSettings ()
 
void unloadViews ()
 
TQStringList selectedUids () const
 
TQStringList selectedEmails () const
 
TDEABC::Addressee::List selectedAddressees () const
 
void setFilterSelectionWidget (FilterSelectionWidget *wdg)
 
TDEABC::Field * currentSortField () const
 
TDEABC::Field::List viewFields () const
 

Protected Slots

void dropped (TQDropEvent *)
 
void startDrag ()
 

Detailed Description

The view manager manages the views and everything related to them.

The manager will load the views at startup and display a view when told to make one active.

The view manager will also create and manage all dialogs directly related to views (ie: AddView, ConfigureView, DeleteView, etc).

Definition at line 50 of file viewmanager.h.

Member Function Documentation

◆ dropped

void ViewManager::dropped ( TQDropEvent *  e)
protectedslot

Called whenever the user drops something in the active view.

This method will try to decode what was dropped, and if it was a valid addressee, add it to the addressbook.

Definition at line 414 of file viewmanager.cpp.

◆ executed

void ViewManager::executed ( const TQString &  uid)
signal

Emitted whenever the user activates an entry in the view.

◆ modified

void ViewManager::modified ( )
signal

Emitted whenever the address book is modified in some way.

◆ selected

void ViewManager::selected ( const TQString &  uid)
signal

Emitted whenever the user selects an entry in the view.

◆ sortFieldChanged

void ViewManager::sortFieldChanged ( )
signal

Emitted whenever the sort field of a view has changed.

◆ startDrag

void ViewManager::startDrag ( )
protectedslot

Called whenever the user attempts to start a drag in the view.

This method will convert all the selected addressees into text (vcard) and create a drag object.

Definition at line 450 of file viewmanager.cpp.

◆ urlDropped

void ViewManager::urlDropped ( const KURL &  )
signal

Emitted whenever a url is dragged on a view.

◆ viewFieldsChanged

void ViewManager::viewFieldsChanged ( )
signal

Emitted whenever the view fields changed.


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