• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kdeui

KPanelAppMenu Class Reference

#include <kpanelappmenu.h>

Inheritance diagram for KPanelAppMenu:

QObject DCOPObject

List of all members.


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.


Signals

void activated (int id)

Public Member Functions

 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 &replyData)

Protected Member Functions

void init (const QPixmap &icon, const QString &title)

Constructor & Destructor Documentation

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

Constructs a new menu with the given title.

Definition at line 38 of file kpanelappmenu.cpp.

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

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

Definition at line 45 of file kpanelappmenu.cpp.

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

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

Definition at line 54 of file kpanelappmenu.cpp.

KPanelAppMenu::~KPanelAppMenu (  ) 

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

Definition at line 87 of file kpanelappmenu.cpp.


Member Function Documentation

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

Inserts an item into the menu.

Definition at line 134 of file kpanelappmenu.cpp.

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.

Definition at line 96 of file kpanelappmenu.cpp.

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.

Definition at line 109 of file kpanelappmenu.cpp.

void KPanelAppMenu::clear (  ) 

Clears the menu.

Definition at line 147 of file kpanelappmenu.cpp.

bool KPanelAppMenu::process ( const QCString &  fun,
const QByteArray &  data,
QCString &  replyType,
QByteArray &  replyData 
) [virtual]

For internal use only.

Reimplemented from DCOPObject.

Definition at line 155 of file kpanelappmenu.cpp.

void KPanelAppMenu::activated ( int  id  )  [signal]

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


The documentation for this class was generated from the following files:
  • kpanelappmenu.h
  • kpanelappmenu.cpp

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal