List of all members | Properties | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
Action Class Reference

A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys. More...

#include <guiclient.h>

Inheritance diagram for Action:
QAction QObject

Properties

 autoRepeat
 
 checkable
 
 checked
 
 enabled
 
 font
 
 icon
 
 iconText
 
 iconVisibleInMenu
 
 menuRole
 
 objectName
 
 priority
 
 shortcut
 
 shortcutContext
 
 softKeyRole
 
 statusTip
 
 text
 
 toolTip
 
 visible
 
 whatsThis
 

Public Member Functions

 Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, bool pEnabled)
 
 Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, const QString &pEnabled)
 
 Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, const QString &pEnabled, const QPixmap &pIcon, QWidget *pToolBar)
 
 Action (QWidget *pParent, const char *pName, const QString &pDisplayName, QObject *pTarget, const char *pActivateSlot, QWidget *pAddTo, const QString &pEnabled, const QPixmap &pIcon, QWidget *pToolBar, const QString &pToolTip)
 
QKeySequence accel () const
 
QActionGroupactionGroup () const
 
void activate (ActionEvent event)
 
void activated (int i)
 
bool addTo (QWidget *w)
 
QList< QGraphicsWidget * > associatedGraphicsWidgets () const
 
QList< QWidget * > associatedWidgets () const
 
bool autoRepeat () const
 
bool blockSignals (bool block)
 
void changed ()
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
QVariant data () const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QFont font () const
 
void hover ()
 
void hovered ()
 
QIcon icon () const
 
QIcon iconSet () const
 
QString iconText () const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isCheckable () const
 
bool isChecked () const
 
bool isEnabled () const
 
bool isIconVisibleInMenu () const
 
bool isOn () const
 
bool isSeparator () const
 
bool isToggleAction () const
 
bool isVisible () const
 
bool isWidgetType () const
 
void killTimer (int id)
 
QMenumenu () const
 
MenuRole menuRole () const
 
QString menuText () const
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObjectparent () const
 
QWidgetparentWidget () const
 
Priority priority () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
bool removeFrom (QWidget *w)
 
void setAccel (const QKeySequence &shortcut)
 
void setActionGroup (QActionGroup *group)
 
void setAutoRepeat (bool)
 
void setCheckable (bool)
 
void setChecked (bool)
 
void setData (const QVariant &userData)
 
void setDisabled (bool b)
 
void setEnabled (bool)
 
void setFont (const QFont &font)
 
void setIcon (const QIcon &icon)
 
void setIconSet (const QIcon &i)
 
void setIconText (const QString &text)
 
void setIconVisibleInMenu (bool visible)
 
void setMenu (QMenu *menu)
 
void setMenuRole (MenuRole menuRole)
 
void setMenuText (const QString &text)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setOn (bool b)
 
void setParent (QObject *parent)
 
void setPriority (Priority priority)
 
bool setProperty (const char *name, const QVariant &value)
 
void setSeparator (bool b)
 
void setShortcut (const QKeySequence &shortcut)
 
void setShortcutContext (Qt::ShortcutContext context)
 
void setShortcuts (QKeySequence::StandardKey key)
 
void setShortcuts (const QList< QKeySequence > &shortcuts)
 
void setSoftKeyRole (SoftKeyRole softKeyRole)
 
void setStatusTip (const QString &statusTip)
 
void setText (const QString &text)
 
void setToggleAction (bool b)
 
void setToolTip (const QString &tip)
 
void setVisible (bool)
 
void setWhatsThis (const QString &what)
 
QKeySequence shortcut () const
 
Qt::ShortcutContext shortcutContext () const
 
QList< QKeySequenceshortcuts () const
 
bool showStatusText (QWidget *widget)
 
bool signalsBlocked () const
 
SoftKeyRole softKeyRole () const
 
int startTimer (int interval)
 
QString statusTip () const
 
QString text () const
 
QThreadthread () const
 
void toggle ()
 
void toggled (bool checked)
 
QString toolTip () const
 
void trigger ()
 
void triggered (bool checked)
 
QString whatsThis () const
 

Static Public Member Functions

bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Member Functions

bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
virtual bool event (QEvent *e)
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Static Protected Member Functions

QByteArray normalizeSignalSlot (const char *signalSlot)
 

Detailed Description

A convenience subclass of QAction for simplifying the association of menu items with icons, toolbar buttons, and hotkeys.

Core application menu items are built using the Action class. The Action constructors - actually Action::init - attach QString values describing the user's permissions as QAction::data. These strings are interpreted in the following fashion:

See also
Privileges::isDba()
Todo:
Add support for @name:mode - call name::userHasPriv(mode)

Constructor & Destructor Documentation

Action::Action ( QWidget pParent,
const char *  pName,
const QString pDisplayName,
QObject pTarget,
const char *  pActivateSlot,
QWidget pAddTo,
bool  pEnabled 
)
Action::Action ( QWidget pParent,
const char *  pName,
const QString pDisplayName,
QObject pTarget,
const char *  pActivateSlot,
QWidget pAddTo,
const QString pEnabled 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Action::Action ( QWidget pParent,
const char *  pName,
const QString pDisplayName,
QObject pTarget,
const char *  pActivateSlot,
QWidget pAddTo,
const QString pEnabled,
const QPixmap pIcon,
QWidget pToolBar 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Action::Action ( QWidget pParent,
const char *  pName,
const QString pDisplayName,
QObject pTarget,
const char *  pActivateSlot,
QWidget pAddTo,
const QString pEnabled,
const QPixmap pIcon,
QWidget pToolBar,
const QString pToolTip 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


The documentation for this class was generated from the following files:

Generated on Mon Dec 1 2014 xTuple ERP Programmer Reference, Version 4.8.0 doxygen 1.8.7