Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AboutApplet Class Reference

#include </home/clem/local/src/opie/core/applets/aboutapplet/about.h>

Inheritance diagram for AboutApplet:

Inheritance graph
[legend]
Collaboration diagram for AboutApplet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AboutApplet ()
virtual ~AboutApplet ()
QRESULT queryInterface (const QUuid &, QUnknownInterface **)
virtual Q_REFCOUNT int position () const
 the wished position of this applet
virtual QString name () const
 Translated name of the Menu Applet.
virtual QIconSet icon () const
 return a QIconSet.
virtual QString text () const
 return a Text shown to the user in the menu
virtual QString tr (const char *) const
virtual QString tr (const char *, const char *) const
virtual QPopupMenu * popup (QWidget *parent) const
 Provide a SubMenu popup if you want.
virtual void activated ()
 This method gets called once the user clicked on the item.

Private Attributes

AboutWidget * m_ad

Constructor & Destructor Documentation

AboutApplet::AboutApplet  ) 
 

Definition at line 12 of file about.cpp.

AboutApplet::~AboutApplet  )  [virtual]
 

Definition at line 16 of file about.cpp.

References m_ad.


Member Function Documentation

void AboutApplet::activated  )  [virtual]
 

This method gets called once the user clicked on the item.

This is the way you get informed about user input. Your plugin has just been clicked

Implements MenuAppletInterface.

Definition at line 57 of file about.cpp.

References m_ad, and QPEApplication::showWidget().

QIconSet AboutApplet::icon  )  const [virtual]
 

return a QIconSet.

The returned icon set will be shown next to text(). Make use of AppLnk::smallIconSize()

Implements MenuAppletInterface.

Definition at line 46 of file about.cpp.

References Opie::Core::OResource::loadPixmap(), pix, and Opie::Core::OResource::SmallIcon.

QString AboutApplet::name  )  const [virtual]
 

Translated name of the Menu Applet.

Return a translated name using QObject::tr of your plugin

Implements MenuAppletInterface.

Definition at line 26 of file about.cpp.

References tr().

QPopupMenu * AboutApplet::popup QWidget *  parent  )  const [virtual]
 

Provide a SubMenu popup if you want.

You can provide a Submenu popup for your item as well. If you return 0 no popup will be shown.

You can use the QPopupMenu::aboutToShow() signal to be informed before showing the popup

Parameters:
parent The parent of the to be created popup.
See also:
QPopupMenu

Implements MenuAppletInterface.

Definition at line 52 of file about.cpp.

int AboutApplet::position  )  const [virtual]
 

the wished position of this applet

The position where you want to be placed. 0 for the down most

Implements MenuAppletInterface.

Definition at line 21 of file about.cpp.

QRESULT AboutApplet::queryInterface const QUuid ,
QUnknownInterface ** 
[virtual]
 

Implements QUnknownInterface.

Definition at line 65 of file about.cpp.

References QUnknownInterface::addRef(), IID_MenuApplet, IID_QUnknown, QS_FALSE, and QS_OK.

QString AboutApplet::text  )  const [virtual]
 

return a Text shown to the user in the menu

Implements MenuAppletInterface.

Definition at line 31 of file about.cpp.

References tr().

QString AboutApplet::tr const char *  ,
const char * 
const [virtual]
 

Definition at line 41 of file about.cpp.

References qApp.

QString AboutApplet::tr const char *   )  const [virtual]
 

Definition at line 36 of file about.cpp.

References qApp.

Referenced by name(), and text().


Member Data Documentation

AboutWidget* AboutApplet::m_ad [private]
 

Definition at line 48 of file about.h.

Referenced by activated(), and ~AboutApplet().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:25:49 2005 for OPIE by  doxygen 1.4.2