kaddressbook Library API Documentation

ActionManager Class Reference

The ActionManager creates all the actions in KAddressBook. More...

#include <actionmanager.h>

Inheritance diagram for ActionManager:

QObject List of all members.

Public Slots

void initActionViewList ()

Signals

void filterActivated (int)
 Announce filter selection changes.


Public Member Functions

 ActionManager (KXMLGUIClient *client, KAddressBook *widget, bool readWrite, QObject *parent)
void setReadWrite (bool rw)
bool isModified ()

Protected Slots

void addresseeSelected (bool selected)
 Called whenever an addressee is selected or unselected.

void setFilterNames (const QStringList &)
 Called to set the filter list.

void setCurrentFilterName (const QString &)
 Set the current filter by its name.

void setCurrentFilter (int index)
 Set the current filter.

void modified (bool mod)
 Called whenever the addressbook is modified.

void selectViewAction ()
 Called whenever the view selection changes.

void viewConfigChanged (const QString &newActive)
 Called whenever the view configuration changes.

void quickToolsAction ()
 Called whenever the user clicks changes the view policy of a quick tool.

void updateEditMenu ()

Detailed Description

The ActionManager creates all the actions in KAddressBook.

This class is shared between the main application and the part so all common actions are in one location.

Definition at line 40 of file actionmanager.h.


Member Function Documentation

void ActionManager::addresseeSelected bool  selected  )  [protected, slot]
 

Called whenever an addressee is selected or unselected.

Parameters:
selected True if there is an addressee select, false otherwise

Definition at line 266 of file actionmanager.cpp.

void ActionManager::setFilterNames const QStringList  )  [protected, slot]
 

Called to set the filter list.

Definition at line 377 of file actionmanager.cpp.

References setCurrentFilterName().

void ActionManager::setCurrentFilterName const QString  )  [protected, slot]
 

Set the current filter by its name.

Ignored if the name does not exist.

Definition at line 394 of file actionmanager.cpp.

References setCurrentFilter().

Referenced by setFilterNames().

void ActionManager::setCurrentFilter int  index  )  [protected, slot]
 

Set the current filter.

0 for none.

Definition at line 402 of file actionmanager.cpp.

References filterActivated().

Referenced by setCurrentFilterName().

void ActionManager::modified bool  mod  )  [protected, slot]
 

Called whenever the addressbook is modified.

See also:
KAddressBook

Definition at line 279 of file actionmanager.cpp.

void ActionManager::selectViewAction  )  [protected, slot]
 

Called whenever the view selection changes.

Definition at line 345 of file actionmanager.cpp.

References QPtrListIterator::current(), QObject::sender(), ViewManager::setActiveView(), and QPtrListIterator::toFirst().

void ActionManager::viewConfigChanged const QString newActive  )  [protected, slot]
 

Called whenever the view configuration changes.

This usually means a view was added or deleted.

Definition at line 331 of file actionmanager.cpp.

References QString::isEmpty(), and ViewManager::viewNames().

void ActionManager::quickToolsAction  )  [protected, slot]
 

Called whenever the user clicks changes the view policy of a quick tool.

Handles Feature Bar and Jump Button Bar.

Definition at line 370 of file actionmanager.cpp.

References ViewManager::setDetailsVisible(), ViewManager::setJumpButtonBarVisible(), and ViewManager::showFeatures().

void ActionManager::filterActivated int   )  [signal]
 

Announce filter selection changes.

Referenced by setCurrentFilter().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:10 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001