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

RotateApplet Class Reference

#include </home/clem/local/src/opie/core/applets/rotateapplet/rotate.h>

Inheritance diagram for RotateApplet:

Inheritance graph
[legend]
Collaboration diagram for RotateApplet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RotateApplet ()
virtual ~RotateApplet ()
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.
virtual void rotateDefault ()

Private Slots

void channelReceived (const QCString &msg, const QByteArray &data)

Private Attributes

bool m_flipped: 1

Constructor & Destructor Documentation

RotateApplet::RotateApplet  ) 
 

Definition at line 49 of file rotate.cpp.

References channelReceived().

RotateApplet::~RotateApplet  )  [virtual]
 

Definition at line 61 of file rotate.cpp.


Member Function Documentation

void RotateApplet::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 183 of file rotate.cpp.

References Opie::Core::CCW, Opie::Core::CW, QPEApplication::defaultRotation(), Opie::Core::Flip, m_flipped, Config::readNumEntry(), and Config::setGroup().

Referenced by channelReceived().

void RotateApplet::channelReceived const QCString msg,
const QByteArray data
[private, slot]
 

Qcop receive method.

Definition at line 67 of file rotate.cpp.

References activated(), Opie::Core::CASE_CLOSED, Opie::Core::ODevice::inst(), IO_ReadOnly, odebug, oendl, PowerStatus::Online, Config::readNumEntry(), PowerStatusManager::readStatus(), rotateDefault(), Config::setGroup(), and stream.

Referenced by RotateApplet().

QIconSet RotateApplet::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 143 of file rotate.cpp.

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

QString RotateApplet::name  )  const [virtual]
 

Translated name of the Menu Applet.

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

Implements MenuAppletInterface.

Definition at line 122 of file rotate.cpp.

References tr.

QPopupMenu * RotateApplet::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 149 of file rotate.cpp.

int RotateApplet::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 117 of file rotate.cpp.

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

Implements QUnknownInterface.

Definition at line 235 of file rotate.cpp.

References IID_MenuApplet, IID_QUnknown, QS_FALSE, and QS_OK.

void RotateApplet::rotateDefault  )  [virtual]
 

Definition at line 154 of file rotate.cpp.

References m_flipped, Config::readBoolEntry(), Rot0, Rot180, Rot270, Rot90, and Config::setGroup().

Referenced by channelReceived().

QString RotateApplet::text  )  const [virtual]
 

return a Text shown to the user in the menu

Implements MenuAppletInterface.

Definition at line 127 of file rotate.cpp.

References tr.


Member Data Documentation

bool RotateApplet::m_flipped [private]
 

Definition at line 66 of file rotate.h.

Referenced by activated(), and rotateDefault().


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