Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KPanelAppMenu Class Reference

#include <kpanelappmenu.h>

Inheritance diagram for KPanelAppMenu:

DCOPObject List of all members.

Signals

void activated (int id)

Public Methods

 KPanelAppMenu (const QString &title, QObject *parent=0, const char *name=0)
 KPanelAppMenu (const QPixmap &icon, const QString &title, QObject *parent, const char *name)
 KPanelAppMenu (QObject *parent, const char *name)
 ~KPanelAppMenu ()
int insertItem (const QString &text, int id=-1)
int insertItem (const QPixmap &icon, const QString &text, int id=-1)
KPanelAppMenu * insertMenu (const QPixmap &icon, const QString &text, int id=-1)
void clear ()
bool process (const QCString &fun, const QByteArray &data, QCString &replyType, QByteArray &reply)

Detailed Description

DCop client menu class for the Kicker panel that will insert a submenu into the KDE menu.

Author:
Daniel M. Duley <mosfet@kde.org>

Definition at line 37 of file kpanelappmenu.h.


Constructor & Destructor Documentation

KPanelAppMenu::KPanelAppMenu const QString &    title,
QObject *    parent = 0,
const char *    name = 0
 

Constructs a new menu with the given title.

KPanelAppMenu::KPanelAppMenu const QPixmap &    icon,
const QString &    title,
QObject *    parent,
const char *    name
 

Same as above, but with an icon for the submenu item.

KPanelAppMenu::KPanelAppMenu QObject *    parent,
const char *    name
 

Constructs a new (sub)menu with a given id.

KPanelAppMenu::~KPanelAppMenu  
 

Make sure you actually destroy this thing or the menu will never go away until this application quits or Kicker restarts ;-)


Member Function Documentation

void KPanelAppMenu::activated int    id [signal]
 

Emitted when the user selects an item from the Kicker menu.

void KPanelAppMenu::clear  
 

Clears the menu.

int KPanelAppMenu::insertItem const QPixmap &    icon,
const QString &    text,
int    id = -1
 

Inserts an item with a icon. The icon name must be a full path.

int KPanelAppMenu::insertItem const QString &    text,
int    id = -1
 

Inserts an item into the menu.

KPanelAppMenu* KPanelAppMenu::insertMenu const QPixmap &    icon,
const QString &    text,
int    id = -1
 

Inserts a sub menu with a icon. The icon name must be a full path.

bool KPanelAppMenu::process const QCString &    fun,
const QByteArray &    data,
QCString &    replyType,
QByteArray &    reply
[virtual]
 

Dispatches a message.

Usually you want to use an IDL compiler to automatically generate an implementation for this function.

If this function returns false, then processDynamic() is called.

Note to implementators: remember to call the baseclasses implementation. It handles the functions "functions()" and "interfaces()" which return the lists of supported functions and interfaces, respectively.

Parameters:
fun  is the normalized function signature. Such a signature usually looks like foobar(QString,int). The return type, qualifiers like "const" etc. are not part of the signature.
data  the received data
replyType  write the reply type in this string
replyData  write the reply data in this array
Returns:
true if successful, false otherwise. The default implementation returns false for all fun except "functions()" and "interfaces()".
See also:
DCOPClient::normalizeFunctionSignature() , functions() , DCOPClient::process()

Reimplemented from DCOPObject.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:19 2003 for kdelibs by doxygen1.2.18