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

VTApplet Class Reference

#include </home/clem/local/src/opie/core/applets/vtapplet/vt.h>

Inheritance diagram for VTApplet:

Inheritance graph
[legend]
Collaboration diagram for VTApplet:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void changeVT (int index)
virtual void updateMenu ()

Public Member Functions

 VTApplet ()
virtual ~VTApplet ()
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 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

QPopupMenu * m_subMenu
int m_ourVT

Constructor & Destructor Documentation

VTApplet::VTApplet  ) 
 

Definition at line 35 of file vt.cpp.

VTApplet::~VTApplet  )  [virtual]
 

Definition at line 40 of file vt.cpp.


Member Function Documentation

void VTApplet::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 152 of file vt.cpp.

References odebug, and oendl.

Referenced by popup().

void VTApplet::changeVT int  index  )  [virtual, slot]
 

Definition at line 108 of file vt.cpp.

References m_ourVT, odebug, and oendl.

Referenced by popup().

QIconSet VTApplet::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 71 of file vt.cpp.

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

QString VTApplet::name  )  const [virtual]
 

Translated name of the Menu Applet.

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

Implements MenuAppletInterface.

Definition at line 49 of file vt.cpp.

References tr.

QPopupMenu * VTApplet::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 77 of file vt.cpp.

References activated(), changeVT(), i, m_ourVT, m_subMenu, QString::number(), odebug, oendl, and updateMenu().

int VTApplet::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 44 of file vt.cpp.

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

Implements QUnknownInterface.

Definition at line 158 of file vt.cpp.

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

QString VTApplet::text  )  const [virtual]
 

return a Text shown to the user in the menu

Implements MenuAppletInterface.

Definition at line 54 of file vt.cpp.

References tr.

void VTApplet::updateMenu  )  [virtual, slot]
 

Definition at line 127 of file vt.cpp.

References i, and m_subMenu.

Referenced by popup().


Member Data Documentation

int VTApplet::m_ourVT [mutable, private]
 

Definition at line 49 of file vt.h.

Referenced by changeVT(), and popup().

QPopupMenu* VTApplet::m_subMenu [mutable, private]
 

Definition at line 48 of file vt.h.

Referenced by popup(), and updateMenu().


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