kaddressbook

ViewManager Class Reference

#include <viewmanager.h>

List of all members.


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.


Public Slots

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

Signals

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

Public Member Functions

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

Protected Slots

void dropped (QDropEvent *)
void startDrag ()

Member Function Documentation

void ViewManager::dropped ( QDropEvent *   )  [protected, slot]

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.

void ViewManager::startDrag (  )  [protected, slot]

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 453 of file viewmanager.cpp.

void ViewManager::selected ( const QString &  uid  )  [signal]

Emitted whenever the user selects an entry in the view.

void ViewManager::executed ( const QString &  uid  )  [signal]

Emitted whenever the user activates an entry in the view.

void ViewManager::modified (  )  [signal]

Emitted whenever the address book is modified in some way.

void ViewManager::urlDropped ( const KURL &   )  [signal]

Emitted whenever a url is dragged on a view.

void ViewManager::sortFieldChanged (  )  [signal]

Emitted whenever the sort field of a view has changed.

void ViewManager::viewFieldsChanged (  )  [signal]

Emitted whenever the view fields changed.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys