Home · All Classes · Main Classes · Deprecated
Public Types | Public Member Functions | Properties

MAction Class Reference

MAction implements an extension of the QAction for libmeegotouch. More...

Inherits QAction.

Inherited by MRemoteAction, MServiceAction, and MWidgetAction.

List of all members.

Public Types

enum  Location {
  NoLocation = 0x0000, ToolBarPortraitLocation = 0x0001, ToolBarLandscapeLocation = 0x0002, ToolBarLocation = 0x0003,
  ApplicationMenuLocation = 0x0004, ObjectMenuLocation = 0x0008, EveryLocation = 0xffff
}

Public Member Functions

 MAction (QObject *parent)
 MAction (const QString &text, QObject *parent)
 MAction (const QString &iconID, const QString &text, QObject *parent)
virtual ~MAction ()
QString iconID () const
void setIconID (const QString &id)
QString toggledIconID () const
void setToggledIconID (const QString &id)
Locations location () const
void setLocation (Locations location)
void setStyleAction (bool styleAction)
bool isStyleAction () const

Properties

QString iconID

Detailed Description

MAction implements an extension of the QAction for libmeegotouch.


Member Enumeration Documentation

Possible locations for an action to reside in. An action may stay in different locations on the screen, but will have preferred ones. This information is useful if actions should be shifted from one location to another automatically.

Enumerator:
NoLocation 

No location.

ToolBarPortraitLocation 

In the tool bar, if in portrait orientation.

ToolBarLandscapeLocation 

In the tool bar, if in landscape orientation.

ToolBarLocation 

In the tool bar, regardless of the orientation.

ApplicationMenuLocation 

In the application menu.

ObjectMenuLocation 

In the object menu.

EveryLocation 

In all possible locations.


Constructor & Destructor Documentation

MAction::MAction ( QObject parent  )  [explicit]

Default constructor.

Parameters:
parent Parent object
MAction::MAction ( const QString text,
QObject parent 
)

Constructor.

Parameters:
text Text to be used as label for action button
parent Parent object This overloaded constructor is provided for convenience.
MAction::MAction ( const QString iconID,
const QString text,
QObject parent 
)

Constructor.

Parameters:
iconID Identifier for icon to be shown on action button
text Text to be used as label for action button
parent Parent object This overloaded constructor is provided for convenience.
MAction::~MAction (  )  [virtual]

Destructor for an action.


Member Function Documentation

QString MAction::iconID (  )  const

Returns the logical ID associated with this action's icon.

bool MAction::isStyleAction (  )  const

Return whether this action is a style action or not.

MAction::Locations MAction::location (  )  const

Return the possible locations this action may reside in.

void MAction::setIconID ( const QString id  ) 

Sets the logical ID associated with this action's icon to id.

void MAction::setLocation ( Locations  location  ) 

Set the locations this action may reside in.

Parameters:
location value of possible locations
void MAction::setStyleAction ( bool  styleAction  ) 

sets the action as style action, which can be used to set the style/order/presentation of the contents of the view.

void MAction::setToggledIconID ( const QString id  ) 

Sets the logical ID associated with this action's toggled icon to id.

QString MAction::toggledIconID (  )  const

Returns the logical ID associated with this action's toggled icon.


Property Documentation

QString MAction::iconID [read, write]

Logical ID of the action icon.


Copyright © 2010 Nokia Corporation
MeeGo Touch